Tiny Core Linux
Tiny Core Extensions => TCE Talk => Topic started by: yjd on January 15, 2010, 02:51:40 PM
-
HI,
I'm not an expert on Linux but did manage to install TC on my hard drive just yesterday using the latest final release 2.7.
What I'm looking to do is to transform my old computers at work into thin clients.
For this, I would like to autorun the following command when TC is stared: rdesktop -f xxx.xxx.xxx.xxx.
Also, I would like that when the user logs off the remote desktop session, to automatically restart that same command. Of course, I'll have to find a fail save to stop it from running.
If I can get some help doing that, it would be really nice.
I will have other questions after that part is done.
Thank you for your help and the great work on TinyCore and its tutorial for installation.
Yael
-
Write an executable script ( /home/tc/myrdesktop ) that does:
#!/bin/sh
# myrdesktop
while true
do
rdesktop -f xxx.xxx.xxx.xxx
done
Then in .xsession, after the lines that start X and wait for it to come up, add:
./myrdesktop &
-
Thank you.
I did the first part, but where do you go to do the .xsession?
Yael
-
/home/tc/.xsession
Or did you mean where in the file?
-
Thanks, I manage do to all of this but it doesn't work.
When the computer starts, nothing shows up.
-
How do you write an executable script?
I just did vi, that's probably where the problem is.
-
Chmod +x /home/tc/myrdesktop
Please get a book on Linux.
-
Thank you, but it isn't working.
Any idea?
Gerald_Clark, I did look for books, mainly on amazon, but it's hard to find out which is would be good to start with. I know I need one about the commands but also about some script like what I'm trying to do.
If you know of any good ones, feel free to let me know!
Thank you again for the help.
-
If you open up a terminal, can you run rdesktop?
-
Yes it works good.
If the autorun script doesn't work, could I create a shorcut to the desktop for users to launch it?
-
Same problem.
I tryed what you said. Checked flags for /home/tc/myrdp and trying to run it manually - everithing works!
Putting command to .xsession - doesent!
I tryed to put /home/tc/myrdp command after "waitforX" and in the end of the file and ... completely no reaction.
It would be nice if you can help me...
-
X application startup scripts go in ~/.X.d
Ex:
# .X.d/synergyc.sh
# Autostart the synergy client at login
# Connect to thesynergy server on the machine named 'sharp'
synergyc sharp &
-
I've tryed to create file /home/tc/.X.d/rd.sh and got the same result: it works when I run ./rd.sh and doesent when I reload the system...
Maybe this file runs before those modules from onboot.lst appear loaded??
-
No.
`/.X.d scripts don't run until after login.
-
It worked when I put the file at X.d/ and wrote the command in the .xsession file after "waitforX@. I didn't guess that I have to do both... THANK you very very much!!!