(Shuai) How to Use VNC remote graphical interface to control Linux

Source: Internet
Author: User

How to Use the VNC remote graphical interface to control Linux
You are familiar with the remote graphic interface control in windows. In fact, the use of VNC in Linux for graphic interface control is also very simple. VNC consists of two parts: the client application (vncviewer) and the server application (vncserver ).

Take RedHat Linux 8.0 Installation and Use as an Example

1. Install the vnc rpm package

1. install linux

1.1 If the installation on the GUI is in KDE or gnome, click the RPM package and the system will automatically start the installation. You will also be prompted to set the password and port.

1.2 installation under the command line.
Next, let's talk about the installation under the command line, which is actually very simple, just a command.

CD/mnt/f/VNC/

Rpm-IVH vnc-3.3.6-2.i386.rpm

2. Set the VNC server access password

Vncpasswd

3. Start VNC Server

Vncserver

4. The management environment set by the VNC Server on Linux is TWM. Change it to the KDE. Modify $ home/. VNC/xstartup file. Change starttwm to startkde and restart the VNC server.

2. remote connection

Now you can control Linux on various platforms. The server (vncserver) also has a built-in Java Web interface, so that the user's operations on other computers through the server can be displayed through the browser (Java Applet must be supported, this operation process and display method are very intuitive and convenient.

1. Check whether the system has the VNC-server suite and the security software.
# Rpm-qagrep VNC
Vnc-server-4.1.1-11.fc4
If the above text is displayed, it indicates that the system already has a VNC-server suite. If not, use Yum to install it, as shown below:
# Yum install VNC-Server

2. Activate VNC-Server
# Service vncserver start
(Or #/etc/rc. d/init. d/vncserver start)
# Vncserver
Labels:
1. The password setting will be required for the first login, And the password will be recorded in ~ /. VNC/passwd. You can renew the vncpasswd to change the password!
2. display number: 1 will be generated after the login line. At this time, you can log on through the browser (Change server selected IP Address: 1, IP: 2 or directly change the network address) or Log On Through vncviewer (vncviewer localhost: 1)
3. Set x Desktop hosting of vncserver to TWM (face-to-face ratio), which can be modified ~ /. VNC/xstartup, and change the internal instruction TWM to gnome or KDE Desktop:
Gnome:
Gnome-session &
KDE:
Startkde &

And cancel the xstartup before the two rows #

Unset session_manager
Exec/etc/X11/xinit/xinitrc

In addition

# Vi/etc/sysconfig/vncservers
# Vncservers = "1: myusername" to-> vncservers = "1: Root"
# Vncserverargs [1] = "-geometry 800 × 600 ″
# It means that we want to activate a VNC at Port 5800 + 1 as root, that is, 5801! After this modification, the Service vncserver start line will be used to directly activate the VNC Server, and a 5801 port will be opened for connection!

(Since my system didn't have a gnome or KDE Desktop for the security X-WINDOW at the time, no matter how I change it or set it to TWM, so I didn't change it to gnome or KDE Desktop !)

3. zookeeper (after modification, you must restart the vncserver or stop the zookeeper)

# Vncserver-kill: 1 (中display display number: 1 or 5801)
# Vncserver-kill: 2 (中display display number: 2 or 5802)
...

4. Log On Through the Logging Tool

Http:/// IP: 5801/
If you want the second condition
Http:/// IP: 5802/

After the password is entered, you can successfully renew the password ....
 

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.