Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (2) </ [1] 2 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Boot into an empty X and start one single Program, How would you do that?< Next Oldest | Next Newest >
eeffoC Offline





Group: Members
Posts: 29
Joined: Jan. 2007
Posted: Jan. 04 2007,17:13 QUOTE

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
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 04 2007,21:26 QUOTE

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"
Back to top
Profile PM 
eeffoC Offline





Group: Members
Posts: 29
Joined: Jan. 2007
Posted: Jan. 05 2007,21:19 QUOTE

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
Back to top
Profile PM 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: Jan. 05 2007,22:02 QUOTE

The program requires root priviliges?  You can prepend sudo to the command you need to use.
Back to top
Profile PM 
eeffoC Offline





Group: Members
Posts: 29
Joined: Jan. 2007
Posted: Jan. 07 2007,13:06 QUOTE

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!!!
Back to top
Profile PM 
6 replies since Jan. 04 2007,17:13 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Boot into an empty X and start one single Program

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code