Create and Use Persistent VNC Sessions
Novell Cool Solutions: Feature
By Aaron Gresko
Digg 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.
Novell Cool Solutions (corporate web communities) are produced by WebWise Solutions. www.webwiseone.com