Workaround: nxserver-freeedition subscription portage bug.

Anything that pertains to Portage

Moderator: Moderators

Workaround: nxserver-freeedition subscription portage bug.

Postby BoeroBoy » Mon Nov 16, 2009 15:56

Hi all. I'm recently off a Kubuntu kick and back on Sab with v5.

It's been a while since I've touched portage, so here is a tip to work around a bug in the 3.5.x nxserver-freeedition ebuilds. The problem lies in nxnode, which installs with a subscription-based license instead of the free edition. Clients will report the problem either as a strange exception or as a warning to go get a valid subscription. Bummer for such a free edition huh? The good folks at nomachine haven't abandoned us! To correct this issue, just make sure your /usr/NX/etc/node.lic looks like this: (hopefully there is no issue with me posting a free subscription key)

For more info on subscriptions, check http://ubuntuforums.org/showthread.php?t=473347

Code: Select all
----- Begin subscription data -----

NX Subscription Certificate

Copyright (c) 2001,2008 NoMachine, http://www.nomachine.com

Date:               Tue Apr 21 22:02:43 CDT 2009
Product:            NX Free Edition Node
Customer:           NoMachine
E-mail:             info@nomachine.com
Product Id:         LFEN
Subscription Id:    None
Subscription Type:  None
Expiry:             Unlimited
Platform:           Linux
Users:              2
Connections:        2
Processors:         Unlimited
Product Key:        76f31500db0f29a668678b219f5ef750
Subscription Key:   571ec075bcf380ca3ae3be1de2d6d7ae

----- End subscription data -----
User avatar
BoeroBoy
Simple Hen
 
Posts: 40
Joined: Fri Feb 23, 2007 20:25

Re: Workaround: nxserver-freeedition subscription portage bug.

Postby radese » Tue Nov 17, 2009 18:34

thanks, i'll check this out in a bit, installing it now!
radese
Baby Hen
 
Posts: 4
Joined: Thu Oct 04, 2007 22:31

Re: Workaround: nxserver-freeedition subscription portage bug.

Postby radese » Tue Nov 17, 2009 19:15

for /usr/NX/etc/server.lic (for nxserver), change it to be like this:

Code: Select all
----- Begin subscription data -----

NX Subscription Certificate

Copyright (c) 2001,2009 NoMachine, http://www.nomachine.com

Date:               Tue Sep 29 09:14:19 CEST 2009
Product:            NX Free Edition
Customer:           NoMachine
E-mail:             info@nomachine.com
Product Id:         LFE
Subscription Id:    None
Subscription Type:  None
Expiry:             Unlimited
Platform:           Linux
Users:              2
Connections:        2
Processors:         Unlimited
Product Key:        9f0d5ee53ab973536e9295169c2eb8b3
Subscription Key:   18749f44ce6e1a68e1c4fe923a58da82

----- End subscription data -----
radese
Baby Hen
 
Posts: 4
Joined: Thu Oct 04, 2007 22:31

Re: Workaround: nxserver-freeedition subscription portage bu

Postby tman7510 » Wed May 19, 2010 23:47

I'm running sabayon 5.2 and I have tried this workaround but it doesn't seem to work for the node.lic. I still get no subscrption info found for the node so ther server drops the connection. Here is my connection log:

X> 203 NXSSH running with pid: 8938
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 15.70.121.3 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.4.0-12 - LFE
NX> 105 Hello NXCLIENT - Version 3.4.0
NX> 134 Accepted protocol: 3.4.0
NX> 105 Set shell_mode: shell
NX> 105 Set auth_mode: password
NX> 105 Login
NX> 101 User: remote
NX> 102 Password: ***********
NX> 103 Welcome to: sabayonx86 user: remote
NX> 105 Listsession --user="remote" --status="suspended\054running" --geometry="1280x800x24+render" --type="unix-kde"
NX> 127 Available sessions:

Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------

NX> 148 Server capacity: not reached for user: remote
NX> 105 Start session with: --link="adsl" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="mandi" --type="unix-kde" --geometry="1280x730" --client="linux" --keyboard="pc102\057us" --screeninfo="1280x730x24+render"
NXSERVER - Version 3.4.0-12 - LFE
Thu May 20 00:17:23 2010 running as user: 'nx' (uid: 1002, pid: 7852) on 'sabayonx86'
Info: user login is remote (NXShell)
Info: user password is '******' (NXShell)
Info: using 'sshd authentication' (NXShell)
Info: selected user 'remote' is authenticated (NXNodeExec)
Info: password for selected user is in 'text' mode (NXNodeExec)
Info: preferred auth method is '' (NXNodeExec)
Info: selected NX Node with host name 'localhost', port '22' (NXNodeExec)
Info: selected publickey method to login NX Node (NXNodeExec)
Info: nxssh command line is '/usr/NX/bin/nxssh -nxservermode -l remote localhost -p 22 -x -2 -i /usr/NX/etc/keys/node.localhost.id_dsa -o 'PubkeyAuthentication yes' -o 'RSAAuthentication yes' -o 'RhostsAuthentication no' -o 'PasswordAuthentication no' -o 'RhostsRSAAuthentication no' -o 'StrictHostKeyChecking no' /usr/NX/bin/nxnode' (NXNodeExec)
Info: nxssh child pid is: 8003 (NXNodeExec)
Info: received data in out channel from NX Node: 'NX> 204 Authentication failed.
' (NXNodeExec)
Error: received message 'Authentication Failure' from nxssh (NXNodeExec)
Info: closing nxssh's in, out, err FDs (flagfinished is: 1) (NXNodeExec)
Error: failed to authenticate on NX Node (NXNodeExec)
Info: trying next authentication method. (NXNodeExec)
Info: selected NX Node with host name 'localhost', port '22' (NXNodeExec)
Info: selected password method to login NX Node (NXNodeExec)
Info: now retrying to authenticate with 'password' on NX Node (NXNodeExec)
Info: nxssh command line is '/usr/NX/bin/nxssh -nxservermode -l remote localhost -p 22 -x -2 -o 'PasswordAuthentication yes' -o 'PubkeyAuthentication no' -o 'RhostsAuthentication no' -o 'RSAAuthentication no' -o 'RhostsRSAAuthentication no' -o 'StrictHostKeyChecking no' /usr/NX/bin/nxnode' (NXNodeExec)
Info: nxssh child pid is: 8117 (NXNodeExec)
Info: received data in out channel from NX Node: 'NX> 205 Password: ' (NXNodeExec)
Info: received request for password from nxssh, user password sent (NXNodeExec)
Info: received data in out channel from NX Node: '
' (NXNodeExec)
Info: Removing not recognized buffer from stdout:[
] (NXNodeExec)
Info: received data in out channel from NX Node: 'NX> 611 No subscription information found. Please visit the
NX> 611 NoMachine web site at http://www.nomachine.com/
NX> 611 to acquire a valid subscription.
NX> 611 The NX node can't perform the requested operation.
' (NXNodeExec)
Info: NX Node out channel was closed (NXNodeExec)
Info: NX Node err channel was closed (NXNodeExec)
Info: closing nxssh's in, out, err FDs (flagfinished is: 0) (NXNodeExec)
Error: no 'CONNECTED' message from NX Node (NXNodeExec)
NX> 280 Exiting on signal: 15
tman7510
Simple Hen
 
Posts: 85
Joined: Sun Mar 16, 2008 5:51

Re: Workaround: nxserver-freeedition subscription portage bu

Postby tman7510 » Thu May 20, 2010 18:07

The sever seems to install it's own license file fine but not the node. You can see the above post for exact log error. If I copy and paste the node.lic file in this post I get this error when trying to login

NX> 203 NXSSH running with pid: 14577
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
NX> 285 Setting the preferred NX options
NX> 200 Connected to address: 15.70.121.3 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
HELLO NXSERVER - Version 3.4.0-12 - LFE
NX> 105 Hello NXCLIENT - Version 3.4.0
NX> 134 Accepted protocol: 3.4.0
NX> 105 Set shell_mode: shell
NX> 105 Set auth_mode: password
NX> 105 Login
NX> 101 User: remote
NX> 102 Password: ***********
NX> 103 Welcome to: sabayonx86 user: remote
NX> 105 Listsession --user="remote" --status="suspended\054running" --geometry="1280x800x24+render" --type="unix-kde"
NX> 127 Available sessions:

Display Type Session ID Options Depth Screen Status Session Name
------- ---------------- -------------------------------- -------- ----- -------------- ----------- ------------------------------

NX> 148 Server capacity: not reached for user: remote
NX> 105 Start session with: --link="adsl" --backingstore="1" --encryption="1" --cache="16M" --images="64M" --shmem="1" --shpix="1" --strict="0" --composite="1" --media="0" --session="mandi" --type="unix-kde" --geometry="1280x730" --client="linux" --keyboard="pc102\057us" --screeninfo="1280x730x24+render"
NX> 595 ERROR: A fatal error occurred in NX Server.
NX> 595 ERROR: The exception id is: 1DE6EE1A. To get detailed information about
NX> 595 ERROR: the error search for the string 1DE6EE1A in the system log
NX> 595 ERROR: file (usually '/var/log/messages').
NX> 500 ERROR: Last operation failed.
NX> 280 Exiting on signal: 15
tman7510
Simple Hen
 
Posts: 85
Joined: Sun Mar 16, 2008 5:51


Return to Portage|Emerge Package Managers

Who is online

Users browsing this forum: No registered users and 1 guest

cron