In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article is about Redhat 6.x series how to install vncserver for graphical access. Xiaobian thinks it is quite practical, so share it with everyone for reference. Let's follow Xiaobian and have a look.
I. Configure the yum source of 163
1. Import GPG certificate for CentOS CentOS OS-6:
#rpm --import http://mirrors.163.com/centos/RPM-GPG-KEY-CentOS-6
2. Let yum use Netease's source:
#cd /etc/yum.repos.d
# wget http://mirrors.163.com/.help/CentOS-Base-163.repo
3. Modify repo reporepo file:
Add #before all mirrorlist, replace all $releasever with 6, save
# sed -i 's/^mirrorlist/\#mirrorlist/g' CentOS-Base-163.repo
#sed -i '/\[addons\]/,/^$/d' CentOS-Base-163.repo
#sed -i 's/\$releasever/6/' CentOS-Base-163.repo
#sed -i 's/RPM-GPG-KEY-CentOS-5/RPM-GPG-KEY-CentOS-6/' CentOS-Base-163.repo
4. Clean and regenerate Clean and regenerate yum cache
# yum clean all
# yum makecache
Note: If the system has been configured yum source, do not perform the above steps oh
Second, install gnome-desktop
Install gnome graphic interface
#yum groupinstall -y "X Window System"
#yum groupinstall -y "Desktop"
#yum groupinstall -y "Chinese Support"
#yum -y install libXfont
#yum -y install xorg-x11-xfs
#yum -y install xorg-x11-xfs-utils
#yum -y install xorg-x11-xinit
#yum -y install xorg-x11-xdm
yum install xorg-x11-fonts*
Install vncserver and configure
1. Check if VNC is installed on your system
# rpm -qa|grep vnc
tigervnc-server-1.1.0-16.el6.centos.x86_64
tigervnc-1.1.0-16.el6.centos.x86_64 Return as above indicates installed
2. Install vncserver
#yum install tigervnc-server tigervnc
3. Configure vncserver
1)Check startup auto-start settings
# chkconfig --list|grep vnc
vncserver 0:off 1:off 2:off 3:off 4:off 5:off 6:off
2)Configure to boot
# chkconfig --level 345 vncserver on
To complete the execution, use the above command to view the startup settings, as shown below:
# chkconfig --list|grep vnc
vncserver 0:off 1:off 2:off 3:on 4:on 5:on 6:off
3, 4, 5 have been modified to on
3)Configure vnc password
#vncserver #vncserver #vncserver#vncserver #vncserver#vncserver
You will require a password to access your desktop.
Password:
Verify:
4)configured to use gnome desktop
Modify the/root/.vnc/xstartu file by deleting the last twm & and adding gnome-session &
# sed -i '/twm \&/d' /root/.vnc/xstartup
# sed -i '$a\gnome-session &' /root/.vnc/xstartup
5)Configure vncserver listening port and environment parameters after startup
Modify the/etc/sysconfig/vncservers file to add the following
# sed -i '$a\VNCSERVERS="1:root"' /etc/sysconfig/vncservers
# sed -i '$a\VNCSERVERARGS[1]="-geometry 1200x800"' /etc/sysconfig/vncservers
6)Restart vncserver service
# service vncserver restart
4. test
Thank you for reading! About "Redhat 6.x series how to install vncserver to achieve graphical access" This article is shared here, I hope the above content can be of some help to everyone, so that everyone can learn more knowledge, if you think the article is good, you can share it to let more people see it!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.