View previous topic :: View next topic |
Author |
Message |
jthompson Apprentice
Joined: 24 Apr 2004 Posts: 159 Location: Pompano Beach, FL
|
Posted: Thu Jul 06, 2006 3:15 pm Post subject: Free NX or freenx or FreeNX. Will it work on AMD64? |
|
|
Ok, so I've been using freenx on a 32 bit install for quite a while. I see that some folks got it to work on AMD64 on bugs.gentoo.org and on a couple of forum posts. It even compiles ok using the 1.5 stuff.
However, when I try to connect with a 1.4 client from Linux, it hangs at the message that says "Established X Server connection." It never writes anything /var/log/nxserver.log.
I download the 2.0 Client and put it on my Windows Laptop and I get the same behavior.
I can connect to my 32 bit machine using all of the 1.4 stuff and freenx 0.4.4-r1.
So what specifically did you do to make yours work on AMD64?
I would rather avoid the 32 bit chroot if I could (because in that case I may as well just do a 32 bit install). I am trying to cram more users onto one machine which is the main reason I'm investigating this.
***EDIT***
Ok to add some more info, specifically this is what I get... I successfully compiled the following:
nxproxy 1.5.0-r2
nxcomp 1.5.0-r2
nx-x11 1.5.0-r8
nxclient 1.5.0-r4
nxssh 1.5.0-r2
nxesd 1.5.0
So with my windows 2.0 client or the Linux 1.4 client I get...
Code: | NX> 1000 NXNODE - Version 1.5.0-50-SVN OS (GPL)
NX> 105 NX> 596 Session startup failed.
NX> 1004 Error: NX Agent exited with exit status 1.
NX> 1006 Session status: closed
NX> 700 Session id: roofisonfire-1000-411801601E2F527F16B5A93F604B0131
NX> 705 Session display: 1000
NX> 703 Session type: unix-gnome
NX> 701 Proxy cookie: c8f323e4ced581d9b2a7e4254770f5bc
NX> 702 Proxy IP:
NX> 706 Agent cookie: c8f323e4ced581d9b2a7e4254770f5bc
NX> 704 Session cache: unix-gnome
NX> 707 SSL tunneling: 0
/usr/NX/bin/nxserver: line 1077: 19145 Terminated sleep $AGENT_STARTUP_TIMEOUT
Can't open /usr/NX/var/db/running/sessionId{411801601E2F527F16B5A93F604B0131}: No such file or directory.
mv: cannot stat `/usr/NX/var/db/running/sessionId{411801601E2F527F16B5A93F604B0131}': No such file or directory
Killed by signal 15. |
For giggles I stop the nxserver and rerun the nxsetup script
Code: | nxserver --stop
nxsetup --clean --purge |
And then I get
Code: | roofisonfire ~ # nxsetup --clean --purge
------> 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/NX/bin/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] NRemoving special user "nx" . ..done
Removing session database ...done
Removing home directory of special user "nx" ...done
Removing configuration files ...done
Setting up /usr/NX/etc ...done
Generating public/private dsa key pair.
Your identification has been saved in /usr/NX/etc/users.id_dsa.
Your public key has been saved in /usr/NX/etc/users.id_dsa.pub.
The key fingerprint is:
6b:c2:72:fc:e8:87:b6:b7:e7:95:bc:6a:a7:3f:c2:60 root@roofisonfire
Setting up /usr/NX/var/db ...done
Setting up /var/log/nxserver.log ...done
Setting up special user "nx" ...Creating mailbox: File exists
done
Setting up known_hosts and authorized_keys2 ...done
Setting up permissions ...done
----> Testing your nxserver configuration ...
Error: Could not find nxagent in /usr/NX/bin. Please install some OSS components .
Warning: Could not find nxdesktop in /usr/NX/bin. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/NX/bin. VNC sessions won't work.
Error: Invalid value "PATH_LIB=/usr/NX/lib32"
Error: Invalid value "AGENT_LIBRARY_PATH=/usr/NX/lib32"
Error: Invalid value "PROXY_LIBRARY_PATH=/usr/NX/lib32"
Error: Invalid value "APPLICATION_LIBRARY_PATH=/usr/NX/lib32"
Error: Invalid value "APPLICATION_LIBRARY_PRELOAD=/usr/NX/lib32/libX11.so.6.2:/u sr/NX/lib32/libXext.so.6.4:/usr/NX/lib32/libXcomp.so.1:/usr/NX/lib32/libXcompext .so.1:/usr/NX/lib32/libXrender.so.1.2"
Error: Invalid value "KDE_PRINTRC=/root/.kde/share/config/kdeprintrc"
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 SA MBA.
Warning: Invalid value "COMMAND_SMBUMOUNT=smbumount". You'll not be able to use SAMBA.
strings: '/usr/NX/bin/nxagent': No such file
Error: Could not find 1.5.0 version string in nxagent. NX 1.5.0 backend is needed for this version of FreeNX.
Error: Invalid value "PROXY_TCP_NODELAY="
Errors occured during config check.
Please correct the configuration file.
|
So, the WARNINGS I don't care about. I decide to do something about the errors. So I do the following.
I realize that there are things that want to point to /usr/NX/lib32, so I create a symbolic link called lib32 that points to lib64.
Code: |
cd /usr/NX
ln -s lib64 lib32
|
I then go into /usr/NX/etc/node.conf and add some things.
Code: | PROXY_TCP_NODELAY="1"
ENABLE_1_5_0_BACKEND="1" |
Some errors still remain... I'll keep poking around.
Code: |
Error: Could not find nxagent in /usr/NX/bin. Please install some OSS components.
Warning: Could not find nxdesktop in /usr/NX/bin. RDP sessions won't work.
Warning: Could not find nxviewer in /usr/NX/bin. VNC sessions won't work.
Error: Invalid value "APPLICATION_LIBRARY_PRELOAD=/usr/NX/lib32/libX11.so.6.2:/usr/NX/lib32/libXext.so.6.4:/usr/NX/lib32/libXcomp.so.1:/usr/NX/lib32/libXcompext.so.1:/usr/NX/lib32/libXrender.so.1.2"
Error: Invalid value "KDE_PRINTRC=/root/.kde/share/config/kdeprintrc"
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.
strings: '/usr/NX/bin/nxagent': No such file
Error: Could not find 1.5.0 version string in nxagent. NX 1.5.0 backend is needed for this version of FreeNX.
Errors occured during config check.
Please correct the configuration file. |
_________________ I can't remember from noon to lunchtime!
Last edited by jthompson on Thu Jul 06, 2006 4:00 pm; edited 3 times in total |
|
Back to top |
|
|
Voyageur Developer
Joined: 06 Mar 2005 Posts: 342 Location: Paris, France
|
Posted: Thu Jul 06, 2006 3:50 pm Post subject: |
|
|
You are using freenx 0.4.4? For amd64 ebuilds, I advise you to add ~amd64 for all net-misc/nx* packages and therefore switch to freenx 0.5.0.
It runs quite well here, and the gentoo ebuilds provide a binary nx-x11 (nx-x11-bin), so installation is a breeze now
Btw, I always connect with 1.5 nxclient, but I think it works with 1.4 too
Edit: hum, just saw your edit. You could try to unmerge nx-x11 and emerge nx-x11-bin _________________ Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages |
|
Back to top |
|
|
jthompson Apprentice
Joined: 24 Apr 2004 Posts: 159 Location: Pompano Beach, FL
|
Posted: Thu Jul 06, 2006 3:59 pm Post subject: |
|
|
I am using the 0.5.0 stuff for AMD 64 and I am having problems with it I was using or am using 0.4.4 on x86. Currently, I don't have a decent way of updating the little linux thin clients I have to the 1.5 client because it is such a stripped down version of Linux (Red Hat 6 or 7), so anyhoo... _________________ I can't remember from noon to lunchtime! |
|
Back to top |
|
|
Voyageur Developer
Joined: 06 Mar 2005 Posts: 342 Location: Paris, France
|
Posted: Fri Jul 07, 2006 9:10 am Post subject: |
|
|
nx-x11-bin instead of nx-x11 did not help? It should fix most of your lib32 problems with other nx components, since it is a 32bit package
Beware that installing this package may break libraries linking for some of your 32bits apps. Sorry I don't have the bugzilla number here, I have already shut down and secured my home server in preparation for holidays _________________ Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages |
|
Back to top |
|
|
jthompson Apprentice
Joined: 24 Apr 2004 Posts: 159 Location: Pompano Beach, FL
|
Posted: Fri Jul 07, 2006 10:22 am Post subject: |
|
|
Yeah I tried that, but it fails at the message "Established X Server Connection." And Like I said it doesn't seem to write anything to /var/log/nxserver.log.
I'll have to post the exact error from the client part when I can get back into my office. Its Friday here, so that may be a couple of days. _________________ I can't remember from noon to lunchtime! |
|
Back to top |
|
|
jthompson Apprentice
Joined: 24 Apr 2004 Posts: 159 Location: Pompano Beach, FL
|
Posted: Mon Jul 10, 2006 5:32 pm Post subject: |
|
|
Ok I finally got a chance to start testing this again...
This time I decided to update my 32 bit gentoo box with all of the 1.5 freenx stuff (the latest and greatest). I can connect to it from a 1.4 NX Client running on linux on another little box. So, 32 bit = good.
However, my 64 bit Gentoo box does not seem to work so happy. I tried using the nx-x11-bin package. I did not see any other "-bin" packages relating to the NX stuff.
I get this message from a 1.5 NX Client on 32 bit Gentoo trying to connect to the 64 bit box.
Code: |
NXPROXY - Version 1.5.0
Copyright (C) 2001, 2005 NoMachine.
See http://www.nomachine.com/ for more information.
Info: Proxy running in client mode with pid '18534'.
Info: Connecting to remote host 'xxx.xxx.xxx.xxx:5001'.
Info: Connection to remote proxy 'xxx.xxx.xxx.xxx:5001' established.
Info: Synchronizing local and remote caches.
Info: Handshaking with remote proxy completed.
Info: Using cache parameters 4/262144/8192KB/8192KB.
Info: Using image cache parameters 1/1/32768KB.
Info: Using modem link parameters 2048/8/40/200.
Info: Using pack method '16m-jpeg-3' with session 'unix-gnome'.
Info: Using ZLIB data compression level 6.
Info: Using ZLIB data threshold set to 32.
Info: Using ZLIB stream compression level 9.
Info: Using remote ZLIB data compression level 6.
Info: Using remote ZLIB stream compression level 9.
Info: No suitable cache file found.
Info: Using remote server 'xxx.xxx.xxx.xxx:5001'.
Info: Starting X protocol compression.
Info: Established X server connection.
Info: Using shared memory support in X server.
Info: End of session requested by signal '15' 'SIGTERM'.
Info: Waiting for cleanup timeout to complete.
Info: Shutting down the link and exiting.
Warning: Parent process appears to be dead. Exiting watchdog.
Warning: Parent process appears to be dead. Exiting keeper. |
I of course have no idea what this means. There also seems to be nothing in /var/log/nxserver.log.
I just tried the Windows 2.0 Client, and it crashed right after the No Machine splash screen. There is a giant log for that, but I figure that is more info than is needed for now. I really don't care about the Windows one, I was just using it to test with...
Any ideas? _________________ I can't remember from noon to lunchtime! |
|
Back to top |
|
|
jhill10110 n00b
Joined: 27 Oct 2003 Posts: 11
|
Posted: Thu Aug 10, 2006 5:30 pm Post subject: |
|
|
I am having the same problem. Does anyone have any ideas about this? |
|
Back to top |
|
|
jthompson Apprentice
Joined: 24 Apr 2004 Posts: 159 Location: Pompano Beach, FL
|
Posted: Thu Aug 10, 2006 5:35 pm Post subject: |
|
|
I have not heard much back from anyone. There are some alpha ebuilds on overlays.gentoo.org. They have some patches for modular xorg. I tried them, but to no avail. So perhaps you can try them and it might work. I think the problem is that No Machine hasn't ported their open source stuff to x86_64. It is strange though that some report that it is working for them on x86_64. I don't know what I am doing wrong. _________________ I can't remember from noon to lunchtime! |
|
Back to top |
|
|
gami Apprentice
Joined: 02 Jun 2006 Posts: 297
|
Posted: Mon Aug 21, 2006 10:11 am Post subject: |
|
|
NX on 64-bit systems works fine. You need to use the 1.5 ebuilds still in testing in the portage tree. Here are the packages I have got on my machine (acting both as a NX client and server):
net-misc/nx-x11-bin-1.5.0
net-misc/nxclient-1.5.0-r4
net-misc/nxcomp-1.5.0-r2
net-misc/nxesd-1.5.0
net-misc/nxserver-freenx-0.5.020060311-r1.ebuild
net-misc/nxssh-1.5.0-r2
You will also need the 32-bit libraries from the emul-linux-* packages for the pre-compiled nx-x11-bin and nxclient.
Finally, the system needs to know about both the 32-bit and 64-bit NX libraries and nxclient also expects to find a /usr/NX/lib directory. I have made /usr/NX/lib a symlink to /usr/NX/lib32 and added both /usr/NX/lib32 and /usr/NX/lib64 to the LD_LIBRARY_PATH in /etc/env.d/50nxpaths. |
|
Back to top |
|
|
jthompson Apprentice
Joined: 24 Apr 2004 Posts: 159 Location: Pompano Beach, FL
|
Posted: Mon Aug 21, 2006 1:47 pm Post subject: |
|
|
Ok I double checked all the pacakge versions and they match up with what you are using gami. I made the symlink as you suggested, there was a symlink of lib pointing to lib64 originally, so now things look like so.
Code: | ls -l /usr/NX
total 32
drwxr-xr-x 2 root root 4096 Aug 17 13:02 bin
drwxr-xr-x 2 nx root 4096 Aug 17 13:03 etc
drwxr-xr-x 3 root root 4096 Jul 17 14:18 home
drwxr-xr-x 2 root root 4096 Jul 17 13:49 include
lrwxrwxrwx 1 root root 5 Aug 21 09:33 lib -> lib32
drwxr-xr-x 2 root root 4096 Jul 17 13:50 lib32
drwxr-xr-x 2 root root 4096 Jul 17 13:49 lib64
drwxr-xr-x 7 root root 4096 Jul 17 13:50 share
drwxr-xr-x 3 nx root 4096 Jul 17 14:33 var |
I also updated the environment variables:
Code: | cat /etc/env.d/50nxpaths
PATH=/usr/NX/bin
ROOTPATH=/usr/NX/bin
CONFIG_PROTECT="/usr/NX/etc:/usr/NX/home"
PRELINK_PATH_MASK=/usr/NX
SEARCH_DIRS_MASK=/usr/NX
LD_LIBRARY_PATH="/usr/NX/lib32:/usr/NX/lib64" |
I am using modular X 7.0, the latest stable one. I am also using gnome-light- the latest stable one.
It still just hangs at the message of "Established X Server Connection." Where should I look for errors? What else can I try? _________________ I can't remember from noon to lunchtime! |
|
Back to top |
|
|
|