[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.
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionNext revisionBoth sides next revision | ||
howtos:window_managers:vnc [2012/10/22 18:08 (UTC)] – created - quick save, had a T3 just drop arfon | howtos:window_managers:vnc [2014/10/17 09:42 (UTC)] – TightVNC is now passé, changed to TIGERVNC arfon | ||
---|---|---|---|
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 | + | On your remote machine, install |
- | | + | |
Start the VNC server: | Start the VNC server: | ||
Line 10: | Line 15: | ||
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 | + | On your local machine, install |
- | | + | |
Start the VNC viewer: | Start the VNC viewer: | ||
Line 28: | Line 35: | ||
- | ====== Tunnel VNC Through SSH (on Slackware) ====== | + | ====== Tunnel VNC Through SSH (from Slackware) ====== |
Open an SSH connection: | Open an SSH connection: | ||
ssh -L 5901: | ssh -L 5901: | ||
Line 36: | Line 43: | ||
-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 : ' | + | -l bob : ' |
+ | 192.168.1.34 : is the remote machine. | ||
+ | | ||
Connect with VNC: | Connect with VNC: | ||
| | ||
- | Enter "192.168.1.34:1" into the 'VNC server:' | + | Enter "127.0.0.1:1" (or " |
- | ====== Tunnel VNC Through SSH (on Windows) ====== | + | ====== Tunnel VNC Through SSH (from Windows |
- | 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: |
- | | + | |
- | | + | |
+ | | ||
| | ||
- | | + | |
+ | Connection > SSH > Tunnels > | ||
| | ||
- | | + | |
- | | + | |
- | Auto: checked | + | |
Start the connection by hitting the OPEN button. | Start the connection by hitting the OPEN button. | ||
Line 60: | Line 69: | ||
Connect with VNC: | Connect with VNC: | ||
| | ||
- | Enter "VNCSERVER_IP/ | + | Enter "127.0.0.1: |
====== Sources ====== | ====== Sources ====== |