2014_Workshop_Tutorials_VNC - david-macmahon/wiki_convert_test GitHub Wiki
- Connect to the network "casper"
- >>> ssh simech1
- Log in with given username/password
- Download PUTTY
- Connect to the network "casper"
- Open PUTTY and enter "simech1" in the "HOST Name" field, click "OPEN" button
- Log in with given username/password
== Start your own VNC session on the server ==
- After you logged into simech1, type
>>> vncserver -geometry 1280x725
(or just
>>>`` ``vncserver
)
You might need to change the number to fit the resolution of your laptop monitor (more on this later).
If nothing goes wrong, you should see something like this:
Pay attention to the number 18 in "New 'simech1:18 (casper)' desktop is simech1:18". This is the ID of the session you just created. Since in this case you are sharing an account with other people, you should try to remember which sessions are yours to avoid confusion.
== Getting VNC Viewer ==
- Download and install a VNC viewer software (RealVNC, TightVNC, etc.)
- Open a terminal and type
>>> vncviewer
(or something like that)
- Download and install a VNC viewer software (RealVNC, TightVNC, etc.)
- Open PUTTY, enter "simech1" in the "host" field, You might actually want to save the current configuration so you don't have to enter the same information everytime. To do this,
- Type "simech1" (or any other name you like) into "Saved sessions"
field, and click the "Save" button.
(see`` ``a`` ``screenshot`` ``here)
- In the future, you can select your saved sessions and click "Load" to load the saved configuration
Expand "SSH" on the menu on the left side and click on the "X11" item, check the "Enable X11 forwarding" box (see a screenshot here)
Click on the , and enter "59XX" and "hostname:59XX" and click "Add" (XX is your VNC session ID) (see a screenshot here)
Go back to the main page by clicking "Session" on the menu, and save your configuration
Make sure all the configurations are loaded, click "Open" and log in using given username/password
Open the VNC viewer you installed, type "localhost:59XX" into the "VNC server" field
== Using VNC Viewer ==
- Open your VNC viewer (If you are using Windows OS, first you'll need to log in via SSH with the correct tunneling configuration usinsg PUTTY)
In the popped up window, type
simech1: 5918
in the "VNC server" field and enter the given VNC password and press the ENTER key.
(Note the number "18" is the ID of your VNC session)
You should see a window opened up displaying the VNC desktop
You may not be happy with the resolution of your VNC desktop, in which case you might want to kill
your session and start another session with different "-geometry" parameter (see next session for details)
== Using VNC (tips and other stuff) ==
- You can close the VNC viewer window anytime, your session will still be running on the server
- To kill a VNC session, log in to simech1 and type >>> vncserver -kill :YOUR_VNC_SESSION_ID (See screenshot here)
You probably want to kill your session after you are done using it
Be careful with "vncserver -kill" because you don't want to accidentally kill other people's session
To check the current vnc sessions currently running on the machine, open a terminal and type
'''>>> ps aux | grep vnc '''
To check the current vnc sessions opened by the account you are using ("casper" in this case), type
>>> ps aux | grep vnc | grep casper