Turn: http://www.vpsyou.com/centos-to-install-x-window-gnome-desktop-freenx/
Freenx is a new remote control solution after VNC in recent years. The basic principle is to compress xwindows signals and transmit them to remote clients for display. VNC directly captures screen images for processing and transmission. In this way, freenx can provide a better sense of operation and real-time performance than VNC under the same transmission channel conditions;
In fact, we have never advocated the installation of desktops in Linux, but many customers have asked us to summarize the installation of centos in our VPs.
First, install X Window + GNOME Desktop + freenx
? [Copy to clipboard] view code PHP
12345 |
yum groupinstall "X Window System"yum groupinstall "GNOME Desktop Environment"yum install nc expectyum install freenxyum groupinstall chinese-support |
Second: Configuration
? [Copy to clipboard] view code PHP
1 |
cd /etc/nxserver ; cp node.conf.sample node.conf |
Edit the/etc/ssh/sshd_config file and change/Add the following lines:
? [Copy to clipboard] view code PHP
12 |
Passwordauthentication no # in this case, you will not be able to log on using putty ssh! Allowusers NX Root |
Then start sshd:
? [Copy to clipboard] view code PHP
Edit/etc/nxserver/node. conf
Put:
? [Copy to clipboard] view code PHP
1 |
#ENABLE_PASSDB_AUTHENTICATION="0" |
To:
? [Copy to clipboard] view code PHP
1 |
ENABLE_PASSDB_AUTHENTICATION="1" |
Create a login account, which must be an existing account in Linux:
? [Copy to clipboard] view code PHP
1 |
Nxserver -- adduser myuser # myuser here I use root |
Set the password for this user:
? [Copy to clipboard] view code PHP
1 |
Nxserver -- passwd myuser # myuser here I use root |
Load sshd again:
? [Copy to clipboard] view code PHP
Third: Install the nomachine Client
Download freenx Windows client:
Http: // 64.34.161.181/download/3.4.0/Windows/nxclient-3.4.0-7.exe
Installation, needless to say, right?
Open the NX Connection Wizard,
Session: You can enter
Hostname: your vps ip Address
Port: port 22. Do not change it.
Type of Internet connection: Depending on your network speed
Select UNIX and gnome (which is my default choice)
Size of the desktop: desktop size
Finish
The configuration options for this setting are displayed,:
Click "key ".
Where can we find this DSA key? Continue to see:
Open/etc/nxserver/client. id_dsa.key in SSH, and you must root to open it.
You will see exactly the key you need. Copy the key and paste it to overwrite all the content of the DSA key. Then save and exit.
At this time, an icon will be generated on your desktop with the name of the session you just entered.
Double-click to open, as shown in the following figure:
Enter the username and password and click Login.
Wait a moment and log on successfully:
Fourth: This step is for the solution to the problem of restarting VPs under xen VPs centos on this site. This step is mandatory for users on this site.
After installing X Window + GNOME Desktop + freenx, you must disable SELinux !! After the installation is complete, edit/etc/SELinux/config
SELinux = enforcing
SELinux = disabled
Then restart
I have tested the Feasibility