In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-17 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains how to share the steps of configuring vnc under centOS5.5. Interested friends may wish to have a look at it. The method introduced in this paper is simple, fast and practical. Now let the editor take you to learn how to share the steps of configuring vnc under centOS5.5.
1. Check to see if vnc is installed on this machine (centOS5 installs vnc by default)
Rpm-Q vnc vnc-server
If the display result is:
Package vnc is not installed
Vnc-server-4.1.2-14.e15_3.1
Congratulations, vnc has been installed on the machine, if not, you have to install it yourself. Let's not talk about how to install it here. It's very simple. Search in centOS's software library and click install.
two。 Add users of remote desktops to the profile
Vi / etc/sysconfig/vncservers
Open the configuration file using the vi editor and add the following two lines of commands to the file
VNCSERVERS= "1:root"-- specify a remote user
VNCSERVERARGS [1] = "- geometry 1024x768"-- specifies the remote desktop resolution
3. Set the password for the remote desktop user root that you just set up
Vncpasswd
4. Open the VNC port
Vi / etc/sysconfig/iptables
Open the configuration file using the vi editor and add the following line of command to the file
-A RH-Firewall-l-INPUT-p tcp-m tcp-- dport 5900 tcp 5903-j ACCEPT
5. Restart the firewall
Service iptables restart
6. Modify the remote desktop display configuration file (without modifying this file, the remote desktop you see is very simple, which is equivalent to a command line operation. For remote operations to be the same as local operations, be sure to refer to the following ways to modify them.)
Cd / .vnc/
Vi xstartup
Open the configuration file using the vi editor and make the following changes
# xterm-geometry 80x24+10+10-ls-title "$VNCDESKTOP Desktop" &-- annotate it, with # for comments
# twm &-- comment it
Gnome-session &-- add it
After reading this code, you should understand what's going on.
7. Start the vnc service
/ sbin/service vncserver start
8. Remote connection
Open the vnc client, enter ip:1 in the server box (1 represents the remote user code configured above, multiple remote users can be configured in the configuration file), and you can easily control centOS through a friendly remote desktop.
9. Power on and start vnc automatically
Vi / etc/rc.d/rc.local
Open the configuration file using the vi editor and make the following changes
/ etc/init.d/vncserver start-- add a line
New ways to use vi editor:
The vi editor is divided into several modes
Command mode: the cursor can be moved, words or lines can be copied or deleted
Insert mode: only in this mode can you enter text (press I key to enter this mode from command mode, press ESC key to exit this mode)
Bottom-line mode: save the file, exit the vi editor (enter: number, followed by w fname-- specified file name save wq-- exit-do not save exit)
At this point, I believe you have a deeper understanding of "sharing the steps of configuring vnc under centOS5.5". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!
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.