Create and Use Persistent VNC Sessions
Novell Cool Solutions: Feature
By Aaron Gresko
Reader Rating
from 9 ratings
|
Digg This -
Slashdot This
Posted: 19 Sep 2005 |
SUSE Linux ships with remote administration capabilities
included. On SLES 9, turning on remote administration is done by
starting YaST, selecting Network
Services > Remote Administration, and selecting Allow Remote Administration.
The server can then be accessed using a VNC viewer application. On SUSE
LINUX, running vncviewer ip_address:1 will access the
remote system. In the default setup, the VNC session closes when the
VNC viewer quits. In some situations, it's advantageous to have a VNC
session alive after the VNC viewer quits.
Creating a persistent VNC session is done using the command vncserver. View the vncserver man
page for full details of the command.
To create a persistent VNC session, complete the following:
- Log in to the system that will be remotely adminstered as the user who will use the VNC session. The user admin on an OES system will be used for an example. The admin user can ssh in to the remote system to do the work also.
- At the terminal, start a VNC server session by entering vncserver :2.
- Enter and verify a password for accessing the VNC session.
- If a view-only password is desired, select y and enter the view-only password.

Test the persistent connection by running top in the command window and closing the VNC viewer window. Start the VNC viewer again and provide the connection password. The top command should still be running on the remote system.
The default window manager is tvm. If the user wants to use their full desktop, they need to configure VNC to start their window manager. To specify the window manager, complete the following:
- Open a terminal and change to the user's .vnc folder by entering cd ~/.vnc.
- Edit the xstartup file by entering vi xstartup.
- At the bottom of the xstartup file is the command to start the window manager. Change it from tvm & to kde &.
- Save the changes and quit.
- Open a terminal or ssh into the machine as the user who will administer the machine via VNC.
- Kill the VNC Server session by entering vncserver -kill :2.
- Start the VNC Server session by entering vncserver :2.

Inspiration taken from a Novell Support Forums post by Justin Grote.
Reader Comments
- Bingo. I wanted how to run KDE using VNC. http://www.novell.com/coolsolutions/img/16011-PersistentVNC2.jpg caught my eye. Brilliant.
- Ineffective to start a persistent session on a server already being remotely administered.
- not very clear
- I was dissapointed that the SUSE VNC default was to log out of the system every time you lost your connection. This is exactly what I needed, and I'm surprised there's no way to configure it from the "Remote Administration" area in YaST.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com
