Computing.Net > Forums > Linux > Debian startup files

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Debian startup files

Reply to Message Icon

Name: Victor (by vhaverkort)
Date: September 5, 2005 at 11:53:12 Pacific
OS: Debian sid
CPU/Ram: p3, 866
Comment:

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.



Sponsored Link
Ads by Google

Response Number 1
Name: 3Dave
Date: September 6, 2005 at 02:38:05 Pacific
Reply:

Are you using bash as your main shell? Check by looking at /etc/passwd.


0

Response Number 2
Name: Victor (by vhaverkort)
Date: September 7, 2005 at 12:40:29 Pacific
Reply:

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


0

Response Number 3
Name: 3Dave
Date: September 8, 2005 at 01:08:51 Pacific
Reply:

How about putting it into ~/.xinitrc?


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More


Installing Linux on Lapto... read ntfs in Fedora Core ...



Post Locked

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


Go to Linux Forum Home


Sponsored links

Ads by Google


Results for: Debian startup files

order of startup execution www.computing.net/answers/linux/order-of-startup-execution/4625.html

RH7.1 Startup Files www.computing.net/answers/linux/rh71-startup-files/5034.html

Burning RAW files www.computing.net/answers/linux/burning-raw-files/4652.html