Page 1 of 6 123 ... LastLast
Results 1 to 10 of 59

Thread: HOWTO: FreeNX on Dapper LTS 6.06

  1. #1
    Join Date
    Nov 2005
    Beans
    1

    HOWTO: FreeNX on Dapper LTS 6.06

    (or alternatively how I lost 3 days of my life)

    Alright. I started with a base install of Dapper LTS. These steps should also work for a base install of non-server Ubunutu:

    0. sudo -s will get you into a su session.
    1. apt-get upgrade
    2. apt-get install openssh-server
    3. apt-get install ubuntu-desktop
    4. test ssh with ssh user@<serverIP>
    5. startx (to test, and then I just open a terminal and continue)
    6. vi /etc/apt/sources.list and enable the universe repositories by uncommenting:

    deb http://us.archive.ubuntu.com/ubuntu/ dapper universe
    deb-src http://us.archive.ubuntu.com/ubuntu/ dapper universe

    and add:

    deb http://free.linux.hp.com/~brett/seveas/freenx dapper-seveas freenx
    deb-src http://free.linux.hp.com/~brett/seveas/freenx dapper-seveas freenx

    save and exit.
    7. add the repository key (optional)
    wget http://free.linux.hp.com/~brett/seve...x/1135D466.gpg -0- |sudo apt-key add -
    8. apt-get update
    9. install the packages
    apt-get install freenx nxclient nxplugin
    select custom keys during the install
    10 add a new user to use with the freenx login
    adduser <remoteuser>
    11. setup up the nxserver
    nxsetup
    Hit enter to setup
    Select yes for custom keys
    Type yes quickly during key generation. If you miss it just re-run the nxsetup
    12. cd /home/<remoteuser>
    13. nxserver --adduser <remoteuser>
    14. nxserver --passwd <remoteuser>
    15. test the setup locally by running the client
    /usr/NX/bin/nxclient
    16. It should bring up a client wizard.
    Name the session, enter the IP of the server. Hit the configure button.
    On the first tab, select Key and then import. The key is here: /var/lib/nxserver/home/.ssh/client.id_dsa.key
    On the advanced tab, check the enable SSL encryption of all traffic.
    17. Use only the 1.5 clients, as the 2.0 client don't work unless you mess with the node config file. 1.5 works well and is stable with this server version.

    You can find the 1.5 client for windows at http://www.industrial-statistics.com/info/nxclients

    A few good things to know for trouble shooting:
    nxserver --history or --version or --status
    logs: /var/log/auth.log or nxserver.log or Xorg.0.log or messages.

    Hope this helps!

  2. #2
    Join Date
    Aug 2006
    Location
    London
    Beans
    4
    Distro
    Ubuntu 7.10 Gutsy Gibbon

    Re: HOWTO: FreeNX on Dapper LTS 6.06

    It rocks. I tried it and it worked like charm. I did accept the default ssh key option to make the installation simple and have no issues

  3. #3
    Join Date
    Jun 2006
    Beans
    12

    Re: HOWTO: FreeNX on Dapper LTS 6.06

    Hmmm. Nube here. I'm sure I'm doing something wrong....

    crhall@blainethetrain:/usr/lib/nx$ sudo nxsetup
    ------> You did select no action.
    FreeNX guesses that you want to _install_ the server.
    Type "y" to abort the installation at this point in time.
    "N" is the default and continues installation.
    Use "/usr/sbin/nxsetup --help" to get more detailed help hints.

    Do you want to abort now? [y/N] n
    ------> It is recommended that you use the NoMachine key for
    easier setup. If you answer "y", FreeNX creates a custom
    KeyPair and expects you to setup your clients manually.
    "N" is default and uses the NoMachine key for installation.

    Do you want to use your own custom KeyPair? [y/N] ySetting up /etc/nxserver ...done
    Setting up /var/lib/nxserver/db ...done
    Setting up /var/log/nxserver.log ...done
    Setting up special user "nx" ...adduser: Warning: The home dir you specified already exists.
    Adding system user `nx'...
    Adding new user `nx' (110) with group `nx'.
    The home directory `/var/lib/nxserver/home' already exists. Not copying from `/etc/skel'
    adduser: Warning: that home directory does not belong to the user you are currently creating
    done
    Setting up known_hosts and authorized_keys2 ...done
    Setting up permissions ...done

    ----> Testing your nxserver configuration ...
    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=startkde"
    Users will not be able to request a KDE 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 ...
    Permission denied (publickey,password).
    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.
    Any thoughts?

  4. #4
    Join Date
    May 2006
    Beans
    24

    Re: HOWTO: FreeNX on Dapper LTS 6.06

    I wold recommend that you try to recreate your pub key and then attempt to re-add your user and set password by nxserver.

    Also, you may want to be sure you are typing in 'yes' during the setup. The install will ask you something similar to: "Do you want to continuing connecting to this server?" You must type yes quickly and press enter.

    Hopefully that will help.

  5. #5
    Join Date
    Jan 2005
    Beans
    65

    Re: HOWTO: FreeNX on Dapper LTS 6.06

    Same for me. I type yes<enter> and then it waits longer on the "Are you sure you want to...etc" question than if I don't type yes, so something is happening.

    It's just that the nxserver isn't running, or so it seems. I can do a nxserver --status and it will say: running, but it doesn't check for a process, just for a file. What's up with that?
    ps aux |grep -i nx gives me nothing though. Surely there must be a process with nx or NX somewhere in the name that runs when you start the server?

    Then: no connection can be made, which seems logical when the server isn't running.

  6. #6
    Join Date
    Jan 2005
    Beans
    65

    Re: HOWTO: FreeNX on Dapper LTS 6.06

    Alright, you have to type yes exactly at the moment the question is asked, NOT before!

    I got the thing to set up, the server is seemingly running because I can su nx, but my 1.5 windows client won't connect. The connection times out. This will be the end of that. Warning: nx can't connect to the running x like vnc can. Too bad vnc under KDE is slow as hell.

  7. #7
    Join Date
    Jul 2006
    Location
    Pomezia, Rome, IT
    Beans
    825
    Distro
    Ubuntu 9.04 Jaunty Jackalope

    Question Re: HOWTO: FreeNX on Dapper LTS 6.06

    Well, I had my go...

    Code:
    mmanu@ubuntumachine:~$ sudo wget http://free.linux.hp.com/~brett/seveas/freenx/1135D466.gpg -0- |sudo apt-key add -
    wget: invalid option -- 0
    gpg: no valid OpenPGP data found.
    If I don't do that I get:

    Code:
    W: GPG error: http://free.linux.hp.com dapper-seveas Release: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 49A120FD1135D466
    W: You may want to run apt-get update to correct these problems
    Any hint?

    Thanks a lot!

    --EDIT--

    I'm very sorry, it just worked after I copied and pasted the command from the actual website... maybe I mispelled something before... sorry for this useless post...
    Last edited by finferflu; September 8th, 2006 at 11:46 PM.

  8. #8
    Join Date
    Jun 2006
    Location
    Germany
    Beans
    Hidden!
    Distro
    Edgy Eft Testing

    Re: HOWTO: FreeNX on Dapper LTS 6.06

    2.0 worked PERFECTLY fine for me, with the 2.0 client from any OS, without having to configure anything.

    Mini-Howto:

    Code:
    wget http://64.34.161.181/download/2.0.0/Linux/FE/nxserver_2.0.0-76_i386.deb
    wget http://64.34.161.181/download/2.0.0/Linux/nxnode_2.0.0-100_i386.deb
    wget http://64.34.161.181/download/2.0.0/Linux/nxclient_2.0.0-98_i386.deb 
    sudo apt-get install openssh-server
    sudo dpkg -i *.deb
    Re-login. The server is running. Forward port 22 in the router if present. Set the client to encrypt all traffic. Connect.
    Last edited by HAARP; September 16th, 2006 at 05:49 PM.

  9. #9
    Join Date
    May 2005
    Beans
    Hidden!

    Re: HOWTO: FreeNX on Dapper LTS 6.06

    The wikipedia page say:
    If set up as a proxy, NX also tunnels Remote Desktop Protocol (for Windows Terminal Server sessions) and remote VNC sessions (all types of OS platforms) and lets them benefit from some of the same speed improvements.
    http://en.wikipedia.org/wiki/Freenx

    How can I achive this?

  10. #10
    Join Date
    Dec 2005
    Beans
    20

    Re: HOWTO: FreeNX on Dapper LTS 6.06

    Quote Originally Posted by HAARP View Post
    2.0 worked PERFECTLY fine for me, with the 2.0 client from any OS, without having to configure anything.

    Mini-Howto:

    Code:
    wget http://64.34.161.181/download/2.0.0/Linux/FE/nxserver_2.0.0-76_i386.deb
    wget http://64.34.161.181/download/2.0.0/Linux/nxnode_2.0.0-100_i386.deb
    wget http://64.34.161.181/download/2.0.0/Linux/nxclient_2.0.0-98_i386.deb 
    sudo dpkg -i *.deb
    Re-login. The server is running. Forward port 22 in the router if present. Set the client to encrypt all traffic. Connect.


    How safe is this?
    i also tried version 2.0 and it worked after manually copying the public key to the client.

    i was not able to get freenx to work prior to this. it will always failed the authentication even though i have the public key the same between the server and client.

    i copy the windows client key and put that into the /home/<remote_user>/.ssh/authorized_keys2

    after that, i can login using the windows from xp machine into the ubuntu machine.

    thanks,
    sg

Page 1 of 6 123 ... LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •