Graphical interface remote login install FreeNX based on NX technology

Source: Internet
Author: User
Article title: graphic interface remote logon install FreeNX based on NX technology. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.

Log on to the server using 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/100dpi:/usr/share/X11/fonts/75dpi:/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/100dpi"
           

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/100dpi"
           

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 on 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.

Then, 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.