Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| public:vnc-usage [2017-01-22 07:20] – created grit | public: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 [:< | vncserver [:< | ||
| - | + | 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" | + | Note: do not kill the "VNC config" |
| - | 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: | ssh user@remotehost -L 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/ | .vnc/ | ||
| .vnc/ | .vnc/ | ||
| Line 90: | Line 78: | ||
| --Select " | --Select " | ||
| --Select " | --Select " | ||
| - | - Enter a source port, e.g. 5909 | + | - Enter a source port, e.g. 5909. Enter a destination port, e.g. machine_name: |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - | | + | |
| - Click on " | - Click on " | ||
| - | - elect " | + | - elect " |
| - | | + | - Give your session a name, e.g. machine_name and select " |
| - | - Give your session a name, e.g. machine_name and | + | |
| - | | + | |
| 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: | ||
| | | ||
| - | In this example, the server is starting a sesion on display " | + | In this example, the server is starting a sesion on display " |
| - | 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: | ||
| | | ||
| - | 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 " | Now you simply start your VNC client and enter " | ||