Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
I am very unclear on how i'm supposed to work the .xinitrc file. From what I understand at this point, I was to create the .xinitrc file in my home directory, (so i'm assuming that would be $/home/), and I have the following lines in the file, some added using pico:
I am trying to get my terminal emulator aterm to start automatically, as well as gkrellm, as you can see. However, neither of these items start when I log into fluxbox. What am I doing wrong? It doesn't seem to matter what I add to this file, and I'm wondering if the computer is even looking at it.
The file should live in the USERS home directory, not the system home directory, so:
/home
is different than:
/home/goonie
And
/home/masterc
The .xinitrc should live inside:
/home/goonie
not
/home
Also, your shebang is incorrect, I believe:
#!/bin/sh
Is what you are lookin for.
Also, maybe you should provide full paths to aterm and gkrellm, one more thing, you are missing the preceding / on /usr:
/usr/local/bin/fluxbox
So I added the # to the first line, and added the / to the last line, and gave the exact path names for each program I want to start, but still nothing happens. I even added a bsetbg command to load my background, but that doesnt start either, although at the terminal that command works fine. I am logging in as guest, thats the user's name, and thus I put the only copy of the .xinitrc file into /home/guest directory.
For some reason, the computer is not looking at this file....whats the problem?
I am running redhat 8, with the fluxbox windows manager. thanks!
I don't know if logging in as a user from a gui looks at xinitrc or not, you can find out from starting gdm (or kdm) from the command line like so:
CTRL ALT F2
root
root password
telinit 3
kdm
login-name
password
And then:
CTRL ALT F2
to see what the screen says it's loading from. That or look at /var/log/XFree86.0.log
I think I'm making some headway here, but I need more help...I was under the assumption that when the GUI login screen comes up, and I select Fluxbox from the list, that loads the .xinitrc file, but maybe not.... I changed the inittab setting to 3, so that I get a text login and once logged in, it does not start xwindows. I tried running the command startx once logged in, and it suddenly launches fluxbox with all the .xinitrc options i want, and then suddenly quits after a split second back to the text command. Whats going on?
After it quits out of xwindows, it drops me to a command prompt, and above that it displays information from the log, things starting and whatnot, but clearly no errors, and the last thing it shows is:
Waiting for X server to shutdown
...or something like that if i can remember. It doesn't seem as tho there are any errors, it just doesn't want to stay in xwindows...
First I would like to note that I created a .xsession file in my home directory, added the contents of the .xinitrc file into it, and that does absolutely nothing...maybe i'm doing it wrong? It would be nice to have all these applications launch once I start Fluxbox from the session manager.
Ah, that worked nicely, I like that middle button click thing, very nice....so thats my .xinitrc...anything wrong with it? Why would it start everything like I want it from init level 3, but then suddenly dump me out of everything after a second?
Remove the "exec" lines from everything except your wm, so change it to:
#!/bin/sh
/usr/X11R6/bin/aterm -tr &
/usr/bin/gkrellm -w &
/usr/local/bin/taglines &
/usr/local/bin/bsetbg -f /usr/local/1372.gif
/usr/X11R6/bin/root-tail -g 100x10x0+0 /var/log/messages,green &
exec /usr/local/bin/fluxbox
And try again. Sleep functions will allow your applications to wait x amount of seconds before moving onto the next one, it might not be a bad idea if they are trying to start too fast.
yay! got it working now! I don't know if it was removing all those exec's, or adding a & that I forgot after the bsetbg line, but everything works perfectly now. Thanks masterC for your extensive help, you're a champ!!!! they should call this forum www.linuxquestionsformasterC.org, ha ha. anyways, thanks a lot, and expect plenty more threads from me, this is just the beginning of my linux experience....
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.