User Tools

Site Tools


vnc

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revisionBoth sides next revision
vnc [2016/07/08 09:13] – [See also] deulvnc [2018/03/12 15:34] – [Starting a session] jansen
Line 27: Line 27:
 ===== Starting a session ===== ===== Starting a session =====
 ---- ----
-A VNC session is started using the command **''vncserver''**. The first time you run this command, it will ask you for a password, as an additional security measure (this password can later be chnaged using the vncpasswd command, or by removing **''~/.vnc/passwd)''** +A VNC session is started using the command **''vncserver -localhost''**. The first time you run this command, it will ask you for a password, as an additional security measure (this password can later be changed using the vncpasswd command, or by removing **''~/.vnc/passwd)''** 
  
 Suppose your desktop is named **''eendracht.strw.leidenuniv.nl''** (so, replace this name with the name of your desktop wherever it is appropriate). The vncserver command will then print out a message like this: Suppose your desktop is named **''eendracht.strw.leidenuniv.nl''** (so, replace this name with the name of your desktop wherever it is appropriate). The vncserver command will then print out a message like this:
Line 36: Line 36:
  
 Remember the desktop name/number (e.g. eendracht:1), you will need it later to connect, since there can be more than one VNC session on the same computer. Remember the desktop name/number (e.g. eendracht:1), you will need it later to connect, since there can be more than one VNC session on the same computer.
 +
 +==== Security ====
 +VNC will ask you to set a password. But for greater security, you may also want to restrict access to the running session, using the ''-localhost'' option on the ''vncserver'' command. With that option in place, only the local host can connect to the session (still requiring a password as well); for remote access to the session, you will have to connect through ssh, as explained below in the viewer-part of this page.
 +Without ''-localhost'', machines on the same network as yours will be able to connect with just the plaintext password.
  
  
vnc.txt · Last modified: 2023/10/13 14:50 by jansen