Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Hello,
I'm on debian sid, and I use xfce4, logging in with GDM (so i don't use startx).
when i put environment settings into /etc/bash.bashrc or ~/.bashrc, they only have effect when I run bash on a virtual terminal like aterm (is this correct?). I'd like to set them after I log in, for example so I can use X programs that require a change in the path.
I tried to set this in /etc/profile, ~/.bash_profile, /etc/Xsession and ~/.xsession. But no succes. I even tested these files with the following:
this is in every file I mentioned (only the filenames changed):
"PROG=/etc/X11/Xsession
. /home/victor/log"and /home/victor/log =
"LOGFILE=/home/victor/boot
echo Script: $PROG run >> $LOGFILE
echo PATH: $PATH >> $LOGFILE
echo >> $LOGFILE"when I check /home/victor/boot, it says nothing unless I run it after running aterm.
It seems like only /etc/bash.bashrc and ~/.bashrc are run.So where do I have to put my things which have to be set after I login.
And is there something wrong with my log-system, or are those files not even run on a debian system?
If so, how does this work with debian?Thanks, Victor.

I am using bash.
I've read somewhere that a solution is to make an custom /etc/init.d/rc.local, so that's what I did.
So the problem is solved.
However, I do not understand why the profile files don't get logged, I think they aren't even run.
Victor

![]() |
Installing Linux on Lapto...
|
read ntfs in Fedora Core ...
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |