(a bunch of this was taken from L4mp's guide, with sirspiddy's input, all of which appears to be adapted from Tichondrius' guide. I've just defragged and recompiled them to form this
The HOW TO: setup vnc4server guide
this is for those of you who agree that 'remote desktop' is too slow, and freenx is too complicated.
############ Begin ############
1) setup XDMCP:
click System -> Administration -> Login Window
click Remote tab
select "Same as Local"
click Configure XDMCP
remove check from Honour indirect requests
2) configure remote greeter:
find this line:Code:sudo gedit /etc/gdm/gdm.conf
replace with:Code:# RemoteGreeter=/usr/lib/gdm/gdmlogin
Note: Before doing the next step, you need to make sure the extra repositories (e.g. universe) are enabled:Code:RemoteGreeter=/usr/lib/gdm/gdmlogin
http://easylinux.info/wiki/Ubuntu#Ho...a_repositories
3) Install required packages:
Note to AMD64 users: The current version of vnc4server in the repositories has a bug, so you need to download and install the fixed vnc4 packages as shown below:Code:sudo apt-get install vnc4server xinetd
4) Set the VNC passwd:Code:wget http://qt1.iq.usp.br/download/vnc4server_4.0-7.3_amd64.deb wget http://qt1.iq.usp.br/download/xvnc4viewer_4.0-7.3_amd64.deb sudo dpkg -i vnc4server_4.0-7.3_amd64.deb sudo dpkg -i xvnc4viewer_4.0-7.3_amd64.deb
5) Define the VNC service criteria:Code:sudo vncpasswd /root/.vncpasswd
and copy this into it:Code:sudo gedit /etc/xinetd.d/Xvnc
save and exitCode:service Xvnc { type = UNLISTED disable = no socket_type = stream protocol = tcp wait = yes user = root server = /usr/bin/Xvnc server_args = -inetd :1 -query localhost -geometry 1024x768 -depth 16 -once -fp /usr/share/X11/fonts/misc -DisconnectClients=0 -NeverShared passwordFile=/root/.vncpasswd port = 5901 }
6) Reinitialize the service with new criteria:
7) Test the connection:Code:sudo /etc/init.d/xinetd stop sudo killall Xvnc sudo /etc/init.d/xinetd start
############ you're done ############Code:vncviewer localhost:1
what this whole thing accomplishes is that you can connect to the desktop using a different session than the local desktop. IE someone can be sitting there working on that computer, and you can also login and work on that computer at the same time without interference. (even under the same user ID)
NOTE:
If you change the port in step 5) to something else, it changes what you use to connect to the server. I personally chose port 5959 - so when I connect to my Ubunutu box using RealVNC on Windows XP I type: 192.168.0.101:5959



Adv Reply




Bookmarks