Install FreeNXServer in Ubuntu and install NXClient in WinXP to remotely control Ubuntu

Source: Internet
Author: User
Tags connection reset
1. Install FreeNXServer on Ubuntu to install Ubuntu: 10.04.3LTS install OpenSSH: sudorm/etc/ssh/ssh_host_dsa_key * sudorm/etc/ssh/ssh_host_rsa_key * sudoapt-getinstallopenssh-serveropenssh-client installation 1. Install FreeNX Server on Ubuntu
  • Install Ubuntu: 10.04.3 LTS
  • Install OpenSSH:

Sudo rm/etc/ssh/ssh_host_dsa_key *

Sudo rm/etc/ssh/ssh_host_rsa_key *

Sudo apt-get install openssh-server openssh-client

After the installation is complete, you can use the ssh localhost command to test whether ssh logon is enabled. If the Connection reset by Peer error is always reported, delete all certificates of/etc/ssh/ssh_host_dsa_key * and/etc/ssh/ssh_host_rsa_key, reinstall openssh-server and try again.


  • Install FreeNX Server: Use FreeNX instead of the native version of NX Server, mainly because the latter has a limit of 2 connections. The former has no such limit.
Refer to the steps in the following article: https://help.ubuntu.com/community/FreeNX
sudo add-apt-repository ppa:freenx-team sudo apt-get update sudo apt-get install freenx
  • Install and execute the nxsetup script

wget https://bugs.launchpad.net/freenx-server/+bug/576359/+attachment/1378450/+files/nxsetup.tar.gz 
tar -xvf nxsetup.tar.gz
sudo cp nxsetup /usr/lib/nx/nxsetup
sudo /usr/lib/nx/nxsetup --install

  • Check the running status of FreeNX Server:

$ Which nxserver -->/usr/bin/nxserver

$ Sudo/usr/bin/nxserver -- status
NX> 100 NXSERVER-Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
NX> 110 NX Server is running
NX & gt; 999 Bye


  • Add the user that requires remote logon to the NX Server:

Sudo nxserver -- useradd/adduser

Sudo nxserver -- userlist/listuser


  • Generate a new M keys:

Sudo rm/var/lib/nxserver/home/. ssh/server. id_dsa.pub.key
Sudo rm/var/lib/nxserver/home/. ssh/client. id_dsa.key

Sudo rm/var/lib/nxserver/home/. ssh/authorized_keys2


Sudo/usr/lib/nx/nxkeygen

Check whether the above files are newly generated.


  • Restart NX Server

Sudo/usr/bin/nxserver -- restart

========================================================== ==========

  • Install NX Client: use the native version Client of NoMachine. It is said that the effect is better than other derivative versions.

Download the latest NX Client installer from http://www.nomachine.com/select-package-client.php and execute:

Sudo dpkg-I nxclient_3.5.0-7_i386.deb

  • Run NX Client
    /usr/NX/bin/nxclient &

  • Configure NX Client: refer to the configuration of Windows NX Client.

Ii. WinXP Remote Control Ubuntu through NX Client:
  • Download install Windows version of NX Client: http://www.nomachine.com/download-package.php? Prod_Id = 1, 3655
  • Run NX Connection Wizard for configuration:
1. Copy the private Key from the following files on the server (Ubuntu) and paste it into the DSA Key dialog box, as shown in:
# Less/var/lib/nxserver/home/. ssh/ Client. id_dsa.keys


2. If an error such as "Verification Failed" occurs during login, try to add the following content in/etc/ssh/sshd_config:

  • AuthorizedKeysFile/var/lib/nxserver/home/. ssh/authorized_keys2
  • AllowUsers
  • # AllowUsers root
  • AllowUsers nx
3. restart the SSH service: sudo/etc/init. d/ssh restart
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.