Connect to the Linux GUI using VNC Server

Source: Internet
Author: User
Tags windows remote desktop

For the current enterprise application operating systems, Unix and Linux should be dominant. Both administrators and developers can operate fluent character command lines ". After several years of improvement and optimization, the Linux GUI has made great progress in both operability and running efficiency. However, the character command line interface operation method is still the mainstream of the server.

However, in many cases, we cannot avoid using GUI. For example, when installing Oracle, if you do not use the graphical interface, you can only use the slient mode with the response file. The configuration is complex and inconvenient. At this time, it is very convenient to have a graphical interface.

Different from the desktop PC, the access server is generally remotely connected through the command line, such as the ssh protocol. Direct desktop graphics can only be used in high-radiation data centers. How can I remotely use the Linux GUI?

Common solutions are XWindows software and VNC Server Remote connection. The typical representative of XWindows is XManager, which includes remote logon and FTP tools commonly used by many system O & M personnel. The most important software is the Passive mode. After the mode is started, the graphic information transmitted from remote Unix/Linux can be accepted with the DISPLAY environment variable. VNC Server is another lightweight solution. Compared with XManager, VNC Server is a good choice.

This document describes how to configure the VNC Server during Oracle installation.

VNC installation Configuration

Install and configure VNC in CentOS 6.3

In Linux, the dependency installation VNC is not detected.

CentOS6 VNC service installation and configuration

VNC remote control installation and Setup

Install VNC for accessing Ubuntu 12.04 through Windows Remote Desktop

1. Basic VNC Server Configuration

VNC Server is a background service project in Linux. This service is installed by default in many Linux versions. We can check through rpm-qa.

[Root @ bspdev ~] # Rpm-qa vnc

Vnc-4.1.2-14.el5_6.6

If this result is not found, the vnc is not installed. You can find the corresponding rpm package on the Linux installation disk and use the rpm-ivh command to install the package.

After the installation is confirmed, the desktop can be remotely connected to a specific user (current user), which is called "desktop ".

[Root @ bspdev ~] # Vncserver: 1

You will require a password to access your tops.

Password:

Verify:

New 'bspdev. localdomain: 1 (root) 'desktop is bspdev. localdomain: 1

Creating default startup script./root/. vnc/xstartup

Starting applications specified in/root/. vnc/xstartup

Log file is/root/. vnc/bspdev. localdomain: 1.log

In the password section, set a password when the user (root) is connected to the vncserver. Some parameters are configured in the/root/. vnc/xstartup file.

After the process is started, you can view the process information started by the vncserver in the background.

[Root @ bspdev ~] # Ps-ef | grep vnc

Root 3282 1 0 05:46 pts/0 00:00:00 Xvnc: 1-desktop bspdev. localdomain: 1 (root)-httpd/usr/share/vnc/classes-auth/root /. xauthority-geometry 1024x768-depth 16-rfbwait 30000-rfbauth/root /. vnc/passwd-rfbport 5901-pn

Root 3291 1 0 05:46 pts/0 00:00:00 vncconfig-iconic

Root 3318 3244 0 00:00:00 pts/0 grep vnc

The vncserver is also waiting for the connection on the specific port of the host. One VNC Server can enable multiple desktops, represented by: 1,: 2. Each desktop corresponds to a different port.

When the client is connected, the VNC Server supports two types of clients. One is a Windows client, usually a green software. The other is a Web browser-based Java client.

When connecting, pay attention to the port usage. VNC uses TCP ports starting from 5900, desktop 1 corresponds to port 5901, and desktop 2 corresponds to port 5902, Which is sorted in sequence.

If you use a Java Web browser, the port starts from 5800.

If you use a Windows client for connection, use the Address <IP Address >:< Port> for access. For example, 192.168.0.88: 1.

2. Firewall Configuration

If the network firewall is enabled in Linux, you need to open the specified port.

[Root @ testdb ~] # Iptables-I INPUT-p tcp -- dport 5901-j ACCEPT

[Root @ testdb ~] # Iptables-I INPUT-p tcp -- dport 5801-j ACCEPT

For more details, please continue to read the highlights on the next page:

  • 1
  • 2
  • Next Page

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.