-
HOWTO: Install FreeNX
HOWTO: Install FreeNX on (K)Ubuntu Breezy
This is my experience in installing the FreeNX server and the NoMachine NX Client on my Kubuntu Breezy.
I had some troubles in getting the whole thing work, so I write this little howto hoping that it may be useful for other (K)Ubuntu users
0. CONFIGURING THE RIGHT PACKAGE REPOSITORY
I used .deb packages from Seveas repository. In order to configure it for apt-get (or Synaptic) add the following line to /etc/apt/sources.list:
Code:
deb http://seveas.ubuntulinux.nl/ breezy-seveas all
In order to install the appropriate gpg key, execute the following commands (as described on the Seveas home page):
Code:
gpg --keyserver subkeys.pgp.net --recv-keys 1135D466
gpg --export --armor 1135D466 | sudo apt-key add -
1. INSTALLING THE SERVER
Having Seveas repository configured, it is easy to install the server part of FreeNX. Simply install the freenx package:
Code:
sudo apt-get install freenx
It will also install some dependencies, notably ssh, nxagent and nxlibs. Your (K)Ubuntu will ask you if you want to use the standard NoMachine key, among some other options. I recommend to use the standard NoMachine key for standard use (or for the initial debug of the NX protocol). We will see later how to setup a custom key for higher security.
Please note that the key is used for public key authentication on the user "nx", who is used by the NX protocol to establish an SSH tunnel for the secure protocol data transport. Session authentication is (by default setup) based on PAM, allowing server users to establish a remote NX session by mean of their own credentials (username and password, as defined on the server).
It is now necessary to check some settings of the ssh subsystem, by editing the /etc/ssh/sshd_config file:
1) sshd should listen on the standard 22 port. Please check that the sshd_config contains the line "Port 22" and that it is not commented out.
2) public key authentication is turned on. Check the sshd_config so it contains the line "PubkeyAuthentication yes"
3) modify the "AuthorizedKeysFile" line in "AuthorizedKeysFile %h/.ssh/authorized_keys2" (default is "%h/.ssh/authorized_keys")
4) By default, sshd should allow every system user to access the system. If your system is configured differently, please add (or modify) the "AllowUsers nx" line to allow the nx user to access. I think you can use the "user@host" syntax for this sshd parameter to limit hosts from which users can logon via NX.
If you have made any change to the sshd_config, restart the ssh daemon with
Code:
sudo /etc/init.d/ssh restart
2. INSTALLING THE CLIENT
On the client machine, from the Seveas repository, install the nxclient package.
In my KDE, I found the "NX Client for Linux" in the "Lost+found" submenu. Launching the client for the first time brings up a connection wizard that will allow you to setup a connection to a remote NX server (in this case, the one configured above). Insert the session name (just an identifier of the server/service/host you will connect to), the server IP address and pay attention to check the "Enable SSL encryption of all traffic" option. You may set other options in the connection wizard, for example the type of remote window manager to fire up when the nx user connects (KDE, GNOME, others) and the resolution of the virtual NX session.
Please note that the connection created by the wizard make use of the standard NoMachine key. We will see later how to change the connection key to a custom one.
At the end of the wizard, the NX client logon form fires up. You can insert the username, the password and choose one of the defined sessions.
The login button will attempt the NX connection to the server as defined in the selected session. If you press the "Configure..." button, you can change ALL the parameters of the selected session (the ones defined with the connection wizard and other...).
3. (Optional) DEFINING AND USING CUSTOM KEYS
If you chose "Custom keys" when prompted during the server package, the installation creates a random authentication key for the user "nx". If you chose the standard NoMachine key, you can reconfigure the freenx package to change this setting to "Custom keys" with the following command:
Code:
sudo dpkg-reconfigure freenx
The key is stored in the client.id_dsa.key file in the .ssh subdirectory of the nx home directory (default: /var/lib/nxserver/home/.ssh/client.id_dsa.key). You have to share this key with all the client hosts you want to authorize, by copying this file on the client machine and then importing it into the NX client. The destination path is not important, but you must know it to import the key file into the NX client.
To import the key, open the NX client, select the right session and click on the "Configure" button. From the "General" tab of the configuration window, click on the "Key" button and then on the "Import" button. Then select the client.id_dsa.key you copied from the server and click on the "Save" button, "OK" button (please confirm to save the new configuration)
From now on the NX connection to the server will use the new key. Clients with the default key (or other custom keys) cannot authenticate to the server anymore.
You can return to the standard NoMachine key by reconfiguring the freenx package on the server, and by modifying the key used by the client with the same procedure described above, but clicking on the "Default" button instead of the "Import" button we used before.
If you played with NX keys and your client doesn't authenticate anymore to the server, you can start from a clean state by reconfiguring the freenx package on the server and choosing the "Remove freenx keys" and reconfiguring again choosing the "NoMachine keys" or the "Custom keys" options.
Conclusions
I apologize for my english, far from being good. However I hope that this howto can help some user that (like me) has encountered troubles in configuring this powerful remote control protocol.
As a last note, if you has other troubles and you have set up a firewall, please check firewall settings keeping in mind that only the port 22 (ssh) have to be enabled in order to establish a connection to the server.
Bye
-
Re: HOWTO: Install FreeNX on (K)Ubuntu Breezy
-
Re: HOWTO: Install FreeNX on (K)Ubuntu Breezy
I get the following error when I try to apt-get freenx:
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
Since you only requested a single operation it is extremely likely that
the package is simply not installable and a bug report against
that package should be filed.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
freenx: Depends: expect but it is not installable
E: Broken packages
-
Re: HOWTO: Install FreeNX on (K)Ubuntu Breezy
i have tried the howto and it worked great... thanks...
-
Re: HOWTO: Install FreeNX on (K)Ubuntu Breezy
Great work. It worked on my first try. Does exactly what it says on the tin. Now I can provide support to my parents without biking over half an hour trough rainy weather :)
-
Re: HOWTO: Install FreeNX
If you get errors when you run nxsetup --setup-nomachine-key related to not being able to connect-check sshd_config AllowedUsers nx, make sure sshd allows public key authenication, .etc. Check the permissions on the directory /var/lib/nxserver/home/. Make sure it has the correct permissions to allow user "nx". I spent several hours trying to get freenx going only to find the permissions on this directory were wrong. As soon as I corrected this and ran nxsetup --setup-nomachine-key the program set up the nxserver without errors.
If you need to access your linux box on your local network from windows or another linux box to run programs, .etc, freenx is a better choice than vnc. It is much faster and doesn't have the screen and mouse issues that I have run into with vnc.
-
Re: HOWTO: Install FreeNX
I am having a problem with connecting to my breezy machine running FreeNX with the Windows NoMachine client. I have no problem running the linux client within the server using localhost but when I try to connect from my windows box it just sits there and displays "Setting up the X environment". I have copied over the DSA key from the server and everything seems to be setup correctly. I can ssh into the server from the windows box fine.
-
Re: HOWTO: Install FreeNX
That repository does not work, I think it is now:
deb http://free.linux.hp.com/~brett/seveas/freenx/ ubuntu-seveas freenx
but I am still following the HOWTO and not sure if it works. But the old repo defenitely does not work
-
Re: HOWTO: Install FreeNX
here's a podcast all about FreeNX along with afew other things.
http://www.twatech.org/eps/twat050.mp3
http://twatech.org/
-
Re: HOWTO: Install FreeNX
I got this to work locally but after opening the port in my router that i set in /etc/nxserver/node.conf and etc/sshd/sshd_config (not 22) i can not get it to login. It gets past auth ok and then says negotiating link params, then hangs for while, then gives me some crap about couldnt establish link with proxy or some babble.. i dont have a proxy, i have setup apache with custom port just fine and enabled it on the net... Whats wrong?
i even added a range of ports that the nxclient uses (1000 + )
nadda
-
Re: HOWTO: Install FreeNX
I've successfully managed to install, run and access this machine via FreeNX, all locally by now - however I thought I'd be able to log on to the NX server and view the currently running session. Instead it started a new session for my user.
I'm looking for something more along the lines of VNC, so FreeNX deals with remote logins but only for new X Sessions or am I missing something?
Thanks
-
Re: HOWTO: Install FreeNX
Quote:
Originally Posted by wickwire
I'm looking for something more along the lines of VNC, so FreeNX deals with remote logins but only for new X Sessions or am I missing something?
Thanks
Have you tried the VNC option in the FreeNX?
Using the client, go to the configuration dialog and choose "VNC" under the Desktop section.
-
Re: HOWTO: Install FreeNX
I hadn't spotted the option, thanks - I'm getting authentication error still but now I know it's just a configuration matter, thanks for the confirmation!
-
Re: HOWTO: Install FreeNX
Hi All
I hope I'm not covering old ground here but I haven't found an answer yet so here goes...
I walked through the process of installing freenx on Breezy and everything seems to install fine. When I try to connect from any client (I've tried a win98 client and a local client on the same machine as the server) with exactly the same results. The connection goes through the authentication process with no problem then times out. The client error log is:
----------------------------------------------------------------------------------------------------------------------------------
NX> 203 NXSSH running with pid: 6200
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: 140.252.38.32 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 1.4.0-45-SVN OS (GPL)
NX> 105 hello NXCLIENT - Version 1.5.0
NX> 134 Accepted protocol: 1.5.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: cole
NX> 102 Password:
NX> 103 Welcome to: dallas user: cole
NX> 105 listsession --user="cole" --status="suspended,running" --geometry="1600x1200x24+render" --type="unix-kde"
NX> 127 Sessions list of user 'cole' for reconnect:
Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
NX> 148 Server capacity: not reached for user: cole
NX> 105 startsession --session="dallas" --type="unix-kde" --cache="16M" --images="128M" --cookie="******" --link="adsl" --kbtype="pc102/us" --nodelay="1" --encryption="1" --backingstore="when_requested" --geometry="800x600+400+261" --media="0" --agent_server="" --agent_user="" agent_password="******"" --screeninfo="800x600x24+render"
ssh_exchange_identification: Connection closed by remote host
Killed by signal 15.
----------------------------------------------------------------------------------------------------------------------------------
I enabled the server logging and the server error log shows:
----------------------------------------------------------------------------------------------------------------------------------
NX SERVER START: -c /usr/lib/nx/nxserver
HELLO NXSERVER - Version 1.4.0-45-SVN OS (GPL)
NX> 105 hello NXCLIENT - Version 1.5.0
NX> 134 Accepted protocol: 1.5.0
NX> 105 SET SHELL_MODE SHELL
NX> 105 SET AUTH_MODE PASSWORD
NX> 105 login
NX> 101 User: cole
NX> 102 Password:
Info: Auth method: passdb
NX> 103 Welcome to: dallas user: cole
NX> 105 listsession --user="cole" --status="suspended,running" --geometry="1600x1200x24+render" --type="unix-kde"
NX> 127 Sessions list of user 'cole' for reconnect:
Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------
NX> 148 Server capacity: not reached for user: cole
NX> 105 startsession --session="dallas" --type="unix-kde" --cache="16M" --images="128M" --cookie="******" --link="adsl" --kbtype="pc102/us" --nodelay="1" --encryption="1" --backingstore="when_requested" --geometry="800x600+400+261" --media="0" --agent_server="" --agent_user="" agent_password="******"" --screeninfo="800x600x24+render"
&session=dallas&type=unix-kde&cache=16M&images=128M&cookie=******&link=adsl& kbtype=pc102/us&nodelay=1&encryption=1&backingstore=when_reques ted&geometry=800x600+400+261&media=0&agent_server= &agent_user=&agent_password=******&screeninfo=800x 600x24+render&clientproto=1.5.0&user=cole&userip=1 40.252.38.32&uniqueid=729621A34353FD29CB3D918230CA 698F&display=1000
NX> 1004 Error: Session did not start.
----------------------------------------------------------------------------------------------------------------------------------
The tail end (the first time I see errors in it) of the runlog file in my ~/.nx session directory looks like:
----------------------------------------------------------------------------------------------------------------------------------
[Fri Jan 27 23:01:13 2006]: Received line from nxssh process [startsession --session="dallas" --type="unix-kde" --cache="16M" --images="128M" --cookie="******" --link="adsl" --kbtype="pc102/us" --nodelay="1" --encryption="1" --backingstore="when_requested" --geometry="800x600+400+261" --media="0" --agent_server="" --agent_user="" agent_password="******"" --screeninfo="800x600x24+render"
] with code [-1]
[Fri Jan 27 23:01:13 2006]: Received code[-1]
[Fri Jan 27 23:01:13 2006]: Received line from nxssh process [
] with code [-1]
[Fri Jan 27 23:01:13 2006]: Received code[-1]
[Fri Jan 27 23:01:20 2006]: Received line from nxssh process [ssh_exchange_identification: Connection closed by remote host^M
] with code [-1]
[Fri Jan 27 23:01:20 2006]: Received code[-1]
[Fri Jan 27 23:02:10 2006]: printFatalError [Connection timeout]
[Fri Jan 27 23:02:10 2006]: KillAllComponents 0x86bd320
[Fri Jan 27 23:02:10 2006]: LoginDialog: stopAllTimers
[Fri Jan 27 23:02:10 2006]: LoginDialog: stopProgressTimer
[Fri Jan 27 23:02:10 2006]: LoginDialog::killAllComponents() stopping NXProtoSSH
[Fri Jan 27 23:02:10 2006]: LoginDialog::killAllComponents() stopping NXssh
[Fri Jan 27 23:02:10 2006]: NXProcessUnix::StopProcess process [nxssh] with pid [6200]
[Fri Jan 27 23:02:10 2006]: Received SIGCHLD
[Fri Jan 27 23:02:10 2006]: end of killAllComponents
[Fri Jan 27 23:02:10 2006]: LoginDialog::ShowConnectionStatus code=[268] str=[Connection timeout] error=[1]
[Fri Jan 27 23:02:10 2006]: ProgressDialog::printNxStatus: [Connection timeout]
[Fri Jan 27 23:02:10 2006]: LoginDialog: isReconnecting() [0]
[Fri Jan 27 23:02:10 2006]: Logfile path [/home/cole/.nx/temp/6196/sshlog] exists.
-------------------------------------------------------------------------------------------------------------------------------
It looks like there is something wrong with starting the X session from nx but I don't have a clue as to what is happening.
Again, I apologize if this has been covered somewhere else and I just missed it, but I've been trying to fix this problem for a couple of weeks with no luck. Assistance would be greatly appreciated.
Thanks
Lonnie
-
Re: HOWTO: Install FreeNX
Got it up and running and it works very nicely - apart from that there seems to be stuff missing or looking strange. All folders and files look like "papers" for instance, and some applets and other things are missing. If this sounds familiar to anyone, can you point me to some documentation/solutions please? :)
-
Re: HOWTO: Install FreeNX
Quote:
Originally Posted by stoffe
Got it up and running and it works very nicely - apart from that there seems to be stuff missing or looking strange. All folders and files look like "papers" for instance, and some applets and other things are missing. If this sounds familiar to anyone, can you point me to some documentation/solutions please? :)
The graphics in nx will look weird if you are logged onto the host pc with the same username. logout first ;)
-
Re: HOWTO: Install FreeNX
Hi,
If I want to run the server on my home machine which is behind a router with firewall, which port should I open and forward in the router's config.?
Update : Okay, I found it. It's raelly very easy compared to other programmes. I need not forward any port, since freenx uses port 22, same as ssh which has already been forwarded and opened in my router.
I must say that this is an excellent programme and I switched from vncserver to freenx, since it feesl really smooth. I can do anything without any jerks. Though, it is not necessary, just out of curiosity I tried to watch a movie on the remote machine. It started playing the movie smoothly on vlc but without any audio. Has anybody come across this problem? Surely, I shall not use freenx to watch movie.
Anyway, for this excellent how-to.
-
Re: HOWTO: Install FreeNX
Quote:
Originally Posted by anaoum
The graphics in nx will look weird if you are logged onto the host pc with the same username. logout first ;)
Hey, thanks! You are absolutely correct. Works now! Now I'm really hoping for better support for this OOTB. :)
-
Re: HOWTO: Install FreeNX
Hello,
If i try log on to freenx via LAN, everything works fine. However, if i try login via WAN the nx client gets to the authenication stage, then times out. Is anyone having the same problems? Does anyone know how to fix this?
Thanks,
-
Re: HOWTO: Install FreeNX
Quote:
Originally Posted by anaoum
Hello,
If i try log on to freenx via LAN, everything works fine. However, if i try login via WAN the nx client gets to the authenication stage, then times out. Is anyone having the same problems? Does anyone know how to fix this?
Thanks,
I login fine via WAN (Actually, that is the only thing I have) - is there anything different in your WAN setup? All ports allowed etc?
-
Re: HOWTO: Install FreeNX
Hello,
i have forwarded port 22. but i dont think that's the proble, because the client manages to connect, it just hangs during authentication.
-
Re: HOWTO: Install FreeNX
When i tried to connect through a proxy, it cant even connect, it just times out.
can anyone help me here too?
-
Re: HOWTO: Install FreeNX
Great write-up. Started with the basic setup and then went to the custom keys without a problem.
This is sooooooooooooooooo much better than remote desktop/VNC/etc.
Thanks!
-
Re: HOWTO: Install FreeNX
Hello,
Would someone please tell me how to configure the nx client to use a proxy.
Thankyou,
-
Re: HOWTO: Install FreeNX
OK I feel stupid... How do you run the nxclient? Is there something obvious that I'm missing? Installation was OK but I don't know the name of the binary and I don't have any new entries in my gnome menu. There is nothing in my /lost+found and there is no nxclient anywhere in my path.
-
Re: HOWTO: Install FreeNX
Nevermind... I just reinstalled the client and I have the menu entries now in my gnome menu. No idea why they didn't show up before...
-
Re: HOWTO: Install FreeNX
Hello,
would someone please tell me if it is possiblt to configure the nx client to use a proxy. i have searched for answers, but have not yet found any answers.
thankyou,
-
Re: HOWTO: Install FreeNX
Is there a repository currently working for FreeNX? None of the ones suggested seem to do it!:(
Thanks...
EDIT: Having corresponded with Dennis Kaarsemaker I have an uptodate listing for a functional repository: It works!
-
Re: HOWTO: Install FreeNX
I'm think i'm also having trouble finding a working repository, I've tried adding this line to the /etc/apt/sources.list file:
'deb http://free.linux.hp.com/~brett/seveas/freenx/ breezy-seveas freenx'
but running:
'apt-get install freenx'
gives a no such file or directory error, thanks for any help you can give...
-
Re: HOWTO: Install FreeNX
Did you first run an update?
Code:
sudo apt-get update
-
Re: HOWTO: Install FreeNX
No I hadn't and it seems to do the trick!
Thanks very much :)
-
Re: HOWTO: Install FreeNX
Thanx for this How-To.
It wasn't working directly, but that was my fault; I selected the wrong desktop (KDE), which was on the host not available :-#
-
Re: HOWTO: Install FreeNX
I setup freenx a few weeks ago based on similar instructions.
I was curious if you or someone else could tell me the reason for this step.
>> 3) modify the "AuthorizedKeysFile" line in "AuthorizedKeysFile %h/.ssh/authorized_keys2" (default is "%h/.ssh/authorized_keys")
I recently spent a lot of time setting up key authentication in ssh and I think the above instruction might be outdated/uneccessary but I'm not certain. I think recent versions of ssh don't use authorized_keys2 anymore. I can't figure out why it really matters what the file is called. It seems like changing the name would also cause existing keys to stop working.
I will look forward to learning more.
Thanks
Ryan
-
Re: HOWTO: Install FreeNX
Thanks for this thread...
I have FreeNX working well with on of my 2 linux boxes, but I can't figure out how to handle connecting to either of 2 boxes (which are both behind the same router and firewall).
If I port forward port 22 to one of the boxes I can access that box without problem. If I try to port forward a different port for the other box. my connection is refused.:-?
Other than changing the router to forward to a new port in the host, changing /etc/ssh/sshd_config to listen for the new port, and adding the new port to the NX client, are there and additional settings I should modify to get this to work??
Thanks...
-
Re: HOWTO: Install FreeNX
does anyone know if freenx is being maintained by anyone? seems like a new version hasn't come out in some time. the website i have for them is
http://freenx.berlios.de/
just trying to make sure I have the latest version of hte server running. Maybe there are some improvements in performance etc....
-
Re: HOWTO: Install FreeNX
I've installed FreeNX thru apt-get and I've got problems to setup a gnome session. I've followed the instructions at the start of this post. SSH key authentication works on the nxserver. I've enabled gnome sessions in /etc/nxserver/node.conf . But when I try to connect with the NoMachine NX client after authentication a window pops up for a short time showing the NoMachine logo.
The /var/log/nxserver.log output:
Quote:
NX> 1000 NXNODE - Version 1.4.0-45-SVN OS (GPL)
NX> 700 Session id: boolean-1000-332E484B92FBC5E168B7151EB796B57D
NX> 705 Session display: 1000
NX> 703 Session type: unix-application
NX> 701 Proxy cookie: ac67a433e3357400eb50c258c6c1dd49
NX> 702 Proxy IP: 127.0.0.1
NX> 706 Agent cookie: ac67a433e3357400eb50c258c6c1dd49
NX> 704 Session cache: unix-application
NX> 707 SSL tunneling: 1
NX> 710 Session status: running
NX> 1002 Commit
NX> 1006 Session status: running
NX> 105 bye
Bye
NX> 999 Bye
NX> 1009 Session status: terminating
NX> 1006 Session status: closed
NX> 1001 Bye.
Another question I've got is which protocol nx uses, is it a nx protocol or is it also posible to use GDM + xdmcp on port 177? Because xdmcp is enabled, and it is working with a thin client. But selecting xdm in the Nomachine client results in an error that unix-xdm is not supported.
-
Re: HOWTO: Install FreeNX
Any one know of a breezy repo with AMD 64 packages for freenx? compiling it from source is a nightmare.
-
Re: HOWTO: Install FreeNX
Cool howto, had it going famously in Breezy..
Anyone managed to serve from dapper?
-
Re: HOWTO: Install FreeNX
Got it working on the first try. Great instructions.
I've got one question: will FreeNX start on bootup or do I need to start it manually? I didn't see it anywhere in /etc/init.d
Coogan
-
Re: HOWTO: Install FreeNX
Quote:
Originally Posted by Coogan
Got it working on the first try. Great instructions.
I've got one question: will FreeNX start on bootup or do I need to start it manually? I didn't see it anywhere in /etc/init.d
Coogan
freenx starts at bootup.
-
Re: HOWTO: Install FreeNX
freenx is great, 10 times faster than vnc out of ubuntu!
but, i need to have the same behaviour as vnc. i.e. when I start a vnc session it displays it as display :1 and continues to display on display :0
so, for what i want, i have display :0 as my tv. and display :1 as the remote window. mirrored.
there are apparently ways to do this with kde, but how with gnome?
Please help!
post
Quote:
Originally Posted by Derek Broughton
Except FreeNX can use VNC and generally does it much faster. If you're
using krfb or X11vnc (I don't know if there's a similar tool for Gnome),
you can use FreeNX to connect to the session exactly as VNC would.
edit: Ok, well I figured out I can run xvncviewer from within the freenx session... which is a good start, but it would be better if i could just use freenx...
oh, and i get major image encoding problems unless i set the image to standard bitmaps... is this just me or everyone? i'm using an nvidia mx440
edit #2 : Well, I've read people talk about using freenx as a proxy to tunnel a vnc connection.... how do I do that? I am using the mac client.... Any help would be appreciated!
-
Re: HOWTO: Install FreeNX
nice howto but i've got a little problem to get started
this is my sources.list
if i now start the 'sudo apt-get update' command i get the following:
I also followed the instruction with key precisly but nothing happend. any suggestions for me?
-
Re: HOWTO: Install FreeNX
I'm getting access forbidden errors when trying to use the repo. Following the instructions:
Code:
jesse@dapper:~/systems$ gpg --keyserver subkeys.pgp.net --recv-keys 1135D466
gpg: requesting key 1135D466 from hkp server subkeys.pgp.net
gpg: key 1135D466: "Dennis Kaarsemaker (Package signing key) <dennis@kaarsemaker.net>" not changed
gpg: Total number processed: 1
gpg: unchanged: 1
jesse@dapper:~/systems$ gpg --export --armor 1135D466 | sudo apt-key add -
OK
jesse@dapper:~/systems$ sudo apt-get install freenx
Reading package lists... Done
Building dependency tree... Done
The following extra packages will be installed:
libxcomp1 libxcompext1 nxagent nxlibs
Suggested packages:
nxdesktop nxviewer smbfs esound-clients libarts1c2 libarts1 xdm
The following NEW packages will be installed
freenx libxcomp1 libxcompext1 nxagent nxlibs
0 upgraded, 5 newly installed, 0 to remove and 1 not upgraded.
Need to get 2504kB of archives.
After unpacking 6529kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Errhttp://seveas.ubuntulinux.nl breezy-seveas/all libxcomp1 1.4.92+1.5.0-4ubuntu0
403 Forbidden
Errhttp://seveas.ubuntulinux.nl breezy-seveas/all libxcompext1 1.4.92+1.5.0-4ubuntu0
403 Forbidden
Errhttp://seveas.ubuntulinux.nl breezy-seveas/all nxlibs 1.4.92+1.5.0-4ubuntu0
403 Forbidden
Errhttp://seveas.ubuntulinux.nl breezy-seveas/all nxagent 1.4.92+1.5.0-4ubuntu0
403 Forbidden
Errhttp://seveas.ubuntulinux.nl breezy-seveas/all freenx 0.4.4+0.4.5-3ubuntu0
403 Forbidden
Failed to fetch http://seveas.ubuntulinux.nl/pool/freenx/libxcomp1_1.4.92+1.5.0-4ubuntu0_i386.deb 403 Forbidden
Failed to fetch http://seveas.ubuntulinux.nl/pool/freenx/libxcompext1_1.4.92+1.5.0-4ubuntu0_i386.deb 403 Forbidden
Failed to fetch http://seveas.ubuntulinux.nl/pool/freenx/nxlibs_1.4.92+1.5.0-4ubuntu0_i386.deb 403 Forbidden
Failed to fetch http://seveas.ubuntulinux.nl/pool/freenx/nxagent_1.4.92+1.5.0-4ubuntu0_i386.deb 403 Forbidden
Failed to fetch http://seveas.ubuntulinux.nl/pool/freenx/freenx_0.4.4+0.4.5-3ubuntu0_all.deb 403 Forbidden
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Anyone have any idea why?
-
Re: HOWTO: Install FreeNX
Apparently he changed the repos but never updated the HOWTO: http://free.linux.hp.com/~brett/seve...seveas/freenx/
New repo should be: deb http://free.linux.hp.com/~brett/seveas/freenx breezy-seveas freenx
-
Re: HOWTO: Install FreeNX
anyone have an update on how to make freenx work with dapper?
Aaron
-
Re: HOWTO: Install FreeNX
Hello, I am new to linux and am very familar with Windows. I would like to use FreeNX as a true desktop sharing utility and now start a new x-session. I have KDE installed and both KRFB and X11VNC. How can I set these up to work with FreeNX Server? The FreeNX portion works fine.
Thanks!!
-
Re: HOWTO: Install FreeNX
I really like FreeNX. Much better than VNC when working. But there's one critical problem that I'm facing.
My UBUNTU machine is at my office running 24/7 and I access it via FreeNX from my home WIN XP. My DSL connection using a router is usually stable. But sometimes it drops and my FreeNX session terminates before I have a chance to save my session.
When I tried to reconnect using FreeNX, I get a new session instead of the resumed one. I can locate the applications running from the existing sessions but how do I restore it?
This is a major problem for those who work on documents. Any clues?
-
Re: HOWTO: Install FreeNX
i have 2 problems
1) i've downloaded the freenx client, but i can't connect to my server, i get this error:
Code:
NX> 203 NXSSH running with pid: 3012
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: 10.0.0.40 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
i'm using root to login
2) is it possible to connect to server using the Remote Desktop Connection that's standard in win XP?
-
Re: HOWTO: Install FreeNX
Ok, I have a silly question but I have to ask it. I got freenx setup and I'm able to connect to it from my windows xp box at work. (Had a time figuring out I had to enable SSL on the NX client) and I get connected. The only problem is that I use Gnome and I can't see the top of my screen using the NX client. Anybody have any ideas?
-
Re: HOWTO: Install FreeNX
Please someone give me a hand with configuration:
job@UbuntuServer:~$ sudo /etc/init.d/ssh restart
* Restarting OpenBSD Secure Shell server... /etc/ssh/sshd_config: line 4: Bad configuration option: What
/etc/ssh/sshd_config: terminating, 1 bad configuration options
top part of config file with line 4:
# Package generated configuration file
# See the sshd(8) manpage for details
What ports, IPs and protocols we listen for Port 22
#Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes
-
Re: HOWTO: Install FreeNX
amara or anybody else,
could you post your /etc/ssh/sshd_config so some dummy:) like me can take a look at it?
thanks
-
Re: HOWTO: Install FreeNX
I need a freenx client for amd64...
any ideas?
-
Re: HOWTO: Install FreeNX
Quote:
Originally Posted by vyktor69
Ok, I have a silly question but I have to ask it. I got freenx setup and I'm able to connect to it from my windows xp box at work. (Had a time figuring out I had to enable SSL on the NX client) and I get connected. The only problem is that I use Gnome and I can't see the top of my screen using the NX client. Anybody have any ideas?
Change the resolution settings in client configuration. I use full screen.
-
Re: HOWTO: Install FreeNX
Hi thanks fore the super guide, this program rocks.
But im missing the VNC way, so that i dont have to start a new session.
I have tryied to change the desktop to vnc, but i belive i need to do somthing on the server side, but do not know what
code from the connection:
NX> 148 Server capacity: not reached for user: brian
NX> 105 startsession --session="me ubuntu server" --type="vnc" --cache="8M" --images="32M" --cookie="******" --link="lan" --kbload="pc102/dk" --kbtype="pc102/dk" --keybd="1" --nodelay="1" --encryption="1" --backingstore="when_requested" --geometry="fullscreen" --media="0" --agent_server="192.128.2.106:0" --agent_user="" agent_password="***"" --screeninfo="1024x768x32+render"
NX> 1000 NXNODE - Version 1.4.0-45-SVN OS (GPL)
NX> 700 Session id: xxx
NX> 705 Session display: 1004
NX> 703 Session type: vnc
NX> 701 Proxy cookie: xxx
NX> 702 Proxy IP: 127.0.0.1
NX> 706 Agent cookie: xxx
NX> 704 Session cache: vnc
NX> 707 SSL tunneling: 1
NX> 1004 Error: Session did not start.
NX> 504 Session startup failed.
NX> 999 Bye
Killed by signal 15.
thanks in advance
-
Re: HOWTO: Install FreeNX
when i login with nxclient it said no icon was found, no theme, no applet was loaded,...
i add gnome-settings-daemon to seson but applet still doesn't want to load applets and themes.
if i logout and connect with nxclient then everything works, is possible that gnome has multi sessions that this will work even i am logged in.
thx
-
Re: HOWTO: Install FreeNX
If anyone is having problems with FreeNX and getting strange errors about Public Key Auth. failing for user NX, I recently fixed the error by running the command:
Apparently my Nx user was locked.
Check your auth.log to see if when you get the strange error your NX user is locked.
If so then this cmd should fix it.
Please warn if I've done a no-no with this command ;)
I'm still a newb.
- dmccarney
-
Re: HOWTO: Install FreeNX
Using this How-To, I've successfully gotten FreeNX working. What I would like to know is...Is there a way to copy files from client to server and vice versa using FreeNX? Or, do I have to seperately use an FTP server and client?
-
Re: HOWTO: Install FreeNX
I'm not sure of any way to do it with JUST FreeNX, but since FreeNX runs on SSH and SSH provides SCP, you can just fire up an SCP client and then use your SSH connection as an encrypted FTP connection.
Personally, I use WinSCP for my SCP client but the command line version of SCP works great too. WinSCP has a great graphical FTP client feel to it.
PuTTY has it's own client available too but I forget the name.
-
Re: HOWTO: Install FreeNX
Quote:
Is there a way to copy files from client to server and vice versa using FreeNX? Or, do I have to seperately use an FTP server and client?
If you don't need to send too much data back and forth, use gnome's built in sftp connection in conjuction with nautilus.
Go to Places > Connect to Server > choose SSH. Enter the IP address for Server and the username and a descriptive name for the connection. Then you will be able to drag and drop files whenever you want. Even without FreeNX being connected.
Tip: Just drag files onto the shortcut icon on your desktop and they will be copied to the remote computer. Very handy.
Edit: Just noticed you are using Kubuntu. Konqueror has sftp functionality also although I don't remember the steps to set it up.
-
Re: HOWTO: Install FreeNX
So I have been trying to get this freeNX working for about 2 weeks. I've done all kinds of research and still can't get it to completely work.
My problem lies in connecting to my linux box with WINXP across the internet. I'm using the nomachine client and it works fine at home (local network) most of the time, I will explain later.
So this is my exact problem. Across the internet I can make a connection to my machine and even authenticate. It's when it begins to negotiate a session it errors out.
My research has lead me to do a few things:
-Verify that my home directory is read only to all users
-Delete any instances of .Xauthority-* in my home directory
-Issue a command >sudo ifconfig lo up (no idea what this does)
Like I stated before at home (local network) everything works fine until I issued the (sudo ifconfig lo up) command. At this point nothing works for a few hours, then I can reissue the (sudo /etc/init.d/ssh restart) command and it begins to work at home (local network) again.
All I can deduct from my trials is this:
It appears something goes wrong when trying to generate an Xsession from outside my LAN? It might have something to do with some proxy loop back thing?
Any suggestions or ideas?
Update:
I tried a couple things and actually got a little success. First I went into the /etc/nxserver/node.conf file and edited some more paths, basically just adding in the complete path for certian commands. Then I went and copied the client.id_dsa.key from /var/lib/nxserver/home/.ssh to my XP machine and reloaded the key.
I tried to connect again from inside my LAN and it works multiple times. I tried to connect from outside my LAN and it worked, but only once. Then I have to wait a little while, delete my clients cache, reload the key again, and every now and then it will work again. But only one time and I then after to repeat the stated process?!?! What the heck.
-
Re: HOWTO: Install FreeNX
I have made a little more progress I've discovered that it's one particular XP machine that is having problems connecting.
I have installed the client on other windows based computers in my office and they connect fine. My computer on the other hand is intermitent. Sometimes it works sometimes it doesn't, and it never does 2 times in a row. Once I connect successfully it usually take me another 3-4 failed attempts then during some magical process I can terminate an existing session and click on the 'New' button and it will connect.
I don't have the windows firewall running, just plain weird?!?
-
Re: HOWTO: Install FreeNX
Greetings!
Real noob here ;) ... but, I just wanted to report that I have been able to get FreeNX working on Dapper 6 and WOW! is it fast compared to VNC!!!
I had just a bit of trouble finding the correct repository (the one listed in the first post of this thread generated "403 - forbidden" errors on attempted download) but, the one that finally worked for me (and I used Synaptic) was:
deb http://free.linux.hp.com/~brett/seveas/freenx/ breezy-seveas freenx
In addition to this thread, I found the following wiki entry helpful: http://www.ubuntuforums.org/newreply...ote=1&p=894298
Finally, I downloaded the NX Client for Windows from nomachine.com and it works great on my XP clients (both Pro and Home versions)... When setting this up I selected the recommended "NoMachine" setting when prompted.
Hope this info is helpful to someone!
Mark
-
Re: HOWTO: Install FreeNX
I am having trouble getting this working...
I folowed the tutorial and used the nomachine key, set up the windows client to connect to port 22 with the setting under desktop as os type-unix gnome. But when I try to connect it immediatly gives me 'cannot start the local X server' It looks like it might have flashed up one other message, but I coudn't read it...
I can ssh into the box with putty just fine, and vnc works (but loading my 60mb desktop is slow even with a 10mbs lan connection), but I can't make freenx do anything...
Does the fact that I am running a twinview (2 monitors, one has the desktop on it and the other is just free space to put windows) setup be messing with it?
Where do I find the logs to see what is hapening?
Thanks!
btw, if you are having trouble getting the files, use deb http://free.linux.hp.com/~brett/seveas/freenx/ breezy-seveas freenx
works great
-
Re: HOWTO: Install FreeNX
is there any posibility to connect to an existing session also known 'console' mode from Winblows world???
-
Re: HOWTO: Install FreeNX
I can't get FreeNX to work. It keeps giving me this error:
NX> 105 NX> 1004 Error: nxagent failed to start with: NXAGENT: Fatal IO error on display "nx/nx,options=/home/roeland/.nx/C-blacktower-1000-0FA2248F87D24B8F9E8B01BE133F8671/options:1000".
There is no other error in my logs, I'm trying to run a gnome session, (COMMAND_START_GNOME=gnome-session)
I've tried googline for this and the only solution I noticed was that flac wasn't installted. I don't know what it's got to do with it, but on both machines I've installed the flac package and all the gstreamer-plugins.
Can anyone help me out here?
Thanks!
-
Re: HOWTO: Install FreeNX
The nxClient can be invoked from:-
/usr/NX/bin/nxclient &
also.
-
Re: HOWTO: Install FreeNX
I have a couple of questions.
I am constantly getting an error when I try to connect. The Authentication goes through fine and then it times out.
The error mentions an unrecognised "1" and it says it is unable to start the server but when I log onto machine and check it, the server is running.
The version I installed from the repo that the howto is referring to is 1.4 and my client is a Windows version 2.0.
Could that be the problem? I checked on the website and there is a freenx server version 2 deb package.
Could it be that the server is not recognising one of the parameters and so not starting up the session?
Has anyone tried installing the deb from the freenx website?
-
Re: HOWTO: Install FreeNX
Does this work for ubuntu/ppc? I have the respository and see FreeNX, but it depends on nxagent and libs which aren't in the repository for me (in aptitude FreeNX is red and lists the dependencies as unavailable).
-
Re: HOWTO: Install FreeNX
Freenx in Dapper has serious problems. Firstly, the version installed via the additional repo according to this howto is old. Therefore, when you use the latest Windows client from nomachine (I have searched the internet and been unable to find a download of the older version), there is an incompatibility.
So, ok, try downloading the debs from nomachine and installing them directly. On their site, it says it runs with Ubuntu 6 - wrong. There is a dependency that cannot be met. Again, I have searched the internet for this file to meet the dependency - no luck. I'm sorry, I can't give exact names of the files now because I'm not at the machine.
I have been screwing around with this for 2 full days. It shouldn't be this hard. I admit I am no expert - but this is very very frustrating. Can someone that actually knows what they are doing please please do a proper howto for installing the latest version from nomachine.
-
Re: HOWTO: Install FreeNX
I have been running nx without a problem so far.
I noticed that if I connect to the server running nxclient under XGL/compiz session then all the icons are not displayed.
Is there any way to fix it. Now I have to disable XGL to run nxclient.
-
Re: HOWTO: Install FreeNX
I agree with Brickbat....
-
Re: HOWTO: Install FreeNX
Spent most of today scratching my head about this and getting confused and picking loads of bits of information up from here and there. I now have nx working and I'm extremely impressed with the performance so far.
I thought I would detail some of my ways of getting it working in case its any use to anyone else.
My setup:
server: Ubuntu dapper with latest updates
client: Ubuntu dapper with latest updates
Both running Gnome on X 7.0, SSH already setup so I can login with DSA keys
Firstly on the server
As most people know the repositories have changed since the howto so do:
Code:
sudo vi /etc/apt/sources.lst
and add
deb http://free.linux.hp.com/~brett/seveas/freenx/ dapper-seveas freenx
to the end
update the database:
Code:
sudo apt-get update
then install freenx
Code:
sudo apt-get install freenx
and choose nomachine keys in the setup.
Next, as SSH will have the authorized_keys file set as default and you don't really want to change from that copy the file authorized_keys2 that freenx installs to the location sshd is expecting to see:
Code:
su -
cd /var/lib/nxserver/home/.ssh
cp authorized_keys2 authorized_keys
then tidy up the ownership
Code:
chown nx authorized_keys
I had to add a user to freenx before it let my client connect in so add a user:
Code:
nxserver --adduser yourusername
nxserver --passwd yourusername
and fill in the password you want. The user name you choose needs to already be setup on the server as a valid login.
Now it will have added a key in ~/.ssh/authorized_keys2 which again is not where sshd will expect to find the keys so add the key to the end of your normal authorized_keys file:
(to drop from root if you are still in)
Code:
cd ~yourusername/.ssh
cat authorized_keys2
drag the mouse over the whole key starting from ssh-dss ending with the last character then:
press o to open a new line, press the middle mouse button to paste the previous selection, then press escape and type :wq and press enter.
Now the client
Again add the saveas repository to apt:
Code:
sudo vi /etc/apt/sources.lst
and add
deb http://free.linux.hp.com/~brett/seveas/freenx/ dapper-seveas freenx
to the end
update the database:
Code:
sudo apt-get update
then install nxclient
Code:
sudo apt-get install nxclient
Then either add the nx bin directory to your path adding /usr/NX/bin to your path in ~/.bash_profile or just type /usr/NX/bin/nxclient to run it. Strangely if you uninstall and reinstall nxclient without deleting your ~/.nx folder it will put it into the gnome Applications menu under internet...
Set up the client as you would expect, using the username and password you setup on the server and perhaps dropping the res to 800x600 for an ADSL connection for speed.
Hope I've not forgotten anything, I'm sure others have better ways to do it, this was just my way of getting it working.
Darren
-
Re: HOWTO: Install FreeNX
Quote:
Originally Posted by
brickbat
I have a couple of questions.
I am constantly getting an error when I try to connect. The Authentication goes through fine and then it times out.
The error mentions an unrecognised "1" and it says it is unable to start the server but when I log onto machine and check it, the server is running.
The version I installed from the repo that the howto is referring to is 1.4 and my client is a Windows version 2.0.
Could that be the problem? I checked on the website and there is a freenx server version 2 deb package.
Could it be that the server is not recognising one of the parameters and so not starting up the session?
Has anyone tried installing the deb from the freenx website?
Hi,
I have Debian Etch and have installed this:
freenx 0.5.0-2
nxagent 1.4.92+1.5.0-11
libxcomp1 1.4.92+1.5.0-11
libxcompext1 1.4.92+1.5.0-11
nxlibs 1.4.92+1.5.0-11
from deb http://debian.tu-bs.de/project/kanotix/unstable/ sid nx
And everything work great for me. I tested this with NX Client 2.0.0-98 and NX Client 1.5.0-138.
I tested it with FreeNX 0.4.4+0.4.5-4 and work good too.
If i use NX Client 2.0.0 i must use some hack in nxnode to work for me.
If somebody have problem with NX Clients versions 2.0.0 and FreeNX 0.4.x or 0.5.0, you can read wiki about this problem and solution here:
http://openfacts.berlios.de/index-en...roblem_Solving
or here:
http://wiki.debian.org/freenx
or here:
http://gentoo-wiki.com/Talk:HOWTO_Fr....4.x_and_0.5.0
1.4.0 is old backend, try upgrade to 1.5.0 .
Newest freenx is version 0.5.0.
Hope that will help.
Predseda
-
Re: HOWTO: Install FreeNX
Quote:
Originally Posted by
Predseda3D
Hi,
I have Debian Etch and have installed this:
freenx 0.5.0-2
nxagent 1.4.92+1.5.0-11
libxcomp1 1.4.92+1.5.0-11
libxcompext1 1.4.92+1.5.0-11
nxlibs 1.4.92+1.5.0-11
from deb
http://debian.tu-bs.de/project/kanotix/unstable/ sid nx
And everything work great for me. I tested this with NX Client 2.0.0-98 and NX Client 1.5.0-138.
I tested it with FreeNX 0.4.4+0.4.5-4 and work good too.
If i use NX Client 2.0.0 i must use some hack in nxnode to work for me.
If somebody have problem with NX Clients versions 2.0.0 and FreeNX 0.4.x or 0.5.0, you can read wiki about this problem and solution here:
http://openfacts.berlios.de/index-en...roblem_Solving
or here:
http://gentoo-wiki.com/Talk:HOWTO_Fr....4.x_and_0.5.0
1.4.0 is old backend, try upgrade to 1.5.0 .
Newest freenx is version 0.5.0.
Hope that will help.
Predseda
I tried the 2.0 nxclient from nomachine and got the 1 error. Looks like they are just incompatible. Using the nxclient 1.5 from seveas works fine.
-
Re: HOWTO: Install FreeNX
Quote:
Originally Posted by
darrenm
I tried the 2.0 nxclient from nomachine and got the 1 error. Looks like they are just incompatible. Using the nxclient 1.5 from seveas works fine.
Did you apply hacks in nxnode as is described in wiki from my previous post ?
Without those hacks i cannot use client version 2.0.0 too.
But with those hacks applying, it's working great.
Pred