特殊:Badtitle/NS100:NomachineNX:修订间差异
小无编辑摘要 |
小无编辑摘要 |
||
第2行: | 第2行: | ||
{{Languages|UbuntuHelp:NomachineNX}} | {{Languages|UbuntuHelp:NomachineNX}} | ||
Beware that the following packages are not free but if you're facing problems with the freeNX packages, it may be a good solution: | Beware that the following packages are not free but if you're facing problems with the freeNX packages, it may be a good solution: | ||
Setting up Nomachine NX packages on Ubuntu is now quite easy: | |||
=== Server === | |||
<ol><li>Launch Ubuntu desktop or the server edition and install ubuntu-desktop <pre><nowiki> | |||
sudo aptitude install ubuntu-desktop | |||
</nowiki></pre> | |||
</li><li>Download the Nomachine NX packages for Ubuntu (http://www.nomachine.com/download)</li></ol> | |||
./nxnode --keyadd | (versions as of 2010-01-22) <pre><nowiki> | ||
wget http://64.34.161.181/download/3.4.0/Linux/nxclient_3.4.0-5_i386.deb | |||
wget http://64.34.161.181/download/3.4.0/Linux/nxnode_3.4.0-6_i386.deb | |||
wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver_3.4.0-8_i386.deb | |||
</nowiki></pre> | |||
<ol><li>Install the packages in this order: client, node, server | |||
</li><li>Import localhost key <pre><nowiki> | |||
sudo cp /usr/NX/etc/keys/node.localhost.id_dsa.pub \ | |||
/tmp/node.localhost.id_dsa.pub.save | |||
</nowiki></pre></li></ol> | |||
<pre><nowiki> | |||
sudo /usr/NX/bin/nxnode --keyadd /tmp/node.localhost.id_dsa.pub.save | |||
</nowiki></pre> | |||
(Caveat: Don't directly import the file /usr/NX/etc/keys/node.localhost.id_dsa.pub. First copy it, otherwise it will be deleted after the importation). | (Caveat: Don't directly import the file /usr/NX/etc/keys/node.localhost.id_dsa.pub. First copy it, otherwise it will be deleted after the importation). | ||
<ol><li>Regenerate new SSH key for NX user as the default is common for all others <pre><nowiki> | |||
sudo /usr/NX/bin/nxserver --keygen | |||
</nowiki></pre> | |||
</li><li>Change the owner of the nx user public key on the server <pre><nowiki> | |||
sudo chown nx:root /usr/NX/home/nx/.ssh/authorized_keys2 | |||
</nowiki></pre> | |||
<ol><li>If you are going to use it with e.g. [http://aws.amazon.com/ec2 Amazon ec2], then NX's hard link between authorized_keys2 and the default.id_dsa.key will create problems when bundling AMIs. <pre><nowiki> | |||
sudo cp /usr/NX/home/nx/.ssh/authorized_keys2 \ | |||
/usr/NX/home/nx/.ssh/authorized_keys2.tmp | |||
sudo rm /usr/NX/home/nx/.ssh/authorized_keys2 | |||
sudo cp /usr/NX/home/nx/.ssh/authorized_keys2.tmp \ | |||
/usr/NX/home/nx/.ssh/authorized_keys2 | |||
</nowiki></pre> | |||
</li><li>Check that the name conforms to the filename given in the /etc/ssh/sshd_config file. With the default Ubuntu SSH setting this is not neccessary, but someone might have changed it to e.g.: <code><nowiki>authorized_keys</nowiki></code> <pre><nowiki> | |||
-- sudo chmod 0644 /usr/NX/home/nx/.ssh/authorized_keys2 -- | |||
-- sudo mv /usr/NX/home/nx/.ssh/authorized_keys2 \ | |||
/usr/NX/home/nx/.ssh/authorized_keys -- | |||
</nowiki></pre> | |||
</li></ol></li><li>Editing SSH configuration:<pre><nowiki> | |||
sudo vi /etc/ssh/sshd_config | |||
</nowiki></pre> | |||
<ol><li>You will need to enable password login into SSH: <pre><nowiki> | |||
PasswordAuthentication yes | |||
UsePam yes | |||
</nowiki></pre> | |||
</li><li>If you have restricted SSH with <code><nowiki>AllowUser</nowiki></code> you need to add <code><nowiki>nx</nowiki></code> to the list: <pre><nowiki> | |||
AllowUser nx ''youruser''' | |||
</nowiki></pre> | |||
</li></ol></li><li>It may be neccessary to remove a line in SSH's your known host file for your user on the server, or remove it all together(reset it): <pre><nowiki> | |||
sudo rm /home/''youruser''/.ssh/known_hosts | |||
</nowiki></pre> | |||
</li><li>Restart services <pre><nowiki> | |||
sudo /etc/init.d/ssh restart | |||
sudo /etc/init.d/nxserver restart | |||
</nowiki></pre> | |||
</li><li>Check if your user will work: <pre><nowiki> | |||
sudo /usr/NX/bin/nxserver --usercheck ''youruser'' | |||
</nowiki></pre></li></ol> | |||
/usr/NX/share/keys/default.id_dsa.key | === Client === | ||
<ol><li>Install the client on your local machine. | |||
</li><li>Start it either via <code><nowiki>Applications/Internet/NX Client for Linux/NX Connection Wizard</nowiki></code> or via cmd line; <pre><nowiki> | |||
/usr/NX/bin/nxclient --wizard & | |||
</nowiki></pre> | |||
</li><li>Enter the hostname and so on till you get prompted for login. | |||
</li><li>Enter your username and password. | |||
</li><li>Import the new nx key by: | |||
<ol><li>Downloading the new DSA key from the server:<pre><nowiki> | |||
scp ''SERVERNAME'':/usr/NX/share/keys/default.id_dsa.key \ | |||
''SERVERNAME''.id_dsa.key | |||
</nowiki></pre> | |||
</li><li>Then click on ''Configure...'', then ''Key'' under ''General'' and then on ''Import''. | |||
</li><li>Find the file <code><nowiki>''SERVERNAME''.id_dsa.key</nowiki></code> and click save, save then Ok. | |||
</li></ol></li><li>Login should now hopefully work....</li></ol> | |||
References: | |||
* http://soniahamilton.wordpress.com/2008/01/29/howto-setup-nomachinenx-on-ubuntu/ | |||
* http://alestic.com/2009/11/ec2-karmic-desktop | |||
[[category:UbuntuHelp]] | [[category:UbuntuHelp]] |
2010年5月19日 (三) 23:45的最新版本
文章出处: |
{{#if: | {{{2}}} | https://help.ubuntu.com/community/NomachineNX }} |
点击翻译: |
English {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/af | • {{#if: UbuntuHelp:NomachineNX|Afrikaans| [[::NomachineNX/af|Afrikaans]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/ar | • {{#if: UbuntuHelp:NomachineNX|العربية| [[::NomachineNX/ar|العربية]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/az | • {{#if: UbuntuHelp:NomachineNX|azərbaycanca| [[::NomachineNX/az|azərbaycanca]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/bcc | • {{#if: UbuntuHelp:NomachineNX|جهلسری بلوچی| [[::NomachineNX/bcc|جهلسری بلوچی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/bg | • {{#if: UbuntuHelp:NomachineNX|български| [[::NomachineNX/bg|български]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/br | • {{#if: UbuntuHelp:NomachineNX|brezhoneg| [[::NomachineNX/br|brezhoneg]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/ca | • {{#if: UbuntuHelp:NomachineNX|català| [[::NomachineNX/ca|català]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/cs | • {{#if: UbuntuHelp:NomachineNX|čeština| [[::NomachineNX/cs|čeština]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/de | • {{#if: UbuntuHelp:NomachineNX|Deutsch| [[::NomachineNX/de|Deutsch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/el | • {{#if: UbuntuHelp:NomachineNX|Ελληνικά| [[::NomachineNX/el|Ελληνικά]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/es | • {{#if: UbuntuHelp:NomachineNX|español| [[::NomachineNX/es|español]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/fa | • {{#if: UbuntuHelp:NomachineNX|فارسی| [[::NomachineNX/fa|فارسی]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/fi | • {{#if: UbuntuHelp:NomachineNX|suomi| [[::NomachineNX/fi|suomi]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/fr | • {{#if: UbuntuHelp:NomachineNX|français| [[::NomachineNX/fr|français]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/gu | • {{#if: UbuntuHelp:NomachineNX|ગુજરાતી| [[::NomachineNX/gu|ગુજરાતી]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/he | • {{#if: UbuntuHelp:NomachineNX|עברית| [[::NomachineNX/he|עברית]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/hu | • {{#if: UbuntuHelp:NomachineNX|magyar| [[::NomachineNX/hu|magyar]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/id | • {{#if: UbuntuHelp:NomachineNX|Bahasa Indonesia| [[::NomachineNX/id|Bahasa Indonesia]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/it | • {{#if: UbuntuHelp:NomachineNX|italiano| [[::NomachineNX/it|italiano]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/ja | • {{#if: UbuntuHelp:NomachineNX|日本語| [[::NomachineNX/ja|日本語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/ko | • {{#if: UbuntuHelp:NomachineNX|한국어| [[::NomachineNX/ko|한국어]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/ksh | • {{#if: UbuntuHelp:NomachineNX|Ripoarisch| [[::NomachineNX/ksh|Ripoarisch]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/mr | • {{#if: UbuntuHelp:NomachineNX|मराठी| [[::NomachineNX/mr|मराठी]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/ms | • {{#if: UbuntuHelp:NomachineNX|Bahasa Melayu| [[::NomachineNX/ms|Bahasa Melayu]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/nl | • {{#if: UbuntuHelp:NomachineNX|Nederlands| [[::NomachineNX/nl|Nederlands]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/no | • {{#if: UbuntuHelp:NomachineNX|norsk| [[::NomachineNX/no|norsk]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/oc | • {{#if: UbuntuHelp:NomachineNX|occitan| [[::NomachineNX/oc|occitan]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/pl | • {{#if: UbuntuHelp:NomachineNX|polski| [[::NomachineNX/pl|polski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/pt | • {{#if: UbuntuHelp:NomachineNX|português| [[::NomachineNX/pt|português]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/ro | • {{#if: UbuntuHelp:NomachineNX|română| [[::NomachineNX/ro|română]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/ru | • {{#if: UbuntuHelp:NomachineNX|русский| [[::NomachineNX/ru|русский]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/si | • {{#if: UbuntuHelp:NomachineNX|සිංහල| [[::NomachineNX/si|සිංහල]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/sq | • {{#if: UbuntuHelp:NomachineNX|shqip| [[::NomachineNX/sq|shqip]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/sr | • {{#if: UbuntuHelp:NomachineNX|српски / srpski| [[::NomachineNX/sr|српски / srpski]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/sv | • {{#if: UbuntuHelp:NomachineNX|svenska| [[::NomachineNX/sv|svenska]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/th | • {{#if: UbuntuHelp:NomachineNX|ไทย| [[::NomachineNX/th|ไทย]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/tr | • {{#if: UbuntuHelp:NomachineNX|Türkçe| [[::NomachineNX/tr|Türkçe]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/vi | • {{#if: UbuntuHelp:NomachineNX|Tiếng Việt| [[::NomachineNX/vi|Tiếng Việt]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/yue | • {{#if: UbuntuHelp:NomachineNX|粵語| [[::NomachineNX/yue|粵語]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/zh | • {{#if: UbuntuHelp:NomachineNX|中文| [[::NomachineNX/zh|中文]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/zh-hans | • {{#if: UbuntuHelp:NomachineNX|中文(简体)| [[::NomachineNX/zh-hans|中文(简体)]]}}|}} {{#ifexist: {{#if: UbuntuHelp:NomachineNX | UbuntuHelp:NomachineNX | {{#if: | :}}NomachineNX}}/zh-hant | • {{#if: UbuntuHelp:NomachineNX|中文(繁體)| [[::NomachineNX/zh-hant|中文(繁體)]]}}|}} |
{{#ifeq:UbuntuHelp:NomachineNX|:NomachineNX|请不要直接编辑翻译本页,本页将定期与来源同步。}} |
{{#ifexist: :NomachineNX/zh | | {{#ifexist: NomachineNX/zh | | {{#ifeq: {{#titleparts:NomachineNX|1|-1|}} | zh | | }} }} }} {{#ifeq: {{#titleparts:NomachineNX|1|-1|}} | zh | | }}
Beware that the following packages are not free but if you're facing problems with the freeNX packages, it may be a good solution: Setting up Nomachine NX packages on Ubuntu is now quite easy:
Server
- Launch Ubuntu desktop or the server edition and install ubuntu-desktop
sudo aptitude install ubuntu-desktop
- Download the Nomachine NX packages for Ubuntu (http://www.nomachine.com/download)
(versions as of 2010-01-22)
wget http://64.34.161.181/download/3.4.0/Linux/nxclient_3.4.0-5_i386.deb wget http://64.34.161.181/download/3.4.0/Linux/nxnode_3.4.0-6_i386.deb wget http://64.34.161.181/download/3.4.0/Linux/FE/nxserver_3.4.0-8_i386.deb
- Install the packages in this order: client, node, server
- Import localhost key
sudo cp /usr/NX/etc/keys/node.localhost.id_dsa.pub \ /tmp/node.localhost.id_dsa.pub.save
sudo /usr/NX/bin/nxnode --keyadd /tmp/node.localhost.id_dsa.pub.save
(Caveat: Don't directly import the file /usr/NX/etc/keys/node.localhost.id_dsa.pub. First copy it, otherwise it will be deleted after the importation).
- Regenerate new SSH key for NX user as the default is common for all others
sudo /usr/NX/bin/nxserver --keygen
- Change the owner of the nx user public key on the server
sudo chown nx:root /usr/NX/home/nx/.ssh/authorized_keys2
- If you are going to use it with e.g. Amazon ec2, then NX's hard link between authorized_keys2 and the default.id_dsa.key will create problems when bundling AMIs.
sudo cp /usr/NX/home/nx/.ssh/authorized_keys2 \ /usr/NX/home/nx/.ssh/authorized_keys2.tmp sudo rm /usr/NX/home/nx/.ssh/authorized_keys2 sudo cp /usr/NX/home/nx/.ssh/authorized_keys2.tmp \ /usr/NX/home/nx/.ssh/authorized_keys2
- Check that the name conforms to the filename given in the /etc/ssh/sshd_config file. With the default Ubuntu SSH setting this is not neccessary, but someone might have changed it to e.g.:
authorized_keys
-- sudo chmod 0644 /usr/NX/home/nx/.ssh/authorized_keys2 -- -- sudo mv /usr/NX/home/nx/.ssh/authorized_keys2 \ /usr/NX/home/nx/.ssh/authorized_keys --
- If you are going to use it with e.g. Amazon ec2, then NX's hard link between authorized_keys2 and the default.id_dsa.key will create problems when bundling AMIs.
- Editing SSH configuration:
sudo vi /etc/ssh/sshd_config
- You will need to enable password login into SSH:
PasswordAuthentication yes UsePam yes
- If you have restricted SSH with
AllowUser
you need to addnx
to the list:AllowUser nx ''youruser'''
- You will need to enable password login into SSH:
- It may be neccessary to remove a line in SSH's your known host file for your user on the server, or remove it all together(reset it):
sudo rm /home/''youruser''/.ssh/known_hosts
- Restart services
sudo /etc/init.d/ssh restart sudo /etc/init.d/nxserver restart
- Check if your user will work:
sudo /usr/NX/bin/nxserver --usercheck ''youruser''
Client
- Install the client on your local machine.
- Start it either via
Applications/Internet/NX Client for Linux/NX Connection Wizard
or via cmd line;/usr/NX/bin/nxclient --wizard &
- Enter the hostname and so on till you get prompted for login.
- Enter your username and password.
- Import the new nx key by:
- Downloading the new DSA key from the server:
scp ''SERVERNAME'':/usr/NX/share/keys/default.id_dsa.key \ ''SERVERNAME''.id_dsa.key
- Then click on Configure..., then Key under General and then on Import.
- Find the file
''SERVERNAME''.id_dsa.key
and click save, save then Ok.
- Downloading the new DSA key from the server:
- Login should now hopefully work....
References: