Newbie has a FreeNX problem - BSD

This is a discussion on Newbie has a FreeNX problem - BSD ; Hi, I'm trying to get a FreeBSD 7 server up and running in the office here so some of our developers can work on it. We're big NX fans here, so I thought I'd try to get it running out ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: Newbie has a FreeNX problem

  1. Newbie has a FreeNX problem

    Hi,
    I'm trying to get a FreeBSD 7 server up and running in the office here
    so some of our developers can work on it. We're big NX fans here, so I
    thought I'd try to get it running out of the ports collection, but I
    haven't had any luck. I'm new to this, just working through the
    FreeBSD Handbook as I do things, so maybe I've missed something. The
    steps I've taken so far:

    -Installed FreeBSD7 with Gnome from downloaded ISOs. No problems
    there. Everything is pretty much vanilla.
    -Refreshed my ports collection (took a while):
    # csup ports-supfile
    -Built FreeNX:
    # cd /usr/ports/net/freenx
    # make clean
    # make
    # make install
    -At the end of the build output it told me to run nxsetup, so I did
    that:
    # cd /usr/local/NX/bin
    # ./nxsetup --install
    -No problems there. I opted for the default NoMachine key to make life
    easier for clients.
    -Next, I tried connecting with the Windows NX client, version
    3.2.0-13. It appears to authenticate fine, but then it got stuck on
    "Downloading the session information" and failed to connect. Here's
    the client's output:

    NX> 203 NXSSH running with pid: 872
    NX> 285 Enabling check on switch command
    NX> 285 Enabling skip of SSH config files
    NX> 285 Setting the preferred NX options
    NX> 200 Connected to address: 10.0.4.84 on port: 22
    NX> 202 Authenticating user: nx
    NX> 208 Using auth method: publickey
    HELLO NXSERVER - Version 1.5.0-60 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: someDude
    NX> 102 Password:
    NX> 103 Welcome to: freebsd-dev user: someDude
    NX> 105 listsession --user="someDude" --status="suspended,running" --
    geometry="1680x1050x32+render+fullscreen" --type="unix-gnome"
    NX> 127 Sessions list of user 'someDude' for reconnect:

    Display Type Session ID Options
    Depth Screen Status Session Name
    ------- ---------------- -------------------------------- --------
    ----- -------------- ----------- ------------------------------


    NX> 148 Server capacity: not reached for user: someDude
    NX> 105 startsession --link="lan" --backingstore="1" --encryption="1"
    --cache="16M" --images="64M" --media="0" --session="FreeBSD7 VM" --
    type="unix-gnome" --geometry="1680x1020" --fullscreen="1" --
    kbtype="pc102/en_US" --screeninfo="1680x1050x32+render+fullscreen"

    NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
    NX> 700 Session id: freebsd-dev-1000-CE2608C42FC363936211B954EC0387C1
    NX> 705 Session display: 1000
    NX> 703 Session type: unix-gnome
    NX> 701 Proxy cookie: 762a1e06e078590328f05138f5131369
    NX> 702 Proxy IP: 127.0.0.1
    NX> 706 Agent cookie: 762a1e06e078590328f05138f5131369
    NX> 704 Session cache: unix-gnome
    NX> 707 SSL tunneling: 1
    NX> 1009 Session status: starting
    NX> 105 /usr/local/NX/bin/nxserver: line 1190: 1076 Terminated:
    15 sleep $AGENT_STARTUP_TIMEOUT
    NX> 596 Session startup failed.
    NX> 1004 Error: NX Agent exited with exit status 1.
    Can't open /usr/local/NX/var/db/running/
    sessionId{CE2608C42FC363936211B954EC0387C1}: No such file or
    directory.
    NX> 1006 Session status: closed
    NX> 1001 Bye.
    mv: rename /usr/local/NX/var/db/running/
    sessionId{CE2608C42FC363936211B954EC0387C1} to /usr/local/NX/var/db/
    closed/sessionId{CE2608C42FC363936211B954EC0387C1}: No such file or
    directory
    NX> 280 Exiting on signal: 15

    ...............
    So it appears my NX Agent was having some trouble. Here's where I
    start getting clueless, because I don't know much about Unix or nx (I
    know enough to get around, but not enough to troubleshoot a problem).
    I tried running the agent from the server's command line and saw this:
    # cd /usr/local/NX/bin/
    # ./nxagent
    /libexec/ld-elf.so.1: Shared object "libXcom.so.2" not found,
    required by nxagent"

    I don't know if that was a legitimate test or not, but it seemed
    fishy. Poking around, I found libXcom.so.2 right in the /usr/local/NX/
    lib directory. Is there something I need to do to so nxagent can find
    this lib? Or am I barking up the wrong tree?

    Thanks a lot!
    -Mark

  2. Re: Newbie has a FreeNX problem

    easyfixes writes:

    [snip]

    > I tried running the agent from the server's command line and saw this:
    > # cd /usr/local/NX/bin/
    > # ./nxagent
    > /libexec/ld-elf.so.1: Shared object "libXcom.so.2" not found,
    > required by nxagent"


    > I don't know if that was a legitimate test or not, but it seemed
    > fishy. Poking around, I found libXcom.so.2 right in the /usr/local/NX/
    > lib directory. Is there something I need to do to so nxagent can find
    > this lib? Or am I barking up the wrong tree?


    Following command might help.

    $ LDD_LIBRARY_PATH=/usr/local/NX/lib /usr/local/NX/bin/nxagent

    Try recompiling the port. If the problem persists, filing a PR might
    help.

    HTH
    Ashish Shukla
    --
    ·-- ·- ···· ·--- ·- ···- ·- ·--·-· --· -- ·- ·· ·-·· ·-·-·- -·-· --- --

    -----BEGIN PGP SIGNATURE-----
    Version: GnuPG v2.0.9 (GNU/Linux)

    iEYEARECAAYFAkim1NEACgkQHy+EEHYuXnS0DACg6om54Fgyti Bm5FhEvSoMIyua
    CaUAoJeB/jZjGbHdtZI5+T3xSzx23kL6
    =xGqb
    -----END PGP SIGNATURE-----

+ Reply to Thread