VNCServer configuration and use of Vncview

Source: Internet
Author: User
VNCServer configuration and use of Vncview-Linux Enterprise Application-Linux server application information. The following is a detailed description. 1. Start vncserver
Vncserver is automatically installed in redhat and fedora. You only need to select and start it in the service list.

2. vncserver Configuration
Start your window manager by editing the file $ HOME/. vnc/xstartup. Use startkde & to start KDE, and use gnome-session & to start GNOME and fvwm2 & to start FVWM2. The following is an example.

#################

#! /Bin/sh

# Uncomment the following two lines for normal desktop:

# Unset SESSION_MANAGER

# Exec/etc/X11/xinit/xinitrc

[-X/etc/vnc/xstartup] & exec/etc/vnc/xstartup

[-R $ HOME/. Xresources] & xrdb $ HOME/. Xresources

Xsetroot-solid gray

Vncconfig-iconic &

# Xterm-geometry 80x24 + 10 + 10-ls-title "$ VNCDESKTOP Desktop "&

Gnome-session

# Startkde

# Twm &

##################

3. Start Using
You can use telnet to log on to the remote system to run vncserver. To define the page size and color, see vncserver -- help, if you run the command for the first time, you will be prompted to enter the password. The password for remote logon does not matter with the user password. You can use the vncpasswd program to modify the password. After the operation is successful, a desktop number prompt is displayed as follows: 1: 2. Remember the desktop number. Exit telnet. It must be run once every time the server is reinstalled.

4. log on
Download a winvnc in windows. After installation, you do not need to start the service. You can use its viewer. Enter the vnc server address: desktop number, and then enter the password. Note: Do not log out of the system every time you use it. Simply disable the winvnc viewer. As long as the server is okay, you can use winvnc to continue the connection.

5. Close your vnc connection on the server
Vncserver-kill: desktop number

6. How to enable automatic vncserver startup without self-telnet
Use linuxconf to set the vncserver STARTUP script (/etc/init. d/vncserver) to enable vncserver when the system starts automatically. However, the default startup script is not flexible enough. Therefore, edit/etc/init. d/vncserver and modify:

"Su-$ {display # *:}-c" cd & [-f. vnc/passwd]

& Vncserver :$ {display % :*}""

Is:

"Su-$ {display # *:}-c" cd & [-f. vnc/passwd]

& Vncserver $ {ARGS }:: {display % :*}""

Then edit/etc/sysconfig/vncservers:

# The VNCSERVERS variable is a list

# Display: user pairs.

#

# Uncomment the line below to start a VNC server on

# Display: 1 as my 'myusername' (adjust this to your

# Own). You will also need to set a VNC password;

# Run 'man vncpasswd' to see how to do that.

#

# Do not run this service if your local area network

# Is untrusted! For a secure way of using VNC, see

# .

VNCSERVERS = "1: jdi.pdf"

ARGS = "-geometry 1024x768-alwaysshared"

Modify "1024x768" in ARGS to adapt to the actual X Desktop parameter configuration. You can add any other VNC Server parameter configuration here. Modify jdiers in VNCSERVERS to the user you want to run the VNC desktop. 1 In VNCSERVERS indicates that VNC runs on desktop 1. If you want to add another desktop, you can modify the configuration as follows:

VNCSERVERS = "1: jdi1_2: phred 3: sysadmin"

On the RedHat system, run the following command to start VNC:

/Etc/init. d/vncserver start

Now you can use any VNC client to use the VNC desktop.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.