Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: OldAdamUser2 on January 05, 2010, 02:38:15 PM

Title: SOLVED: Start mnttool (and conky) automatically at boot
Post by: OldAdamUser2 on January 05, 2010, 02:38:15 PM
I'd like to have the mount tool on my screen automatically as soon as Tiny Core boots into X. I've tried a number of different ways of doing this with bootlocal.sh and .xsessions, so far with no success.

Basically, I tried adding "mnttool" or "exec mnttool" or "sudo mnttool" in each file. No joy.

Any hints would be welcome.
Title: Re: Start mnttool automatically at boot
Post by: ^thehatsrule^ on January 05, 2010, 02:57:43 PM
.xsession would be the correct file

It may need to be backgrounded, i.e. `mnttool &`
Title: Re: Start mnttool automatically at boot
Post by: OldAdamUser2 on January 05, 2010, 03:26:55 PM
Thanks for the tip. I tried a couple of variants, so far without success.

mnttool $ (as a separate line in .xsession did not work).

Then I decided to try it at the end of the line that invokes flit:

[ "$DESKTOP" == "flwm" ] && flit && mnttool $

That didn't work either. I don't yet know enough about scripting to KNOW what I'm doing! Trial and error is my thing. Mostly error.

Title: Re: Start mnttool automatically at boot
Post by: Lee on January 05, 2010, 03:51:13 PM
Maybe try putting it in .xsession?
Title: Re: Start mnttool automatically at boot
Post by: OldAdamUser2 on January 05, 2010, 04:23:07 PM
Finally got it right. In .xsession I need the line:

exec /usr/bin/mnttool &

To automatically start conky, I need--

exec /usr/local/bin/conky &

Thanks for the help, guys!
Title: Re: SOLVED: Start mnttool (and conky) automatically at boot
Post by: ^thehatsrule^ on January 07, 2010, 10:21:01 PM
FYI, "exec" is probably redundant