You are not logged in.
Hello! i would like to thank you in advance for your help. Slitaz Newbie
My goal is to set my old PC as a dumb machine, when boots up i want to login automatically as "tux" and then run rdesktop to my server and asks for user and password for that connection.
I managed to install slitaz 3.0 in the harddisk and configure network.conf and install rdesktop through the internet
1st problem: when i installed rdesktop and use it for the first time it works, but after that i can't use it anymore because a "licencing error" problem.
Searching at google i realized that if i delete licence."host" files from rdesktop it works again. thats why i made a EscritorioRemoto.sh file (Escritorio Remoto = spanish for Remote Desktop) with this inside:
find / -type f -name licence.* -exec rm {} \;
rdesktop -f "IP to server"
i gave it permissions and made it executable. if i execute EscritorioRemoto.sh it works pretty well.
2nd problem: execute EscritorioRemoto.sh automatically after login.
searching in the menus i found "Preferences\Auto started applications", so i configured the user's autostart.sh file and i added this at the end of the file:
. /home/tux/Desktop/EscritorioRemoto.sh &
If i log out and log in again it works ok
3rd problem: Finally, automatically log in tux user
i found in "System Tools\Control Box\Login Manager Tab" that i can set my tux user for Auto Login in the slim.conf file. it didn't work at all when i reboot my pc.
WHEN MY PC BOOTS UP AND AUTOMATICALLY LOGS IN TUX USER, THE RDESKTOP WINDOW NEVER SHOWS UP BUT ONCE SLITAZ BOOTED UP AND AUTOMATICALLY LOGS IN TUX, IF I LOG OUT X SESSION AND LOG IN AGAIN, IT WORKS !! RDESKTOP SHOWS UP!!!
(O_o')
i can't understand what's happening, it seems like slitaz ignores the autostart.sh file from tux user when this user is set to auto login in slim.conf
somebody help me please
i'm near to accomplish my goal
Offline
Open terminal, su to root and try the following:
1. cp -a /home/tux/Desktop/EscritorioRemoto.sh /usr/bin
2. mv /usr/bin/EscritorioRemoto.sh /usr/bin/EscritorioRemoto
3. chmod +x EscritorioRemoto
4. leafpad /usr/bin/EscritorioRemoto
5. Put in the following in the file:
[c]#!/bin/sh
find / -type f -name licence.* -exec rm {} \;
rdesktop -f "IP to server"[/c]
and save.
Now go to "Red Spider button" ---> System Tools ---> Control Box, click the Initialization tab and click the Button next to Add local commands. This should bring up a file named local.sh. Now in this file add:
[c]echo "Fixing rdesktop...."
EscritorioRemoto[/c]
save and you should be done. Now see if it works.
Offline
Update: i added in my EscritorioRemoto.sh a sleep 20 before rdesktop here:
sleep 20 && rdesktop -f "server IP"
reboot and after a while rdesktop shows up
, i think that it never shows up because this executes too early or something like that ...
@Trixar_za THANK YOU for your time.
i'm gonna try your method and see if it work, what do you think about the "sleep 20"? do you have any idea why is this happening ?
sorry if my english it's not so good, i'm doing my best to write here, i only speak spanish and i have learned english by myself reading in internet
Offline
Trizar_za,
i tried that, i did it as you wrote it, get an error beetween step 2 and step 3 i did a "cd /usr/bin" between them and continue with the process.
When reboot slitaz displays:
Fixing rdesktop....
ERROR: Failed to open display
after that automatically log in. 
Offline
Update:
inside EscritorioRemoto.sh i decreased the sleep 20 to sleep 15 and rdesktop never shows up, but if i put sleep 20 back on after a while rdesktop shows up, the problem is that aren't 20 real secs, it takes a long time more to rdesktop to show up
Offline
Hmmm, you may have to split up the commands in EscritorioRemoto.sh between local.sh and Openbox's auto-started applications. The find command should run fine in local.sh while rdesktop seems to require X to be started, so it should be in Openbox's auto-started applications.'
So go to "Red Spider button" ---> System Tools ---> Control Box, click the Initialization tab and click the Button next to Add local commands. This should bring up a file named local.sh. Now in this file add (and overwriting the previous one):
[c]echo "Fixing rdesktop...."
find / -type f -name licence.* -exec rm {} \;[/c]
and save.
Then go to "Red Spider button" ---> Preferences --> Auto started applications, click Configuration and add:
[c]# Starts Rdesktop
sleep 20 && rdesktop -f "server IP" &[/c]
at the bottom and save.
Like you can see we split the parts of the script you wrote and made it start at the right possible time. Now the find will be executed during the start of the system, cleaning any possible files, while rdesktop gets executed right after you log in. Hopefully this will work better.
Offline
in "auto started applications" i added this 2 lines:
find / -type f -name licence.* -exec rm {} \;
rdesktop -f "server IP"
without the "&" at the end, log out and log in to check and works well, just how i want, i log in and instantly rdesktop shows up asking me user and password for the server, but i returned to my 3rd problem... if i reboot rdesktop never shows up. i changed from "rdesktop -f serverip" to "sleep 20 && rdesktop -f serverip" and works, same problem, takes too much time to rdesktop to show up, then decreased "sleep 15" instead of "sleep 20" and again, rdesktop never shows up. =S
Offline
Note:
i managed to do this, just how i want using "Absolute Linux " making some modifications to the xinit file, slitaz uses this file too?, i don't know, it just occurs me when thinking another possibilities. i really want to learn how to use slitaz, i liked it a lot.
Offline
[ Generated in 0.020 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]