Other Help Topics :: Boot into an empty X and start one single Program



Hello!

I tried to compile a Qt Program on my DSL HDD Installation including the GCC-inkl.Libs MyDSL extension. Luckily it worked and it even uses the Fluxbox Styles/Themes!!
Amazing how powerful and complete this small DSL is!

Now id like this Program to run upon start of another machine (frugal install) in an empty Fluxbox/X.

What would be the best way to achieve this?

I guess something like:

Boot into text mode
Load Gcc+Liby extension
Start empty X
Start Program

Are those steps correct? Wich files would I have to modify? Any other soggestions?

Thanks in advance, Jan

What do you mean by "empty" fluxbox or X?
Either way, for a permanent and automatic solution, you can edit ~/.xinitrc and modify it to your liking.

If you are using DSL v3.x+ you may wish to create a custom item in the case statement and edit ~/.desktop to that custom item.


If you prefer to manually execute all those steps only from cmdline, you can use "startx -- /my/script/or/program"

Thanks for your suggestions!!

Maybe you can help me still a bit further:

What exactly would I have to type into .xinitrc to start my program wich is in $HOME/dir/dat and needs root privileges (it uses the ioperm function to write to some ports)?

I tried a lot of things but I dont seem to be able to figure it out  :(

Thanks in advance,
Jan

The program requires root priviliges?  You can prepend sudo to the command you need to use.
Thanks again for your reply!

The problem is that I am quite a beginner to Linux and that I just seem to stupid to figure out what to type into .xinitrc

I tried a lot of different things like

"/ramdisk/home/dsl/program/start &"
"exec /ramdisk/dsl/program/start &"
"exec $HOME/program/start &"
"exec $HOME/program/start &> dev/null &"
......

but nothing seemed to work. Nothing happens after restarting the window manager.

I hope someone will take pity on me and give me a working example!

Thanks very much!!!

Next Page...
original here.