In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-09-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)05/31 Report--
Today, the editor will share with you the relevant knowledge points about how Centos builds a graphical interface VNC. The content is detailed and the logic is clear. I believe most people still know too much about this knowledge, so share this article for your reference. I hope you can get something after reading this article. Let's learn about it.
Installation may cause dns to be emptied, so you need to execute the following command before following the steps to install
Chattr + I / etc/resolv.conf
1. Install (I install it separately, or you can choose to install it at the same time)
Yum install-y tigervnc tigervnc-serveryum groupinstall "desktop" yum install gnome-panelyum install nautilus
two。 Set the login password (execute the following command, you need to enter it twice)
Vncpasswd
3. Configuration (compare whether the following configuration file is consistent with yours)
Cat ~ / .vnc/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']; thencase "$windowmanager" in*gnome*) if [- e / etc/suse-release]; thenpath=$path:/opt/gnome/binexport pathfi;;esacfiif [- x / etc/x11/xinit/xinitrc]; thenexec / etc/x11/xinit/xinitrcfiif [- f / etc/x11/xinit/xinitrc] Thenexec sh / etc/x11/xinit/xinitrcfi [- r $home/.xresources] & & xrdb $home/.xresourcesxsetroot-solid greyxterm-geometry 80x24+10+10-ls-title "$vncdesktop desktop" & twm &
4. Start and shut down vnc
Vncserver: 1
Vncserver-kill: 1
5. Client connection test
The client software used is: vnc viewer
(1) enter the public network ip:1 of the server
(2) enter the login password set by vncpasswd
(3) the interface after successful connection
These are all the contents of the article "how to build a graphical interface VNC for Centos". Thank you for reading! I believe you will gain a lot after reading this article. The editor will update different knowledge for you every day. If you want to learn more knowledge, please pay attention to the industry information channel.
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.
The market share of Chrome browser on the desktop has exceeded 70%, and users are complaining about
The world's first 2nm mobile chip: Samsung Exynos 2600 is ready for mass production.According to a r
A US federal judge has ruled that Google can keep its Chrome browser, but it will be prohibited from
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
About us Contact us Product review car news thenatureplanet
More Form oMedia: AutoTimes. Bestcoffee. SL News. Jarebook. Coffee Hunters. Sundaily. Modezone. NNB. Coffee. Game News. FrontStreet. GGAMEN
© 2024 shulou.com SLNews company. All rights reserved.