Running a Command Line At Fluxbox Startup


Forum: X and Fluxbox
Topic: Running a Command Line At Fluxbox Startup
started by: BuGaLoU

Posted by BuGaLoU on Jan. 12 2005,22:24
I am using DSL as a windows emulator via redesktop.  I was wondering how can I get fluxbox to automatically launch an application when the computer boots?  Seems like a simple task?

Thanks!

Posted by mikshaw on Jan. 12 2005,22:31
It's probably simple, although I don't know anything about rdesktop.
The standard way of starting applications with fluxbox is to add them to ~/.xinitrc:

application &
another_application &
fluxbox

Posted by BuGaLoU on Jan. 12 2005,23:10
Quote (mikshaw @ Jan. 12 2005,17:31)
It's probably simple, although I don't know anything about rdesktop.
The standard way of starting applications with fluxbox is to add them to ~/.xinitrc:

application &
another_application &
fluxbox

Where is that file located exactly?  I appologize I am a total linux noob. :p
Posted by mikshaw on Jan. 13 2005,01:34
That's cool...I assume too much sometimes.
Whenever you see a file path that starts with ~/ or $HOME/ it is always referring to the current user's home directory.  In this case it would be /home/dsl, so ~/.xinitrc is /home/dsl/.xinitrc.

Since the file begins with a dot, it is a 'hidden' file, which means you probably can't see it in emelfm until you press the "H" button (toggle hidden files).

Posted by rossjman1 on Jan. 18 2005,01:32
How would I run "modprobe sb" at startup. I added it to .xinitrc, but it doesn't execute. When I do it manually, I have to be root. So, if I add these lines in .xinitrc, will it work and would I be running fluxbox as root?

sudo su &
modprobe sb &
exit &

Posted by ke4nt1 on Jan. 18 2005,03:13
When you want to make a global change , edit your /opt/bootlocal.sh ..
The commands in /opt/bootlocal are run as root, before X is loaded ..
Only things that you want to have execute in your X environment are placed in your .xinitrc ..

So, put your 'modprobe sb' line in /opt/bootlocal.sh, and make a backup
if your using a LiveCD,Frugal,Poorman's install ..

Check that your /home/dsl/filetool.lst file has the line /opt/bootlocal.sh in it,
so your backup function will copy that file into your backup.tar.gz file.
Usually, it is already in there ..

73
ke4nt

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.