-
HOWTO: Can I use FreeNX with Ubuntu?
Q:How can I use FreeNX with Ubuntu?
A:
EDIT: For those who don't know what FreeNX is, freeNX is a remote desktop protocol, like VNC. Unlike VNC, FreeNX compresses at the X protocol level, giving it a much better experience over low-bandwidth (and high bandwidth) line. To give you an idea of FreeNX's power, I can use Smooth Scrolling in Firefox over a dial-up line without excessive jerking. Over cable/dsl lines, you can barely notice that you're not actually at the system.
It's not in Ubuntu's repositories, but is available for Debian. Add the following line to your /etc/apt/sources.list
Code:
deb http://kanotix.com/files/debian/ ./
The repository is for Kanotix, a Debian/SID Knoppix derivative.
Run apt-get install freenx.
Then, run nxsetup. If you want a nomachine key (RECOMMENDED FOR SIMPLICITY), run nxsetup --setup-nomachine-key instead. Please google the command and read the security implications of doing so! (Basically if FreeNX is flawed, there's a possibility of gaining SSH access as the NX user remotely!)
Make sure that SSH is running for FreeNX to work properly.
**Newer (like these) versions of FreeNX no longer need a nxserver --adduser command. Any user that can log into the system via PAM can log in remotely with NX. Running the nxserver --adduser commands is harmless though.
There are also nxclient deb's in the repository, so browse it and enjoy!
Important Note!
The repository also contains up-to-date reiser4progs (a good thing if you want to try reiser4, and doesn't affect you if you don't use reiser4 at all)
It also has a newer java-package that supersedes Ubuntu's. The Kanotix java-package works perfectly on Ubuntu, so not really a problem either. Just a heads-up in case you wanted to stay as purely Ubuntu as possible!
UPDATE: As someone pointed out, Kanotix FreeNX now depend on libpng being newer or equal to 1.2.7. Warty has version 1.2.5.
You can always grab the Hoary version of libpng. http://archive.ubuntu.com/ubuntu/pool/main/libp/libpng3 and friends are in Ubuntu's repository.
-
Re: How can I use FreeNX with Ubuntu?
Ok, it looks like ssh is working fine. I can ssh into the box from here at work with putty on windows XP.
I installed the NX client for windows XP from nomachine. I think I set everything up ok, but it seems that authentication for user nx is failing. I see that the user nx is set up. Here's the output from the nxclient on windows.
Code:
NX> 203 NXSSH running with pid: 684
NX> 200 Connected to address: XXX.XXX.XXX.XXX on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
Any ideas?
-
Re: How can I use FreeNX with Ubuntu?
I get the same error code
-
Re: How can I use FreeNX with Ubuntu?
did you use the --setup-nomachine-key option?
-
Re: How can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
did you use the --setup-nomachine-key option?
No, because I like secure. I guess there's a key I need to copy to the client?
-
Re: How can I use FreeNX with Ubuntu?
-
Re: How can I use FreeNX with Ubuntu?
Ok, I've gotten a little further. I got the appropriate key copied to the client. Now, I'm getting this output:
Code:
Info: Proxy running in client mode with pid '752'.
Info: Connecting to remote host '192.168.1.110:5001' on SSH port 'localhost:1749'.
Info: Connection to remote proxy '192.168.1.110:5001' established.
Warning: Connected to remote NXPROXY version 1.4.0 with local version 1.3.2.
Warning: Consider checking http://www.nomachine.com/ for updates.
Info: Handshaking with remote proxy '192.168.1.110:5001' completed.
Info: Synchronizing local and remote caches.
Info: Not using NX delta compression.
Info: Using lan link parameters 16384/80/16/8192.
Info: Using pack method '16m-jpeg-9' with session 'unix-gnome'.
Info: Not using ZLIB stream compression.
Info: Not using remote ZLIB stream compression.
Info: Not using persistent cache.
Info: Using remote server '192.168.1.110:5001'.
Info: Starting X protocol compression.
Info: Established X server connection.
Info: End of session requested by remote proxy.
Info: Shutting down the link and exiting.
I can't find anything about that error on google other than someone else asking for help.
-
Re: How can I use FreeNX with Ubuntu?
Make sure that you selected use SSH to encrypt data
-
Re: How can I use FreeNX with Ubuntu?
You mean "Enable SSL encryption of all traffic" ? Yup, it's been checked since the start. As a test, I configured a profile to connect to nomachine's testdrive server. All the settings were the same in the client except for the host address. It worked like a charm. That leads me to believe that it's a setting on my host that is the problem.
On a side note, I'm very impressed with the speed that I saw during the testdrive. Much better than VNC.
-
Re: How can I use FreeNX with Ubuntu?
Quote:
Originally Posted by Rancoras
You mean "Enable SSL encryption of all traffic" ? Yup, it's been checked since the start. As a test, I configured a profile to connect to nomachine's testdrive server. All the settings were the same in the client except for the host address. It worked like a charm. That leads me to believe that it's a setting on my host that is the problem.
On a side note, I'm very impressed with the speed that I saw during the testdrive. Much better than VNC.
speed: amazing, shocking, those are understatements!
If anyone wants to challenge my dial-up claim, go ahead!
-
Re: How can I use FreeNX with Ubuntu?
Who will be the first to post a how to, configuring freenx on ubuntu and a windows client?
-
Re: How can I use FreeNX with Ubuntu?
I assumed that the Windows client would be the easy part! Unless, of course, you don't use a Nomachine key... Then, you're on your own to google for how to install keys & such.
-
Re: How can I use FreeNX with Ubuntu?
hmn
after a
chmod 700 /home/.nx
chmod 700 /home/.nx/.ssh
chmod 700 /home/.nx/.ssh/*
everything worked
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
Q:How can I use FreeNX with Ubuntu?
A:
EDIT: For those who don't know what FreeNX is, freeNX is a remote desktop protocol, like VNC. Unlike VNC, FreeNX compresses at the X protocol level, giving it a much better experience over low-bandwidth (and high bandwidth) line. To give you an idea of FreeNX's power, I can use Smooth Scrolling in Firefox over a dial-up line without excessive jerking. Over cable/dsl lines, you can barely notice that you're not actually at the system.
It's not in Ubuntu's repositories, but is available for Debian. Add the following line to your /etc/apt/sources.list
Code:
deb http://kanotix.com/files/debian/ ./
The repository is for Kanotix, a Debian/SID Knoppix derivative.
Run
apt-get install freenx.
Then, run
nxsetup. If you want a nomachine key (RECOMMENDED FOR SIMPLICITY), run
nxsetup --setup-nomachine-key instead. Please google the command and read the security implications of doing so! (Basically if FreeNX is flawed, there's a possibility of gaining SSH access as the NX user remotely!)
Make sure that SSH is running for FreeNX to work properly.
**Newer (like these) versions of FreeNX no longer need a nxserver --adduser command. Any user that can log into the system via PAM can log in remotely with NX. Running the nxserver --adduser commands is harmless though.
There are also nxclient deb's in the repository, so browse it and enjoy!
Important Note!
The repository also contains up-to-date reiser4progs (a good thing if you want to try reiser4, and doesn't affect you if you don't use reiser4 at all)
It also has a newer java-package that supersedes Ubuntu's. The Kanotix java-package works perfectly on Ubuntu, so not really a problem either. Just a heads-up in case you wanted to stay as purely Ubuntu as possible!
It should be noted that the packages on kanotix.com has been upgraded and FreeNX can't be installed according to the guide because the libnxcomp0 and libnxcompext0 packages on kanotix depends on libpng being >= 1.2.7 and Warty has only 1.2.5. So using the libpng in Hoary should solve this problem. You might want to update your guide with suitable changes so that more people can start using FreeNX.
-
Re: How can I use FreeNX with Ubuntu?
Tried to install freenx from aforementioned repos, and got error
Quote:
freenx:
Depends: nxagent but it is not going to be installed
Depends: nxproxy but it is not going to be installed
Anyone know where I can get these?
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
Q:How can I use FreeNX with Ubuntu?
A:
EDIT: For those who don't know what FreeNX is, freeNX is a remote desktop protocol, like VNC. Unlike VNC, FreeNX compresses at the X protocol level, giving it a much better experience over low-bandwidth (and high bandwidth) line. To give you an idea of FreeNX's power, I can use Smooth Scrolling in Firefox over a dial-up line without excessive jerking. Over cable/dsl lines, you can barely notice that you're not actually at the system.
It's not in Ubuntu's repositories, but is available for Debian. Add the following line to your /etc/apt/sources.list
Code:
deb http://kanotix.com/files/debian/ ./
The repository is for Kanotix, a Debian/SID Knoppix derivative.
Run
apt-get install freenx.
Then, run
nxsetup. If you want a nomachine key (RECOMMENDED FOR SIMPLICITY), run
nxsetup --setup-nomachine-key instead. Please google the command and read the security implications of doing so! (Basically if FreeNX is flawed, there's a possibility of gaining SSH access as the NX user remotely!)
Make sure that SSH is running for FreeNX to work properly.
**Newer (like these) versions of FreeNX no longer need a nxserver --adduser command. Any user that can log into the system via PAM can log in remotely with NX. Running the nxserver --adduser commands is harmless though.
There are also nxclient deb's in the repository, so browse it and enjoy!
Important Note!
The repository also contains up-to-date reiser4progs (a good thing if you want to try reiser4, and doesn't affect you if you don't use reiser4 at all)
It also has a newer java-package that supersedes Ubuntu's. The Kanotix java-package works perfectly on Ubuntu, so not really a problem either. Just a heads-up in case you wanted to stay as purely Ubuntu as possible!
UPDATE: As someone pointed out, Kanotix FreeNX now depend on libpng being newer or equal to 1.2.7. Warty has version 1.2.5.
You can always grab the Hoary version of libpng.
http://archive.ubuntu.com/ubuntu/pool/main/libp/libpng3 and friends are in Ubuntu's repository.
hi there I have read this review and am somewhat confused!
I need to access and control a windows xp computer (my dad's) and need to be able to give really simple instructions over the phone of how to set up the xp machine as the client.
Then I need simpler instructions - after installing nx how do I get it to work and connect to the xp machine.
The two computers both are on broadband.
Thanks for your help so far!
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
puzzledm, in that case you'll need to use VNC.
The FreeNX server will only work on computers using the X protocol, like Linux and Solaris.
There's client software for Windows, but not server software.
On Linux, there's both client and server software.
-
Re: How can I use FreeNX with Ubuntu?
Quote:
Originally Posted by shoelessmike
Tried to install freenx from aforementioned repos, and got error
Anyone know where I can get these?
I get the same error.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
I've packaged working freeNX in my warty-extras repository (see the Backports forum).
It's currently undergoing beta-testing in the -staging tree, I'll have it out of there by Jan 10th.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
If you get a "Parse error in remote options string" type error message it could be because you have a space in the name of the session. I found this info in the mailing list linked. I could not connect the client to the server until I removed the space in the session name.
http://mail.kde.org/pipermail/freenx...er/000529.html
Edit: I find this to be faster and more flexible compared to VNC. TightVNC anyway, thats all I have used. but I'm wondering how i could use freenx instead of vnc for what I use it for. can you have a session start automaticly with a program running in it when the computer boots/reboots? so you can connect to it whenever you need it and its right there?
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
I've packaged working freeNX in my warty-extras repository (see the Backports forum).
It's currently undergoing beta-testing in the -staging tree, I'll have it out of there by Jan 10th.
Thanks! :) That backport worked great. I installed it last night and installed the windows client for my 2000 box at home. I was able to connect on my Lan no problem. I can't believe how fast this is. Much better than VNC. I just have a couple questions.
1. How secure is this? I know that this needs SSH running but I'm confused about security. When I create the Windows client session there is an option to use SSL for all traffic. I am able to connect with SSL on and off. Is this connection secure? And what about leaving this open to I can connect from work. Is that safe?
2. How do I get this to start at bootup?
Thanks for your help.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
I've packaged working freeNX in my warty-extras repository (see the Backports forum).
freenx depends upon a version of libstdc++ that I don't have, so I was unable to install it. Anything I can do to remedy this until the 10th? Thx.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Hi i was wondering if someone could give me some help. I've installed freenx on my linux box which is networked to all the computers in my house via a hub. I can use VNC to remote admin the linux box from my Windows XP computer however i wished to give freenx a try. Everything is installed right, i've setup a nomachine key etc via the original post. I'm using the nx windows client v1.4.0-92 to try get into the linux box. I've setup a user via nxserver adduser [name] and everything. I've got the nx client on the windows box set to Unix>GNOME cause i figured that's what the linux box is running, it's on ubuntu. I tried changing it to VNC and setting it up that way but i got the same error as below. I've also got SSL encryption enabled, i've also tried disabling it. I get this error:
NX> 203 NXSSH running with pid: 3492
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: 169.254.125.206 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
Thanks for the help.
Pete.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by Geekboy
Thanks! :) That backport worked great. I installed it last night and installed the windows client for my 2000 box at home. I was able to connect on my Lan no problem. I can't believe how fast this is. Much better than VNC. I just have a couple questions.
1. How secure is this? I know that this needs SSH running but I'm confused about security. When I create the Windows client session there is an option to use SSL for all traffic. I am able to connect with SSL on and off. Is this connection secure? And what about leaving this open to I can connect from work. Is that safe?
2. How do I get this to start at bootup?
Thanks for your help.
Good, good.
FreeNX goes through ssh security, so it's very secure. I always leave that checkbox checked -- else I get random connection errors. Again, all data through a FreeNX session is SSH encrypted.
2. FreeNX is nothing but SSH with a new user account (nx) with a special shell that talks the NX protocol. So, as long as SSH is started, NX will be started.
Person with libc errors: Post exact errors.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by PeteG
Hi i was wondering if someone could give me some help. I've installed freenx on my linux box which is networked to all the computers in my house via a hub. I can use VNC to remote admin the linux box from my Windows XP computer however i wished to give freenx a try. Everything is installed right, i've setup a nomachine key etc via the original post. I'm using the nx windows client v1.4.0-92 to try get into the linux box. I've setup a user via nxserver adduser [name] and everything. I've got the nx client on the windows box set to Unix>GNOME cause i figured that's what the linux box is running, it's on ubuntu. I tried changing it to VNC and setting it up that way but i got the same error as below. I've also got SSL encryption enabled, i've also tried disabling it. I get this error:
NX> 203 NXSSH running with pid: 3492
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: 169.254.125.206 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
Thanks for the help.
Pete.
Make sure you used --setup-nomachine-key when running nxsetup. Otherwise, you need to carry around the new pubkey to every NX client. We talked about this earlier in the thread.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
Make sure you used --setup-nomachine-key when running nxsetup. Otherwise, you need to carry around the new pubkey to every NX client. We talked about this earlier in the thread.
As stated in my original post i've already done this.
Pete.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Hello All,
How can I install again freenx ? I made an error and deleted /home/.nx and now when I uninstall/reinstall freenx this directory is not created so when I run nxsetup I get some errors when 'nxsetup' tries to copy the ssh-keys.
++++++
Searching for nxserver binary...done
Setting up /etc/nxserver/ ...done
Setting up /var/lib/nxserver/ ...done
Setting up known_hosts and .ssh/authorized_keys2 ...open /home/.nx//.ssh/local.id_dsa failed: No such file or directory.
Saving the key failed: /home/.nx//.ssh/local.id_dsa.
mv: cannot stat `/home/.nx//.ssh/local.id_dsa': No such file or directory
mv: cannot stat `/home/.nx//.ssh/local.id_dsa.pub': No such file or directory
chmod: failed to get attributes of `/home/.nx//.ssh/client.id_dsa.key': No such file or directory
chown: failed to get attributes of `/home/.nx//.ssh/client.id_dsa.key': No such file or directory
chmod: failed to get attributes of `/home/.nx//.ssh/server.id_dsa.pub.key': No such file or directory
chown: failed to get attributes of `/home/.nx//.ssh/server.id_dsa.pub.key': No such file or directory
cp: cannot stat `/home/.nx//.ssh/server.id_dsa.pub.key': No such file or directory
+++++++
I want to run again all the installation scripts but uninstalling/installing isn't working (I've tried with 'apt-get --purge remove freenx etc etc)
Thanks for your help!
LU
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
use mkdir to creat /home/.nx/.ssh
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
I'll do that but I'd have preferred to run again the initial scripts as to avoid any kind of mistake, like setting permissions..., it seems that apt can't do this (?)
Thanks for your answer.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
I haven't really dissected the debian package to see what it really does. This was the version developed by LinuxTag+Knoppix/Kanotix.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
I've packaged working freeNX in my warty-extras repository (see the Backports forum).
It's currently undergoing beta-testing in the -staging tree, I'll have it out of there by Jan 10th.
Do you still think this will get into the stable warty-extras today?
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
It went in already, with issue 4 of Ubuntu Weekly last Friday-ish.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Which newer version of libpng do I want from the site linked to in the first post? I tried blindly the ones sufficiently new, but not only did they not make the freenx package work, but they also caused KDE to want to uninstall. Are there more detailed instructions on making FreeNX work with Warty?
jdong: Is your FreeNX package supposed to work in warty? I still get the libpng error with it.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
AllTom, use Warty Extras (part of Warty Backports). I repackaged FreeNX specifically for Warty.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
AllTom, use Warty Extras (part of Warty Backports). I repackaged FreeNX specifically for Warty.
Ah, I thought I was using that version before, but apparently Kanotix's version was overriding it, which is why I couldn't resolve the libpng error.
Now I have the same problem as PeteG, even after using "nxsetup --setup-nomachine-key".
Edit: I can log in if I set "PasswordAuthentication yes" in the SSHD config file, which leads me to believe I'm using the wrong key... Doesn't nxclient default to sending its own key?
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
I'm trying to use FreeNX to conect to a VNC session. I have FreeNX installed and working on my warty box at home, and I'm connecting from my office using the NoMachine ******* client. I can connect successfully to warty, and it comes up beautifully. Within that NX session, I can open a VNC session to my laptop, which is on the same LAN.
I have entered the laptop's details in the client's VNC settings section using the NX Connection Wizard. When I try to connect, I get this error:
Code:
Parse error in remote options string 'NX>'
There are no white spaces in the laptop's host name, by the way.
Any ideas anyone?
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
I am also getting the errors
Depends: nxagent but it is not going to be installed
Depends: nxproxy but it is not going to be installed
Where can these items be found?
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by oldweasel
I am also getting the errors
Depends: nxagent but it is not going to be installed
Depends: nxproxy but it is not going to be installed
Where can these items be found?
Same error here, when is it going to be fixed ? :sad:
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
I installed FreeNX on my Ubuntu box, and I'm able to connect from a remote windows machine as well as from a VMware windows client. I'm using the NX client from nomachine.com. This is all great, and very fast compared to VNC, but I can't seem to be able to suspend and resume sessions. If I exit the (gnome) session by logging out, then everything is fine, and all the nx processes exit correctly. But if I choose to suspend the session when exiting from the client, then I'm not able to reconnect and resume the session (it fails). Also, sometimes the processes left on the server, especially nxagent, seem to be left in a bad state, and consume 100% of the cpu. The only way to reconnect, is to kill all these processes by hand (and lose the session of course).
So while I like the fact that it's faster then VNC, it cannot serve as a replacement unless the suspend resume (stateless client) feature works reliably.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
how did you get past the errors mentioned above? Same thing I'm getting.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by kdavison007
how did you get past the errors mentioned above? Same thing I'm getting.
you can manually kill all the processes and then it should work. But without suspend/resume like VNC, this is not very useful....
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
I've now tried both the ubuntu-backports and kanotix versions of freenx. While both work smashingly, I've run into one visual glitch on several machines running the server that no one seems to be able to provide any insight on fixing.
Once I log into my remote session, several of the icons are missing (and thus show up as a "broken" icon) on my ubuntu desktop. Most notably, everything in the computer menu, the desktop applet icon and the trashcan-applet icon.
Also, the human theme seems to not render properly, while several other themes work fine. I end up with blue title bars and such when I log in.
As all of these are ubuntu-specific pieces of the desktop, I'm hoping it's something that just requires a bit of tweaking to overcome.
Anyone else experiencing this? Anyone got a fix?
-
Running FreeNX/SSH on a different port
First off, many thanks to Jdong for his most excellent backporting work.
Forgive me, as my experience with ssh is primarily text based (OpenBSD firewalls everywhere!)
I have successfully setup sshd to run on an alternate port, say 8822; no problems with manipulating /etc/ssh/sshd_config to make that happen. However, when I run sshd on any port except 22, FreeNX fails, generally with an error that 'smells' like I don't have the proper public key. Any ideas?
It may be obvious that I am working on getting FreeNX through a firewall. There is an alternative way to do this (on the nomachine website) which involves using the ssh client forwarding capability - I recognize this is there but I'd rather have an alternate port solution if at all possible, as the nomachine method requires an account with ssh privilege on the firewall.
Thanks for any and all suggestions! I'll continue to RTFM and will post if I find an answer to my own question.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
hndrcks, I am currently typing this on an NXsession that is running on an ssh session tunnelled through a firewall. The firewall is set up to forward port 22 to my gateway machine (a debian server). When I log in from there, I port forward my desktop's port 22 to localhost:2222 and then tell NX to connect through that.
Works like a charm:
Code:
ssh -L 2222:desktop:22 server
nxclient (to localhost, port 2222)
Hope this helps, saved my butt when I had to "leave town but keep working" recently.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Thanks for the prompt reply! You are correct, that works great.
Alas, this is the suggested method on the NoMachine website. I really would like to just run the whole business on a non-standard port. Will keep looking...
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Well, I think I may have a solution to that as well...
A friend of mine currently has his desktop at my place, and he is more or less doing exactly what you are describing. To pull it off, we forwarded some port to his machine from my firewall (I think we ironically forwarded 3389 because it used to be a windows XP machine before we booted it in favor of Ubuntu.)
From there, we told sshd to listen on an alternate port:
from /etc/ssh/sshd_config:
Code:
# What ports, IPs and protocols we listen for
Port 22
Port 3389
In your case, you could remove the port 22 line, thereby disallowing logins completely on the standard port, but to be honest your firewall will stop it anyway if it comes from outside the lan so I wouldn't bother.
If you need a specific port, simply change 3389 to a different port. You might want to make sure it isn't in use by another common service though.
Once you make the change, you'll need to restart sshd in order for it to actually start listening to your new directives:
Code:
sudo /etc/init.d/ssh restart
After that, you should be good to go. Just follow my previous directions, substituting 3389 (or whatever you end up using) for port 22 in the connections.
Now, all he has to do is log in with freenx/ssh to my.external.ip:3389 and he can log in. The only potential problem comes if you try to log in and forget to specify the port...you'll end up hitting wrong machine/no machine at all and make a bit of a mess of your known_hosts file. :-)
Hope this helps.
-
Re: Thanks!
Thanks for the suggestion. Adding the extra port to sshd_config, rather than replacing port 22, allowed it to work. When I put only one port in there that wasn't 22, then I got the failure. Go figure...
Anyway, thanks for the suggestion! Mission accomplished!
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
As I said, your firewall should stop port 22 (unless you configure it) anyway, so that isn't really a problem. Plus, you can always hit the machine on port 22 within the network.
Glad you got it working!
Now, if we can only figure out the problem with ubuntu icons and freenx
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
It could be GNOME version specific. I'll package FreeNX for Hoary soon, and we can play with that.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
FreeNX for Hoary packaged.
There's no icon bug in Hoary, just in Warty's GNOME.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
FreeNX for Hoary packaged.
There's no icon bug in Hoary, just in Warty's GNOME.
hmm goody, so we can expect to see it in universe shortly? which will be good as the kanotix repository can't be reached currently.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
No, I'm not affiliated with Canonical.
It's in Hoary Extras: http://backports.ubuntuforums.org/
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
While it won't matter once people start upgrading to hoary, is there any way to fix the bug on existing warty installations?
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Hmm, well, I'm stumped. It's apparently a GNOME bug. It doesn't happen with KDE or XFCE (gtk based, even!) on Warty, it doesn't happen in GNOME in Hoary. That means it's something about Warty's GNOME.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Considering that the problem appears in the custom computer menu, the ubuntu-specific applets like the trash can and in the human theme's colors, I had more or less surmised the same thing.
At a guess, it seems like freenx doesn't know where to look to grab the icon/theming information for these human/ubuntu specific pieces.
Perhaps a symlink in the right place would solve the problem?
I looked around, and couldn't see anything obvious, but then my fu is certainly not as mighty as yours. ;-)
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Are you people able to suspend and resume freenx sessions ?
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
can't find it with hoary-amd64
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
I can suspend and resume with no issues.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by Tichondrius
can't find it with hoary-amd64
No AMD64 or PPC packages -- need devs for these two archs.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
I am trying my best here and feeling pretty helpless.. I added backports.ubuntuforums.org extras to my sources.list, and after apt-get update, still see no sign of freenx. What am I doing wrong?
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
post a copy of your /etc/apt/sources.list
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
deb http://backports.ubuntuforums.org/backports hoary-extras main universe multiverse restricted
Then I apt-get update and look for the Freenx package and I see no such thing in synaptic.. I thought this would be pretty straight forward.. Do I need the other line as well?
deb http://backports.ubuntuforums.org/backports hoary-backports main universe multiverse restricted
Thanks for any tips.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Try adding a forward slash to the end of the url:
Code:
deb http://backports.ubuntuforums.org/backports/ hoary-extras main universe multiverse restricted
Should do the trick.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Did it. No workie..
Strange, here is the output from apt-get update. The thing that jumps out is the IGN.. What does that stand for, ignored or something?
Ign http://backports.ubuntuforums.org hoary-extras Release.gpg
Get:1 http://archive.ubuntu.com hoary Release.gpg [189B]
Ign http://backports.ubuntuforums.org hoary-extras Release
Ign http://backports.ubuntuforums.org hoary-extras/main Packages
Get:2 http://security.ubuntu.com hoary-security Release.gpg [189B]
Ign http://backports.ubuntuforums.org hoary-extras/universe Packages
Hit http://archive.ubuntu.com hoary Release
Ign http://backports.ubuntuforums.org hoary-extras/multiverse Packages
Ign http://backports.ubuntuforums.org hoary-extras/restricted Packages
Fetched 82B in 1s (49B/s)
Reading Package Lists...
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
You have warty-backports specified in the repository, and you are on hoary, hence apt ignores the repository.
(I did that once too!)
Edit: Actually, upon reflection, maybe you didn't do that. I need more sleep!
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Remind me to stop answering help questions in the middle of the night, I completely missed the warty/hoary thing.
:-p
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
So what am I doing wrong then? Any clues.. Thanks much for the analysis.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
I'm getting the exact same error as marko - hoary-extras ignored. Will go back to a rep that I know works (deb http://debian.tu-bs.de/knoppix/nx/slh-debian/ ./), but I'd rather use a build that's ubuntu-supported. Plus, this one has problems with suspend/resume, I'm hoping the hoary-extras one doesn't.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
FreeNX for Hoary is in the hoary-extras-staging distribution. I don't know whether or not libpng's ABI's gonna change before Hoary's release, so I'm not marking it stable!
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Quote:
Originally Posted by jdong
FreeNX for Hoary is in the hoary-extras-staging distribution.
I took the sources.list directly from here: http://backports.ubuntuforums.org/ (bottom of the page). It still doesn't work. Changed it to say hoary-extras-staging, still ignores them. Something is broke somewhere.
Here's my sources.list line:
Code:
deb http://backports.ubuntuforums.org/backports hoary-extras-staging main universe multiverse restricted
Any help appreciated.
-
SOLVED: Backports Ignored
Just flush and reload the package data:
Code:
sudo dselect --expert update quit
Then they should update fine.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
OK, getting FreeNX to run was a breeze. Everything is functional, and very quick.
I've noticed a problem with Gnome theme and icons - the Human theme didn't load correctly, and some of the icons were missing - like the Show Desktop, and Trash. I googled for it, and found that others in this thread are having this problem. I think I've found a workaround.
I'm running Hoary, but this should work with Warty too. The workaround is to disable GDM on the server - which means you won't have nice graphical login prompt, but everything will run smoother remotely.
Try this - inside your NX session open a terminal. Then run
sudo /etc/init.d/gdm stop
Your theme should instantly fix itself as GDM shuts down. To make this permanent, remove /etc/rc2.d/gdm and upon next reboot you will have a console login prompt (of course you can login that way and run startx) and NX will work with the correct theme.
Although, interestingly enough, more than one session with the same login into the system will again show corrupted theme; simultaneous logins from different accounts do not have this problem. I hope this has been helpful; it's not a full fix however. I'm interested to find out why this problem occurs and if anyone has found an actual solution to the problem.
If you are still having problems, try this walkthrough, it might also help.
http://women.alioth.debian.org/wiki/...ildingTutorial
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Hello everyone,
After reading this guide, I'm trying to install FreeNX on Warty. My sources.list looks like this:
But when I run apt-get update, and then apt-get install freenx, I get the following error message:
Quote:
sudo apt-get install freenx
Reading Package Lists... Done
Building Dependency Tree... Done
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: nxclient (>= 1.4.0-75.2) but it is not going to be installed
E: Broken packages
I saw a couple other people post the same error message, but I couldn't decipher any solutions. Ideas? Many thanks.
-
Re: HOWTO: Can I use FreeNX with Ubuntu?
Has anyone got the inbuilt sound forwarding support working with FreeNX?
I am using a WinXP client, and the only way I have got it to work is by doing manual Esound forwarding using the method at this site:
Esound Forwarding
Works well, but I'd like to get the inbuilt support working.
LM
-
Latest sources for FreeNX
I have seen a few posts detailing problems with trying to install freenx from backports. Some of these seem to be associated with the person running warty and freenx is currently hoary-extras-staging? I myself am running pure hoary right now.
Could someone share where exactly I should point my sources to get freenx?
Gol