Ask your questions here.
Mon Feb 11, 2013 6:37 pm
Well: in Europe we follow USA now, the third world and the first world living in the same country.
Electricity went down, and now i got the following problem:
I can't run scripts stored in home/me/bin anymore.
As far i know all i need is to create home/me/bin and .profile makes sure those are executable.
I checked ls -ahl bin, but all is x
I don't know where to look at.
It is debian sid with xfce and lightdm (oh? mhhh.... now that i write that .... let me check)
Any ideas? Thanks
Mon Feb 11, 2013 7:07 pm
I noticed the same problem today. I'm not at home, and I'm running off a live-usb with beta9. The relevant code is in ~/.profile as you stated:
- Code:
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
but ~/bin is not in my path.
- Code:
echo $PATH
source .profile
echo $PATH
And that fixes it (temporarily).
Something is weird. ~/.profile sources .bashrc if it exists. But what looks at .profile?
Mon Feb 11, 2013 9:54 pm
Ok, good. Thanks
I am never sure what does what (home profile and bashrc and etc profile and bashrc and what not).
All i can say is that if you got something in your .profile, it only gets done once, when logging in.
When you got something in your bashrc it gets done each time you open a new terminall.
That doesn't answer the question, but perhaps it is a hint. I did "man login", but no profile in there. One of the bash scripting tutorials we used explains it in detail (iirc).
Check if this helps:
http://tldp.org/LDP/Bash-Beginners-Guide chapter 3, it seems
(i can't copy/paste with dilllo, if link broken do what needs to be done

)
Tue Feb 12, 2013 2:45 am
This, from May 2010...
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=581765In [ ]etc/skel/.profile the $HOME/.bashrc file is sourced before PATH is
fully configured with the addition of $HOME/bin. Please set up PATH
fully before sourcing the .bashrc file. Otherwise upon initial login
processes from the bashrc file has one PATH (without $HOME/bin) but
other instances have a different PATH (with $HOME/bin).
To be clear, please put this part:
if [ -d "$HOME/bin" ] ; then
PATH="$HOME/bin:$PATH"
fi
Before this part:
if [ -n "$BASH_VERSION" ]; then
if [ -f "$HOME/.bashrc" ]; then
. "$HOME/.bashrc"
fi
fi
Presently it is the other way around.
Looks like I moved the PATH piece into .bashrc on my own system. Did that in October, and I don't recall it.
Tue Feb 12, 2013 3:59 am
"The other way around" did not help. Adding the path to .bashrc does work.
Tue Feb 12, 2013 6:12 am
I need to read it again when i have slept, but i think you lost me.
I never had to do anything (i barely edit .bashrc and .profile at all). bin just worked (and still works on all but one system, as far i can tell. All i see right now is that lightdm is installed on the "broken" system).
Tue Feb 12, 2013 1:13 pm
not a specific answer just general rambling....
if I recall (havent fooled with it lately) login managers do seem to change what is in a users path
not saying that is a solution/fix only that you might check before and after installing/removing any login manager
otherwise I would just say you mucked it up somewhere along the way
Tue Feb 12, 2013 5:13 pm
If you have no login manager, then you log in through console, and ~/.profile gets read.
I only mucked with my own. Well, until last night. I added the PATH bit to ~/.bashrc in the build installation.
Tue Feb 12, 2013 6:19 pm
If i recall correct slim (is that the default login/display manager of antiX?) used .profile too. I sshfs-mount three directories via .profile, and after login via sllim (?) in i was asked for the passwords. I was astonished, but removed it pretty quick (probably couldn't figure out something).
new isp arrived today, so i will be busy with other things.
"otherwise i'd say you mucked it up somewhere along the way"
Umf. That was mean. I would not know what (my first thought was the electricity problem, cause that was something unusual, but after thinking about it it didn't make any sense: at that time i was running the laptop from adapter .... )
But yes, for me display-manager add more complexity without adding much i need (besides ssh-agent, as i have just discovered). Modern operating systems are complex and weird. I doubt anyone can make his way on his own.
Tue Feb 12, 2013 11:40 pm
"otherwise i'd say you mucked it up somewhere along the way"
Umf. That was mean.
LOL! Allow me to refer you to his screen name. BTW, I think it was directed at me, not you.
Powered by phpBB © phpBB Group.
phpBB Mobile / SEO by Artodia.