LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 12-01-2006, 05:57 PM   #1
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Rep: Reputation: 15
unable to use freeNX


Hi

I have been trying to get my 2 Ubuntu 6.06 machines working with freeNX. I have no problem installing my server and client machines but when I try to connect my client to my server machine I get an error message server not installed or NX access disabled. At the cmd line I do sudo nxserver --start
and I get an error saying:-
NX> 100 NXSERVER - Version 1.4.0-45-SVN OS (GPL)
NX> 500 ERROR: Service already running
NX> 999 Bye

I think this is some permissions problem but I do not know how to proceed. Does anyone know what I have done wrong? Are there any things that I should do to get this working? If I wanted to connect to a windows machine is this possible?

Thanks
Adrian
 
Old 12-03-2006, 04:08 PM   #2
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
FreeNX can be very troublesome to use if you're trying to connect to an old server from a new client. If the client you are using is up to version 1.5, the problem you have is due to incorrect installation. If you are using the latest v2 client then forget it. You will need to install the rpms from www.nomachine.com. If you need more details, please inform us.
 
Old 12-05-2006, 10:20 AM   #3
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
unable to use freeNX

Thank you for the info, have deleted freenx and installed nxclient, nxnode and nxserver on both machines. When using nxclient to connect to my remote machine I still get error "server not installed or NX access disabled". What am I doing wrong! I have installed the nx user on both machines. Thank you in advance for any help
Adrian
 
Old 12-06-2006, 06:15 AM   #4
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
If the installation completed without errors (mine initially gave an error because the nx user existed, so I removed it and reinstalled the nxserver rpm), you need to generate the keys with ssh-keygen -d without password, then import the id_dsa key in the client and add the id_dsa.pub public key into the /usr/NX/home/nx/.ssh/authorized_keys2 file of the server. You may need to change the AuthorizedKeysFile into .ssh/authorized_keys2 setting of the /etc/ssh/sshd_config file and ensure the sshd settings are optimal (enable PubKeyAuthentication etc).
 
Old 12-06-2006, 05:18 PM   #5
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
Have tried all of this but still getting "Server not installed or NX access disabled"
Details show:-
NX> 203 NXSSH running with pid: 6579
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 192.168.1.4 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed

Using my user to log in with my password of the remote machine
Is there something else I should do?

Is there anyway to check that the key is right?

Adrian
 
Old 12-07-2006, 09:38 AM   #6
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
Gone further

On both of my machines I got to run nxsetup, here are the results:-

First machine

sudo nxsetup --install --setup-nomachine-key
Setting up /etc/nxserver ...done
Setting up /var/lib/nxserver/db ...done
Setting up /var/log/nxserver.log ...done
Setting up known_hosts and authorized_keys2 ...done
Setting up permissions ...done

----> Testing your nxserver configuration ...
Warning: Could not find nxdesktop in /usr/lib/nx. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/lib/nx. VNC sessions won't work.
Warning: Invalid value "DEFAULT_X_SESSION=/etc/X11/xdm/Xsession"
Users might not be able to request a default X session.
Warning: Invalid value "COMMAND_START_KDE=/usr/bin/dbus-launch --sh-syntax --exit-with-session startkde"
Users will not be able to request a KDE session.
Warning: Invalid value "COMMAND_START_GNOME=/usr/bin/dbus-launch --sh-syntax --exit-with-session gnome-session"
Users will not be able to request a Gnome session.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
Users will not be able to request a CDE session.

Warnings occured during config check.
To enable these features please correct the configuration file.

<---- done

----> Testing your nxserver connection ...
ssh: connect to host 127.0.0.1 port 22: Connection refused
Fatal error: Could not connect to NX Server.

Please check your ssh setup:

- Make sure "nx" is one of the AllowUsers in sshd_config.
- Make sure your sshd allows public key authentication.
- Make sure your sshd is really running on port 22.
- Make sure your sshd_config AuthorizedKeysFile in sshd_config is set to authorized_keys2.


Second machine

sudo nxsetup --install --setup-nomachine-key
Setting up /etc/nxserver ...done
Setting up /var/lib/nxserver/db ...done
Setting up /var/log/nxserver.log ...done
Setting up known_hosts and authorized_keys2 ...done
Setting up permissions ...done

----> Testing your nxserver configuration ...
Warning: Could not find nxdesktop in /usr/lib/nx. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/lib/nx. VNC sessions won't work.
Warning: Invalid value "DEFAULT_X_SESSION=/etc/X11/xdm/Xsession"
Users might not be able to request a default X session.
Warning: Invalid value "COMMAND_START_KDE=/usr/bin/dbus-launch --sh-syntax --exit-with-session startkde"
Users will not be able to request a KDE session.
Warning: Invalid value "COMMAND_START_GNOME=/usr/bin/dbus-launch --sh-syntax --exit-with-session gnome-session"
Users will not be able to request a Gnome session.
Warning: Invalid value "COMMAND_START_CDE=cdwm"
Users will not be able to request a CDE session.
Warning: Invalid value "COMMAND_SMBMOUNT=smbmount". You'll not be able to use SAMBA.
Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be able to use SAMBA.

Warnings occured during config check.
To enable these features please correct the configuration file.

<---- done

----> Testing your nxserver connection ...
Warning: Version Mismatch. Expected 1.4.0-45-SVN got: HELLO NXSERVER - Version 2.1.0-13 - LFE.
HELLO NXSERVER - Version 2.1.0-13 - LFE
NX> 105 Quit
<--- done

Ok, nxserver is ready.

PAM authentication enabled:
All users will be able to login with their normal passwords.

PAM authentication will be done through SSH.
Please ensure that SSHD on localhost accepts password authentication.

You can change this behaviour in the /etc/nxserver/node.conf file.
Have Fun!


Now on both machines I have done the same procedure but they both have different logs for nxsetup. Why is that? Also the logs state the Warning:

Invalid value "COMMAND_START_GNOME=/usr/bin/dbus-launch --sh-syntax --exit-with-session gnome-session"
Users will not be able to request a Gnome session.

Now at the very least I will need to run a gnome session, so what is wrong? Any help would be appreciated.

Adrian
 
Old 12-07-2006, 12:01 PM   #7
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
First of all make sure that you use clients and servers of the same version (in the second case, the client is v1.4). Everything worked provided that I had setup the keys correctly. Actually, there should be no nxsetup binary; maybe you should delete the previous versions of the NX package if you haven't already. Anyway, you can check whether your keys match if you run the following:
Code:
ssh nx@127.0.0.1 -i /usr/NX/share/keys/server.id_dsa.key
, where certainly you can replace 127.0.0.1 with the address of the NX server. The result of the command should be
Code:
HELLO NXSERVER - Version 2.1.0-13 - LFE
NX> 105
, if not then your sshd and/or nx configuration is at fault (all this assumes that ssh communication is possible between the two, firewalls should be set accordingly etc).
 
Old 12-08-2006, 04:41 AM   #8
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
It works!!!! the key was to get all (ha ha same word!!) keys the same and volia it worked, thank you for your help with this.

Adrian
 
Old 03-31-2007, 08:56 PM   #9
tallmtt
Member
 
Registered: Jun 2005
Location: Georgia, USA
Distribution: Arch, Gentoo, Ubuntu
Posts: 91

Rep: Reputation: 15
What if this happens...

What if you type in:

Code:
ssh nx@127.0.0.1 -i /usr/NX/share/keys/server.id_dsa.key
but instead of:

Code:
HELLO NXSERVER - Version 2.1.0-13 - LFE
NX> 105
you get:

Code:
nx@127.0.0.1's password:
 
Old 04-01-2007, 08:32 AM   #10
auxsvr
Member
 
Registered: Dec 2006
Distribution: openSUSE 10.3
Posts: 260

Rep: Reputation: 30
You probably haven't set up the ssh server to accept public key authentication attempts (the PubKeyAuthentication option in /etc/ssh/sshd_config).
 
Old 04-06-2007, 02:39 PM   #11
tallmtt
Member
 
Registered: Jun 2005
Location: Georgia, USA
Distribution: Arch, Gentoo, Ubuntu
Posts: 91

Rep: Reputation: 15
in my /etc/ssh/sshd_config file I already have:

Code:
PubkeyAuthentication yes
I think this is the right direction, any other suggestions?
 
Old 04-07-2007, 04:20 AM   #12
windsurfer
Member
 
Registered: Mar 2006
Distribution: Ubuntu
Posts: 91

Original Poster
Rep: Reputation: 15
Yes it all works now the answer was to get the keys right in the correct place
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
FreeNX HELP hardknox Ubuntu 1 10-14-2006 10:00 PM
Need help with FreeNX f0g Linux - Networking 0 10-09-2006 12:13 AM
freenx problems Klogg Linux - Networking 3 08-22-2006 07:06 AM
Cannot remove Freenx dbruso Linux - Software 1 05-21-2006 03:14 AM
FreeNX WimSmets Slackware 1 01-06-2005 03:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration