Install vnc in linux

Source: Internet
Author: User

Install vnc in linux

Whether the VNC service has been installed and check the installed VNC version:

> Rpm-q vnc-server

If not, you can download the vnc-server-4.1.2-14.el5_6.6.x86_64.rpm and install:

(1) When the network is not connected:

> Rpm-ivh./vnc-server-4.1.2-14.el5_6.6.x86_64.rpm

(2) Networking:

> Yum install tigervnc-server

Start the vnc service:

> Vncserver or vncserver: 1

If the firewall is enabled, you can disable the Firewall:

> Service iptables stop (effective in time, failed restart) or chkconfigiptables off (effective after restart)

Or enable the corresponding Port:

> Iptables-I input-p tcp-dport 5901-jaccept

Configure the VNC graphic desktop environment interface (The vnc logon may fail to display the desktop because it is not configured ):

> Vi/root/. vnc/xstartup (if you want to install oracle, log on with the oracle user, modify/home/oracle/. vnc/xstartup, and log on with vncserver to start it)

Change "twm &" in the last line to "gnome-session &" (you can log on to the GNOME desktop environment)

Or change it to "startkde &" (you can log on to the KDE Desktop Environment)

Choose GNOME or KDE Based on the desktop environment installed by the System

Restart VNC:

> Vncserver-kill: 1

> Vncserver or vncserver: 1

Log on to the VNC console again.

Change VNC password:

> Vncpasswd

Set the VNC service to automatically load as the system starts:

> Chkconfig vncserver on

> Chkconfig-list vncserver

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.