Turn your VPS/Dedicated Server into a Remote Desktop!
Monday, April 21st, 2008警告,這很惡搞 XD
Why would you do that? Because you can! And the fact that it’s a VPS/Dedicated Server, chances are its Internet connection is a lot faster than yours. As root, the following steps are tested working for Ubuntu 7.10 Gutsy.
1) Install Gnome, vnc4server, inetd
apt-get install gnome compiz vnc4server openbsd-inetd
2) Enable XDMCP
Edit /etc/gdm/gdm.conf
Look for:
[xdmcp]
Enable=false
Change it to:
Enable=true
3) Configure inetd:
Edit /etc/inetd.conf, add (one line):
5901 stream tcp nowait root /usr/bin/Xvnc Xvnc -inetd :1 -query localhost -geometry 800x600 -once -fp /usr/share/fonts/X11/misc -DisconnectClients=0 -NeverShared securitytypes=none -extension XFIXES
Now restart inetd with service restart openbsd-inetd
4) Restart GDM
service restart gdm
DONE. Now you can access your VPS as a GNOME desktop with with any vnc client at serveraddress:1, :1 being the display. You can add multiple displays for multiple desktops at the same time ;)
好孩子不要嘗試喔 XD

Recent Comments