Skip to content

How do i connect remotely Linux desktop through windows using NX machine

Very bore when i connect linux terminal session  through telnet. I need to see linux desktop also , so I just configured and Here i’m go to show How can we connect remotely linux desktop through by windows usins NX machine.

Requirements :

Download NX machine software

Check your Linux x86 or x86_64, Mine x86 So I just downloaded linux NX server edition from here

http://www.nomachine.com/download-package.php?Prod_Id=2248

You need to download  ” Client, Node, Server ”

& then if you want linux desktop from Windows, you must install ‘Client NX Software for Windows ”

http://www.nomachine.com/download-client-windows.php

Now Let’s Start Installation Process.

Go Linux Machine

Copied RPM packages from USB Drive or where downloaded rpm copy avilable.

Install RPM copy like below


[root@azardb tmp]# ls
gconfd-root            nxclient-3.4.0-7.i386.rpm   ssh-TxRrrm2695
gedit.root.1943051511  nxnode-3.4.0-14.i386.rpm    VBoxLinuxAdditions-x86.run
keyring-hSXRFi         nxserver-3.4.0-14.i386.rpm  virtual-root.wx4sy5
mapping-root           orbit-root
[root@azardb tmp]# rpm -Uvh nxclient-3.4.0-7.i386.rpm
Preparing...                ########################################### [100%]
   1:nxclient               ########################################### [100%]
Showing file: /usr/NX/share/documents/client/cups-info

 CUPS Printing Backend

 The NX Client set-up procedure detected that your "IPP CUPS" printing
 backend doesn't allow printing from the NX session. In order to have
 printing support in your NX system, you need to set proper permissions
 on the IPP backend. Please execute:

   chmod 755 /usr/lib/cups/backend/ipp
[root@azardb tmp]# chmod 755 /usr/lib/cups/backend/ipp
[root@azardb tmp]# rpm -Uvh nxnode-3.4.0-14.i386.rpm
Preparing...                ########################################### [100%]
   1:nxnode                 ########################################### [100%]
NX> 700 Starting: install node operation at: Tue Jan 04 03:57:35 2011.
NX> 700 Autodetected system 'redhat'.
NX> 700 Install log is '/usr/NX/var/log/install'.
NX> 700 Creating configuration in /usr/NX/etc/node.cfg.
NX> 700 Inspecting local CUPS environment.
NX> 700 Generating CUPS entries in: /usr/NX/etc/node.cfg.
NX> 700 Installation of version: 3.4.0-14 completed.
NX> 700 Bye.

[root@azardb tmp]# rpm -Uvh nxserver-3.4.0-14.i386.rpm
Preparing...                ########################################### [100%]
   1:nxserver               ########################################### [100%]
NX> 700 Installing: server at: Tue Jan 04 03:57:57 2011.
NX> 700 Autodetected system: redhat.
NX> 700 Install log is: /usr/NX/var/log/install.
NX> 700 Creating configuration file: /usr/NX/etc/server.cfg.
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 700 Version '3.4.0-14' installation completed.
NX> 700 Showing file: /usr/NX/share/documents/server/install-notices

Server keys

The initial login between client and server happens through a DSA key
pair, i.e. a couple of specially generated cryptographic keys, called
the private key and the public key, which allow you to establish a
secure connection, by means of SSL encryption, between NX client and
NX server.

..... Blah Blah blah

Documentation

For further information on how to manage the configuration of your
NX system, please refer to the System Administrator's Guide available
on the NoMachine Web site at:

http://www.nomachine.com/documentation/admin-guide.php

The NoMachine Team.
NX> 700 Bye.

After Installed

We need to check SSH Key generation .


http://www.nomachine.com/ar/view.php?ar_id=AR01C00126

 [root@azardb ~]# cat  /usr/NX/home/nx/.ssh/default.id_dsa.pub
no-port-forwarding,no-agent-forwarding,command="/usr/NX/bin/nxserver --login" ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8=
[root@azardb ~]#

And also Give NX permission for this file.


[root@azardb ~]# chown nx:root /usr/NX/home/nx/.ssh/authorized_keys2
[root@azardb ~]# chmod 0644 /usr/NX/home/nx/.ssh/authorized_keys2

[root@azardb ~]# chown nx:root /usr/NX/home/nx/.ssh/default.id_dsa.pub
[root@azardb ~]# chmod 0644 /usr/NX/home/nx/.ssh/default.id_dsa.pub

Now Install NX Windows client for Windows

Double Click *.exe file, I just showing some screenshots here

After Installed , Go to Start –> NX client for Windows –> Click NX Connection Wizard

 Session Name : Put any name

Hostname : linux machine hostname or ipaddress. Default port 22

Select Internet connection type also Like LAN, WAN


 

 

 Now Client software also successfully installed, But if you’re trying to login, It should show error.

You must copy SSH generation key from linux machine to Windows machine


[root@azardb ~]# cat  /usr/NX/home/nx/.ssh/default.id_dsa.pub

no-port-forwarding,no-agent-forwarding,command="/usr/NX/bin/nxserver --login" ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8=

Copy this Key, and paste it in your windows machine, Where ?


C:\Program Files\NX Client for Windows\share\keys\server.id_dsa

Replace old key Adn save with new key.
 

Now You can go to login As Root user & password but before login as Root user, you need to add some lines in linux machine, Otherwise you can get error like  “User ‘root’ cannot be used as an NX user”


[root@azardb ~]# gedit /usr/NX/etc/server.cfg

EnableAdministratorLogin = "1"

And restart Nxserver[root@azardb ~]# /etc/init.d/nxserver restart
Trying to restart NX server:
NX> 123 Service stopped.
NX> 153 Stopping NX server monitor.
NX> 153 NX server monitor already stopped.
NX> 122 Service started.
NX> 999 Bye.
Trying to restart NX statistics:
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 999 Bye.
[root@azardb ~]#

Now You can Successully login as a Root user through windows and Linux Desktop should be appear in your windows Desktop.

4 Comments Post a comment
  1. Well done Azar. I will implement using you tutorial.

    January 4, 2011
  2. xyzj #

    Good! NX is very very simple and save-time tool!! You can also use ssh with -X options or same putty directive. Or forward vnc port that also make insecure vnc connection instantly secure…

    January 5, 2011
  3. shabeer #

    Thanks very much azad. I done using tis tutorial

    Thanks,
    shabeer

    August 18, 2011

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: