Load my wayForum: X and Fluxbox Topic: Load my way started by: adssse Posted by adssse on May 24 2005,21:01
I want to make it so that when starts up that there are no icons, and fluxter and wmix are gone from the silt. I was wondering if someone could help me with this. What I have tried before is editing .xinitrc by putting in lines such as:killall -9 wmix & killall -9 fluxter & killall -9 xtdesk & but I must be going about this the wrong way. I have searched the boards and found information regarding this but was not able to understand fully, that is why I am making a new post. Posted by clacker on May 24 2005,21:32
.xinitrc starts fresh each time. Look at the /usr/bin/enhace script to see what it does. I made a .xinitrc file like this that did what you want to do:
you can't kill what's already dead Posted by adssse on May 25 2005,00:33
That does exactly what I wanted, thank you very much. How did you learn this? I am very interested but am not sure exactly how to go about learning. I understand some of what you wrote but not all of it. Is there a good place to research or if you dont mind could you explain some of this?
Posted by mikshaw on May 25 2005,01:57
learning comes from exploring, and often making mistakes =o)Much of what can be done in Linux can be understood much better with a little reading about Bash and other scripting languages (but mostly bash). < http://www.tldp.org/LDP/abs/html/index.html > There's a lot there, but the first couple of parts should help a lot. Posted by adssse on May 25 2005,02:16
Thanks for the link. I have been a Windows user all my life and am now trying to learn as much as I can about Linux, I just feel like I am constantly behind, but I find it very exciting learning this and I thank everyone for their help.
Posted by clacker on May 25 2005,11:46
adssse, The .xinitrc is the startup file for X windows. It's a shell script with a list of programs to run when X windows starts, and the last line is the windows manager (fluxbox or in some cases ion or twm). Here's the one that comes with dsl:
The first two lines are comments. A comment line starts with a # character. Use as many comments as you want to. The third line is the beginning of an "if" statement. If the statement is true, then it runs the line below it until the "fi" which ends the if statement. This particular if statement runs grep (a pattern matcher) to look in the file /proc/cmdline for the absense of the word "noicons." /proc/cmdline holds the text you typed at the boot: prompt. The fourth line is an example of a program to run. This program (enhace) happens to be a shell script. It contains a bunch of dock apps to load. Notice the &>/dev/null &. The &>/dev/null part sends any text output from the program being run to /dev/null, effectively throwing it away. The & at the end runs this program in the background. In other words, it goes on with the next command even if the command you put in the background is still running instead of waiting for it to finish. Line 7 starts up dillo, the web browser. You could start anything you know you want running when you start X windows, say beaver or Firefox. Give whatever command line arguments you need and make sure to end the line with a &>/dev/null & Line 8 starts fluxbox, which is the X windows manager we use. X draws on the screen and handles the low level graphics details; fluxbox handles what windows look like, how they move, and how they are controlled. The last line doesn't get the & at the end of it. The .xinitrc I showed you was much simpler, just a list of files and a window manager (fluxbox) at the end. You can make an .xinitrc far more complex that either of these if you want to using bash scripting commands. Posted by adssse on May 25 2005,13:09
Thanks for the explanation clacker, I really appreciate you taking the time to explain this. I think I understand it quite a bit better now.
Posted by pradi on May 28 2005,01:13
It is so useful for me ,NB. Thanks so much.
|