Install vncserver / No machine for remote access on Debian Linux

Update and Upgrade your server with current packages

Being logged into your server as root, do the following:

server$ apt-get update
server$ apt-get upgrade
server$ apt-get dist-upgrade
to upgade your whole installation.

IV. Installing GNOME

After having done a dist-upgrade we are used to reboot the servers. This might not be necessary in all cases and might be a strange obsession from ancient MS Windows times, but we would recommend it to allow all scripts to become initialized anew.

After reboot login as root again and do the following:

server$ apt-get install gnome-desktop-environment
V. Install fonts for GNOME and VNC

Install some (required) fonts for the VNC server GNOME session:

server$ apt-get install xfonts-100dpi
server$ apt-get install xfonts-100dpi-transcoded
server$ apt-get install xfonts-75dpi
server$ apt-get install xfonts-75dpi-transcoded
server$ apt-get install xfonts-base
VI. Install VNC server

We prefer TightVNCServer, simply because it worked from the very beginning…

server$ apt-get install tightvncserver
(installs TightVNCServer)
server$ tightvncserver :1
(initialize the VNC server for the first time, it will copy some files to ~/.vnc folder and it will ask twice for a VNC password – we recommend to provide it for your own safety)
server$ tightvncserver -kill :1
(stop VNC server – for further configuration purposes)

You will require a password to access your desktops.

vncpasswd: error while loading shared libraries: cannot open shared object file: No such file or directory

Download the deb package


install the package

dpkg -i libstdc++2.10-glibc2.2_2.95.4-27_i386.deb

now run and set vncpasswd:

to stop server
tightvncserver -kill :1

. Configure VNC server

vi ~/.vnc/xstartup
Original xstartup file:

xrdb $HOME/.Xresources
xsetroot -solid grey
#x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
# Fix to make GNOME work

New file
#xrdb $HOME/.Xresources
xsetroot -solid grey
x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#x-window-manager &
gnome-session &
# Fix to make GNOME work

Another Best Alternative is NoMachine
/usr/NX/bin/nxserver --status|--start|--stop|--restart


Most Viewed Post

solution for facebook waiting

Connect Sony XPLOD MEX-BT2500 Bluetooth CD Receiver with ur mobile

Crystal Report : Show data horizontally (Left to right) i.e. columns as rows

Google+ Followers