blog:elegant_solution_for_remotely_accessible_vnc_desktops
This is an old revision of the document!
Table of Contents
Elegant solution for remotely accessible vnc desktops
I wanted to give windows users in my network access to linux graphical desktop. I chose the vnc protocol, because there are many good and open source implementations (notably tightvnc which comes with in a portable version).
Features
- vnc terminal server, which can handle any number of clients
- minimal setup for users
- different resolutions chose by the vnc that the client connects to
Client setup
- From the local network: Almost none, clients connect to vnc ports 5951, 5952 etc. depending on the resolution they want.
- From remote, using ssh:
- Create a port forward from 595x to 595x on the server
- Connect your vnc client to localhost:595x
Server setup:
Add custom services to your /etc/services file, so that your inetd.conf can use them:
# Local services custom-vnc 5951/tcp custom-vncc 5952/tcp custom-vnccc 5953/tcp custom-vncccc 5954/tcp
Add one line per resolution you want to your inetd.conf
#custom-vnc stream tcp nowait nobody /usr/bin/Xvnc Xvnc :8 -inetd -query localhost -once -geometry 1280x1024 -depth 24 -ac custom-vnc stream tcp nowait nobody /usr/bin/Xvnc Xvnc :8 -inetd -query localhost -once -geometry 1024x768 -depth 24 -ac custom-vncc stream tcp nowait nobody /usr/bin/Xvnc Xvnc :8 -inetd -query localhost -once -geometry 1280x1024 -depth 24 -ac custom-vnccc stream tcp nowait nobody /usr/bin/Xvnc Xvnc :8 -inetd -query localhost -once -geometry 1680x1024 -depth 24 -ac
~~LINKBACK~~
blog/elegant_solution_for_remotely_accessible_vnc_desktops.1283098526.txt.gz · Last modified: 2010-08-29 18:15 by brb
Discussion