Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum. |
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.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
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.
|
 |
11-07-2003, 11:56 AM
|
#1
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Rep:
|
aterm .Xdefaults & .bashrc
howdy,
i recently installed aterm. my window manager is fluxbox and i use bash. i set up all my preferences for aterm in ~/.Xdefaults
to load these preferences i executed:
Code:
xrdb -load ~/.Xdefaults
to get these settings to load everytime automatically when fluxbox starts i added the following line to ~/.fluxbox/init
Code:
rootCommand: xrdb -load ~/.Xdefaults
however, this did *not* load my saved settings properly.
then i tried by sticking
Code:
xrdb -load ~/.Xdefaults
in my ~/.bashrc file. this time when i open aterm for the first time my settings aren't loaded, but if i exit aterm and open it up again then the settings load up correctly!
anyone know why they're not loading up correctly first time when i open aterm?
oh, and i boot up to runlevel5 so X is started by gdm
thanks
|
|
|
11-07-2003, 12:39 PM
|
#2
|
Member
Registered: Jun 2002
Distribution: Suse, Redhat, Knoppix
Posts: 104
Rep:
|
I think .Xdefaults is ignored unless you manually start X from a console window
.bash_profile (or .bash_login on an old system) is what's executed at login time. then .bashrc is executed when you subsequently open a shell ... at least that's the way it works on my machine.
|
|
|
11-08-2003, 10:03 AM
|
#3
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Original Poster
Rep:
|
thanks for your reply. i included the line
Code:
xrdb -load ~/.Xdefaults
in ~/.bash_profile but it had no effect.
what's the general theory that i should be looking at? should i be getting an X init script to run the above command? or should a fluxbox init script or even a bash init script be running the command?
or am i looking off the path altogether? maybe i should be loading my aterm settings a different way altogether. it's just so strange to me that the settings are *always* loaded the *second* time i open a terminal but never the first.
any further suggestions are great welcomed!
|
|
|
11-10-2003, 03:29 AM
|
#4
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Original Poster
Rep:
|
anyone? 
|
|
|
11-10-2003, 04:43 AM
|
#5
|
Senior Member
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113
Rep: 
|
I just put my aterm settings in ~/.Xdefaults and don't do a thing else but launch flux. Works great. But I don't use any graphical login stuff. Just 'startx'. Kind of a non-answer there and it might not even work for you, but just saying. 
|
|
|
11-10-2003, 10:44 AM
|
#6
|
LQ Newbie
Registered: Aug 2003
Location: hamilton, on, canada
Posts: 6
Rep:
|
If I remember correctly, stuff in $HOME/.xsession is run as part of a graphical login, so putting it there should mean that it runs.
|
|
|
11-13-2003, 11:18 AM
|
#7
|
LQ Newbie
Registered: Jul 2003
Posts: 15
Original Poster
Rep:
|
hey!
thanks for the replies guys. the ~/.xsession idea made no difference, unfortunately. no matter what i seem to try, the terminal settings are always applied the second time i open a terminal but not the first! i know it's got to be something retarded!
|
|
|
10-25-2004, 07:10 PM
|
#8
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
|
Wow,
The subject line for this post was EXACTLY what I put in my search...
I've got the same problem, but I run WindowMaker. I login through gdm, I've got my aterm settings stored in .Xdefaults, and if I run
xrdb .Xdefaults
from a normal terminal my aterm starts up correctly, but no colorized output. So, then I type
source .bashrc
and reopen aterm, now, it's set-up correctly AND I have colorized output.
what do I put in .bashrc (.bash_profile OR SomeOtherFile) so that it runs "xrdb .Xdefaults" and THEN .bashrc ???
Last edited by peeples; 10-25-2004 at 09:14 PM.
|
|
|
10-30-2004, 09:19 AM
|
#9
|
Member
Registered: Sep 2002
Location: Wichita Falls, TX
Distribution: tried a lot of 'em, now using kubuntu
Posts: 180
Rep:
|
Well, I finally figured out how to do it!
FIRST, you must add the following line to /etc/gdm/PreSession/Default:
(put it somewhere before the sessreg command...and put your login name not "<username>")
Code:
xrdb /home/<username>/.Xdefaults
SECOND, you must edit your .bash_profile so that it sources .bashrc :
Code:
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
That should do it!
(I can't beleive it took me that long to figure out how to do something this simple, but, Oh well...)
|
|
|
All times are GMT -5. The time now is 11:44 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|