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)

Error:
You will require a password to access your desktops.

vncpasswd: error while loading shared libraries: libstdc++-libc6.2-2.so.3: cannot open shared object file: No such file or directory

Solution
Download the deb package

wget  http://archive.debian.org/debian/pool/main/g/gcc-2.95/libstdc++2.10-glibc2.2_2.95.4-27_i386.deb


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:
#!/bin/sh

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
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession

New file
#!/bin/sh
#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
export XKL_XMODMAP_DISABLE=1
/etc/X11/Xsession

Another Best Alternative is NoMachine


http://www.nomachine.com/download-package.php?Prod_Id=3773
/usr/NX/bin/nxserver --status|--start|--stop|--restart

Comments

Popular Posts