Vino Debian per GDM

http://jakeyoon.com/2008/11/19/enable-vino-vnc-server-for-login-manager-gdm-in-ubuntu/

In this example, I would like to introduce a way to enable a built-in Vino VNC server for Ubuntu distribution.

1. After logging in, open up Remote Desktop option (System -> Preferences -> Remote Desktop)

2. Check “Allow other users to view your desktop” and “Allow other users to control your desktop” – this is to let others, others would be me in my case, take control of this machine

3. Uncheck “Ask you for confirmation” – when VNC is connected, VNC server will ask for a confirmation to local user. In my case, this machine will not have a local logged user since it does not have a monitor

4. If possible, assign a password – Having a password should be better than not having one even though VNC still lacks encryption and strong authentication

At this point, VNC server is just enabled with some settings; however, Vino server does not start until a user logs in. This means that Vino server is not running at User Login screen – where a user types username and password. In my case, this was not feasible since the machine will not have a monitor (nor keyboard/mouse).

5. Edit /etc/gdm/Init/Default – this gets run when gdm starts (at Login Screen)

nano /etc/gdm/Init/Default

6. Add the following line right before exit 0 at the end of the file – Vino server runs when gdm starts up

/usr/lib/vino/vino-server &

Vino server starts up when gdm starts up; however, when username and password is typed in, gdm kill this vino-server meaning VNC connection will be terminated. To prevent this,

7. Edit /etc/gdm/gdm.conf with your favorite text editor

nano /etc/gdm/gdm.conf

8. Find a commented option KillInitClients=true. Uncomment it and change it to false and save it. – this prevents vino-server from being killed right after login

KillInitClients=false

Now, you should be able to connect to the machine using VNC

Lascia un commento

Inserisci i tuoi dati qui sotto o clicca su un'icona per effettuare l'accesso:

Logo WordPress.com

Stai commentando usando il tuo account WordPress.com. Chiudi sessione / Modifica )

Foto Twitter

Stai commentando usando il tuo account Twitter. Chiudi sessione / Modifica )

Foto di Facebook

Stai commentando usando il tuo account Facebook. Chiudi sessione / Modifica )

Google+ photo

Stai commentando usando il tuo account Google+. Chiudi sessione / Modifica )

Connessione a %s...