Tiny Core Linux

Tiny Core Base => TCB Q&A Forum => Topic started by: tomkva on December 30, 2009, 10:42:44 AM

Title: bootlocal.sh did not run on startup
Post by: tomkva on December 30, 2009, 10:42:44 AM
HI ALL,

i want to run rdesktop on TC strart up. i placed in /opt/bootlocal.sh
/tmp/tcloop/rdesktop/usr/local/bin/rdesktop -f terminal

tiny core is starting, but NOTHING!!! where is my rdp to terminal server??? :(((

i`m on TC 2.7 version

very need for help....

Thanks
Title: Re: bootlocal.sh did not run on startup
Post by: gerald_clark on December 30, 2009, 10:51:08 AM
Bootlocal.sh runs before tc is logged in and X is started.
Any X programs that you want to run at boot should be added to .xsession.
Title: Re: bootlocal.sh did not run on startup
Post by: tomkva on December 30, 2009, 11:01:05 AM
thanks

.xsesion in what directory?
Title: Re: bootlocal.sh did not run on startup
Post by: gerald_clark on December 30, 2009, 02:06:00 PM
/home/tc/.xsession
Title: Re: bootlocal.sh did not run on startup
Post by: tomkva on December 30, 2009, 04:37:00 PM
thanks

then i`m booting from usb then home/tc/.xsession

my point was pxe booting and auto rdp login screen to terminal server. i rebuild kernel with modified scel/.xsession

all works ok!!! booting is about 30 sec.!!!

last problem is: tc boot, user get win terminal login screen, but if they did not input username/pass som time, win terminal server drop session and user get standart, clean tiny desktop...

but bootlocal.sh problem is SOLVED, thanks a lot, Gerald!
Title: Re: bootlocal.sh did not run on startup
Post by: curaga on December 30, 2009, 04:47:27 PM
You can put rdesktop in a loop:

while [ 1 ]; do
rdesktop -f terminal
done
Title: Re: bootlocal.sh did not run on startup
Post by: tomkva on December 30, 2009, 05:01:15 PM
good idea!

i have in .xsession line full path/rdesktop terminal -f

can i use in .xsesion

while [ 1 ]; do
path/rdesktop -f terminal
done

????

it can be a perfect solution CURAGA!!!!

i can try only tomorrow in the morning  :)
Title: Re: bootlocal.sh did not run on startup
Post by: curaga on December 30, 2009, 05:03:49 PM
Yeah, the full path works as well.
Title: Re: bootlocal.sh did not run on startup
Post by: tomkva on December 30, 2009, 05:10:50 PM
ok, i will try

last problem:
user do log off from term server, is closing rdesktop window and will see clean TC desktop .....

maybe some ideas how to do then is closing resktop window, TC going to shutdown ???
Title: Re: bootlocal.sh did not run on startup
Post by: curaga on December 30, 2009, 06:09:12 PM
Hmm, I don't know how to tell the difference between an user-closed window and a window closed by the app itself.
Title: Re: bootlocal.sh did not run on startup
Post by: tomkva on December 31, 2009, 01:14:45 AM
i was try

while [ 1 ]; do
path/rdesktop -f terminal
done

but it didn`t work :(

Xlib: extension "Generic Event Extension" missing on display ":0.0"
./.xsession: line 19: [1]: not found

:(:(:(
Title: Re: bootlocal.sh did not run on startup
Post by: maro on December 31, 2009, 02:36:39 AM
I guess there are two unrelated things happening:

(1) Xlib: extension "Generic Event Extension" missing on display ":0.0" is a warning message that appears on many occasions. I believe if you search this forum here you will find the repeated advise to ignore it.

(2) ./.xsession: line 19: [1]: not found There needs to be spaces around the square brackets. You will find that [1] fails, whilst [ 1 ] should succeed.
Title: Re: bootlocal.sh did not run on startup
Post by: tomkva on December 31, 2009, 03:07:27 AM
it was spaces around the square brackets!!!!

Thank You Maro!!!


for a perfect thinclient missing solution for shutdown
problem is then i write POWEROFF the system is REBOOTING :(

any ideas?
Title: Re: bootlocal.sh did not run on startup
Post by: gerald_clark on December 31, 2009, 04:43:08 AM
ACPI must be enabled in the BIOS and not disabled by boot code.
Title: Re: bootlocal.sh did not run on startup
Post by: tomkva on January 03, 2010, 02:42:39 PM
in bios acpi support is enabled
can be, that TC sen wrong command for poweroff?
did i must modify kernel for this solution?
Title: Re: bootlocal.sh did not run on startup
Post by: gerald_clark on January 03, 2010, 02:47:12 PM
Make sure you do not pass it an acpi=off bootcode.
Title: Re: bootlocal.sh did not run on startup
Post by: tomkva on January 03, 2010, 02:52:33 PM
i`m booting from pxe
did acpi=on in pxe default can help?
Title: Re: bootlocal.sh did not run on startup
Post by: tomkva on January 05, 2010, 04:06:43 PM
i do not know why, but then i wass try 2.9 RC, was try another thincliink client edition, my TC think client edition will start work ok
so, now i have a pxe boot solution with ~30s booting time, rdesktop is starting automatically. in desktop user have two icons - poweroff and rdesktop
cool!!!
if anybody wants to try Tiny Core Thinclient OS :) - just write for me, or i can put it somewhere?