RDP shell script Version: 0.4
– Auto connect a linux desktop to a RDP server
– Ubuntu login remote desktop script
– Auto connect to rdp
This script does a auto login to a RDP server. I used it on a Ubuntu client to redirect the user to a RDP server when he/she logged in on her computer.
This concept version of the script is really basic and does not contain any password encryption.
1 2 3 4 5 6 7 8 |
if eval "ping -c 1 google.com" then rdesktop -d domain -u testuser -p mysecretpassword -g 100% -k en-us -PKDNzb -5 10.0.1.5 echo "The computer is shutting down" && pkill -9 -u testuser else echo "No internet connection" && break pkill -9 -u testuser fi |
Replace the following:
– domain
– testuser
– mysecretpassword
-The IP-adres 10.0.1.5
Leave a Reply