One of the nagging issues was getting nxserver working on my FreeBSD system. The procedure should be to install 'net/nxserver'
and 'net/freenx'
, but the problem is that 'net/nxserver'
can't be built on a 64-bit system.
So, taking a page from 32bit Wine on FreeBSD/amd64, I built 'net/nxserver'
in my /compat/i386
chroot, with "make package clean"
.
I then installed the package into my 64-bit system, so that I could build and install freenx.
Of course that didn't quite work....had to overwrite the nxserver binaries with various shell scripts to call the /compat/i386
versions.
IE:
/usr/local/NX/bin/nxagent
Shell
#!/bin/sh
#NXAGENT - Version 2.1.0
export LD_32_LIBRARY_PATH=/compat/i386/usr/local/NX/lib:/compat/i386/lib:/compat/i386/usr/lib:/compat/i386/usr/local/lib
exec /compat/i386/usr/local/NX/bin/nxagent "$@"
/usr/local/NX/bin/nxdesktop
Shell
#!/bin/sh
export LD_32_LIBRARY_PATH=/compat/i386/usr/local/NX/lib:/compat/i386/lib:/compat/i386/usr/lib:/compat/i386/usr/local/lib
exec /compat/i386/usr/local/NX/bin/nxdesktop "$@"
l, since nxloadconfig does a "string $PATH_BIN/nxagent"
to find out what version you have. So, I copied the string into the file.
And, then after lots and lots of troubleshooting, I eventually found the last hang up....
Shell
--- nxnode.orig 2012-10-07 14:06:48.000000000 -0500 | |
+++ nxnode 2012-10-07 14:07:26.000000000 -0500 | |
@@ -416,7 +416,7 @@ | |
# backingstore = 1 (new nxclient 2.0.0 doesn't send any strings in the option-string for backingstore anymore) | |
[ -n "$backingstore" -a "$ENABLE_2_0_0_BACKEND" != "1" -a "$backingstore" = "1" ] && B="+bs" | |
# backingstore = 1 and 2.0.0-Backend EXPERIMENTAL | |
- [ -n "$backingstore" -a "$ENABLE_2_0_0_BACKEND" = "1" ] && B="-bs $backingstore" | |
+ [ -n "$backingstore" -a "$ENABLE_2_0_0_BACKEND" = "1" ] && B="+bs" | |
| |
# geometry |
Though maybe the line above was meant to be "$ENABLE_2_0_0_BACKEND" = "1"
Anyways, it works....
...except that logging into another session of myself was a mess on the tiny screen of my laptop....its not dual 1920x1080 like my main desktop. And, logging out messed up my active desktop session. It apparently killed gvfs, so I couldn't ls my home dir anymore. And, then I killed to much and had to reboot.
Meanwhile...still trying to workout how to get nfsclient to take place after vboxheadless starts, so it can mount NFS filesystems from my VM.