public:vnc-usage

Differences

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

Link to this comparison view

Next revision
Previous revision
public:vnc-usage [2017-01-22 07:20] – created gritpublic:vnc-usage [2017-03-08 15:27] (current) – external edit 127.0.0.1
Line 36: Line 36:
  
 To start vncserver: To start vncserver:
- 
   vncserver [:<display num> [-depth <bit color depth>] [-geometry <xpixels>x<y pixels>]   vncserver [:<display num> [-depth <bit color depth>] [-geometry <xpixels>x<y pixels>]
- +or more simply 
-or more simply +
- +
   vncserver   vncserver
  
 vncserver will display its display number in the command-line window. vncserver will display its display number in the command-line window.
-Note: do not kill the "VNC config" application, or cut and paste +Note: do not kill the "VNC config" application, or cut and paste will not work correctly.
-will not work correctly.+
  
 To run vncviewer unencrypted: To run vncviewer unencrypted:
Line 55: Line 51:
 of your vncserver on the remote machine (5901 in this example), and of your vncserver on the remote machine (5901 in this example), and
 connect the ssh client to the remote machine. connect the ssh client to the remote machine.
- 
   ssh user@remotehost -L 5901:remotehost:5901   ssh user@remotehost -L 5901:remotehost:5901
- 
 Then fire up the viewer on the client desktop (using dislay number 1 in Then fire up the viewer on the client desktop (using dislay number 1 in
 this example): this example):
- 
   vncviewer :1    vncviewer :1 
- +Note that a hostname is not required because a tunnel has been set up to the remote machine.
-Note that a hostname is not required because a tunnel has been set up +
-to the remote machine.+
  
 To kill a VNC server (on display number 1): To kill a VNC server (on display number 1):
- 
   vncserver -kill :1    vncserver -kill :1 
- 
 To change the VNC password: To change the VNC password:
- 
   vncpasswd   vncpasswd
 +  
 +=== VNC dot files ===
  
-VNC dot files: 
 The Linux VNC settings and setup files are located in The Linux VNC settings and setup files are located in
 the user's directory, ~user/.vnc the user's directory, ~user/.vnc
- 
   .vnc/xstartup - which X apps to start (such as a window manager)   .vnc/xstartup - which X apps to start (such as a window manager)
   .vnc/passwd   - vnc password file   .vnc/passwd   - vnc password file
Line 90: Line 78:
         --Select "SSH" which is under "Connection"         --Select "SSH" which is under "Connection"
         --Select "Tunnels"         --Select "Tunnels"
-  - Enter a source port, e.g. 5909 +  - Enter a source port, e.g. 5909Enter a destination port, e.g. machine_name:5909  NOTE: the 9 in this example is the display numberThis is up to you to decide on, 1-9If you the display number is already in use, select a different number
-      Enter a destination port, e.g. machine_name:5909 +
-      NOTE: the 9 in this example is the display number +
-            This is up to you to decide on, 1-9 +
-            If you the display number is already in use, +
-            select a different number+
   - Click on "ADD"   - Click on "ADD"
-  - elect "Session" at the top of the "Category" box +  - elect "Session" at the top of the "Category" boxYou are now back at the beginning window 
-      You are now back at the beginning window +  - Give your session a name, e.g. machine_name and select "SAVE"
-  - Give your session a name, e.g. machine_name and  +
-      select "SAVE"+
 This session with the tunneling ports set up is now saved. This session with the tunneling ports set up is now saved.
-You now double click on the session name you created and a login  +You now double click on the session name you created and a login window appears
-     window appears.+ 
 +Login using your CS Linux login and password. You now need to start a VNC session.
  
-Login using your CS Linux login and password. 
-You now need to start a VNC session. 
 Here is an example for starting a VNC session: Here is an example for starting a VNC session:
        vncserver :3 -geometry 1600x1200 &        vncserver :3 -geometry 1600x1200 &
-In this example, the server is starting a sesion on display "3", so +In this example, the server is starting a sesion on display "3", so I would have set up putty for port 5903.  If I set up for port 5909,
-I would have set up putty for port 5903.  If I set up for port 5909,+
 my startup command would be: my startup command would be:
        vncserver :9 -geometry 1600x1200 &        vncserver :9 -geometry 1600x1200 &
-The geometry settings should correspond to the resolution settings of +The geometry settings should correspond to the resolution settings of your monitor.
-your monitor.+
  
 Now you simply start your VNC client and enter "machine_name:display_number" Now you simply start your VNC client and enter "machine_name:display_number"
  • Last modified: 2017-01-22 07:20
  • by grit