[2024-feb-29] Sad news: Eric Layton aka Nocturnal Slacker aka vtel57 passed away on Feb 26th, shortly after hospitalization. He was one of our Wiki's most prominent admins. He will be missed.

Welcome to the Slackware Documentation Project

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revisionBoth sides next revision
howtos:window_managers:vnc [2012/10/22 18:08 (UTC)] – created - quick save, had a T3 just drop arfonhowtos:window_managers:vnc [2021/10/12 14:47 (UTC)] – [Setup VNC Viewer (on Slackware)] add fltk dependency to client tim
Line 1: Line 1:
 <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). --> <!-- Add your text below. We strongly advise to start with a Headline (see button bar above). -->
 +====== VNC ======
 +
 +**NOTE: for the following examples, 192.168.1.34 will be the REMOTE machine (VNC server).**
 +
 +
 ====== Setup VNC Server (on Slackware)====== ====== Setup VNC Server (on Slackware)======
-USING TightVNC+USING TigerVNC
-On your remote machine, install TightVNC via slackpkg +On your remote machine, install fltk, then install TigerVNC via slackpkg 
-     slackpkg install tightvnc+     slackpkg install fltk 
 +     slackpkg install tigervnc
  
 Start the VNC server: Start the VNC server:
Line 10: Line 16:
 You should get a message stating that the VNC server has started on DISPLAY 1. 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:** VNC listens to port 5900 or 5901 by default so make sure you can accept connections from that port
 + 
 +**NOTE:** If you are using TigerVNC, the server can also listen on port 5800 for web-browser VNC connections.
  
  
 ====== Setup VNC Viewer (on Slackware)====== ====== Setup VNC Viewer (on Slackware)======
  
-USING TightVNC+USING TigerVNC
-On your local machine, install TightVNC via slackpkg +On your local machine, install fltk and TigerVNC via slackpkg 
-     slackpkg install tightvnc+     slackpkg install fltk 
 +     slackpkg install tigervnc
  
 Start the VNC viewer: Start the VNC viewer:
Line 28: Line 37:
  
  
-====== Tunnel VNC Through SSH (on Slackware) ======+====== Tunnel VNC Through SSH (from Slackware) ======
 Open an SSH connection: Open an SSH connection:
-     ssh -L 5901:127.0.0.1:5901 -N -f -l bob 192.168.1.34+     ssh -L 5901:localhost:5901 -N -f -l bob 192.168.1.34
  
 <code>Where, <code>Where,
Line 36: Line 45:
     -N : Just forward ports, do not execute a remote command.     -N : Just forward ports, do not execute a remote command.
     -f : Make ssh to go to background before command execution.     -f : Make ssh to go to background before command execution.
-    -l bob : 'bob' is the username.</code>+    -l bob : 'bob' is the username. 
 +    192.168.1.34 : is the remote machine (target VNC Server). 
 +    </code>
  
 Connect with VNC: Connect with VNC:
      vncviewer      vncviewer
-     Enter "192.168.1.34:1" into the 'VNC server:' box+     Enter "localhost:1" (or "127.0.0.1:1"into the 'VNC server:' box
  
  
-====== Tunnel VNC Through SSH (on Windows) ====== +====== Tunnel VNC Through SSH (from Windows with Putty [V0.62]) ====== 
-Install Putty on the LOCAL machine.+Install Putty on the LOCAL machine. 
  
-Open putty and set the following values +Open putty and set the following values
-     Session> + 
-     HostName: VNCSERVER_IP/URL+     Session > 
 +     HostName: 192.168.1.34
      Connection Type: SSH      Connection Type: SSH
-     Connection>SSH>Tunnels>+      
 +     Connection > SSH > Tunnels >
      Source port: 5901      Source port: 5901
-     Destination: VNCSERVER_IP/URL:5901 +     Destination: 192.168.1.34:5901
-     Local: checked +
-     Auto: checked+
  
 Start the connection by hitting the OPEN button. Start the connection by hitting the OPEN button.
Line 60: Line 71:
 Connect with VNC: Connect with VNC:
      vncviewer      vncviewer
-     Enter "VNCSERVER_IP/URL:1" into the 'VNC server:' box+     Enter "localhost:1" (or "127.0.0.1:1"into the 'VNC server:' box 
 + 
 + 
 +====== Reverse VNC Connection ====== 
 +(Connecting to a listening VNC viewer (Useful for family IT support)) \\  
 + 
 +Start The VNC Viewer (on Slackware) In Listen Mode- \\  
 +     vncviewer -listen 5500 
 +      
 +     WHERE: 5500 is the port to listen on (5500 is default). 
 +      
 +** IF YOUR INCOMING CONNECTION IS COMING THROUGH A FIREWALL (most home routers)** do not forget to forward the port in the router (5500 is the default port for reverse VNC connections). 
 + 
 + 
 +Start the VNC SERVER on Windows and attach a listening viewer- \\  
 +     Start the VNC Server 
 +     RIGHT CLICK on the VNC server icon in your task bar and select "ATTACH LISTENING VIEWER" 
 +     Put in the IP address of the viewer machine: 192.168.1.34 
 +     **NOTE** - If the incoming connection is coming into your home network from the internet 
 +                (through a forwarded port), make sure to connect to the ROUTER'S address (the 
 +                internet address) and NOT your local address. This can be found by going to a 
 +                "whatsmyip" website with a broswer. 
 + 
  
 ====== Sources ====== ====== Sources ======
 howtos:window_managers:vnc ()