This is the process (Step by Step) to install a remote X Windows System under Debian Etch Slice.
apt-get install vnc4server vnc4-common libdrm2 libfs6 libgl1-mesa-glx libice6 libsm6 libxaw7 libxkbfile1 libxmu6 libxmuu1 libxss1 libxt6 libxtrap6 libxtst6 libxv1 libxxf86dga1 libxxf86vm1 xbase-clients apt-get install libfontenc1 libxfont1 xkb-data xserver-xfree86 xserver-xorg xserver-xorg-core xserver-xorg-input-all xserver-xorg-input-evdev xserver-xorg-input-kbd xserver-xorg-input-mouse xserver-xorg-input-synaptics xserver-xorg-input-wacom xserver-xorg-video-all xserver-xorg-video-apm xserver-xorg-video-ark xserver-xorg-video-ati xserver-xorg-video-chips xserver-xorg-video-cirrus xserver-xorg-video-cyrix xserver-xorg-video-dummy xserver-xorg-video-fbdev xserver-xorg-video-glint xserver-xorg-video-i128 xserver-xorg-video-i810 xserver-xorg-video-mga xserver-xorg-video-neomagic xserver-xorg-video-nv xserver-xorg-video-rendition xserver-xorg-video-s3 xserver-xorg-video-s3virge xserver-xorg-video-savage xserver-xorg-video-siliconmotion xserver-xorg-video-sis xserver-xorg-video-sisusb xserver-xorg-video-tdfx xserver-xorg-video-tga xserver-xorg-video-trident xserver-xorg-video-tseng xserver-xorg-video-v4l xserver-xorg-video-vesa xserver-xorg-video-vga xserver-xorg-video-via xserver-xorg-video-voodoo apt-get install xfonts-base xfonts-encodings xfonts-utils apt-get install dbus eject enscript esound-common hal hicolor-icon-theme kappfinder kate kcontrol kdebase kdebase-bin kdebase-data kdebase-kio-plugins kdelibs-data kdelibs4c2a kdepasswd kdeprint kdesktop kfind khelpcenter kicker klipper kmenuedit konqueror konqueror-nsplugins konsole kpager kpersonalizer ksmserver ksplash ksysguard ksysguardd ktip kwin libarts1c2a libartsc0 libasound2 libaspell15 libaudio2 libaudiofile0 libavahi-client3 libavahi-common-data libavahi-common3 libavahi-compat-libdnssd1 libavahi-qt3-1 libcupsys2 libdbus-1-3 libdbus-glib-1-2 libdbus-qt-1-1c2 libesd0 libglu1-mesa libhal-storage1 libhal1 libjack0.100.0-0 libjasper-1.701-1 libkonq4 liblcms1 liblua50 liblualib50 libmad0 libmng1 libogg0 libopenexr2c2a libpaper1 libpci2 libqt3-mt libraw1394-8 libsasl2-modules libsensors3 libsmbclient libsysfs2 libvorbis0a libvorbisenc2 libvorbisfile3 libxcomposite1 libxdamage1 libxslt1.1 libxxf86misc1 menu-xdg pciutils pmount poster psutils usbutils apt-get install kdeadmin kcron kdat kdeadmin-kfile-plugins knetworkconf kpackage ksysv kuser apt-get install libfontconfig1-dev libexpat1-dev libfreetype6-dev pkg-config xfonts-dosemu xfonts-utils xfonts-cyrillic xfonts-100dpi xfonts-75dpi xfonts-base xfonts-scalable xfonts-75dpi-transcoded xfonts-100dpi-transcoded apt-get install x-ttcidfont-conf ttf-xfree86-nonfree xutils xutils-dev apt-get install kde-kdm-themes kdeaddons kdeartwork kdegraphics kdelibs kdenetwork kdepim kdevelop kdeutils kdmtheme kpdf kdf kdm kedit zip p7zip-full akregator ark artsbuilder atlantik atlantikdesigner avahi-daemon cvs dcoprss dirmngr dosfstools gnupg-agent gpgsm gs gs-common gs-gpl gsfonts imlib-base imlib11 kaddressbook kaddressbook-plugins kalarm kamera kandy karm kate-plugins kcalc kcharselect kcoloredit kde-kdm-themes kdeaddons kdeaddons-kfile-plugins kdeartwork kdeartwork-emoticons kdeartwork-misc kdeartwork-stylekdeartwork-theme-icon kdeartwork-theme-window kdegraphics kdegraphics-kfile-plugins kdelibs kdelirc kdenetwork kdenetwork-kfile-plugins kdepim kdepim-kfile-plugins kdepim-kio-plugins kdepim-kresources kdepim-wizards kdessh kdeutils kdevelop kdevelop-data kdewallpapers kdf kdict kdmtheme kdnssd kdvi kedit kfax kfaxview kfloppy kgamma kget kghostview kgpg khexedit kicker-applets kiconedit kitchensync kjots klaptopdaemon kleopatra kmail kmailcvt kmilo kmrml knewsticker knewsticker-scripts knode knotes kolourpaint konq-plugins konsolekalendar kontact kooka kopete korganizer korn kpdf kpf kpilot kpovmodeler kppp krdc kregexpeditor krfb kruler kscreensaver kscreensaver-xsavers ksig ksim ksirc ksnapshot ksvg ksync ktimer ktnef kuickshow kview kviewshell kwalletmanager kwifimanager libavahi-core4 libbluetooth2 libcrypt-ssleay-perl libcvsservice0 libdaemon0 libdirectfb-0.9-25 libexif12 libfinance-quote-perl libfribidi0 libgadu3 libgnokii3 libgpgme11 libgphoto2-2 libgphoto2-port0 libgsmme1c2a libhtml-tableextract-perl libieee1284-3 libindex0 libiw28 libjpeg-progs libkcal2b libkdegames1 libkdepim1a libkgantt0 libkleopatra1 libkmime2 libkpimexchange1 libkpimidentities1 libkscan1 libksieve0 libktnef1 liblockdev1 libmeanwhile1 libmimelib1c2a libnews-nntpclient-perl libnss-mdns libpcap0.8 libpisock9 libpoppler0c2 libpoppler0c2-qt libpth20 librss1 libsane libsdl1.2debian libsdl1.2debian-alsa libslp1 libsnmp-base libsnmp9 libsvga1 libtidy-0.99-0 libtiff-tools libungif4g networkstatus noatun noatun-plugins p7zip-full pinentry-qt ppp superkaramba svgalibg1 tidy wireless-tools xscreensaver zip apt-get install kwin-style-crystal crystalcursors kde-icons-crystal kde-icons-crystalclear
- Typical problem:
warning: /usr/lib/X11/fonts/misc does not exist or is not a directory
- Solution:
Search using "locate" for the real path of the font/s u are having the problem and link it to the path that the installation is asking for.
- Edit/Create /root/.vnc/xstartup:
#!/bin/sh # Uncomment the following two lines for normal desktop: # unset SESSION_MANAGER # exec /etc/X11/xinit/xinitrc [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources xsetroot -solid grey vncconfig -iconic -nowin & #x-terminal-emulator -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" & #x-window-manager & startkde &
- Create 2 bash files to run/kill the VNC server so u can use them to fast start and finish and use it only when needed (Save RAM is important for us)
rxs -> vnc4server -geometry 1024x768 -depth 24 -name "NAME FOR THE REMOTE DESKTOP WINDOW" rxskill -> vnc4server -kill :1
- The idea is to connect to the remote desktop using SSH Tunneling (Since VNC DATA is not secure which is sooo bad...)
Be sure to block port 5901 (the "1" is the Xorg instanced so could be different for u) in IPTABLES to let connect to VNC only through SSH Tunneling (Remember the best choice is to set DROP in all default politics and then allow only what we need)
- Using ssh (OpenSSH) client (Windows/Linux) run:
ssh -g -L 5902:localhost:5901 your_domain_host -l root (this can also be added to a bash/bat file)
- Now we just need to run our bash file “rxs” and then open our VNC Client using the host “localhost:2” and the password when requiered.
The first time we run VNC server it will ask for a new password (Max --> 8 characters)
Thats all. The Way is SliceHost