Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
When I start xterm/rxvt sessions in my windows manager(s) (I'm using fluxbox & Window Maker) the contents of my PATH & PS1 variables are changed from what I have put into both /etc/profile & $HOME/.profile!
I guess it must be happening when I run the startx script..... I've tried calling .profile in .xinitrc but to no avail!
Were am I going wrong? (My distro is Slackware 10.0)
....also how do I change (increase) the font size in the same xterm windows?
That's because non login shells such as those invoked by xterm don't read the profile startup scripts. When invoked as a nonlogin shell, bash reads .bashrc instead. To make login shells behave the same as non-login shells my .bash_profile looks like:
Code:
if [ -x /home/tim/.bashrc ]
then
. /home/tim/.bashrc
fi
and then I put all my custom stuff into .bashrc -- replace "tim" with your user name in the above and this will work for you too.
You can also start xterm with option -ls, to make it read the standard login files. As for the font size, try starting it with -fs # where # is the point size of the font. Experiment and it should work.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.