`
aideehorn
  • 浏览: 261368 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

HOWTO setup Freenx on Fedora

阅读更多

http://fedoranews.org/contributors/rick_stout/freenx/

 

HOWTO setup Freenx on Fedora

by Rick Stout on Sep 15, 2004 (UPDATED 2006-07-13)
Introduction

Ever since I'd heard about NX, i was curious to see how it performed as a remote solution. I signed up for one of NOMACHINE's free test accounts, and was truly amazed by the performance of the connection. So here is the culmination of multiple sites worth of information, trial and error, and pure elbow grease, allowing the community to run Freenx. Once you've started using NX, you'll never go back to VNC.

Prerequisite: sshd must be running as a daemon on port 22 (This can be modified later.)

Let's do this...


The rpm takes care of the installation and setup, so there is no need to run "nxsetup".

Do this if you are running FC5:

# Make sure you are up-to-date
yum update

# Install FreeNX and all dependencies
yum install freenx

#SERVER SETUP IS DONE! The RPM takes care of the required setup.
Do this if you are running FC4 or earlier:

# Make sure you are up-to-date
yum update

# Install NX rpm dependencies
yum install expect nc

# Grab a Freenx package

# Use this package for FC2, FC3, FC4, and xorg based distributions
wget http://fedoranews.org/contributors/rick_stout/freenx/freenx-0.4.4-2.fdr.0.noarch.rpm

# Use this package for FC1, RH9, RHEL3 or XFree86 based distributions
# wget http://fedoranews.org/contributors/rick_stout/freenx/freenx-0.4.4-2.rh.0.noarch.rpm

# Next, grab an nx package

# This package was built on FC4
wget http://fedoranews.org/contributors/rick_stout/freenx/nx-1.5.0-4.FC4.1.i386.rpm

# This package was built on FC3
# wget http://fedoranews.org/contributors/rick_stout/freenx/nx-1.5.0-4.FC3.1.i386.rpm

# This package was built on FC2
# wget http://fedoranews.org/contributors/rick_stout/freenx/nx-1.5.0-4.FC2.1.i386.rpm

# Use this package if you are using FC1, RH9, RHEL3 or a Redhat compatible
# distribution using XFree86
# wget http://fedoranews.org/contributors/rick_stout/freenx/nx-1.5.0-4.FC1.1.i386.rpm


# Source rpm's
# wget http://fedoranews.org/contributors/rick_stout/freenx/freenx-0.4.4-2.fdr.0.src.rpm
# wget http://fedoranews.org/contributors/rick_stout/freenx/freenx-0.4.4-2.rh.0.src.rpm
# wget http://fedoranews.org/contributors/rick_stout/freenx/nx-1.5.0-4.FC4.1.src.rpm
# wget http://fedoranews.org/contributors/rick_stout/freenx/nx-1.5.0-4.FC1.1.src.rpm
# wget http://fedoranews.org/contributors/rick_stout/freenx/md5sum

# Install the RPM's
rpm -Uvh nx-1.5.0-4.FC4.1.i386.rpm
rpm -Uvh freenx-0.4.4-2.fdr.0.src.rpm

#SERVER SETUP IS DONE! The RPM takes care of the required setup.
It Needs a client too...

Next, download and install the NOMACHINE client on your client workstation. Using the 1.5.0 nx backend, you will need to use the 1.5.0 client from !M. I used the Win32 client (work computer to access home machine) from www.nomachine.org. Other platforms clients can be found here, as well as installation help. The most important part of the initial connection is the key file. This file, client.id_dsa.key, must be copied from the server and imported into the session of your client. Follow these steps to configure your client.

Enter a "Session" and "Host" name then click "Next".



Select "Unix", a Window Manager and a resolution. Make sure that "Enable SSL encryption on all traffic" is checked and click "Next". Check "Show the Advanced Configuration dialog" box and click "Finish".

 

Click "Key...", "Import", Select the key file and click "Open". This file, client.id_dsa.key can be found on the server either in the

/etc/nxserver/

or

/var/lib/nxserver/home/.ssh/

directories. Click "Save", "Save" and "Ok".

 


Note: If you created the connection icon, it will only prompt for username and password. Your first connection will give you an error about cache - This is normal. Voila! You're connected.
Hints, tricks and other...

Freenx is heavily dependent upon SSH. For testing purposes, you can use the client.id_dsa.key to ssh to your server as nx. You can copy this file to your client users .ssh directory. Replace {NXSERVER} with the name or ip address of your NX Server. For example, you should get something like this:
# This is to be done on the client machine, not the server
mv ~/.ssh/id_dsa ~/.ssh/id_dsa.bak
cp /usr/NX/share/client.id_dsa.key ~/.ssh/id_dsa
chmod 600 ~/.ssh/id_dsa
ssh nx@{NXSERVER}
HELLO NXSERVER - Version 1.4.0-02 OS_(GPL)
NX> 105 quit
quit
Quit
NX> 999 Bye
Connection to {NXSERVER} closed.
If you dont get a connection, use this guide to help you troubleshoot.

If you get an xkb error do this as root:(Thank you, Brad Sammut)
cd /usr/X11R6/lib/X11/xkb/rules
ln -sf xorg-it.lst xfree86-it.lst
ln -sf xorg.lst xfree86.lst
ln -sf xorg.xml xfree86.xml
# this last one may already exist
ln -sf xorg xfree86

There seems to be a bug in the handling of the gnome-session when "Gnome" is chosen for the window manager on FC3 and FC4.
If you are using Gnome, and you cannot get to your normal desktop, try selecting
1)'Unix' 2)'Custom' 3)'Settings' 4)'Run default X client script on server in the client configuration'.

 

Want some more information about freenx, in general? Try here or here.

If installing the Linux client from NoMachine gives an error looking for libXcomp.so.1.4.0-03, you can link it to an existing file:
ln -sf /usr/NX/lib/libXcomp.so.1.4.0 /usr/NX/lib/libXcomp.so.1.4.0-03
Freenx is extremely fast. You will be able to use much higher resolutions than previously used with VNC. Play around: You will be impressed.

Freenx does not need to be setup as a service or added to rc.local. NX uses no memory when not in use and you won't find it by doing a ps aux, because it is a shell that only runs when your client ssh's to your machine. By issuing:
/usr/bin/nxserver --stop
Freenx renames the authorized_keys2 file, making it impossible to logon as nx.

Suspend seems to work when resuming from the same client. Test it out, and let me know.
Uninstall? EASY!

# Remove the packages
rpm -e freenx nx
# The keys and configuration files are retained in /etc/nxserver

分享到:
评论

相关推荐

    Linux操作系统远程桌面软件FreeNX-xxlinux_com

    Linux操作系统远程桌面软件FreeNX-xxlinux_com

    Ubuntu-FreeNX-AMI:通过 NX 协议支持远程桌面的 Amazon EC2 机器映像。 预期用例是支持可从任何计算机访问的云托管个人工作区

    Ubuntu-FreeNX-AMI 通过 NX 协议支持远程桌面的 Amazon EC2 机器映像。 预期用例是支持可从任何计算机访问的云托管个人工作区。 地位 在职的: AMI 打包正确 安装了 FreeNX 服务器 不工作: 无法验证客户端连接 ...

    FreeNX-开源

    FreeNX 是 NoMachine.com OSS NX 组件的免费服务器实现。 NX 允许在真正的慢速链路上使用 X 连接,如调制解调器或 ISDN。

    FreeNX Sessions Administrator-开源

    FreeNX Sessions Administrator是一款开源软件,专门设计用于管理和监控FreeNX服务器上的远程桌面会话。FreeNX是一种高效、安全的远程访问技术,它允许用户通过网络连接到Linux或Unix系统,提供类似于本地桌面的体验...

    Develop and Test Your PHP Applications on the IBM cloud

    文章《Develop and Test Your PHP Applications on the IBM cloud》为我们介绍了一个非常具体的实践案例,即如何利用IBM的云计算平台来改进PHP应用程序的开发与测试过程。 首先,文章提到了云计算对PHP应用开发者的...

    NX Client for Windows.rar

    1. 下载适合Windows系统的NX客户端软件包,如NoMachine或FreeNX。 2. 执行安装程序,按照向导提示完成安装过程。 3. 配置客户端设置,包括服务器地址、端口号、用户名和密码。 ### 连接Linux虚拟桌面 1. 在NX客户端...

    ubuntun命令大全.docx

    如果之前安装过FreeNX或其他版本的NX,需要先卸载并清除相关文件夹和残留文件,以避免冲突。 进入安装阶段,按照nxclient、nxnode、nxserver的顺序安装下载的DEB文件,顺序非常重要,因为nxserver依赖前两者。你...

    NxSpooler-开源

    NxSpooler 是一个 Qt 实用程序,可帮助人们在使用 x2go 或 FreeNX 等会话连接到远程计算机时在他们的打印机中打印。 它还添加了一些非常基本且简单的客户端/服务器功能。 有关更多信息,请参阅 ...

    无盘工作站的组建与实现

    - 软件选择:RDP(远程桌面协议)、PXE(预启动执行环境)和各种无盘系统软件,如Windows Terminal Services、Linux的NBD(Network Block Device)或FreeNX等。 - 客户端硬件:支持网络启动的硬件,以及足够的RAM...

Global site tag (gtag.js) - Google Analytics