You are not logged in.
I was considering giving this a go myself, but as I haven't done this before, I think I'll start with something simpler, and hopefully someone else can work this out?
The sources are here and here, some notes on building the components are here, and various articles/discussions here, here, here, and here.
I'm already using it on my Debian systems, but I'd really like to give it a whirl on Arch.
Offline
push
Can anyone write an wiki entry, please?
Offline
push
![]()
Can anyone write an wiki entry, please?
Does that mean you already made a package?
Otherwise, I'd give it a try in the next days
Offline
I'd also love to see freenx make it in..
Offline
ditto
Offline
Does that mean you already made a package?
Otherwise, I'd give it a try in the next days
Sorry, no.
Offline
Would also love to see that in the arch-repos...
Offline
There we are.. I just completed my final testing and basically, the package is working
You can connect with the standard nxclient binary from NoMachine.com(using the correct keys, of course) out of the box.
When removing the package, it leaves some stuff behind in /usr/NX, but also shows a message that it does so(I didn't want to to touch it, just in case someone installs the nxclient right next to the server).
I chose the gentoo installation method, which puts all NX components into /usr/NX, similar to X11's /usr/X11R6.
After unpacking the files from the package, nxsetup creates a useraccount "nx" following no particular UID numbering scheme, someone should look into that if there's a standard for UIDs and GIDs in archlinux.
The package itself has some exotic dependencies, so be prepared(in detail, they are: x-server, openssl, openssh, libjpeg, expect and netcat).
The sources for this PKGBUILD include a link to a patchfile in the KDE mailing lists which is likely to disappear some day. Until then, NoMachine will hopefully have fixed their sources for gcc 3.4 or I'll change the PKGBUILD to load the patch from my own webserver where I'm also hosting my packages.
Ok, enough techspeak for now, enjoy the package and tell me if you encounter any problems
PKGBUILD is here,
the install-script(needed with the PKGBUILD) is here and
the package is over here.
Cheers,
DXManiac
Offline
Oh, just a little hint...
From what I read(I still have to try it myself), installing the nxclient binaries helps with suspending and resuming NX sessions.
Maybe I'll build an arch package for that as well, but currently, I'll recover from my hundreds of freenx builds over a nice drink
Cheers,
DXManiac
Offline
Just wanted to try a compile run, the following happened:
cc -m32 -o nxviewer -O2 -fno-strength-reduce -fno-strict-aliasing -L../../nx-X11/exports/lib argsresources.o colour.o cursor.o desktop.o dialogs.o fullscreen.o listen.o misc.o popup.o rfbproto.o selection.o shm.o sockets.o tunnel.o vncviewer.o -lXaw -lXmu -lXt -lSM -lICE -lXpm -lXext -lX11 ./libvncauth.a -L/usr/local/lib -lz -L/usr/local/lib -ljpeg -L../../nxcomp -lXcomp -L../../nxcompext -lXcompext
/usr/bin/ld: cannot find -lXaw
collect2: ld returned 1 exit status
make[2]: *** [nxviewer] Error 1
make[2]: Leaving directory `/home/morphus/abs/freenx/src/nxviewer/nxviewer'
make[1]: *** [all] Error 2
make[1]: Leaving directory `/home/morphus/abs/freenx/src/nxviewer'
make: *** [World] Error 2
cp: cannot stat `nxviewer/nxviewer': No such file or directory
cp: cannot stat `nxpasswd/nxpasswd': No such file or directory
Any clue?
Offline
Just wanted to try a compile run, the following happened:
/usr/bin/ld: cannot find -lXaw collect2: ld returned 1 exit status
Any clue?
The code part above is the problem..
gcc's linker can't find libXaw.
anaumann@mintcar:~ > pacman -Qo /usr/X11R6/lib/libXaw.so
/usr/X11R6/lib/libXaw.so is owned by xorg 11R6.8.1-1
You're not trying to build it on a head-/X-less system, are you?
Offline
[morphus@spielemorph bin]$ pacman -Qo /usr/X11R6/lib/libXaw.so
/usr/X11R6/lib/libXaw.so is owned by xorg 11R6.7.0-1
[morphus@spielemorph bin]$
I am using xorg 6.7.0, cause of some trouble with my digital output...
Offline
[morphus@spielemorph bin]$ pacman -Qo /usr/X11R6/lib/libXaw.so /usr/X11R6/lib/libXaw.so is owned by xorg 11R6.7.0-1 [morphus@spielemorph bin]$
I am using xorg 6.7.0, cause of some trouble with my digital output...
Erm, stupid me.. FreeNX, being an X11 server on its own, doesn't depend on Xorg, of course
I just rebuild the package on my machine.. without any major problems..
You can find a log of the build process here.
Maybe you can find a difference to your build process in there..
Offline
OK, he is compiling now; I actually have some problems with /bin/sh; If I start any configure script from one partition there are some nasty errors about not finding /bin/sh...
Have to do some investigations on this...
edit1: Compiled without any problems, except that I didn't configured my ssh yet, I will try that now:
[root@spielemorph freenx]# pacman -A freenx-server-1.4.0-1.pkg.tar.gz
loading package data... done.
checking for file conflicts... done.
installing freenx-server... done.
/usr/NX/bin/nxsetup: line 45: /etc/init.d/ssh: No such file or directory
passwd: Unknown user nx
edit2: After enabling sshd, everything installed fine, I can add user and stuff like that. Will now try to connect...
edit3: This is amazing!!! I am connecting from a windows box and it just works. Thanks for your great work
Still have some problems with german / english keyboard-layout, but nothing serious. Now I want to get the Client installed under linux...
Offline
/usr/NX/bin/nxsetup: line 45: /etc/init.d/ssh: No such file or directory
edit2: After enabling sshd, everything installed fine, I can add user and stuff like that. Will now try to connect...
edit3: This is amazing!!! I am connecting from a windows box and it just works. Thanks for your great work
Still have some problems with german / english keyboard-layout, but nothing serious. Now I want to get the Client installed under linux...
Hmmm.. I haven't tried typing anything into NX, but I think, there is a keyboard setting in the client..
Now I only have to resolve that sshd problem above and everything should be fine
Offline
what sshd-problem? sshd- wasn't configured and started for me ==> after configuring and starting the sshd-server, everything was fine.
Perhaps you could check if sshd ist started and working... or just give a note that sshd has to be configured properly for this package to work
About the keyboard-setting: Didn't changed anything, swapped from english to german and back. When I use a linux-client, I will examine that.
Offline
Good work guys.
Just a couple of questions..
I built the package myself, and got 695 warnings (I piped the output to file and greped it) is that likely to be a problem?
I then installed it on a server and that seemes to go ok, I then ran nxsetup and this generated some keys OK.
Now, I just wanted to clarify what next?
I created a user in nx and this created an ssh key.
Which keys do I copy to the client machine?
Can I just install the server on the client machine and run nxclient? or how do I get that working?
Kind regards
Benedict White
Offline
You have to get the nxclient from http://www.nomachine.com/download.php
I chose the client for the windows-system on my notebook, installed, started, gave username and password (I disabled this secure public-key-thing), gave the ip of my linux-system and et voila - connected to a new kde-session on my main computer
Didn't made the linux client to work since any missing librarys or stuff like that. Will try that in a 2nd step.
Offline
Umm.
I dont have windows at home. Will have to wait till I get back to work then.
Thanks for the heads up though.
Kind regards
Benedict White
Offline
Oh, what ports does the client open on the server?
Kind regards
Benedict White
Offline
AFAIK he is using only port 22 with some ssh-stuff... but when he is connected, he will open some more ports; you should allow all outgoing ports and allow incoming port 22...
*AFAIK*
[root@spielemorph homepage]# netstat -tuan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
tcp 0 0 192.168.178.22:33108 216.239.59.99:80 ESTABLISHED
tcp 0 0 192.168.178.22:32817 151.189.21.114:993 ESTABLISHED
tcp 0 0 192.168.178.22:33095 134.169.10.65:21 ESTABLISHED
tcp 0 0 :::6000 :::* LISTEN
tcp 0 0 ::ffff:127.0.0.1:2200 :::* LISTEN
tcp 0 0 ::ffff:192.168.17:33086 ::ffff:193.175.24:22000 ESTABLISHED
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
[root@spielemorph homepage]# /usr/NX/bin/nxserver --start
NX> 100 NXSERVER - Version 1.4.0-02 OS_(GPL)
NX> 122 Service started
NX> 999 Bye
[root@spielemorph homepage]# netstat -tuan
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 0.0.0.0:32768 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN
tcp 0 0 0.0.0.0:631 0.0.0.0:* LISTEN
tcp 0 0 192.168.178.22:33108 216.239.59.99:80 ESTABLISHED
tcp 0 0 192.168.178.22:32817 151.189.21.114:993 ESTABLISHED
tcp 0 0 192.168.178.22:33095 134.169.10.65:21 ESTABLISHED
tcp 0 0 :::6000 :::* LISTEN
tcp 0 0 ::ffff:127.0.0.1:2200 :::* LISTEN
tcp 0 0 ::ffff:192.168.17:33086 ::ffff:193.175.24:22000 ESTABLISHED
udp 0 0 0.0.0.0:68 0.0.0.0:*
udp 0 0 0.0.0.0:631 0.0.0.0:*
[root@spielemorph homepage]#
Offline
I can't get this thing to work. I know sshd is working fine, since I have tested it from a windows machine in my network at home.
I ran /usr/NX/bin/nxsetup, which created a key, and then I copied the key to the client machine's .ssh/ dir but I keep getting this error message from the nxclient.
NX> 203 NXSSH running with pid: 3176
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 200 Connected to address: 192.168.0.1 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline
fixed it by adding:
ListenAddress: 192.168.0.1
to my sshd_config
PS: This thing is a lot faster than vnc. And it looks just like my real dektop.
And where were all the sportsmen who always pulled you though?
They're all resting down in Cornwall
writing up their memoirs for a paper-back edition
of the Boy Scout Manual.
Offline
what sshd-problem? sshd- wasn't configured and started for me ==> after configuring and starting the sshd-server, everything was fine.
Perhaps you could check if sshd ist started and working... or just give a note that sshd has to be configured properly for this package to work
nxsetup tries to start sshd on its own...
You posted some output where it does so by running "/etc/init.d/ssh start"..
That should actually be "/etc/rc.d/sshd start" on archlinux..
And a short message that sshd should be enabled in rc.conf would be appropiate as well, I guess
Offline
I built the package myself, and got 695 warnings (I piped the output to file and greped it) is that likely to be a problem?
That's probably not an issue.. Most of them are warnings that the NoMachine.com people are using an older version of gcc which handles command line options differently..
Here are some examples:
imake.c:972: warning: string length `1094' is greater than the length `509' ISO C89 compilers are required to support
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wnested-externs" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wstrict-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wmissing-prototypes" is valid for C/ObjC but not for C++
cc1plus: warning: command line option "-Wmissing-declarations" is valid for C/ObjC but not for C++
These are just from makedepend which aren't used to actually compile working code, but just to find out, well, the dependencies, obviously
../../config/makedepend/makedepend: warning: ftbase.c (reading ./freetype/config/ftconfig.h), line 69: #error "Unsupported number of bytes in `int' type!"
../../config/makedepend/makedepend: warning: ftbase.c (reading ./freetype/config/ftconfig.h), line 78: #error "Unsupported number of bytes in `long' type!"
../../config/makedepend/makedepend: warning: ftbase.c (reading ./freetype/config/ftconfig.h), line 137: #error "no 32bit type found -- please check your configuration files"
Some warning are more serious, but they don't do any harm(as far as I know):
.././config/cf/X11.tmpl:2364: warning: "SharedLibGLw" is not defined
CrGlCur.c:208: warning: ISO C forbids conversion of object pointer to function pointer type
GetHints.c:72: warning: dereferencing type-punned pointer will break strict-aliasing rules
XKBMAlloc.c:72: warning: comparison is always true due to limited range of data type
omGeneric.c:1837: warning: passing arg 4 of `create_om' discards qualifiers from pointer target type
...and the list goes on and on...
But most of the warnings are just there to say that gcc is developing in some other way and that some thing will break in the feature, when they're enforcing more strict C++ standards conformance.. The transition from 3.3 to 3.4 already broke many gcc-"optimized" sources..
And for the very same reason, I can't use my arch box to compile openh323 for my asterisk pbx via distcc.. There's too big of a mismatch between the gcc3.3 on the telephone box and the gcc3.4 on my arch laptop.
Offline