Estou tentando configurar o Ubuntu para auto-iniciar a conexão RDP com o meu Windows Server 2008 R2, ou seja, quando o Ubuntu inicia ele já inicia a conexão remota e loga no Terminal Service com o Usuário e senha pré definidos, e quando o usuário faz Logoff o Ubuntu desliga automaticamente.
Para fazer essa tarefa encontrei no Google o seguinte tutorial:
Install Ubuntu Desktop (from 7.04 to 9.10) on your system and configure networking.
Create a file with the folowing content and save it as /usr/local/bin/TS.sh
[QUOTE]#!/bin/bash
rdesktop your.terminal.server.ip -u username -d yourADdomain -f -b -N -n localhostname -k it -a 16
/usr/bin/sudo /sbin/shutdown -h now
Assign it correct ownership and permission:
chown root:nobody /usr/local/bin/TS.sh
chmod 755 /usr/local/bin/TS.sh
Create a link in your /home/username/.config/autostart with the following command:
ln -s /usr/local/bin/TS.sh TSAutostart
Modify your /etc/sudoers as the following :
# User privilege specification
root ALL=(ALL) ALL
ubuntu ALL=NOPASSWD: ALL
Reboot you system and login with user “username”, you will see an RDP connections opened to your.terminal.server.ip and when you disconnect your machine from TS it will shutdown.
Fonte: http://www.riccardoriva.com/archives/443[/QUOTE]
Porém, eu não tenho nenhum conhecimento com Linux, e com isso não estou conseguindo seguir esse passo-a-passo. Alguém poderia me auxiliar nessa tarefa? Desde já agradeço.