You are not logged in.

#1 2013-05-09 15:37:42

keen90
Member
From: Europe
Registered: 2010-04-07
Posts: 106

[SOLVED] bash deafult path changed - how can i undo this?

Hi,

I have a weird problem. I did a full system update today and now my default bash path has changed.
When I start a bash now the default location is:
/tmp/.X11-unix
instead of
/home/maex/

Anyway the HOME variable still is fine:

maex@crimson:.X11-unix $ echo $HOME
/home/maex

so when i run

maex@crimson:.X11-unix $ cd

I'm back in my "real" homedir. Any ideas where this might come from?

Regards,
Keen

Last edited by keen90 (2013-05-09 15:59:24)

Offline

#2 2013-05-09 15:43:09

keen90
Member
From: Europe
Registered: 2010-04-07
Posts: 106

Re: [SOLVED] bash deafult path changed - how can i undo this?

ok I did a quick hack by adding

cd

to the .bashrc.

This does work.
But I'd rather find the problem then fight the symptoms.

Offline

#3 2013-05-09 15:45:23

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [SOLVED] bash deafult path changed - how can i undo this?

Restart the computer and try again.
Maybe you did start X from /tmp/.X11-unix (from the console).

Offline

#4 2013-05-09 15:48:36

ewaller
Administrator
From: Pasadena, CA
Registered: 2009-07-13
Posts: 20,741

Re: [SOLVED] bash deafult path changed - how can i undo this?

man bash wrote:

FILES
       /bin/bash
              The bash executable
       /etc/profile
              The systemwide initialization file, executed for login shells
       ~/.bash_profile
              The personal initialization file, executed for login shells
       ~/.bashrc
              The individual per-interactive-shell startup file
       ~/.bash_logout
              The  individual  login shell cleanup file, executed when a login
              shell exits
       ~/.inputrc
              Individual readline initialization file

You should take a look through all of those files (except /bin/bash smile ) and see where it is happening.  Note that the files in /etc run first, and those in your $HOME override.


Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
The shortest way to ruin a country is to give power to demagogues.— Dionysius of Halicarnassus
---
How to Ask Questions the Smart Way

Offline

#5 2013-05-09 15:58:55

keen90
Member
From: Europe
Registered: 2010-04-07
Posts: 106

Re: [SOLVED] bash deafult path changed - how can i undo this?

Thanks for the quick responses!

karol was right - I did start X11 manually from
/tmp/.X11-unix

Since the last update my X11 does not start up any more, however if I log in and run startx everytthing runs fine... I'll go after that now.

And I'll mark this thread as solved and post a new one in case I can't figure out my X11 startup problem.

Offline

Board footer

Powered by FluxBB