Remote Access with VNC: Difference between revisions

m Corrected formatting
m Configuring Persistant VNC Sessions: Made procedure not a section. Added missing section title
Line 186: Line 186:
If you prefer to manually terminate a session, open a shell on the VNC server and make sure you are logged in as the user that owns the VNC session you want to terminate. Run the following command to terminate the session that runs on display <code>:1</code>: '''<code>vncserver -kill :1</code>'''.
If you prefer to manually terminate a session, open a shell on the VNC server and make sure you are logged in as the user that owns the VNC session you want to terminate. Run the following command to terminate the session that runs on display <code>:1</code>: '''<code>vncserver -kill :1</code>'''.


===Configuring Persistant VNC Sessions===
'''Configuring Persistant VNC Sessions'''
Persistent VNC sessions can be configured by editing <code>$HOME/.vnc/xstartup</code>. By default this shell script starts the same GUI/window manager it was started from. In openSUSE Leap this will either be GNOME or IceWM. If you want to start your session with a window manager of your choice, set the variable <code>WINDOWMANAGER</code>:
Persistent VNC sessions can be configured by editing <code>$HOME/.vnc/xstartup</code>. By default this shell script starts the same GUI/window manager it was started from. In openSUSE Leap this will either be GNOME or IceWM. If you want to start your session with a window manager of your choice, set the variable <code>WINDOWMANAGER</code>:
   WINDOWMANAGER=gnome vncserver -geometry 1024x768
   WINDOWMANAGER=gnome vncserver -geometry 1024x768
Line 194: Line 194:
Persistent VNC sessions are configured in a single per-user configuration. Multiple sessions started by the same user will all use the same start-up and password files.
Persistent VNC sessions are configured in a single per-user configuration. Multiple sessions started by the same user will all use the same start-up and password files.


==VNC Session Initated using '''<code>vncmanager</code>'''
==VNC Session Initated using '''<code>vncmanager</code>'''==
 
===Procedure 4.3: Enabling Persistant VNC Sessions===
===Procedure 4.3: Enabling Persistant VNC Sessions===
# Start ''YaST > Network Services > Remote Administration (VNC)</code>.
# Start ''YaST > Network Services > Remote Administration (VNC)</code>.