个人工具
登录
查看“UbuntuHelp:FreeNX Old”的源代码 - Ubuntu中文
UbuntuHelp
讨论
查看源代码
历史
搜索
导航
首页
最近更改
随机页面
页面分类
帮助
编辑
编辑指南
沙盒
新闻动态
字词处理
工具
链入页面
相关更改
特殊页面
页面信息
查看“UbuntuHelp:FreeNX Old”的源代码
来自Ubuntu中文
←
UbuntuHelp:FreeNX Old
跳转至:
导航
,
搜索
因为以下原因,你没有权限编辑本页:
您所请求的操作仅限于该用户组的用户使用:
用户
您可以查看与复制此页面的源代码。
{{From|https://help.ubuntu.com/community/FreeNX_Old}} {{Languages|UbuntuHelp:FreeNX_Old}} == What is FreeNX == [http://freenx.berlios.de FreeNX] is a system that allows you to access your desktop from another machine over the internet. You can use this to login graphically to your desktop from a remote location. One example of its use would be to have a [[UbuntuHelp:FreeNX|FreeNX]] server set up on your home computer, and graphically logging in to the home computer from your work computer, using a [[UbuntuHelp:FreeNX|FreeNX]] client. It's Open Source, secure (SSH based), fast and versatile! '''Note:''' At present [[UbuntuHelp:FreeNX|FreeNX]] is limited to desktops where both local and remote machines are running Linux/Unix. Running [[UbuntuHelp:FreeNX|FreeNX]] as server on Ubuntu with the free "NX Client for Windows" from [http://www.nomachine.com/select-package-client.php NoMachine] on a Windows workstation is working fine. === Terminology === The ''Server'' is the computer you want to connect to. This is the computer where the [[UbuntuHelp:FreeNX|FreeNX]] server will need to be installed. The name of the Ubuntu package providing the server is "freenx". For the example used here, the home computer is the server. The ''Client'' is the computer from which you want to be able to access the ''Server''. The name of the Ubuntu package providing the client is "nxclient". For the example used here, the work computer is the client. == Installation == === Installing the FreeNX server === We will be installing the [[UbuntuHelp:FreeNX|FreeNX]] server on the ''Server'' machine, i.e., the machine that you want to access remotely. In the stated example, this is your computer that is at home. Open your aptitude sources list and append the two lines for the repository. <pre><nowiki> gksudo gedit /etc/apt/sources.list </nowiki></pre> For Ubuntu 5.10 and 6.06, they are: <pre><nowiki> deb http://mirror.ubuntulinux.nl/ dapper-seveas freenx deb-src hhttp://mirror.ubuntulinux.nl/ dapper-seveas freenx </nowiki></pre> For Ubuntu 7.04, they are: <pre><nowiki> deb http://mirror.ubuntulinux.nl/ feisty-seveas freenx deb-src http://mirror.ubuntulinux.nl/ feisty-seveas freenx </nowiki></pre> For Ubuntu 8.04 and 8.10 you could find the necessary information at [https://launchpad.net/~freenx-team/+archive/]. Save and then close. For old releases you also have to add the GPG key: <pre><nowiki> wget http://mirror.ubuntulinux.nl/seveas.gpg -O- | sudo apt-key add - </nowiki></pre> Then Update Apt <pre><nowiki> sudo apt-get update </nowiki></pre> After you add the repository, then install the <code><nowiki>freenx</nowiki></code> package. <pre><nowiki> sudo aptitude install freenx </nowiki></pre> (Using aptitude to install extra needed packages) [Note: You can manually perform the setup with: sudo nxsetup --install --setup-nomachine-key] During installation you will be given the option to select NoMachine keys, or custom keys. It is best to select NoMachine keys. ''For the paranoid: there is an added security risk involved in using the default keys. If you keep the default keys then everybody will be able to connect to your SSH server as the NX user which is added to your system during the installation. This opens an additional (and unnecessary) opportunity to attack your computer. You could avoid it by using custom SSH keys, as explained later. '' On the server, add your user to nxserver <pre><nowiki> sudo nxserver --adduser <username> sudo nxserver --passwd <username> sudo nxserver --restart</nowiki></pre> [Note: I don't know if this is still needed, but it helps - JeremySchroeder] === Installing the NX Client === <pre><nowiki> sudo aptitude install nxclient </nowiki></pre> You should be able to access your Ubuntu box from any Windows or Linux box using the free client from [http://www.nomachine.com/download_product.php?Prod_Id=57 NoMachine's website]. You can also embed your NX Server in a webpage by installing the Nomachine Web Companion and the Apache webserver. (!) Note on nomachine web site there is new version off nxclient version 2.0 and it don't work with freenx so you should better use nxclient from [http://mirror.ubuntulinux.nl/ Seveas' Packages]! Now you can execute the installed client using the following command: <pre><nowiki> /usr/NX/bin/nxclient &</nowiki></pre> Or by looking it up in the menu This will start the NX client in a GUI, and step you through getting connected to the [[UbuntuHelp:FreeNX|FreeNX]] server, and you will be on your way! [Note: If you are behind a firewall you may need to enable SSL encryption under the Advanced configuration tab - JeremySchroeder] [http://www.nomachine.com/ar/view.php?ar_id=AR07D00407 Useful Resource for installing client on 64-bit Ubuntu] == Miscellany == === Ubuntu 8.04 LTS: Adjust Font Directory === If the nxclient just exits after successful Authentication, it might be, that you have to adjust the position of the X Font Paths: Edit /etc/nxserver/node.conf <pre><nowiki> sudoedit /etc/nxserver/node.conf </nowiki></pre> Find the following line (around line 371): <pre><nowiki> #AGENT_EXTRA_OPTIONS_X="" </nowiki></pre> And change it to: <pre><nowiki> AGENT_EXTRA_OPTIONS_X="-fp /usr/share/fonts/X11/misc:/usr/share/X11/fonts/cyrillic:/usr/share/fonts/X11/Type1:/usr/share/X11/fonts/CID:/usr/share/fonts/X11/100dpi:/usr/share/fonts/X11/75dpi:/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType:/var/lib/defoma/x-ttcidfont-conf.d/dirs/CID" </nowiki></pre> === FreeNX on PowerPC === There are no precompiled binaries of [[UbuntuHelp:FreeNX|FreeNX]] on this platform, so [[UbuntuHelp:FreeNX|FreeNX]] have to be compiled from source. Sources for breezy can be found at SeveasPackages These steps will build [[UbuntuHelp:FreeNX|FreeNX]] from source: <ol><li>Create a directory to hold the [[UbuntuHelp:FreeNX|FreeNX]] source, and cd into it. <pre><nowiki> mkdir freenxSource; cd freenxSource</nowiki></pre> </li><li>Build the freenx pacakges and install related packages. <pre><nowiki> sudo apt-get build-dep nx freenx apt-get -b source nx freenx</nowiki></pre> This will download the souce tarballs and build the freenx packages (*.deb) in the current directory. </li><li>Install the [[UbuntuHelp:FreeNX|FreeNX]] packages. <pre><nowiki> sudo dpkg -i *.deb</nowiki></pre> </li><li>If dpkg complains about missing packages, let apt fix it <pre><nowiki> sudo apt-get -f install sudo dpkg -i *.deb</nowiki></pre></li></ol> === FreeNX on 64bit === [[UbuntuHelp:FreeNX|FreeNX]] is not 64-bit safe, so you will have to build a 32-bit chroot. === How to start/stop FreeNX === The [[UbuntuHelp:FreeNX|FreeNX]] server is not a service but uses ssh. The following command will stop the [[UbuntuHelp:FreeNX|FreeNX]] program from accepting connections. <pre><nowiki> sudo nxserver --stop </nowiki></pre> (Replace --stop by --start for starting it again) === Configuring SSH port === By default, nxserver uses port 22 for communicating over SSH. On some machines or networks, port 22 may be blocked; some Internet providers block port 22, for instance. Port 22 is also a common target of people trying to crack into a network. To make the SSH server listen on port 8888, you can do the following: Edit the file /etc/ssh/sshd_config <pre><nowiki> gksudo gedit /etc/ssh/sshd_config </nowiki></pre> Find <pre><nowiki> Port 22</nowiki></pre> and change it to <pre><nowiki> Port 8888</nowiki></pre> You then need to restart SSHD. Try <pre><nowiki> /etc/init.d/ssh restart</nowiki></pre> Edit the file /etc/nxserver/node.conf <pre><nowiki> gksudo gedit /etc/nxserver/node.conf </nowiki></pre> Find <pre><nowiki> # The port number where local 'sshd' is listening. #SSHD_PORT=22 </nowiki></pre> and change it to: <pre><nowiki> # The port number where local 'sshd' is listening. SSHD_PORT=8888 </nowiki></pre> That is, change the port number to the one that sshd is listening to, and uncomment the line. === Using custom SSH keys === /!\ This is NOT supported by the [[UbuntuHelp:FreeNX|FreeNX]] developers - only do this if you have no other option <ol><li>Generate the DSA private-public key pair. <pre><nowiki> ssh-keygen -t dsa</nowiki></pre> By default this key is places in ~/.ssh/id-dsa. You can leave the passphrase empty, this will not pose a security risk. </li><li>Install the public key in the [[UbuntuHelp:FreeNX|FreeNX]] serving machine. The key should be placed in the file authorized_keys2 in the .ssh dir of the user named nx. <pre><nowiki> cat ~/.ssh/id_dsa.pub | sudo -u nx tee -a ~nx/.ssh/authorized_keys2</nowiki></pre> </li><li>Install the private key in the NX client software. When creating a session, press the button labeled "Key" and select your new key in the window that pops up.</li></ol> == References == * [http://en.wikipedia.org/wiki/FreeNX FreeNX on Wikipedia] * [http://freenx.berlios.de/ FreeNX project page on BerliOS] * [https://launchpad.net/~freenx-team/+archive/ FreeNX Team PPA] An up-to-date repository from the [[UbuntuHelp:FreeNX|FreeNX]] Team, for Ubuntu 8.04 (Hardy) and 8.10 (Intrepid) * [http://mirror.ubuntulinux.nl/ Seveas' Packages] [[UbuntuHelp:FreeNX|FreeNX]] old repository * [http://ubuntuforums.org/showthread.php?t=467219 Ubuntu Forums HowTo FreeNx] ''How to remote desktop using SSH and [[UbuntuHelp:FreeNX|FreeNX]] - OpenGL Seveas Repositories'' === Related docs === You can also have a look at the article about installing the [[UbuntuHelp:NomachineNX||NX packages provided by NoMachine company]] ---- [[category:CategoryInternet]] [[category:CategoryNetworking]] [[category:UbuntuHelp]]
该页面使用的模板:
模板:From
(
查看源代码
)
模板:Languages
(
查看源代码
)(受保护)
模板:Languages/Lang
(
查看源代码
)(受保护)
返回至
UbuntuHelp:FreeNX Old
。