When using Linux VPs, many people are not used to managing servers through SSH command lines. people prefer to remotely use images like remote desktop in windows.ProgramHowever, such a program does not exist in Linux.
There must be some solutions. There is a software called VNC that can achieve remote graphic management!
The following describes how to install the KDE or GNOME desktop environment and VNC! You only need to run the following command on SSH:CodeYou can!
Test environment: burstnet VPs 512 m
Note: VNC requires MB or more memory!
1. Install KDE
Yum install kdepim
Or install gnome (MB or more memory can be installed on both)
Yum groupinstall gnome-Desktop
Yum install gnome-session
Gnome is recommended for memory usage!
Run again
Yum groupinstall "X Window System" "GNOME desktop environment" "KDE (K desktop environment )"
2. Install VNC
Yum-y install VNC-server Firefox x11-xorg
Yum-y install fonts-Chinese
3. Configure and run the following code:
Vncserver
After running, you will be prompted to set the password. You need to enter the password twice. After setting your password, the program will create a. VNC Directory, which is usually/root/. VNC
Kill the VNC process and delete the temporary sockets.
Pkill-9 VNC
Rm-RF/tmp/. X1 *
Edit/root/. VNC/xstartup. In VI, press a to edit. ESC to exit the edit mode. After WQ is saved, exit!
VI/root/. VNC/xstartup
Will not use Vi? See Common VI commands.
In the last line, set TWM
Change KDE to startkde.
Change gnome to gnome-session.
4. Restart vncserver
Vncserver