Remote Access with VNC: Difference between revisions
m →Procedure 4.2: Stating a Persistant VNC Session using vncserver: Made procedure not a section |
m →VNC Session Initiated using vncserver: Added missing section |
||
| Line 182: | Line 182: | ||
Make sure to use strong passwords of significant length (eight or more characters. Do no share these passwords. | Make sure to use strong passwords of significant length (eight or more characters. Do no share these passwords. | ||
To terminate the session shut down the desktop environment that runs inside the VNC session from the VNC viewer as you would shut it down if it was a regular local X session. | |||
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=== | |||
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 | ||