In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how CentOS manages configuration through VNC remote Desktop". In daily operation, I believe many people have doubts about how CentOS manages configuration through VNC remote Desktop. Xiaobian consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how CentOS manages configuration through VNC remote Desktop". Next, please follow the editor to study!
First, check whether to install VNC
1. Install the desktop
Yum groupinstall "Chinese Support"
2. Install Chinese support
Yum groupinstall "Desktop"
Open the directory of the configuration file:
1) cd / etc/sysconfig
2) Edit configuration file: vi i18n
3) use the # sign to comment out the first line (LANG= "en_US.UTF-8"). In fact, it is possible to change it directly in this line, but it is better to comment out the insurance point first and delete it after success.
Add a new line under the first line, type (LANG= "zh_CN.UTF-8"), then save the file, restart the system, and you will see cordial Chinese.
3. Turn off the firewall and turn it on without starting the protective wall.
[root@centos ~] # service iptables stop
[root@centos ~] # chkconfig iptables off
4. Check whether VNC has been installed
[root@centos ~] # rpm-qa | grep vnc appears similar to the following description that has been installed, otherwise perform the following installation and configuration operations
Tigervnc-server-1.0.90-0.17.20110314svn4359.el6.x86_64
Second, install VNC
[root@centos ~] # yum-y install tigervnc-server
Add Startup item
[root@centos ~] # chkconfig vncserver on
3. Set VNC password
[root@centos ~] # vncserver
Creating default startup script / root/.vnc/xstartup
Starting applications specified in / root/.vnc/xstartup
Log file is / root/.vnc/centos:1.log
The .vnc directory and configuration files are generated under the current user's home directory
[root@centos ~] # vncpasswd
Password:
Verify:
The password you set will be saved in / root/.vnc/passwd
III. VNC configuration
Modify the xstartup file to delete the last twm and add gnome-session &
[root@centos ~] # vi / root/.vnc/xstartup
Xsetroot-solid grey
Xsetroot-solid grey
Xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &
Twm &
Change twm & to gnome-session &
If it starts directly, it will fail.
[root@centos ~] # service vncserver start
Starting VNC server: no displays configured [FAILED]
So modify the / etc/sysconfig/vncservers file to add the following
VNCSERVERS= "2:root"
# Desktop number: user
# the port for listening is: 590*, and the asterisk represents the desktop number
VNCSERVERARGS [2] = "- geometry 800x600" can enter the graphical interface normally even if the / etc/inittab startup mode is 3.
Note: modify the default startup interface to modify the number of this line, 3 is the text interface, 5-bit graphical interface: id:3:initdefault:
Start vncserver
[root@centos ~] # service vncserver start
Starting VNC server: 2:root xauth: (stdin): 1: bad display name "centos:2" in "add" command
New 'centos:2 (root)' desktop is centos:2
Starting applications specified in / root/.vnc/xstartup
Log file is / root/.vnc/centos:2.log
Ok, you can now connect remotely through VNC Viewer.
At this point, the study on "how CentOS manages the configuration through VNC remote Desktop" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.