Last update at :2024-04-27,Edit by888u
Please see the new tutorial:http://www.138vps.com/vpsjc/1001.html
In fact, there is really no need to install these on Linux VPS. Of course, if you want to hang up, it is still necessary to install a desktop. If you want to mess with it, then you need to install it. Well, let's study how to install VNC based on centos 6. Why use centos as the basis? Because we can only use centos.
Generally speaking, those with 256M memory and below are not easy to install on the desktop. It is recommended to install 512M and above memory for better installation experience.
1. Install VNC
1. First install the tigervnc client and execute the following commands.
yum -y install tigervnc
2. Then install the tigervnc-server server and execute the following command.
yum -y install tigervnc-server
2. Install Xfce desktop
1. Execute the following commands in sequence:
wget https://download.Fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
rpm -ivh epel-release-6-8.noarch.rpm
yum search xfce
yum groupinfo xfce
yum groupinstall xfce
If prompted, always enter the letter [y] to confirm. This will download some things and the installation will take a little longer.
3. Start VNC
1. Enter this command to run the VNC service
vncserver
The first time you run it, you will be asked to set the VNC password. Set it yourself. We set it here to [123456]
2. Use winscp to edit the file [/etc/sysconfig/vncservers] and add the following two lines at the end.
VNCSERVERS="1:root"
VNCSERVERARGS[1]="-geometry 800x600"
3. Enter the following command to restart VNC
service vncserver restart
4. Then open our vncviewer, use [Server IP: 1] to log in, and then enter the password we set before. We set it to [123456].
5. If you see a page similar to the one below, congratulations, the installation is not complete yet.
6. Use winscp to edit this file [/root/.vnc/xstartup], delete all the contents inside, and replace it with:
#!/bin/sh
# Uncomment the following two lines for normal desktop:
unset SESSION_MANAGER
#exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid gray
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
startxfce4 &
7. Use the [service vncserver restart] command to restart VNC.
8. Then use the software [vncviewer] to connect to our server. OK, the desktop has come out.
4. Conclusion
Click the second button at the bottom to run commands, such as installing firefox, surfing the Internet, etc.:
Run the following commands in sequence:
yum -y groupinstall chinese-support
yum -y install firefox
Firefox is installed.
Finally, we used AlphaRacks for the demonstration, and we were pleasantly surprised to find that this special machine, which costs $9 per year, can use VNC very smoothly.
That's it, it's over.
Recommended site searches: renting high-defense IP, icp registration query system, US virtual host purchase, expired registered domain name query, Taiwan host, which Hong Kong space is better, registration-free cdn, domain name space purchase, legendary server rental , Chinese domain name
发表评论