X11vnc

From ArchWiki
Revision as of 20:08, 23 May 2008 by Zaggynl (Talk | contribs) (New page: Very short howto on getting x11vnc to work over ssh with PuTTy Requirements: sshd installed and configured First, install x11vnc: pacman -S x11vnc start the X environment: startx (from ...)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Very short howto on getting x11vnc to work over ssh with PuTTy

Requirements: sshd installed and configured

First, install x11vnc: pacman -S x11vnc

start the X environment: startx (from non-root shell) or sudo /etc/rc.d/gdm start (or just as root)


run as user:(using startx)
x11vnc -display :0 -ncache 10 -localhost -loop

run as root: (if you have gdm running, sudo doesn't seem to work with this?)
x11vnc -display :0 -auth /var/lib/gdm/:0.Xauth -ncache 10 -localhost -loop


x11vnc will now run verbose mode, that is, spamming all over the terminal.
To put the spam in a logfile and keep it quiet, you can run it like this:
x11vnc -display :0 -auth /var/lib/gdm/:0.Xauth -ncache 10 -localhost -loop >> /var/log/x11vnc.log 2>&1 &

to keep track of things if you want (as root): tail -f /var/log/x11vnc.log

picture and tunneling howto borrowed from: [1]

Enter the connection details - DONT HIT OPEN YET
ip address and port, for example: 192.168.2.123 1234
File:Http://img297.imageshack.us/img297/369/putty1qz0.jpg

Goto SSH->Tunnels
at Source port: 5900
at Destination: localhost:5900
leave the radiobuttons below it as they are.
File:Http://img382.imageshack.us/img382/2130/putty2dd1.jpg

Connect to ssh, login

now open a vncviewer I've used realvnc(free) for win32: [2] (hit download and click the green download button after "VNC Personal Edition Viewer for Windows (x86, x64 & ia64)")
Connect to localhost:5900

Note: every user that can connect to your pc with ssh can now use X!