WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: bootlocal.sh did not run on startup  (Read 6840 times)

Offline tomkva

  • Newbie
  • *
  • Posts: 17
bootlocal.sh did not run on startup
« on: December 30, 2009, 07: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

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: bootlocal.sh did not run on startup
« Reply #1 on: December 30, 2009, 07: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.

Offline tomkva

  • Newbie
  • *
  • Posts: 17
Re: bootlocal.sh did not run on startup
« Reply #2 on: December 30, 2009, 08:01:05 AM »
thanks

.xsesion in what directory?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: bootlocal.sh did not run on startup
« Reply #3 on: December 30, 2009, 11:06:00 AM »
/home/tc/.xsession

Offline tomkva

  • Newbie
  • *
  • Posts: 17
Re: bootlocal.sh did not run on startup
« Reply #4 on: December 30, 2009, 01: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!

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10970
Re: bootlocal.sh did not run on startup
« Reply #5 on: December 30, 2009, 01:47:27 PM »
You can put rdesktop in a loop:

while [ 1 ]; do
rdesktop -f terminal
done
The only barriers that can stop you are the ones you create yourself.

Offline tomkva

  • Newbie
  • *
  • Posts: 17
Re: bootlocal.sh did not run on startup
« Reply #6 on: December 30, 2009, 02: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  :)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10970
Re: bootlocal.sh did not run on startup
« Reply #7 on: December 30, 2009, 02:03:49 PM »
Yeah, the full path works as well.
The only barriers that can stop you are the ones you create yourself.

Offline tomkva

  • Newbie
  • *
  • Posts: 17
Re: bootlocal.sh did not run on startup
« Reply #8 on: December 30, 2009, 02: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 ???

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10970
Re: bootlocal.sh did not run on startup
« Reply #9 on: December 30, 2009, 03: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.
The only barriers that can stop you are the ones you create yourself.

Offline tomkva

  • Newbie
  • *
  • Posts: 17
Re: bootlocal.sh did not run on startup
« Reply #10 on: December 30, 2009, 10:14:45 PM »
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

:(:(:(

Offline maro

  • Hero Member
  • *****
  • Posts: 1228
Re: bootlocal.sh did not run on startup
« Reply #11 on: December 30, 2009, 11:36:39 PM »
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.

Offline tomkva

  • Newbie
  • *
  • Posts: 17
Re: bootlocal.sh did not run on startup
« Reply #12 on: December 31, 2009, 12: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?

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: bootlocal.sh did not run on startup
« Reply #13 on: December 31, 2009, 01:43:08 AM »
ACPI must be enabled in the BIOS and not disabled by boot code.

Offline tomkva

  • Newbie
  • *
  • Posts: 17
Re: bootlocal.sh did not run on startup
« Reply #14 on: January 03, 2010, 11:42:39 AM »
in bios acpi support is enabled
can be, that TC sen wrong command for poweroff?
did i must modify kernel for this solution?