Remote Access with VNC: Difference between revisions

m Enabling One-time VNC Sessions: Removed procedure as a section
Line 167: Line 167:
'''Procedure 2: Stating a Persistant VNC Session using <code>vncserver</code>'''
'''Procedure 2: Stating a Persistant VNC Session using <code>vncserver</code>'''
# Open a shell and make sure you are logged in as the user that should own the VNC session.
# Open a shell and make sure you are logged in as the user that should own the VNC session.
# If the network interface serving the VNC sessions is protected by a firewall, you need to manually open the port used by your session in the firewall. If starting multiple sessions you may alternatively open a range of ports. See Book ''"Security Guide", Chapter 15 "Masquerading and Firewalls"'' for details on how to configure the firewall.
# If the network interface serving the VNC sessions is protected by a firewall, you need to manually open the port used by your session in the firewall. If starting multiple sessions you may alternatively open a range of ports. See Book ''"Security Guide", Chapter 15 "Masquerading and Firewalls"'' for details on how to configure the firewall.<br><br>'''<code>vncserver</code>''' uses the ports <code>5901</code> for display <code>:1</code>, <code>5902</code> for display <code>:2</code>, and so on. For persistent sessions, the VNC display and the X display usually have the same number.
 
'''<code>vncserver</code>''' uses the ports <code>5901</code> for display <code>:1</code>, <code>5902</code> for display <code>:2</code>, and so on. For persistent sessions, the VNC display and the X display usually have the same number.
# To start a session with a resolution of 1024x768 pixel and with a colour depth of 16-bit, enter the following command:
# To start a session with a resolution of 1024x768 pixel and with a colour depth of 16-bit, enter the following command:
   vncserver -gemometry 1024x768 -depth 16
   vncserver -gemometry 1024x768 -depth 16