You are not logged in.

#1 2005-01-12 15:07:01

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

[request] FreeNX

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

#2 2005-01-20 17:03:46

campylobacter
Member
From: Austria
Registered: 2004-04-12
Posts: 60
Website

Re: [request] FreeNX

push   wink

Can anyone write an wiki entry, please?

Offline

#3 2005-01-21 22:49:35

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [request] FreeNX

campylobacter wrote:

push   wink

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 smile

Offline

#4 2005-01-22 00:02:26

viniosity
Member
From: New York, NY
Registered: 2005-01-22
Posts: 404
Website

Re: [request] FreeNX

I'd also love to see freenx make it in..

Offline

#5 2005-01-22 03:23:43

k-dub
Member
Registered: 2004-11-12
Posts: 49

Re: [request] FreeNX

ditto

Offline

#6 2005-01-22 08:46:55

campylobacter
Member
From: Austria
Registered: 2004-04-12
Posts: 60
Website

Re: [request] FreeNX

DXManiac wrote:

Does that mean you already made a package?
Otherwise, I'd give it a try in the next days smile

Sorry, no.

Offline

#7 2005-01-22 09:22:21

morphus
Member
From: Braunschweig
Registered: 2003-08-06
Posts: 145

Re: [request] FreeNX

Would also love to see that in the arch-repos...

Offline

#8 2005-01-22 21:28:15

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [request] FreeNX

There we are..  I just completed my final testing and basically, the package is working smile

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 smile


PKGBUILD is here,
the install-script(needed with the PKGBUILD) is here and
the package is over here.

Cheers,
DXManiac

Offline

#9 2005-01-22 21:34:27

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [request] FreeNX

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 smile

Cheers,
DXManiac

Offline

#10 2005-01-23 20:42:52

morphus
Member
From: Braunschweig
Registered: 2003-08-06
Posts: 145

Re: [request] FreeNX

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

#11 2005-01-23 20:57:20

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [request] FreeNX

morphus wrote:

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

#12 2005-01-24 07:43:57

morphus
Member
From: Braunschweig
Registered: 2003-08-06
Posts: 145

Re: [request] FreeNX

[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

#13 2005-01-24 18:01:25

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [request] FreeNX

morphus wrote:
[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 smile

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

#14 2005-01-24 18:38:47

morphus
Member
From: Braunschweig
Registered: 2003-08-06
Posts: 145

Re: [request] FreeNX

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 smile

Still have some problems with german / english keyboard-layout, but nothing serious. Now I want to get the Client installed under linux...

Offline

#15 2005-01-24 21:03:42

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [request] FreeNX

morphus wrote:
/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 smile

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 smile

Offline

#16 2005-01-24 21:41:49

morphus
Member
From: Braunschweig
Registered: 2003-08-06
Posts: 145

Re: [request] FreeNX

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

#17 2005-01-24 22:13:58

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 333
Website

Re: [request] FreeNX

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

#18 2005-01-24 22:38:10

morphus
Member
From: Braunschweig
Registered: 2003-08-06
Posts: 145

Re: [request] FreeNX

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 smile

Didn't made the linux client to work since any missing librarys or stuff like that. Will try that in a 2nd step.

Offline

#19 2005-01-24 22:54:59

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 333
Website

Re: [request] FreeNX

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

#20 2005-01-24 22:58:37

Benedict_White
Member
From: Sussex, UK
Registered: 2004-05-27
Posts: 333
Website

Re: [request] FreeNX

Oh, what ports does the client open on the server?


Kind regards

Benedict White

Offline

#21 2005-01-24 23:13:46

morphus
Member
From: Braunschweig
Registered: 2003-08-06
Posts: 145

Re: [request] FreeNX

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

#22 2005-01-25 01:59:42

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: [request] FreeNX

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

#23 2005-01-25 02:29:12

kakabaratruskia
Member
From: Santiago, Chile
Registered: 2003-08-24
Posts: 596

Re: [request] FreeNX

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

#24 2005-01-25 07:24:43

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [request] FreeNX

morphus wrote:

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 smile

Offline

#25 2005-01-25 07:36:32

DXManiac
Member
From: Hamburg, Germany
Registered: 2004-12-09
Posts: 46
Website

Re: [request] FreeNX

Benedict_White wrote:

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 smile

../../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

Board footer

Powered by FluxBB