Jonathan Brooks | 12 May 23:37 2014
Picon
Picon

server not starting

Hi,

I’ve been experimenting with FreeNX to see if I can make it work under Ubuntu 13.10, and have
had some success - see earlier threads. However, the reason I was attempting this was because
I’d previously failed to get FreeNX to work on a workstation image that our IT have installed onto
our systems. Ostensibly this image should be much like the vanilla Saucy Salamander install that
I managed to get FreeNX working on, but for some reason I can’t get it to work.

I’m failing at the first hurdle. I have installed FreeNX, and have run the nxsetup, but for the life of me
I can’t get the nxserver to start. I have bumped up the logging level to 7, and pointed it towards a log
file, but it never starts, and nothing ever gets written to the log file.

Where can I start? Is there some logging tool that can tell me if certain libraries are missing? Or any
general troubleshooting tips?

Best wishes,

Jon

--
Jonathan Brooks (PhD) - Senior Research Fellow
CRiCBristol, University of Bristol, St Michael's Hill, Bristol, UK
T: +44(0)117-342-1512 W: http://www.cricbristol.ac.uk

________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ

(Continue reading)

Jonathan Brooks | 10 May 20:21 2014
Picon
Picon

More on getting FreeNX to work on Ubuntu

Dear All,

Further updates on trying to get FreeNX to work with Ubuntu 13.10 (Saucy Salamander)…..
I’m still not sure why the X server requires a /tmp/user folder and for its permissions to be
777. Seems like asking for problems. This problem probably relates to this:
http://mail.kde.org/pipermail/freenx-knx/2013-January/009777.html

Anyway, I next tried to get session resuming working - as per the instructions in an earlier
thread (http://mail.kde.org/pipermail/freenx-knx/2012-July/009695.html), which sort of worked….
sessions now persist, and can be resumed but all the fonts are missing on the resumed
session. More digging:
http://ubuntuforums.org/showthread.php?t=2081746&page=2

So it turns out that you need to add the following to /etc/nxserver/node.conf
export CAIRO_DEBUG=xrender-version=0.9

This works because node.conf is sourced by bash, and presumably each time you start
or resume a session this is sourced.

Which then allows proper session resumes!

Hope this helps you!

Jon

--
Jonathan Brooks (PhD) - Senior Research Fellow
CRiCBristol, University of Bristol, St Michael's Hill, Bristol, UK
T: +44(0)117-342-1512 W: http://www.cricbristol.ac.uk

(Continue reading)

Jonathan Brooks | 9 May 16:37 2014
Picon
Picon

./nxnode --agent ...... weird output?

Dear All,

Further to my last email I have created a vanilla Ubuntu install (13.10) and then followed the Ubuntu
specific instructions to install Freenx. If I now ssh to the machine running freenx-server i.e.
ssh -Y jonnytest <at> auba

then run

/usr/lib/nx/nxnode —agent

I get the following:

> jonnytest <at> auba:/usr/lib/nx$ ./nxnode --agent
> NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
> NX> 716 Starting NX Agent ...
> _XSERVTransmkdir: ERROR: euid != 0,directory /tmp/user/1000/.X11-unix will not be created.
> _XSERVTransSocketUNIXCreateListener: mkdir(/tmp/user/1000/.X11-unix) failed, errno = 9
> _XSERVTransMakeAllCOTSServerListeners: failed to create listener for local
> 
> NXAGENT - Version 3.5.0
> 
> Copyright (C) 2001, 2011 NoMachine.
> See http://www.nomachine.com/ for more information.
> 
> Info: Agent running with pid '8430'.
> Session: Starting session at 'Fri May  9 15:25:19 2014'.
> Info: Using alpha channel in render extension.
> Info: Not using local device configuration changes.
> InitOutput: Locale en_GB.UTF-8 not supported by X
> InitOutput: cannot set locale modifiers.
(Continue reading)

Jonathan Brooks | 9 May 15:44 2014
Picon
Picon

problems in Ubuntu Land

Hi All,

I’m having some “issues” getting FreeNX to work with Ubuntu 13.10 Saucy Salamander (daft name).

I’ve installed FreeNX according to the Ubuntu wiki, and then sorted out the stuff relating to SSH keys.
I’m able to connect to the server using SSH authentication, then get presented with the option to start
a new session. I select Gnome or KDE or CDE (configured to start lubuntu) and then I get
presented with a blank window with just a mouse. If I look on the server it appears that e.g. a gnome-session has
been started, but nothing ever appears on the NoMachine client window.

FYI I’m using NoMachine on a Mac (version 4.2.2_1) and I have been able to successfully connect to 
a different Ubuntu server (running 12.04) with FreeNX, which also supports resuming (courtesy of Nick
Couchman’s patch).

Based on some digging I saw the following suggestion:
login to the NX server (ssh -X blah)
run: /usr/lib/nx/nxnode —agent

If I do this I get the following:

> /usr/lib/nx/nxnode --agent
> NX> 1000 NXNODE - Version 3.2.0-74-SVN OS (GPL, using backend: 3.5.0)
> NX> 716 Starting NX Agent ...
> Error: Aborting session with 'Server is already active for display 0
> 	If this server is no longer running, remove /tmp/.X0-lock
> 	and start again'.
> Session: Aborting session at 'Thu May  8 14:02:10 2014'.
> Session: Session aborted at 'Thu May  8 14:02:10 2014'.
> NX> 716 NX Agent exited with status: 1
> NX> 1001 Bye.
(Continue reading)

Jonathan Brooks | 9 May 15:43 2014
Picon
Picon

Re: FreeNX & NoMachine Player - Connection Issues

Hi Chris,

Sorry for the crazy delay in replying to your post. The patch did indeed work, and we are able to resume
sessions on the server (Running FreeNX).
Unfortunately I’ve now got another problem - see next post!

Cheers, Jon
--
Jonathan Brooks (PhD) - Senior Research Fellow
CRiCBristol, University of Bristol, St Michael's Hill, Bristol, UK
T: +44(0)117-342-1512 W: http://www.cricbristol.ac.uk

________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ

         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX <at> kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________

Maxim Kuvyrkov | 5 May 20:50 2014
Picon

Session shadowing broken in freenx

Hi Marcelo,

Session shadowing in freenx has broken somewhere in between Ubuntu 8.04 and Ubuntu 10.04 releases.  Also
present in Ubuntu 12.04 (and, likely, 14.04, though I didn't check).  The cause is a debian-specific patch
that rewrites /usr/lib/nx/nxnode:getparam() in python.

The underlaying problem is that original implementation returns the last occurrence of a given
parameter, while python implementation returns first.  This breaks shadowing as in nxagent parameters
"display" is passed 2 times, with last being the overriding definition.  I currently workaround this bug
by reverting nxnode():getparam() back to:

 getparam()
 {
       stringinstring "&$1=" "$CMDLINE" || return 1
       echo "$CMDLINE" |  tr "&" "\n" | egrep "^"$1"=" | awk -F= '{ VAL=$2 } END { print VAL }' | sed 's|%24|$|'
       return 0
 }

This bug was reported by several people, e.g., see
https://bugs.launchpad.net/freenx-server/+bug/1009448 .

Another (unrelated) problem I've discovered recently is that /tmp/.X11-unix/ is created by
freenx-server with permissions 1755 instead of 1777.  This causes nxagent to die as it can't create socket
for itself for normal users.  The problem will not occur for many users as almost always /tmp/.X11-unix/ is
created by the system X.

The fix is to adjust /etc/init.d/freenx-server to create /tmp/.X11-unix/ with "mkdir -m1777 /tmp/.X11-unix/"

I have also recently requested to be added to freenx-team on LaunchPad, and I would appreciate and confirm/reject.

(Continue reading)

Les Mikesell | 24 Apr 18:30 2014
Picon

Shared home directories

Should having a common /home mounted by multiple servers be a problem
for NX/freenx? That is, should you be able to have sessions active as
the same user on multiple servers without getting the info in ~/.nx/
confused?   This seemed to work for a while but now a user is having
trouble connecting to a server that was recently rebooted.

--

-- 
   Les Mikesell
     lesmikesell <at> gmail.com
________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ

         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX <at> kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________

Raphael Lydia Bertoche | 17 Apr 05:56 2014
Picon

openssl md5 vs md5sum

I had problems with that old bug that made all sessions id become "(stdin)=".
http://mail.kde.org/pipermail/freenx-knx/2010-July/008964.html
This fix lacks a trailing | tr -d '\n', though.

Why is "openssl md5" still default for COMMAND_MD5SUM? Or is it just opensuse's fault? This 0.7.3 looks aged.

Even if it's not default, it's so easy to fix, why not support both md5sum and openssl md5?

I had only to do something like that every time COMMAND_MD5SUM was used:

<at> <at> -352,7 +352,7 <at> <at>
                export DESKTOP_SHARING_IDS=""
                for i in $(LC_ALL=C netstat -ln --protocol=unix | egrep 'X11-unix/X[0-9]$' | sed 's/.*X\(.*\)/\1/g')
                do
-                       uniqueid=$(echo $[$RANDOM*$RANDOM] | $COMMAND_MD5SUM | cut -d" " -f1 | tr "[a-z]" "[A-Z]")
+                       uniqueid=$(echo $[$RANDOM*$RANDOM] | $COMMAND_MD5SUM | tr " " "\n" | egrep "^[[:xdigit:]]{32}$" | tr "[a-z]" "[A-Z]" | tr -d '\n')
                        DESKTOP_SHARING_IDS="$DESKTOP_SHARING_IDS $uniqueid=$i"
                        printf "%-7s %-16s %32s %8s %5s %-14s %-11s %s\n" "$i" "vnc-local" "$uniqueid" "--------" "$udepth" "$(echo $3 | cut -d'x' -f1,2)" "Running" "X$i (Local)" >> $TMPFILE
                done


Thanks
________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ

         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX <at> kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________
Vladimir Kozlov | 16 Apr 10:37 2014
Picon

freenx-server on Ubuntu 14.04 (trusty)

Dear Marcelo,

I've found your last message regarding FreeNX on Trusty, that "gnome 
flashback situation seems worse", but mate-session works fine.

Are there any chances to use freenx-server on Trusty with 
gnome-flashback in the near future, or this seems totally impossible?

(mate still is not in the official Ubuntu repository, despite the fact 
that release is planned for tomorrow...)

Kind regards,

Vladimir.

Attachment (smime.p7s): application/pkcs7-signature, 2976 bytes
________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ

         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX <at> kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________
Alex Aminoff | 8 Apr 18:34 2014

nx-libs RPM on linux messes up normal X


Hi folks. I am wading into the world of library dependencies, dynamic 
linking, and ldconfig.

Summary: We installed freenx-server on our RHEL clone (Scientific Linux 
6.2) and eventually this caused some regular X software to break.

The nx-libs rpm is 3.5.0.22-1.el6 from epel. It includes a bunch of 
libraries in /usr/lib64/nx/, including special (?) versions of libX11.so 
and libXext.so. The rpm also installs a file 
/etc/ld.so.conf.d/nx-libs-x86_64.conf , which tells ldconfig to add 
/usr/lib64/nx to the path in which to look for libraries. In fact after 
installing you can also see this with
strings /etc/ld.so.cache | grep nx .

The trouble with this is that NX's versions of these libraries are also 
then used by normal X programs, so I see

[aminoff <at> perlw2 /etc]$ ldd /usr/bin/gedit | grep X11
  libX11.so.6 => /usr/lib64/nx/libX11.so.6 (0x00007fc84f3f4000)

And then gedit will not run with an error message about _XGetRequest symbol.

My question is: Does NX require regular X programs to be linked against 
NX's special libs? Or are those libs only necessary for the nxserver itself?

If the former, is it possible to set things up so that LD_LIBRARY_PATH 
is set when you are logged in over NX and running stuff, but not have 
ld.so.conf.d/nx-libs... pollute normal X operations?

Our goal is to enable freenx (for remote WAN users) without impacting 
our existing X users, who connect over the LAN using X over ssh.

Any pointers appreciated.

  - Alex Aminoff
    NBER

________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ

         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX <at> kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________

Seb James | 26 Mar 16:53 2014
Picon

Latest open source nx components

Hi folks,

Is there someplace I can get hold of the latest open source
nxcomp/nxproxy code?

Now that Nomachine have gone to v4, it's time freenx was easier to
install. I may try packaging for Debian if I have time. I've recently
worked through the process for another couple of packages, so I may as
well use that hard-won knowledge!

Also, does anyone have the last versions of the NX 3.x server and client
packages I could get?

kind regards,

Seb James

________________________________________________________________
     Were you helped on this list with your FreeNX problem?
    Then please write up the solution in the FreeNX Wiki/FAQ:

http://openfacts2.berlios.de/wikien/index.php/BerliosProject:FreeNX_-_FAQ

         Don't forget to check the NX Knowledge Base:
                 http://www.nomachine.com/kb/

________________________________________________________________
       FreeNX-kNX mailing list --- FreeNX-kNX <at> kde.org
      https://mail.kde.org/mailman/listinfo/freenx-knx
________________________________________________________________


Gmane