How to install FreeNX on Centos 6 and connect from intel mac

Issues related to applications and software problems
Post Reply
Sounds
Posts: 5
Joined: 2011/08/26 18:52:58

How to install FreeNX on Centos 6 and connect from intel mac

Post by Sounds » 2011/08/26 19:36:41

I feel somewhat obligated to post this after the agony that I have just gone through in the past two days :-) This is actually VERY simple, but there seems to be a lot of contradicting documentation on getting FreeNX working, and almost no documentation for CentOS 6.

Here's how I got FreeNX working on my new CentOS 6 server install and connected to it from my mac running OS X Lion. Connect to your server via SSH and do the following:

1. First you need X and Gnome
[code]# yum groupinstall "GNOME Desktop Environment" "X Window System"[/code]

2. A "yum grouplist" will reveal that there is a group called "FreeNX and NX".. Sweeet! much easier than trying to find the right packages manually. I believe this installs the el5 packages, but they work, so I'm not complaining.
[code]# yum groupinstall "FreeNX and NX"[/code]

3. At this point a lot of documentation tells you to fiddle with adding users and all kinds of shenanigans like that, but, I believe all you have to do is:
[code] # nxsetup --install --clean --purge --setup-nomachine-key[/code]

Your server should now be good to go.

Now, the NX Client 3.5 for Mac OS X on Nomachine's website says it works for PPC and Intel macs, but my macbook pro said it couldn't be run because PPC software is no longer supported. So, from the Nomachine download page, download NX 4 Preview 5 (the current beta release) and install it.

Open it up and create a new connection. Enter your server's IP address and make sure "Use SSH Service" and "Use the NX Login" are selected. It will prompt you with an "Authentication Required" screen. Choose "login as named user" and enter your username and password for the server and press enter.

On the next screen hit "Create a new session" and choose "Create a new GNOME virtual desktop."

The desktop should come up after that :-) I hope this saves someone the few days that it took me to figure it out!

[EDIT by moderator] Please see [url=http://wiki.centos.org/HowTos/FreeNX]CentOS wiki article on FreeNX[/url] for the current instructions.

User avatar
toracat
Forum Moderator
Posts: 7463
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

How to install FreeNX on Centos 6 and connect from intel mac

Post by toracat » 2011/08/26 20:32:19

Are you sure you are running CentOS 6 ? :-o

Could you show us the output from:

cat /etc/redhat-release

There is no group "FreeNX and NX" for CentOS 6. The only nx/freenx packages available for CentOS-6 are still under testing:

http://centos.toracat.org/misc/nx-freenx/6/

The latest version of [b]freenx[/b] ( freenx-0.7.3-8.el6.ay) has a fix for selinux. Earlier versions needed selinux tweeks. Anyone wishing to give the current version a try is encouraged to do so.

lystor
Posts: 187
Joined: 2008/09/10 15:46:12
Location: Ukraine, Donetsk

Re: How to install FreeNX on Centos 6 and connect from intel mac

Post by lystor » 2011/08/28 14:50:00

[quote]
toracat wrote:
There is no group "FreeNX and NX" for CentOS 6. The only nx/freenx packages available for CentOS-6 are still under testing:
_http://centos.toracat.org/misc/nx-freenx/6/[/quote]
[url=http://pkgs.org/package/nx]nx[/url], [url=http://pkgs.org/package/freenx]freenx[/url] and [url=http://pkgs.org/package/freenx-server]freenx-server rpm[/url] for CentOS 6 are available in 'ATrpms Bleeding' and 'PUIAS Unsupported' repositories too.

Sounds
Posts: 5
Joined: 2011/08/26 18:52:58

Re: How to install FreeNX on Centos 6 and connect from intel mac

Post by Sounds » 2011/08/28 17:09:32

Well.. I feel dumb. A few weeks ago I had my datacenter do an OS reinstall. I requested CentOS 5.6 but when I got the confirmation that it had been done they told me it was CentOS 6. Now I know how to check :-/

I suppose this thread can be deleted or closed or whatnot.

KoRny
Posts: 1
Joined: 2011/11/03 17:25:39

Re: How to install FreeNX on Centos 6 and connect from intel mac

Post by KoRny » 2011/11/03 17:57:53

[code]
[root@centos-test KoRny]# cat /etc/centos-release
CentOS Linux release 6.0 (Final)

[/code]


To install [i]GNOME Desktop Environment[/i]...

[code]yum groupinstall Desktop[/code]

I guess the group was renamed. Use [i]yum grouplist[/i] to see all groups.

As for the FreeNX packages, I had to (1) create a file called /etc/yum.repos.d/CentOS-Atrpms.repo with the following contents...

[code]
[atrpms]
name=Fedora Core $releasever - $basearch - ATrpms
baseurl=http://dl.atrpms.net/el6.0-i386/atrpms/stable
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1

[atrpms_bleeding]
name=Fedora Core $releasever - $basearch - (Bleeding) ATrpms
baseurl=http://dl.atrpms.net/el6.0-i386/atrpms/bleeding
gpgkey=http://ATrpms.net/RPM-GPG-KEY.atrpms
gpgcheck=1
[/code]

(Note: You cannot use the $version - $base...blah, blah like ATrpms [url=http://atrpms.net/documentation/install/]describes here[/url]. Instead, I had to manually find the correct URL at dl.atrpms.net.)

And (2), import ATrpms' GPG key, update yum's cache...

[code]
# rpm --import http://packages.atrpms.net/RPM-GPG-KEY.atrpms && yum update
[/code]

Finally, you can install the packages...

[code]
# yum install nx freenx freenx-server
[/code]

User avatar
toracat
Forum Moderator
Posts: 7463
Joined: 2006/09/03 16:37:24
Location: California, US
Contact:

Re: How to install FreeNX on Centos 6 and connect from intel mac

Post by toracat » 2012/05/08 17:34:00

I am updating this (old) thread because it was referenced in a recent post on the FreeNX mailing list.

nx/freenx has been available for CentOS-6 from the extras repo for a while. For the instructions please see [url=http://wiki.centos.org/HowTos/FreeNX]CentOS wiki for FreeNX[/url].

Post Reply

Return to “CentOS 6 - Software Support”