This is a short guide on how to configure remote desktop using VNC on Debian Linux. First install all necessary packages: SERVER:
Now change to a user you wish to connect as using your client. In my case the user is “lubos”:
Next, start vncserver and set your default resolution. If this is a first time you are starting vnc server you will be asked to supply a new password consisting of 6 - 8 characters.:
1 2 3 4 5 6
From the above we can see that new VNC server has started. Earth is actually my hostname so your output will be different. In any case it is always safer to use IP address instead a hostname ( depends on your DNS settings ). At this point we are ready to remote login to our server. From, remote client enter substituting your hostname with the actual IP address:
1 2 3 4 5 6 7 8 9 10 11
Extra Settings Information
STOP VNC server
Note the server number must match.
Start KDE desktop manager automatically
edit your ~/.vnc/xstartup file to include the following lines:
1 2 3
Save this file and start new VNC server or kill the existing and start new one again.
Change VNC password
As a regular user execute vncpasswd and enter your new password:
1 2 3