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.
I am (very) new to fluxbox; I just started with it yesterday. Here is my goal, for now: I want flux to have my own background, and run gkrellm when it starts up.
to the .fluxbox/init to set my bg, and it works! well, at least for a little while...
I figure, to run any command at start up, you can use:
session0.rootCommand: command
When I try to run gkrellm that way, I only get gkrellm, and not the background. It seems like flux only wants me to have one "rootCommand" line.
I try adding gkrellm to the .initrc. I know I added it right, because when I click the script in Rox, gkrellm pops up, however, when I start flux, nothing.... gkrellm doesn't open.
for your backgrounds you do that with fluxbox as dawziman has said
for the rest of your apps:
in your .xinitrc file in your home directory
you must add all your programs you want before the line that starts fluxbox
to start gkrellm:
justt add this line right before the exec /usr/local/bin/fluxbox
/usr/local/bin/gkrellm &
make sure you have the ampersand because that makes it run in the background, if you dont have it, it will stop reading the file right there and wont start fluxbox!
Thanks, I will try that when I get home. About the backgrounds, I don't have a problem with it staying if I have the line:
session.screen0.rootCommand: wmsetbg ~/backgrounds/zimdib_dark.png
But, when I was tinkering around trying to get gkrellm to run at start up, I added the line:
session.screen0.rootCommand: gkrellm
below it. Thats when my bg disappeared. If I reversed the order, and put the wmsetbg below the gkrellm line, I would only get the bg, not the gkrellm. That has to do with flux only wanting one command that says:
session.screen0.rootCommand: command
but since I was using two, it would only run the second one.
As for the .xinitrc problem, perhaps I was using improper syntax, that is why I didn't get gkrellm to pop up. Hopefully Longinus' syntax will work, but we shall have to wait and see.
What is in your .xinitrc then? All you should need is:
gkrellm -w &
exec /usr/local/bin/fluxbox
You can probably just do cat > .xinitrc and type that in. This load gkrellm into the slit (hence the -w) and then starts fluxbox.
Also, fluxbox 0.9.8 (the development version, but it is actually very stable) is a lot nicer than 0.1.14.
Also you are better off IMO just putting the command to change the background in whatever style you are using. This line in your ~/.fluxbox/init:
session.screen0.rootCommand: wmsetbg ~/backgrounds/zimdib_dark.png
is only to set the visual background in fluxbox, it has nothing to do with launching processes that run in the background, so you shouldn't be trying to use it to launch gkrellm.
Just remove the 0.1.14 package with removepkg, get the 0.98 source from fluxbox.sourceforge.net and compile from source ( it's just a simple ./configure && make && make install, nothing tricky). There is also a package for it at linuxpackages.net if you prefer to go that route. All the documentation on that site is well worth reading, and another good site for fluxbox tips and themes is fluxmod.dk.
In ver. 0.9.8 go in ~/.fluxbox/ and you should find a file called apps. If it's not there just create it, put in the following line and that should do the trick.
Originally posted by Dabria In ver. 0.9.8 go in ~/.fluxbox/ and you should find a file called apps. If it's not there just create it, put in the following line and that should do the trick.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.