No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search


To have a better experience, please upgrade your IE browser.


FAQ-VNC Remote Control in SuSE Linux

Publication Date:  2012-07-25 Views:  122 Downloads:  0

Issue Description


Virtual Network Computing (VNC) is a remote control software similar to Xmanager. The VNC can be used to remotely configure and control the system. The VNC can also be used for multiple users to view or operate a same interface.
By default, the VNC is installed in SuSE. 

Alarm Information


Handling Process


The configuration procedure is as follows:
1. In the VNC that is installed in SuSE by default, open YaST > Network Service > Remote Administration. Select Enable Remote administration. Set the options for the firewall. Select Enable Firewall Port. Click OK.
2. Start the VNC service.
After the SSH login, run the vncserver command and a .vnc hidden directory is created in the root directory (if the directory is not root, the .vnc hidden directory is created in the home directory of the current user name).
Prompt: You will require a password to access your desktops.
Set a password required for remotely accessing your desktops.
Password: (Enter the password)
Verify: (re-enter the password)
Prompt: Would you like to enter a view-only password? n (choose no)
The prompt is as follows:
xauth: creating new authority file /root/.Xauthority
New ’X’ desktop is N2510LAS:1 (the desktop number is 1)
Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/N2510LAS:1.log
After being started, if vncserver is executed again, a new desktop is used.
3. Configure the xstartup script.
Use VI to edit the /root/.vnc/xstartup script.
The contents are as follows:
xrdb $HOME/.Xresources
xsetroot -solid grey
xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
twm &
Add a # mark to the last line (twm &) or change the last line to:
gnome-session &
4. Download the windows vnc client software. (optional)
Run the VNC viewer and enter the IP address and the desktop number of the server:
For example:
Then, enter the VNC connection password and you can log in the system.
5. Use the viewer to control the system:
Even if the VNC viewer is not installed on the main control terminal, the control can also be realized through the viewer. For example, visit the website address: (port number = desktop number + 5800. The desktop number in the aforementioned configuration is 1. Thus, the port number is 5801) and the login interface will be displayed. The java applet of the viewer should be started. 

Root Cause