Graphical interface remote login, detailed installation and use of freeNX Based on NX Technology

Source: Internet
Author: User
Graphical interface remote login, detailed installation and use of freeNX Based on NX technology-Linux Enterprise Application-Linux server application information. The following is a detailed description. Because I want to enable all the students to use the Ubuntu8 host in the lab, but weka and matlab must be logged on to the graphic interface, the text ssh should be abandoned first, considering that VNC is not used for security and speed, xmanager settings are easy to use, but the speed is very slow.

Finally, the NX Technology of nomachine is locked, and the free nx free edition provided by the company only allows two users to log on (unless they spend money to buy it ), for details, refer to this brother's post "Remote Desktop Connection-install and use nomachine NX free edition. (Not freeNX) "http://forum.ubuntu.org.cn/viewtopic.php? T = 98089

In this post, I want to talk about the free freeNX installation and use. Currently, the freeNX homepage does not support U8, and it cannot be installed on U7, some minor errors in the configuration file need to be modified by the user before they can be used normally. Most of the content is based on some solutions found in the online forum, but sometimes there are login problems, and I modified some of them myself.

Of course, there is a premise: the server must be able to log on through ssh normally

Open the terminal and run

Sudo gedit/etc/apt/sources. list

Add the freeNX source. I have tried other sources provided on the Internet. I only have this source to connect.

Deb http://mirror.ubuntulinux.nl feisty-seveas freenx
The deb-src http://mirror.ubuntulinux.nl feisty-seveas freenx

Download and install the GPG key

Wget http://mirror.ubuntulinux.nl/seveas.gpg
Sudo apt-key add seveas. gpg

Update and install freeNX

Sudo apt-get update
Sudo apt-get install freenx

The installation is complete, but some modifications are required for normal use, mainly because the font file location of the new system has changed.

Gedit/usr/lib/nx/nxloadconfig

Open, which is about 266 rows. The original file is:

[-Z "$ APPLICATION_LIBRARY_PRELOAD"] & APPLICATION_LIBRARY_PRELOAD = "$ APPLICATION_LIBRARY_PATH/libX11-nx.so.6.2: $ APPLICATION_LIBRARY_PATH/libXext-nx.so.6.4: $ APPLICATION_LIBRARY_PATH/libXcomp. so: $ APPLICATION_LIBRARY_PATH/libXcompext. so.1: $ APPLICATION_LIBRARY_PATH/libXrender-nx.so.1.2"

Replace it with (so many are actually a line of content ):

[-Z "$ APPLICATION_LIBRARY_PRELOAD"] & APPLICATION_LIBRARY_PRELOAD = "$ APPLICATION_LIBRARY_PATH/libX11-nx.so.6.2: $ APPLICATION_LIBRARY_PATH/libXext-nx.so.6.4: $ APPLICATION_LIBRARY_PATH/libXcomp. so: $ APPLICATION_LIBRARY_PATH/libXcompext. so: $ APPLICATION_LIBRARY_PATH/libXrender-nx.so.1.2"

Or the first line of this file. The original file is:

AGENT_EXTRA_OPTIONS_X = "-fp/usr/share/X11/fonts/misc:/usr/share/X11/fonts/cyrillic:/usr/share/X11/fonts/Type1: /usr/share/X11/fonts/CID:/usr/share/X11/fonts/100 dpi:/usr/share/X11/fonts/75 dpi: /var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType:/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID"

Replace it with (Note:-fp is followed by a space ):

AGENT_EXTRA_OPTIONS_X = "-fp/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1 /, /usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100 dpi"

Open another file.

Gedit/etc/nxserver/node. conf

Add a space after the file (Note:-fp ):

AGENT_EXTRA_OPTIONS_X = "-fp/usr/share/fonts/X11/misc/,/usr/share/fonts/X11/Type1 /, /usr/share/fonts/X11/75dpi/,/usr/share/fonts/X11/100 dpi"

After installation, run the following command to test the NX Server:

Current status:
Nxserver -- status

Restart:
Nxserver -- restart

However, I found that users can log in and use it without adding them to the NX userlist.

(Later I checked the information and found that the new version of freenx was verified using PAM. As long as the user can log on to ssh, It is very convenient to add the user to the freenx database .)

For the Linux client, you can install it from the source mentioned above:

Sudo apt-get install nxclient

Winxp client above, I use nomachine out, free, download http://www.nomachine.com/download-client-windows.php here

Download and install nxclient-3.2.0-10.exe: Enter the session item as needed. The host is 218.192.168.15, the default port is 22, and the network connection mode is Lan. Next, select Unix-GNOM and set the following expected resolution, for example, 1024*768, by default, the next step is configured. To make the display speed faster, set all available memory in configure-advanced-cache to the maximum.

Enter the user name and password to log on. The password is fast and secure. It is applicable to scenarios where multiple users need to share xwindow.

The most frequently asked connection questions on the Internet:

When the xp end cannot be connected, a message such as "freenx -- status =" suincluded, running "may be displayed. I solve this problem.

Delete C: \ Program Files \ NX Client for Windows \ share \ keys \ server. id_dsa.key on the xp end so that you can log on.

If you still cannot log on, copy the server/var/lib/nxserver/home /. ssh/client. id-dsa.key to xp end C: \ Program Files \ NX Client for Windows \ share \ keys inside try?

However, the key verification settings should be in the two configuration files mentioned above. The system provides several verification methods, and the key is one of them. You can explore it.
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.