About VNC in Linux

Source: Internet
Author: User
For more information about Linux-based VNC-Linux Enterprise Application-Linux server application, see the following. The remote control software is a free, small, and practical remote control software that runs on Linux, Unix, and Windows platforms-VNC.

VNC is short for Virtual Network Computing. It consists of two parts: the server side (controlled side) and the client side (Master side). Only the server side software needs to be installed, and the client software can run directly. In Linux/Unix, the server software is called VncServer, while in Windows, the server software is called WinVNC. The client software is called VncViewer, and the control terminal can be controlled through a general web browser. I will introduce how to install and use VNC in Linux (RedHat.

1. Download The VNC Server and VNC viewer as needed. There are a lot of websites, which can be google or baidu.

2. install.
Rpm? Uvh vnc-3.3.7.i386.rpm (whether you have installed, you can use this command to install)

Modify/root/. vnc/xstartup and change the last line of twm & to gnome-session & or kde &.

3. Start VNC Server on Linux
Run the vncserver command:
[Root @ linux root] # vncserver
You will require a password to access your tops.
Password: ---- enter the Password for the first time
Verify: -- Second Input

New 'X' desktop is linux: 1 -- note that this number is required for logging on to VNC in Linux (for example, enter IP Address: 1 on the viewer side)
(After the preceding steps, the VNC Server has been started. If you want to change the VNC Server password, run the vncpasswd command .)

4. Run VNC Viewer on Windows
Run unzip vncviewer.exe directly. In the "Connection details" dialog box, enter the IP address of the VNC server in the "VNC Server" text box (or host name and display device number, (start this line of VNC server on Linux, new 'X' desktop is linux: 1 get this information), for example: 192.168.0.1: 1 (1 after the colon is marked in red above), click "OK, you can successfully open the Linux desktop window.

5. remote control from the browser.
Start the VNC Server and open your browser. in the address bar, enter the address or IP address of the controlled terminal, and add the port number ": 5800 + display number" to the address to control the computer.
For example: http: // 192.168.01.: 5801 (if the display number is 1, the display number set for the first time is 1, then 5800 + 1 = 5801 is used .)


In addition:

VNCServer Configuration:
1. Start VNC Server:
Open the terminal and run: vncserver
2. By default, the VNC Viewer can only view the command line of the VNC Server.
To see the Linux desktop on the VNC Viewer, you need to make the following settings:
On the machine where the VNC Viewer is located, cancel the following two lines of comments in the/root/. vnc/xstartup file:
Unset SESSION_MANAGER
Exec/etc/X11/xinit/xinitrc
3. VNCServer is automatically run after Linux is started.
1) Check the vncserver in system Settings> Server Settings> service.
2) Open the configuration file/etc/sysconfig/vncservers and remove the comments in the following line,
VNCSERVERS = "1: root"
VNCSERVERARGS [1] = "-geometry 800x600"
1 indicates that VNC runs on desktop 1, so that the root desktop can be started.
4. VNC Port
If you want to control a Linux instance on the Intranet from the Internet, you need to open the corresponding port of the firewall and perform port ing on the vro.
The port number that VNC gives to the browser is 5800 + N, the port number for vncviewer is 5900 + N, and N is the set display number.

Another 2:

1. Disable the VNC service command of the corresponding number:

Vncserver-kill: x (x id)

2. You can copy the content in vnc to an external server using the following method:

A. Start the vncconfig service and enter the vncconfig command in the terminal;

B. copy the content in VNC;

C. copy it out of vnc;

3. Adding other...
Related Article

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.