CentOS the method of constructing the graphical interface VNC _linux

Source: Internet
Author: User
Tags i18n

Installation may cause DNS to be emptied, so you need to perform the following command before you follow the steps to install

Chattr +i/etc/resolv.conf

1. Install (I am separately installed, you can also choose to install at the same time)

Yum install-y tigervnc tigervnc-server
yum groupinstall "Desktop" yum Install, Gnome-panel yum install
Nautilus

2. Set the login password (execute the following command, you need to enter two times)

vncpasswd

3. Configuration (Compare the following configuration file with your consistent)

Cat ~/.vnc/xstartup 
#!/bin/sh
 
[-r/etc/sysconfig/i18n] &&/etc/sysconfig/i18n
export LANG
Export Sysfont
vncconfig-iconic &
unset session_manager
unset dbus_session_bus_address os=
' Uname-s '
if [$OS = ' Linux ']; then case
"$WINDOWMANAGER" in
*gnome*)
if [-e/etc/suse-release]; n
path= $PATH:/opt/gnome/bin
export PATH
fi
Esac
fi
if [-x/etc/x11/xinit/xinitrc]; then
exec/etc/x11/xinit/xinitrc
fi
If [-f/etc/x11 /XINIT/XINITRC]; Then
exec sh/etc/x11/xinit/xinitrc
fi
[R $HOME/. Xresources] && Xrdb $HOME/. Xresources
xsetroot-solid Grey
xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
TWM & Amp

4. Start and close VNC

Vncserver:1
Vncserver-kill:1

5. Client Connectivity Testing

The client software used is: VNC viewer

(1) input the ip:1 of the server's external network

(2) Enter the login password for VNCPASSWD settings

(3) The interface after successful connection

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.