In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-10-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
At work, the pure command line interface can be connected using xshell, but sometimes it is necessary to connect to the graphical interface, so it is necessary to use vnc or xmanager to realize the graphical interface of connecting centos remotely.
Note: the premise for using vnc is that the server must have a graphical interface installed, otherwise vnc cannot be used.
This case takes centos6.5 as an example.
1. First install the tigervnc-server service on the server side
# yum install tigervnc-server-y
two。 Modify the VNCServer main configuration file
# vim / etc/sysconfig/vncservers
Copy the last two lines and remove the first line commentator, and then modify it to
VNCSERVERS= "1:root"
VNCSERVERARGS [1] = "- geometry 1024x768"
3. Set the vnc remote connection password
# vncpasswd
Just enter the same password twice.
4. Start the vncserver service
# / etc/init.d/vncserver start
The default port is: 5901
5. When the previous step is completed, a hidden directory starting with .vnc is generated under the root host directory, and the files under this directory are the root user's VNC desktop configuration files. Open xstartup configuration Desktop
# vim / root/.vnc/xstartup
Change the last line to: gnome &
Because: my desktop is installed with a gnome desktop
6. If iptables is enabled, the relevant port needs to be released.
7. Connect with vnc client
a. Open vnc, select file in the upper left corner, and select "New connection"
The b.VNC Server line writes the IP and port to be connected; note: be sure to bring the port.
C.Name is to write the name or function of this host.
d. Click "OK", return to the VNC interface, and double-click to connect.
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.