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: (3) </ 1 [2] 3 >/

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

reply to topic new topic new poll
Topic: Running a prog at startup< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: April 04 2007,23:18 QUOTE

If the program works by clicking the icon, it should also work from an X terminal (or linux terminal if it is not an interactive/graphical program) by running the command listed in the icon file.

One thing to check is if you actually used the correct command. After reading what you posted, I notice a typo in your command ("/usr.local..." should be "/usr/local..."). If you made that mistake here, you may have made the same mistake before. Also be sure to add "&" after most commands in bootlocal.sh and .xinitrc. Failure to do this may result in failure of programs to run when they are expected.
Does your command require root privilege? If so, the command should be preceded by "sudo".
Finally, when using .xinitrc make sure that user commands are adding BEFORE the section that starts the window manager. That would be the part that begins with "case $DESKTOP in". This is not a strict rule if you know shell scripting well, but it's a good thing to stick to for now.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
greenpete Offline





Group: Members
Posts: 4
Joined: July 2005
Posted: April 04 2007,23:20 QUOTE

Ooops, typo here, not when I type it in the terminal, I've typed it a million times!
So I'm still fummoxed!
I have tried putting 'sudo' before the command though I haven't tried the '&' sign at the end of the command.
Is VNC an interactive and graphical program?
If it is, I guess there is another proceedure to get it to boot at startup?

I do feel I have hi-jacked this thread! Please forgive me! :(


--------------
Do not mess with the forces of nature, for thou art small and biodegradeable!
Back to top
Profile PM WEB YIM 
Felson Offline





Group: Members
Posts: 54
Joined: Jan. 2007
Posted: April 04 2007,23:36 QUOTE

na, was the same question for the most part. Moslty the same answer anyway.

As for interactive, only in so far as it needs X running. All this means is you are going to need to put it in you .xinitrc file. As Mikeshaw said, make sure it's before the "case $DESKTOP in" part.

Also, I think that VNC should be
/usr/bin/vncviewer
unless you are trying to start the server app. Not sure about that one, as I don't ahve it installed.
Back to top
Profile PM 
abacus Offline





Group: Members
Posts: 9
Joined: April 2007
Posted: April 05 2007,13:14 QUOTE

Quote (Felson @ April 04 2007,17:58)
/opt/bootlocal.sh
works for 90% of what you will want.

Failing that, you can use
~/.xinitrc
If it is something you need to start after X starts.

Have fiddled about BOINC needs to go into the .xinitrc file using the following...

/home/dsl/BOINC/boincmgr &>/dev/null &

putting it in the bootcal file justs results in a gtk error on startup.

Now running 8 DSL machines with BOINC starting on bootup... I think I'll call them the Felson Array... sounds better than SETI Farm  :)


--------------
TTFN
Jim
Back to top
Profile PM 
Felson Offline





Group: Members
Posts: 54
Joined: Jan. 2007
Posted: April 05 2007,18:51 QUOTE

LOL glad I could help :)
Back to top
Profile PM 
11 replies since April 04 2007,21:12 < Next Oldest | Next Newest >

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

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: Running a prog at startup

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