The Slackware OS plus Wiki were successfully upgraded on Mon Apr 28 19:48:12 UTC 2014

Welcome to the Slackware Documentation Project

VNC

NOTE: for the following examples, 192.168.1.34 will be the REMOTE machine (VNC server).

Setup VNC Server (on Slackware)

USING TightVNC: On your remote machine, install TightVNC via slackpkg

   slackpkg install tightvnc

Start the VNC server:

   vncserver

You should get a message stating that the VNC server has started on DISPLAY 1.

NOTE: VNC listens to port 5900 or 5901 by default so make sure you can accept connections from that port.

NOTE: If you are using TightVNC, the server can also listen on port 5800 for web-browser VNC connections.

Setup VNC Viewer (on Slackware)

USING TightVNC: On your local machine, install TightVNC via slackpkg

   slackpkg install tightvnc

Start the VNC viewer:

   vncviewer

Connect to your VNC server:

   In the "VNC server:" box put the IP address/URL of your VNC server and the display number:
   
   192.168.1.34:1

Tunnel VNC Through SSH (from Slackware)

Open an SSH connection:

   ssh -L 5901:127.0.0.1:5901 -N -f -l bob 192.168.1.34
Where,
    -L 5901:localhost:5901 = Connections to local port 5901 is forwarded to remote port 5901 on the remote machine.
    -N : Just forward ports, do not execute a remote command.
    -f : Make ssh to go to background before command execution.
    -l bob : 'bob' is the username.
    192.168.1.34 : is the remote machine.
    

Connect with VNC:

   vncviewer
   Enter "127.0.0.1:1" (or "localhost:1") into the 'VNC server:' box

Tunnel VNC Through SSH (from Windows with Putty [V0.62])

Install Putty on the LOCAL machine.

Open putty and set the following values:

   Session >
   HostName: 192.168.1.34
   Connection Type: SSH
   
   Connection > SSH > Tunnels >
   Source port: 5901
   Destination: 192.168.1.34:5901

Start the connection by hitting the OPEN button.

Connect with VNC:

   vncviewer
   Enter "127.0.0.1:1" (or "localhost:1") into the 'VNC server:' box

Sources

* Originally written by arfon


In Other Languages
Translations of this page?:
QR Code
QR Code howtos:window_managers:vnc (generated for current page)