Thread: Install guide for NoMachine NX on Lucid 10.4
hi folks, posting quick guide installing nomachine nx client/node/server because found lot of past threads many people confused how this. thread help.
needed setup remote desktop software office computer , after searching around found nomachine nx have features, secure , documentation.
system new install of ubuntu 10.4 lucid 64-bit.
using latest versions of nx client, node , server of august 5, 2010
note: before begin, must install ssh , openssh-server
sudo apt-get install ssh openssh-server
1) edit sshd_config file , replace 1 below
sudo nano /etc/ssh/sshd_config
(note: make sure add username in allowusers variable, make sure nx still there)
2) install client, node , server packages (in particular order)code:# package generated configuration file # see sshd(8) manpage details # ports, ips , protocols listen port 22 # use these options restrict interfaces/protocols sshd bind #listenaddress :: #listenaddress 0.0.0.0 protocol 2 # hostkeys protocol version 2 hostkey /etc/ssh/ssh_host_rsa_key hostkey /etc/ssh/ssh_host_dsa_key #privilege separation turned on security useprivilegeseparation yes # lifetime , size of ephemeral version 1 server key keyregenerationinterval 3600 serverkeybits 768 # logging syslogfacility auth loglevel info # authentication: logingracetime 120 permitrootlogin no allowusers nx myusername strictmodes no rsaauthentication yes pubkeyauthentication yes authorizedkeysfile /usr/nx/home/nx/.ssh/authorized_keys2 #authorizedkeysfile %h/.ssh/authorized_keys # don't read user's ~/.rhosts , ~/.shosts files ignorerhosts yes # work need host keys in /etc/ssh_known_hosts rhostsrsaauthentication no # similar protocol version 2 hostbasedauthentication no # uncomment if don't trust ~/.ssh/known_hosts rhostsrsaauthentication #ignoreuserknownhosts yes # enable empty passwords, change yes (not recommended) permitemptypasswords no # change yes enable challenge-response passwords (beware issues # pam modules , threads) challengeresponseauthentication yes # change no disable tunnelled clear text passwords #passwordauthentication yes passwordauthentication no # kerberos options #kerberosauthentication no #kerberosgetafstoken no #kerberosorlocalpasswd yes #kerberosticketcleanup yes # gssapi options #gssapiauthentication no #gssapicleanupcredentials yes x11forwarding yes x11displayoffset 10 printmotd no printlastlog yes tcpkeepalive yes #uselogin no #maxstartups 10:30:60 #banner /etc/issue.net # allow client pass locale environment variables acceptenv lang lc_* subsystem sftp /usr/lib/openssh/sftp-server usepam yes
http://www.nomachine.com/download-client-linux.php
http://www.nomachine.com/select-pack...?os=linux&id=1
3) edit server config file , enable following
sudo nano /usr/nx/etc/server.cfg
code:enablenodemonitoring = "1" sshdport = "22" enableunencryptedsession = "0" sshdauthport = "22" enablestatistics = "1"
4) edit node config file , enable following
sudo nano /usr/nx/etc/node.cfg
code:enableunencryptedsession = "0" sshauthorizedkeys = "authorized_keys2" sshdport = "22" nodelogingreeting = "welcome nx session"
5) execute installer script
sudo /usr/nx/scripts/setup/nxserver --install debian
6) generate dsa key
sudo /usr/nx/scripts/setup/nxserver --keygen
7) change ownership , permissions file
sudo chown nx:root /usr/nx/home/nx/.ssh/authorized_keys2
sudo chmod 0644 /usr/nx/home/nx/.ssh/authorized_keys2
8) change ownership , permissions file
sudo chown nx:root /usr/nx/home/nx/.ssh/default.id_dsa.pub
sudo chmod 0644 /usr/nx/home/nx/.ssh/default.id_dsa.pub
9) restart sshd
sudo /etc/init.d/ssh restart
10) restart nxserver
sudo /etc/init.d/nxserver restart
run following command , copy dsa key can configure nx client use it.
sudo nano /usr/nx/share/keys/default.id_dsa.key
1) go applications->internet->nx client linux->nx client linux
2) click configure button
3) host: localhost
4) port: 22
5) click key button , replace existing dsa key key copied earlier /usr/nx/share/keys/default.id_dsa.key , press save button.
6) select gnome desktop options if correct
7) click save , ok
can try connect computer see if working.
if so, try connect different computer on lan see if working.
if working locally on computer, not remotely machine on lan, firewall issue. i'm not going explain firewall or router issues because can figured out other threads in forum.
basic commands nx server
list users:
sudo /usr/nx/bin/nxserver --list
start, restart or stop nx server:
sudo /etc/init.d/nxserver start
sudo /etc/init.d/nxserver restart
sudo /etc/init.d/nxserver stop
administration guide:
http://www.nomachine.com/documents/h...min-guide.html
that's it.
hi,
great guide!
wanted add 1 tip. if have open ssh set normal ssh authentication, might not want hardcode nx authorized keys file in sshd_config. can add sym link map keys file nx expects pattern matches existing config. nx user's home dir typically "/usr/nx/home/nx"
so, instance, if using default:
you can set link following nx usercode:authorizedkeysfile %h/.ssh/authorized_keys
this points correct file nx logins, , still allows use ~/.ssh/authorized_keys normal ssh auth.code:sudo ln -s /usr/nx/home/nx/.ssh/authorized_keys2 /usr/nx/home/nx/.ssh/authorized_keys
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Desktop Environments [ubuntu] Install guide for NoMachine NX on Lucid 10.4
Ubuntu
Comments
Post a Comment