Install VNC-Server

Source: Internet
Author: User
Install the desktop environment
yum groupinstall Desktop
Install VNC
yum install tigervnc-server
Create a user and set the VNC Password
useradd acasu - acavncpasswd
Start VNC
su - acavncserver

There is a. VNC hidden folder, log, PID, and xstartup Startup File under the user's home.

Xstartup
#!/bin/sh[ -r /etc/sysconfig/i18n ] && . /etc/sysconfig/i18nexport LANGexport SYSFONTvncconfig -iconic &unset SESSION_MANAGERunset DBUS_SESSION_BUS_ADDRESSOS=`uname -s`if [ $OS = ‘Linux‘ ]; then  case "$WINDOWMANAGER" in    *gnome*)      if [ -e /etc/SuSE-release ]; then        PATH=$PATH:/opt/gnome/bin        export PATH      fi            ;;  esacfiif [ -x /etc/X11/xinit/xinitrc ]; then  exec /etc/X11/xinit/xinitrcfiif [ -f /etc/X11/xinit/xinitrc ]; then  exec sh /etc/X11/xinit/xinitrcfi[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyxterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &twm &

Xterm and TWM will be called, so we 'd better install the two before running VNC.

yum install twm xterm -y
Connect locally with VNC-Viewer

Success!

Final Diagram

! [Write picture description here] (http://img.blog.csdn.net/20150507153232998)

Install VNC-Server

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.