Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Installing NX Server Free Edition (not FreeNX)
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3  
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
t35t0r
n00b
n00b


Joined: 27 Feb 2005
Posts: 68
Location: irc.freenode.net

PostPosted: Sat Jun 23, 2007 5:12 pm    Post subject: how to get nxserver-freeedition-3.0.0 setup Reply with quote

I've followed the instructions here http://www.nomachine.com/documentation/admin-guide.php in section "4.4 Replacing the Default SSH Key-Pair with Keys Generated for Your Server"

In my server's /etc/sshd/sshd.conf I've set:

Code:

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile  .ssh/authorized_keys2


and restarted nxserver, Still whenever I try to connect from a client I get:

Code:

NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.


On the server machine if I try
Code:
 /usr/NX/bin/nxserver --status
I get:

Code:

NX> 900 Connecting to server ...
NX> 204 Authentication to NX server failed.
NX> 110 NX Server is stopped.
NX> 999 Bye.


anyone have any of this working?
Back to top
View user's profile Send private message
t35t0r
n00b
n00b


Joined: 27 Feb 2005
Posts: 68
Location: irc.freenode.net

PostPosted: Sat Jun 23, 2007 5:13 pm    Post subject: Reply with quote

Quote:
and restarted nxserver


yes I did restart SSHD also.
Back to top
View user's profile Send private message
mlaccetti
n00b
n00b


Joined: 30 Nov 2003
Posts: 45
Location: Toronto

PostPosted: Thu Jun 28, 2007 2:14 am    Post subject: Reply with quote

zomps wrote:
Tried today again the new vversion (3.0) and found solution to my previos error

Feb 27 17:49:25 zomps 2.1.0-15[6999]: ERROR: Failed to set xpi value in command xrdb: /bin/bash -c 'exec -a - /bin/bash -c '\''xrdb -merge'\'': output was: xrdb: Can't open display 'unix:1013'\n, exit value: 1 'main:nxnode:3664'

added to /etc/hosts:
127.0.0.1 zomps unix

now it works like charm


Oh man. That needs to be put in a very public place. I just wasted most of my evening trying to figure that out!
_________________
Michael Laccetti
michael@s2g-limited.com
s2g Limited
Toronto, Ontario, Canada
Software Development and Consulting
Back to top
View user's profile Send private message
Voyageur
Developer
Developer


Joined: 06 Mar 2005
Posts: 342
Location: Paris, France

PostPosted: Thu Jun 28, 2007 8:41 am    Post subject: Reply with quote

Quote:
added to /etc/hosts:
127.0.0.1 zomps unix


Those who had to do this manipulation, can you confirm you have USE=xcb? (on libX11 mostly). Without xcb, this is not needed...

I'll probably add a warning in the ebuilds (as this breaks freenx, and probably 2x server too), until NoMachine or a Freenx user finds the problem
_________________
Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages
Back to top
View user's profile Send private message
mlaccetti
n00b
n00b


Joined: 30 Nov 2003
Posts: 45
Location: Toronto

PostPosted: Thu Jun 28, 2007 12:50 pm    Post subject: Reply with quote

mulk ~ # emerge -pv libX11

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild R ] x11-libs/libX11-1.1.1-r1 USE="xcb -debug -ipv6" 1,393 kB
_________________
Michael Laccetti
michael@s2g-limited.com
s2g Limited
Toronto, Ontario, Canada
Software Development and Consulting
Back to top
View user's profile Send private message
jrenraw
n00b
n00b


Joined: 23 Aug 2005
Posts: 16

PostPosted: Fri Jun 29, 2007 7:33 pm    Post subject: INIT scripts and nxsensor disabled error Reply with quote

Are there supposed to be new init scripts for 3.0.0? It appears the 3.0.0 config files are different and the checks in the 2.1.0 nxsensor init script check for old variables such as ENABLE_SENSOR, NODE_SENSOR_HOST, and NODE_SENSOR_PORT. Based on the default 3.0.0 node.cfg file they are now EnableSensor, StatisticsHost, and NodeSensorPort.

I started looking into this as I cannot start nxsensor or nxserver. I get a "* nxsensor is disabled in /usr/NX/etc/node.cfg" error. The node.cfg file has EnableSensor = "1". Even after changing the init scripts, I still get this error.

Any ideas?
Back to top
View user's profile Send private message
Rapatskiy Vladimir
n00b
n00b


Joined: 06 Jul 2007
Posts: 1

PostPosted: Fri Jul 06, 2007 6:23 pm    Post subject: xcb USE flag problem confirmation Reply with quote

paludis -pi libX11:
x11-libs/libX11-1.1.1-r1 {:0} [R] -debug ipv6 xcb

head /etc/hosts:
127.0.0.1 localhost.localdomain localhost unix

Before addition into /etc/hosts got "can't open display" error only

Thank all very much for help!!!
Back to top
View user's profile Send private message
Voyageur
Developer
Developer


Joined: 06 Mar 2005
Posts: 342
Location: Paris, France

PostPosted: Sun Jul 22, 2007 8:45 pm    Post subject: Reply with quote

NoMachine fixed the XCB issues in the latest releases, sync and get nxnode-3.0.0-r2 and its friends, and you should not need /etc/hosts manipulation anymore! ;)

Also the sensors script and instructions should be fixed now
_________________
Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages
Back to top
View user's profile Send private message
Voyageur
Developer
Developer


Joined: 06 Mar 2005
Posts: 342
Location: Paris, France

PostPosted: Sat Sep 22, 2007 7:33 pm    Post subject: Reply with quote

I'll soon start to write some Gentoo documentation on NX/freenx and friends, if you think some subjects other than the following should be treated, please tell me. Current plan is:
  • what is NX (technology, licensing, ...)
  • the different servers and clients (pros/cons)
  • specific configuration and commands by server (configuration files, where are logs, ...)
  • some troubleshooting tips
  • and of course a selection of links for further reading

_________________
Routinely breaking NX, GNUstep, net-ftp, miscellaneous (llvm, filezilla, rdesktop, chromium, ...) packages
Back to top
View user's profile Send private message
animous
n00b
n00b


Joined: 14 Oct 2006
Posts: 5

PostPosted: Thu Oct 11, 2007 3:59 pm    Post subject: help Reply with quote

Hi,

Voyageur, I'm looking forward to reading those docs..

In the meantime, I'm having trouble.. I installed nxserver-freenx 0.7.0, but I need desktop sharing (connect to the local X server) so I uninstalled that and installed nxserver-freeedition instead.
I edited /usr/NX/etc/server.cfg: EnableDesktopSharing="1", EnableInteractiveDesktopSharing="1", EnableFullDesktopSharing="1", EnableDesktopSharingAuthorization="0" and so on.

/etc/init.d/nxserver restart

I then proceed to connect with the NX client on vista. I get past connection and authentication. I see the list of available sessions and there's only one: the "Local Display". I select that and click "Attach". Then it says "Requesting user's authorization" and then shortly after, "Connection timeout".

I set logs to 7 in server.cfg, but /var/log/nxserver.log is always empty.

What am I doing wrong? How can I make this work?
Thanks!
Back to top
View user's profile Send private message
imanassypov
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2005
Posts: 118
Location: Toronto, Canada

PostPosted: Tue Aug 11, 2009 3:12 pm    Post subject: Reply with quote

-same issue here. No logs in /var/log/nxserver.log and even though I followed all the suggestions above, still authentication failed for user nx.
It is kinda hard to troubleshoot since it leaves no log trails.
_________________
I.M.
Back to top
View user's profile Send private message
jdkbx
n00b
n00b


Joined: 03 May 2004
Posts: 40

PostPosted: Mon Mar 15, 2010 10:25 pm    Post subject: openssh-5.4 breaks nxserver-freeedition Reply with quote

i have been banging my head against this for about 10 days. the recent openssh update to 5.4_p1 breaks the login with the "public key authentication failed" message. downgrading to 5.3_p1-r1 and its working again.
Back to top
View user's profile Send private message
gr0x0rd
Guru
Guru


Joined: 12 Aug 2006
Posts: 311

PostPosted: Tue Sep 07, 2010 12:54 am    Post subject: Reply with quote

I've been able to easily install and configure nxserver on many machines until recently. Before, it was just a matter of running
Code:
sudo emerge -av nxserver-freenx
sudo nxsetup --install --setup-nomachine-key --clean --purge
sudo rc-update add nxserver default
sudo /etc/init.d/nxserver start
to get a working instance, given sshd was up and running. Now,
Code:
gr0x0rd@moonbase2 ~ $ sudo nxserver --start
NX> 100 NXSERVER - Version 3.2.0-74-TEAMBZR104 OS (GPL, using backend: 3.4.0)
mv: cannot stat `/var/lib/nxserver/home/.ssh/authorized_keys2.disabled': No such file or directory
NX> 122 Service started
NX> 999 Bye
gr0x0rd@moonbase2 ~ $ sudo nxserver --status
NX> 100 NXSERVER - Version 3.2.0-74-TEAMBZR104 OS (GPL, using backend: 3.4.0)
NX> 110 NX Server is stopped
NX> 999 Bye

Looked in node.conf but didn't see any setting for where the server should be looking for authorized keys. This directory exists on a working nxserver instance, so obviously something has changed or gone wrong with the default server settings and resource locations.

Devs, any ideas here?
_________________
~g
emerge -FML...
Back to top
View user's profile Send private message
gr0x0rd
Guru
Guru


Joined: 12 Aug 2006
Posts: 311

PostPosted: Wed Sep 08, 2010 2:25 am    Post subject: Reply with quote

Update-

After re-emerging nxserver-freenx, and setting it up WITHOUT the --clean --purge options, the server ran successfully and I was able to connect from other boxes. :P
_________________
~g
emerge -FML...
Back to top
View user's profile Send private message
tuber
Apprentice
Apprentice


Joined: 12 Nov 2004
Posts: 267

PostPosted: Thu Sep 09, 2010 4:43 am    Post subject: Reply with quote

I managed to get the everything installed, and working, more or less. The problem is that when I try to close the main NX client window, I get the following error box:
Code:
NX client could not create the directory /config. Please check your permissions in"
I end up using killall from the command line. Any ideas what's going on?
Back to top
View user's profile Send private message
imanassypov
Tux's lil' helper
Tux's lil' helper


Joined: 08 Dec 2005
Posts: 118
Location: Toronto, Canada

PostPosted: Tue Jun 28, 2011 10:12 pm    Post subject: Reply with quote

the answer is in front of you:

Code:
mkdir -p /var/lib/nxserver/home/.ssh
touch /var/lib/nxserver/home/.ssh/authorized_keys2.disabled

_________________
I.M.
Back to top
View user's profile Send private message
rossbcan
n00b
n00b


Joined: 28 Feb 2012
Posts: 1
Location: Ontario, Canada

PostPosted: Tue Feb 28, 2012 2:17 pm    Post subject: NX, (not freeNX) installation, shadow sessions Reply with quote

I am posting here, not because of Gentoo, but because you folks appear to be NX competent.

I am using NX server on an Openwrt x86_64 system with xorg, fluxbox wm, attempting headless appliance control using NX binaries installed via tarballs (server-3.5.0-9, client, node-3.5.0-7), with all proper configuration to allow shadowing without session owner permission.

What works: using NX client, can spawn xterm session controlling Openwrt on client machine

What fails: shadow sessions, attempting to share root xorg / fluxbox display

How fails: authenticates OK, available sessions window pops up on client, but no sessions to select

NX (server) determines sessions available by /bin/netstat -ln '--protocol=unix', result:

Active UNIX domain sockets (only servers)
Proto RefCnt Flags Type State I-Node Path
unix 2 [ ACC ] STREAM LISTENING 41637 @/tmp/.X11-unix/X0
unix 2 [ ACC ] STREAM LISTENING 41638 /tmp/.X11-unix/X0

debug logfile:

NXNODE: checkLocalSession: Found socket for display [0] - [unix 2 [ ACC ] STREAM LISTENING 41637 @/tmp/.X11-unix/X0]
...
NXNODE: checkLocalSession: Display already checked - skipping
NXNODE: checkLocalSession: NO SESSIONS

full debug log: http://www.rossco.org/NX_ShadowFail.txt

I have run out of clues regarding how to debug this, so am seeking to "get a clue"

given that this is a custom distribution, I have already used strace to identify missing OS commands and libraries.

Thanks; Bill

edit:

nevermind. solved it.

neglecting what it took to get to this point, the particular problem was:

the busybox ps command does not support the format control required by NX server to identify sessions.

needed to replace with ps from procps

which led to new issues, all solved
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Goto page Previous  1, 2, 3
Page 3 of 3

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum