Install VNC Server in centos 6.5

Source: Internet
Author: User
[[email protected] .ssh]#  yum -y install tigervnc-server vnc-server
[[email protected] .vnc]# vi /etc/sysconfig/vncservers # VNCSERVERS="2:myusername"# VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp -localhost"VNCSERVERS="1:root 2:shylock"VNCSERVERARGS[1]="-geometry 800x600 -nolisten tcp"VNCSERVERARGS[2]="-geometry 800x600 -nolisten tcp"
[[Email protected]. VNC] # PWD/root/. VNC
[[Email protected]. VNC] # vi xstartup # Change TWM to gnome-session or startkde at the end

# TWM &
Gnome-session &
# Startkde &

 

Set the account password

Log on to root and Shylock [[email protected]. VNC] # vncpasswd [[email protected] ~] $ Vncpasswd enter the password as prompted

Start vncserver

[[email protected] .vnc]# /sbin/service vncserver start

1: Root indicates that the VNC logon user is root VNC and the connection port is 5901. Why is it 5901? Is 5900 + 1, 5900 is the starting port of VNC;

Download VNC-Viewer

VNC Server: 192.168.1.131: 5901 (IP: 1 IP: 5901)

Click Connect, enter the set password, and the graphic interface will be displayed !!!

 

Install VNC Server in centos 6.5

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.