Difference between revisions of "Nx"

From Linuxintro
(adf29rj89s22j)
imported>ThorstenStaerk
 
(18 intermediate revisions by 12 users not shown)
Line 6: Line 6:
 
= Install NX as display manager =
 
= Install NX as display manager =
 
Maybe you have a very old computer and want to make it a [http://en.wikipedia.org/wiki/Thin_client thin client] to a faster one (the faster one acting as [[terminal server]]). Then you want the old computer to display the NX client program right after startup, without a user having to log in. So you want [[Nx]] to be your display manager. Here are some changes I did to /etc/init.d/xdm to make this happen:
 
Maybe you have a very old computer and want to make it a [http://en.wikipedia.org/wiki/Thin_client thin client] to a faster one (the faster one acting as [[terminal server]]). Then you want the old computer to display the NX client program right after startup, without a user having to log in. So you want [[Nx]] to be your display manager. Here are some changes I did to /etc/init.d/xdm to make this happen:
 
+
<source>
 
  case "$1" in
 
  case "$1" in
 
     start)
 
     start)
Line 13: Line 13:
 
         /usr/NX/bin/nxclient
 
         /usr/NX/bin/nxclient
 
         [[scripting tutorial|while]] true; do [[sleep]] 9; done
 
         [[scripting tutorial|while]] true; do [[sleep]] 9; done
 +
</source>
 +
 +
= TroubleShooting =
 +
To get logging output to /var/log/messages, edit /usr/NX/etc/node.cfg. Set
 +
<source>
 +
SessionLogLevel = "6"
 +
</source>
 +
and you can read NX' log from /var/log/messages. Let's look at this one:
 +
<source>
 +
Jan  8 17:07:18 mars NXNODE-3.2.0-11[30374]: ERROR: run command: process: 30461 died because of signal: 9 Logger::log nxnode 3844
 +
Jan  8 17:07:18 mars NXNODE-3.2.0-11[30480]: Directory '/home/tstaerk/.nx/C-mars-1019-7C3118AB902BD0DFE9CEC4AC7631B407' renamed into '/home/user/.nx/F-C-mars-1019-7C3118AB902BD0DFE9CEC4AC7631B407' for further investigation Logger::log nxnode 6215
 +
</source>
 +
Now you [[cd]] to /home/user/.nx/F-C-mars-1019-7C3118AB902BD0DFE9CEC4AC7631B407 and look at the log files.
 +
 +
== no version information available ==
 +
;Symptom: nxclient won't start but output
 +
<source>
 +
# /usr/NX/bin/nxclient --wizard
 +
/usr/NX/bin/nxclient: /usr/NX/lib/libz.so.1: no version information available (required by /usr/lib64/libpng16.so.16)
 +
/usr/NX/bin/nxclient: relocation error: /usr/lib64/libpng16.so.16: symbol inflateReset2, version ZLIB_1.2.3.4 not defined in file libz.so.1 with link time reference
 +
</source>
 +
; Reason: libpng requires version information from libz and does not get it. For more information call ldd /usr/NX/bin/nxclient:
 +
<source>
 +
# ldd /usr/NX/bin/nxclient
 +
/usr/NX/bin/nxclient: /usr/NX/lib/libz.so.1: no version information available (required by /usr/lib64/libpng16.so.16)
 +
[...]
 +
</source>
 +
;Solution: Overwrite nxclient's z library with the system's:
 +
<source>
 +
mv /lib/libz.so.1 /usr/NX/lib/libz.so.1
 +
</source>
 +
 +
== Connecting to ... ==
 +
When I had this error that NX showed nothing but connecting to... it helped to kill nxd.
 +
 +
== The NX service is not available ==
 +
;Symptom: When logging in you get the error message
 +
<source>
 +
The NX service is not available or the NX access was disabled on host hostname
 +
</source>
 +
When clicking onto "Detail" you get
 +
<source>
 +
NX> 200 Connected to address: 10.20.68.47 on port: 22
 +
NX> 202 Authenticating user: nx
 +
NX> 208 Using auth method: publickey
 +
NX> 204 Authentication failed.
 +
</source>
 +
For every log in attempt you find the following message in /var/log/messages:
 +
<source>
 +
2013-11-27T08:55:47.608389+01:00 ls3523 sshd[19975]: Connection closed by 10.20.68.47 [preauth]
 +
<source>
 +
 +
;Variant 1:
 +
There is no file /usr/NX/home/nx/.ssh/authorized_keys, only a file /usr/NX/home/nx/.ssh/authorized_keys2
 +
;Solution 1: Copy the file authorized_keys2 to authorized_keys:
 +
<source>
 +
tweedleburg:/usr/NX/home/nx/.ssh # cp authorized_keys2 authorized_keys
 +
tweedleburg:/usr/NX/home/nx/.ssh # chown nx authorized_keys
 +
</source>
 +
and it works
 +
 +
;Variant 2:
 +
If you call nxssh it does not work.
 +
;Solution 2: Make sure nxssh works from the client to the server. In the following example it does not:
 +
<source>
 +
# nxssh 10.30.67.18
 +
nxssh: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory
 +
</source>
 +
In this example install the needed [[dependencies]], for example under SUSE:
 +
<source>
 +
yast -i openssl-devel libjpeg62
 +
ln -s /usr/NX/lib/libXcomp.so* /usr/lib64
 +
ln -s /usr/NX/lib/libXcomp.so* /usr/lib
 +
</source>
 +
 +
== user 'root' cannot be used as an NX user ==
 +
edit /usr/NX/etc/server.cfg, EnableAdministratorLogin 1
 +
 +
== wrong colors ==
 +
Sometimes you see wrong colors in your NxClient like this:
 +
[[Image:Snapshot-wrong-colors.png]]
 +
In this case, disable compression.
 +
 +
== Connected to ... ==
 +
'''Symptom:''' Your attempt to connect to NX fails after nxclient output "Connected to ''computername''". You get the error message
 +
<source>
 +
The NX service is not available or the NX access was disabled on host computername
 +
</source>
 +
When you click on "Detail" you get something like
 +
<source>
 +
NX> 203 NXSSH running with pid: 7266
 +
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: 192.168.178.3 on port: 22
 +
NX> 202 Authenticating user: nx
 +
NX> 208 Using auth method: publickey
 +
NX> 204 Authentication failed.
 +
</source>
 +
 +
'''Solution''', in this case for SUSE Linux 12.2 and NX 3.5:
 +
<source>
 +
ln -s /usr/NX/home/nx/.ssh/authorized_keys2 /usr/NX/home/nx/.ssh/authorized_keys
 +
</source>
 +
 +
== authentication failed for user ==
 +
;Symptom: When logging in you get the error message
 +
<source>
 +
authentication failed for user ''youruser''
 +
</source>
 +
;Solution: One time the problem was that nxserver was set to authenticate via its own password database. Instead I wanted it to use the system users. Solution was to edit /usr/NX/etc/server.cfg and set
 +
<source>
 +
EnableUserDB="0"
 +
</source>
 +
If that does not help see [[#TroubleShooting_authentication_problems]].
 +
 +
== Downloading the session information ==
 +
'''Symptom 1:''' Your NX connection fails after the message "Downloading session information". When you set SessionLogLevel to 7 in /usr/NX/etc/node.cfg and try again you find in /var/log/messages something like
 +
<source>
 +
NX> 596 /usr/bin/xauth: /home/user/.nx/C-hostname-1007-E856077CEA415BD723D2013A45400AC9/scripts/authority:3: 
 +
bad display name "hostname:1007" in "add" command
 +
</source>
 +
 +
'''Reason 1-1:''' NX expects to be able to connect to the localhost by using its hostname.
 +
 +
'''Solution 1-1:''' Make sure you can ping your local host like this:
 +
<source>
 +
ping $(hostname)
 +
</source>
 +
 +
'''Reason 1-2:''' You do not have enough disk space left or you have a [[quota]] active.
 +
 +
'''Solution 1-2:''' Free up some disk space or de-activate the quota.
 +
 +
'''Symptom 2:''' Your NX connection fails after the message "Downloading session information". You get an error message saying: "Connection error", when you click on "Details" you get:
 +
<source>
 +
cat: /var/lib/nxserver/db/running/sessionId{C5763A18515642F4BE46F8488615912D}: No such file or directory
 +
NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: 3.5.0)
 +
NX> 280 Exiting on signal: 15
 +
</source>
 +
 +
'''Solution 2:''' Create the missing folder like this:
 +
<source>
 +
nxserver:/var/lib/nxserver/db # mkdir running
 +
nxserver:/var/lib/nxserver/db # chown nx running/
 +
</source>
 +
 +
== Established display connection ==
 +
'''Symptom:''' Your NX connection fails after the message "Established display connection". The log file on the server under
 +
/home/''user''/.nx/''latest''/session contains a string
 +
<source> Error: Aborting session with 'Could not open default font 'fixed<nowiki>''</nowiki>.</source>
 +
 +
'''Solution 1:''' It may be the X Font Server. Start it
 +
<source>
 +
/etc/init.d/xfs start
 +
</source>
 +
 +
'''Solution 2:''' Copy over the folder /usr/share/fonts/misc from your client to the server.
 +
 +
== Server configuration error ==
 +
You get
 +
<source>
 +
Server configuration error. Cannot log in.
 +
Please contact your system administrator.
 +
</source>
 +
 +
'''Solution 1:''' you need: a home dir for the user
 +
 +
'''Solution 2:''' your harddisk is full, make space
 +
 +
== Maximum number of allowed users ==
 +
'''Symptom:''' When logging in you get the [[error message]]
 +
<source>
 +
Reached the maximum number of allowed users on
 +
this server.
 +
</source>
 +
 +
'''Solution:'''
 +
* add your user to /usr/NX/users.db
 +
<source> vi /usr/NX/etc/users.db</source>
 +
* restart the NX service using the command
 +
<source> /etc/init.d/nxserver restart</source>
 +
 +
== not available ==
 +
If you get an error message that NX is not available or has been disabled, re-install it:
 +
<source>
 +
/usr/NX/bin/nxserver --uninstall
 +
/usr/NX/bin/nxserver --install
 +
</source>
 +
 +
== maximum session number exceeded ==
 +
List your user sessions with
 +
<source> nxkill --list</source>
 +
Then kill them like this:
 +
<source>
 +
# ps -A | grep -i nx
 +
  3435 ?        00:00:00 nxserver
 +
  3477 ?        00:00:00 nxssh
 +
  3481 ?        00:00:00 nxnode
 +
  3576 ?        00:00:03 nxagent
 +
  3579 ?        00:00:00 nxserver
 +
  3586 ?        00:00:00 nxssh
 +
  3594 ?        00:00:00 nxnode
 +
28689 ?        00:00:00 nxserver
 +
28732 ?        00:00:00 nxssh
 +
28737 ?        00:00:00 nxnode
 +
28830 ?        00:25:54 nxagent
 +
28833 ?        00:00:00 nxserver
 +
28838 ?        00:02:01 nxssh
 +
28848 ?        00:00:00 nxnode
 +
# nxkill --kill --pid ''28830''
 +
</source>
 +
=== no sessions are active ===
 +
 +
==== enable users ====
 +
If you cannot log in to the NX server and get an error message like
 +
<source> maximum session number exceeded</source>
 +
AND
 +
<source> nxkill --list </source>
 +
shows you there are no active user sessions, this can be the case because your user is not enabled to log in. To find out if your user is enabled to log in, use
 +
<source> nxserver --userlist</source>
 +
You will be able to log in with all users that are shown then.
 +
 +
==== Re-install NX ====
 +
If no sessions are shown, you will have to re-install NX:
 +
<source>
 +
/usr/NX/bin/nxserver --uninstall
 +
/usr/NX/bin/nxserver --install
 +
</source>
 +
 +
== TroubleShooting authentication problems ==
 +
To troubleshoot authentication problems best strace the nxclient process like this:
 +
<source> strace -s 99 nxclient </source>
 +
You will see a lot of output so you may want to redirect it to a file or filter it as described in [[piping]]. One output that you will see is what is being transmitted between nxclient and nxserver:
 +
<source>
 +
write(10, "hello NXCLIENT - Version 3.5.0\n", 31) = 31
 +
write(10, "SET SHELL_MODE SHELL\nSET AUTH_MODE PASSWORD\nlogin\n", 50) = 50
 +
</source>
 +
You can now manually replay this:
 +
<source>
 +
# su - nx
 +
HELLO NXSERVER - Version 3.5.0-9 - LFE
 +
NX> 105 hello NXCLIENT - Version 3.5.0
 +
Hello NXCLIENT - Version 3.5.0
 +
NX> 134 Accepted protocol: 3.5.0
 +
NX> 105 SET SHELL_MODE SHELL
 +
Set shell_mode: shell
 +
NX> 105 SET AUTH_MODE PASSWORD
 +
Set auth_mode: password
 +
NX> 105 login
 +
Login
 +
NX> 101 User: tstaerk
 +
tstaerk
 +
NX> 102 Password: ********
 +
NX> 404 ERROR: wrong password or login.
 +
NX> 999 Bye.
 +
</source>
 +
For example one time I saw a suspicious line
 +
<source> open("/usr/NX/etc/passwords.db", O_RDONLY) = 4</source>
 +
which showed me that nxserver would look in /usr/NX/etc/passwords.db for passwords. I set the respective parameter in /usr/NX/etc/server.cfg and authentication worked again.
  
Your {{health|wellness|health and wellness} {care|treatment}|healthcare|medical} {provider|service provider|company|supplier|carrier} {{needs|requires|really needs} to|has to|should} be {informed|notified|educated} {about|regarding|concerning} {{an allergic|a sensitive} {reaction|response}|an allergy} you {had to|needed to} this {medicine|medication} or if you #file_links<>links/imp_files/19.08.15.txt",1,S] are {currently|presently} taking quinolones or fluoroquinolone antibiotic. In {patients|clients|people|individuals} {who|that|which} do {require|need|call for} {chronic|persistent} {treatment|therapy}, the {smallest|tiniest|littlest} {dose|dosage} {and|and also|as well as} the {shortest|quickest} {duration|period} of {treatment|therapy} {producing|creating|generating} {a satisfactory|an acceptable|a satisfying|a sufficient|an adequate} {clinical|medical|scientific|professional} {response|feedback|reaction} #file_links<>links/imp_files/19.08.15.txt",1,S] {should|ought to|must|needs to} be {sought|looked for}. John's wort, antifungals, HIV {medications|medicines}, epilepsy {drugs|medicines}, {medicines|medications} for {weight {loss|reduction}|weight management|weight-loss|fat burning|fat loss}, {drugs|medicines} for {normal|typical|regular} blood {lipid|crowd} {levels|degrees}, #file_links<>links/imp_files/19.08.15.txt",1,S] {antibiotics|prescription antibiotics|anti-biotics}, antidepressants, antidiabetes {medications|medicines}, {depression|misery} {medications|medicines}, or {{any|any type of|any kind of|any sort of} {other|various other}|other} {prescription|prescribed} and {over-the-counter|non-prescription|over the counter} {products|items|gadgets} you {may|might|could} be {using|utilizing|making use of}. {Never|Never ever} share your {dose|dosage|amount} of rimonabant with {{other|various other} {people|individuals}|other individuals} to {whom|which|who} it was not {prescribed|recommended|suggested}. {Doing so|Doing this} {may|might|could} {trigger|cause|induce|set off} {negative|unfavorable|adverse} {response|feedback} in those {people|individuals}, as they {may|might|could} have {a number of|a variety of|a lot of} contraindications you are not {{aware|conscious|mindful|informed} of|familiar with|knowledgeable about}. Do not {use|utilize} this {medication|medicine|drug} if you {are {allergic|sensitive|hypersensitive} to|dislike} acarbose, or if you are in a state of diabetic ketoacidosis (call #file_links<>links/imp_files/19.08.15.txt",1,S] your {doctor|physician|medical professional} for {treatment|therapy} with {insulin|the hormone insulin}). You {{need|require|really need} to|have to|should} {mention|discuss|point out|state} to your {doctor|physician|medical professional} {any of|any one of} the following {medical|clinical|health care} {conditions|problems|disorders} you {have to|need to} {make {sure|certain}|ensure|make certain|see to it} your {treatment|therapy|procedure} goes as #file_links<>links/imp_files/19.08.15.txt",1,S] it {should|ought to|must|needs to} and no {serious|major|severe|significant} {consequences|repercussions|effects|outcomes} for your {health|wellness|health and wellness} are {possible|feasible}: epilepsy, lactose intolerance, {impaired|hindered} {kidney|renal|renal system} or liver {{function|feature}, {pregnancy|maternity} or breastfeeding|{function|feature}, breastfeeding or {pregnancy|maternity}|{pregnancy|maternity}, {function|feature} or breastfeeding|{pregnancy|maternity}, breastfeeding or {function|feature}|breastfeeding, {function|feature} or {pregnancy|maternity}|breastfeeding, {pregnancy|maternity} or {function|feature}}. {If you are taking {{any|any type of|any kind of|any sort of} {other|various other}|other} {medications|medicines} {at the {moment|minute}|currently|presently|right now} you {also|likewise|additionally} {{need|require|really need} to|have to|should} {inform|notify|educate} your {{health|wellness|health and wellness} {care|treatment}|healthcare} {provider|service provider|company|supplier|carrier} of {that {fact|truth|reality}|that} to {avoid|prevent|stay clear of|stay away from} {{dangerous|harmful|hazardous|unsafe|risky} {drug|medicine}|controlled substance} {interaction|communication}. |, if you are taking {any|any type of|any kind of|any sort of} {other|various other} {medications|medicines} at the {moment|minute} you {also|likewise|additionally} {need|require|really need} to {inform|notify|educate} your {health|wellness|health and wellness} {care|treatment} {provider|service provider|company|supplier|carrier} of that {fact|truth|reality} to {avoid|prevent|stay clear of|stay away from} {dangerous|harmful|hazardous|unsafe|risky} {drug|medicine} {interaction|communication}. Retin-A is {a form|a type|a kind} #file_links<>links/imp_files/19.08.15.txt",1,S] of {a vitamin|a supplement} A and is {prescribed|recommended|suggested} after {a few|a couple of} {attempts|efforts|tries} {have|have actually} been made {to {get|obtain}|to obtain} the {conditions|problems|disorders} {under {control|command}|controlled}, {every time|each time|whenever} {unsuccessful|not successful}. The {company|business|firm} {producing|creating|generating} Zimulti - Sanofi-Avensis - {has|has actually} {also|likewise|additionally} {claimed|declared} this {medicine|medication} {helps|assists|aids} to {reduce|decrease|lower|minimize|lessen} nicotine {cravings|yearnings|desires|hungers} and {improves|enhances|boosts} {a wide|a broad|a large|a vast} {array|range|variety|selection|collection} of {other|various other} cardio-metabolic {factors|elements|aspects} when #file_links<>links/imp_files/19.08.15.txt",1,S] taken {regularly|routinely|frequently|consistently|on a regular basis}. This {medicine|medication} {works|functions} by {inhibiting|preventing|hindering} the {digestion|food digestion} of {fat|fatty tissue|fat deposits|fats} {received|gotten|obtained} with {food|meals} and #file_links<>links/imp_files/19.08.15.txt",1,S] {should|ought to|must|needs to} be {combined|incorporated|integrated} with {a healthy|a healthy and balanced} {lifestyle|way of life|way of living} and {balanced|well balanced} {diet|diet plan|diet regimen}. You {may|might|could} {need|require|really need} {a dose|a dosage|an amount} #file_links<>links/imp_files/19.08.15.txt",1,S] {adjustment|modification|change} - and {everything|every little thing} {will|will certainly} go {{just|simply} as|equally as|equally} {planned|prepared|intended}. Each {green|eco-friendly|environment-friendly} {tablet|tablet computer} (debossed with "K2H" on #file_links<>links/imp_files/19.08.15.txt",1,S] one side {and|and also|as well as} "Organon" {on the {other|various other} side|beyond}) {contains|includes|consists of|has} {inert|unreactive} {ingredients|components|active ingredients|elements|substances}. Thiazides {should|ought to|must|need to} be {used|utilized|made use of} {with|regarding} {caution|care} in {patients|clients|people|individuals} {with|regarding} {impaired|damaged} hepatic {function|feature} or {progressive|modern|dynamic} liver {disease|illness|condition}, {since|because|considering that|given that} {minor|small} {alterations|modifications|changes} #file_links<>links/imp_files/19.08.15.txt",1,S] of {fluid|liquid} {and|and also|as well as} electrolyte {balance|equilibrium} {may|might|could} {precipitate|dispatch} hepatic coma. {Call your {doctor|physician|medical professional} {right away|immediately|as soon as possible|promptly} if you {think|believe|assume} {any of|any one of} your {asthma|bronchial asthma} {medications|medicines|treatments} are not {working|functioning} {as well as|in addition to|along with|and also} {usual|typical|normal|common}.|If you {think|believe|assume} any of your {asthma|bronchial asthma} {medications|medicines|treatments} are not {working|functioning} as well as {usual|typical|normal|common}, call your {doctor|physician|medical professional} right away.} {An increased|An enhanced|A boosted|A raised} {need|requirement|demand} for {medication|medicine|drug} {could|might|can|could possibly} be {an early|a very early} {sign|indication|indicator} of #file_links<>links/imp_files/19.08.15.txt",1,S] {a serious|a major|a severe|a significant} {asthma|bronchial asthma} {attack|assault|strike}. Your {dose|dosage|amount} of Zimulti {may|might|could} {{need|require|really need} to|have to|should} be {adjusted|readjusted} #file_links<>links/imp_files/19.08.15.txt",1,S] if you have liver {problems|issues|troubles}, {impaired|hindered} {kidney|renal|renal system} {function|feature} and {a history|a past|a record} of epilepsy or in {case|situation|instance} you are {currently|presently} taking carbamazeptine, nefazodone, ritonavir, phenytoin, telithromycin, itraconazole, ketaconazole, phenobarbital, or clarithromycin. {Make sure|Ensure|Make certain|See to it} you {never|never ever} share your {dose|dosage|amount} of Zimulti {with|regarding} {{other|various other} {people|individuals}|other individuals}, {especially|particularly|specifically} if you do not {know|understand} their {{medical|clinical|health care} {history|past|record}|case history} and are {not {sure|certain}|unsure|uncertain} they {will|will certainly} {{benefit|profit|reward} from|take advantage of|profit from|gain from} the {treatment|therapy|procedure} as {{much|a lot|considerably} as|long as} you do. The crosslinking #file_links<>links/imp_files/19.08.15.txt",1,S] {groups|teams} {{consist|are composed} of|include|contain} {two|2} {secondary|additional|second} amine {groups|teams} {{derived|obtained|acquired} from|stemmed from|originated from} poly(allylamine hydrochloride) {and|and also|as well as} one {molecule|particle} of epichlorohydrin. If you have or {ever|ever before} had {any of|any one of} the following {conditions|problems|disorders} {tell|inform} your {doctor|physician|medical professional} {about|regarding|concerning} it: {anemia, liver or {kidney|renal|renal system}|anemia, {kidney|renal|renal system} or liver|liver, anemia or {kidney|renal|renal system}|liver, {kidney|renal|renal system} or anemia|{kidney|renal|renal system}, anemia or liver|{kidney|renal|renal system}, liver or anemia} {disease|illness|condition|ailment}, {diabetic|diabetic person} ketoacidosis, {{high|very high|higher} blood {pressure|stress|tension}|hypertension}, {heart {disease|illness|condition|ailment}|heart problem|cardiovascular disease} or lung {disease|illness|condition|ailment}. {Some of|A few of|Several of} these {conditions|problems|disorders} #file_links<>links/imp_files/19.08.15.txt",1,S] {can|could} {require|need|call for} {a dose|a dosage|an amount} {adjustment|modification|change}. You {may|might|could} {get|obtain} some {mild|moderate|light} {side {effects|results|impacts}|adverse effects|negative effects|negative side effects} of Retin-A - such as burning, {itching|irritating}, #file_links<>links/imp_files/19.08.15.txt",1,S] {tingling|prickling|tickling}, {irritation|irritability|inflammation}, {warmth|heat}, {swelling|puffinessing}, {redness|soreness|inflammation}, {stinging|painful}, dryness, and {peeling|peeling off}. The pharmacokinetics of cilostazol #file_links<>links/imp_files/19.08.15.txt",1,S] {and|and also|as well as} its {two|2} {major|significant} {active|energetic} metabolites were {similar|comparable} in {healthy|healthy and balanced} {normal|typical|regular} {subjects|topics} {and|and also|as well as} {patients|clients|people|individuals} with {intermittent|periodic|recurring} claudication {due to|because of|as a result of} peripheral arterial {disease|illness|condition} (PAD). If something like that {happens|occurs|takes place} - do not {hesitate|be reluctant|think twice|wait} to {report|state|mention} them to your {doctor|physician|medical professional}, {otherwise|or else} {just|simply} {watch|view|enjoy|see} #file_links<>links/imp_files/19.08.15.txt",1,S] them {disappear|vanish|fade away} {on their {own|very own}|by themselves|alone} as your {body|physical body} {{adjusts|readjusts} to|adapts to} the {treatment|therapy|procedure} {prescribed|recommended|suggested}. Your {dosage|dose|quantity} of this {drug|medicine} {depends on|depends upon|relies on} your {health|wellness|health and wellness} {condition|problem|disorder} and {some {other|various other}|other|a few other} {drugs|medicines} you are taking {at the {moment|minute}|currently|presently|right now}, {which {means|implies|indicates|suggests}|meanings} {people|individuals} with {other|various other} {health|wellness|health and wellness} {conditions|problems|disorders} my not {{benefit|profit|reward} from|take advantage of|profit from|gain from} the #file_links<>links/imp_files/19.08.15.txt",1,S] {treatment|therapy|procedure} and their {condition|problem|disorder} {can|could} {actually|really|in fact} {{get|obtain} {worse|even worse}|become worse|worsen}. There were no {deaths|fatalities} or {permanent|long-term|irreversible} {disabilities|impairments|specials needs|handicaps} in {any of|any one of} the {patients|clients|people|individuals} in #file_links<>links/imp_files/19.08.15.txt",1,S] these {studies|research studies|researches}. Your {doctor|physician|medical professional} {will|will certainly} {also|likewise|additionally} {{need|require|really need} to|have to|should} {know|understand} if you #file_links<>links/imp_files/19.08.15.txt",1,S] are taking {steroids|anabolic steroids}, {antibiotics|prescription antibiotics|anti-biotics}, cimetidine, antifungals, seizure {medications|medicines}, {depression|misery} {medicine|medication}, heart {medications|medicines}, {{high|very high|higher} blood {pressure|stress|tension}|hypertension} {drugs|medicines}, HIV {medicines|medications}, lorazepam or Parkinson's {disease|illness|condition} {medicine|medication}. You {will|will certainly} {{need|require|really need} to|have to|should} {make {sure|certain}|ensure|make certain|see to it} {no one|nobody} in your {household|home|family|house} is abusing #file_links<>links/imp_files/19.08.15.txt",1,S] this {medication|medicine}. Do not take {more|even more|additional} #file_links<>links/imp_files/19.08.15.txt",1,S] of this {medicine|medication} {than|compared to} {prescribed|recommended|suggested}. {Symptoms|Signs} of an overdose are {drowsiness|sleepiness}, {nausea|queasiness}, {rapid|fast|quick|swift} {heartbeat|heart beat}, {tremor|trembling|tremble}, sweating, hyperventilation, {dizziness|lightheadedness}, convulsions, {purplish|purple} {discoloration|staining|yellowing} of the skin, {vomiting|throwing up|puking}. Do not {use|utilize|make use of} salt {substitutes|alternatives|replacements} or low-sodium milk {products|items} {that {contain|include|consist of|have}|which contain} #file_links<>links/imp_files/19.08.15.txt",1,S] potassium. If you {develop|establish|create} {any|any type of|any kind of|any sort of} {signs|indications|indicators} of an infection {yourself|on your own}, {including|consisting of|featuring} {pain|discomfort} when {urinating|peing}, #file_links<>links/imp_files/19.08.15.txt",1,S] {sore|aching|wound} {throat|neck}, {fever|temperature}, {muscle|muscular tissue} {aches|pains}, {report|state|mention} them {immediately|instantly|right away|quickly|promptly} to your {{health|wellness|health and wellness} {care|treatment}|healthcare|medical} {provider|service provider|company|supplier|carrier}. Burning; {dry|completely dry} eyes; eye discharge; eyelid {disorder|condition|ailment|problem}; flu-like {syndrome|disorder}; {headache|migraine|frustration}; infection of the mucous {membrane|membrane layer} around the eye; {inflammation|swelling|irritation} of the cornea; #file_links<>links/imp_files/19.08.15.txt",1,S] {itching|irritating}; nasal {congestion|blockage}; red eyes; {runny|drippy|dripping} nose; {sensitivity|level of sensitivity} to light; {sore|aching|painful} {throat|neck}; {stinging|hurting}; tearing. To {make {sure|certain}|ensure|make certain|see to it} you {can|could} {safely|securely} take Proscar, {tell|inform} your #file_links<>links/imp_files/19.08.15.txt",1,S] {doctor|physician|medical professional} if you have {any of|any one of} these {other|various other} {conditions|problems|disorders}.
+
== keypresses take long ==
 +
;Symptom: In the NX session you type a single key and it takes about 5 second until this key is being displayed. If you type a second key the first key is being displayed immediately. Always the last key needs a long waiting time.
 +
;Solution: Set "connection speed" to something higher, e.g. LAN or ADSL
  
 
= See also =
 
= See also =

Latest revision as of 17:31, 12 April 2020

NX is software for a terminal server. It allows you to control a computer via the network graphicall. NX is faster than vNc. One implementation is freeNX.

Concept

For NX, a user called nx must exist on the server and this user must allow passwordless login. The user must also have nxserver as default shell in /etc/passwd. The client has they key that is authorized and can therefore start commands in the nxserver shell on the server. After connecting the NX user via ssh, the user for the session is authenticated.

Install NX as display manager

Maybe you have a very old computer and want to make it a thin client to a faster one (the faster one acting as terminal server). Then you want the old computer to display the NX client program right after startup, without a user having to log in. So you want Nx to be your display manager. Here are some changes I did to /etc/init.d/xdm to make this happen: <source>

case "$1" in
    start)
        X &
        export DISPLAY=:0
        /usr/NX/bin/nxclient
        while true; do sleep 9; done

</source>

TroubleShooting

To get logging output to /var/log/messages, edit /usr/NX/etc/node.cfg. Set <source>

SessionLogLevel = "6"

</source> and you can read NX' log from /var/log/messages. Let's look at this one: <source> Jan 8 17:07:18 mars NXNODE-3.2.0-11[30374]: ERROR: run command: process: 30461 died because of signal: 9 Logger::log nxnode 3844 Jan 8 17:07:18 mars NXNODE-3.2.0-11[30480]: Directory '/home/tstaerk/.nx/C-mars-1019-7C3118AB902BD0DFE9CEC4AC7631B407' renamed into '/home/user/.nx/F-C-mars-1019-7C3118AB902BD0DFE9CEC4AC7631B407' for further investigation Logger::log nxnode 6215 </source> Now you cd to /home/user/.nx/F-C-mars-1019-7C3118AB902BD0DFE9CEC4AC7631B407 and look at the log files.

no version information available

Symptom
nxclient won't start but output

<source>

# /usr/NX/bin/nxclient --wizard
/usr/NX/bin/nxclient: /usr/NX/lib/libz.so.1: no version information available (required by /usr/lib64/libpng16.so.16)
/usr/NX/bin/nxclient: relocation error: /usr/lib64/libpng16.so.16: symbol inflateReset2, version ZLIB_1.2.3.4 not defined in file libz.so.1 with link time reference

</source>

Reason
libpng requires version information from libz and does not get it. For more information call ldd /usr/NX/bin/nxclient:

<source>

# ldd /usr/NX/bin/nxclient 
/usr/NX/bin/nxclient: /usr/NX/lib/libz.so.1: no version information available (required by /usr/lib64/libpng16.so.16)
[...]

</source>

Solution
Overwrite nxclient's z library with the system's:

<source>

mv /lib/libz.so.1 /usr/NX/lib/libz.so.1

</source>

Connecting to ...

When I had this error that NX showed nothing but connecting to... it helped to kill nxd.

The NX service is not available

Symptom
When logging in you get the error message

<source>

The NX service is not available or the NX access was disabled on host hostname

</source> When clicking onto "Detail" you get <source>

NX> 200 Connected to address: 10.20.68.47 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

</source> For every log in attempt you find the following message in /var/log/messages: <source>

2013-11-27T08:55:47.608389+01:00 ls3523 sshd[19975]: Connection closed by 10.20.68.47 [preauth]

<source>

Variant 1

There is no file /usr/NX/home/nx/.ssh/authorized_keys, only a file /usr/NX/home/nx/.ssh/authorized_keys2

Solution 1
Copy the file authorized_keys2 to authorized_keys:

<source>

tweedleburg:/usr/NX/home/nx/.ssh # cp authorized_keys2 authorized_keys
tweedleburg:/usr/NX/home/nx/.ssh # chown nx authorized_keys

</source> and it works

Variant 2

If you call nxssh it does not work.

Solution 2
Make sure nxssh works from the client to the server. In the following example it does not:

<source>

# nxssh 10.30.67.18
nxssh: error while loading shared libraries: libcrypto.so.0.9.8: cannot open shared object file: No such file or directory

</source> In this example install the needed dependencies, for example under SUSE: <source>

yast -i openssl-devel libjpeg62 
ln -s /usr/NX/lib/libXcomp.so* /usr/lib64
ln -s /usr/NX/lib/libXcomp.so* /usr/lib

</source>

user 'root' cannot be used as an NX user

edit /usr/NX/etc/server.cfg, EnableAdministratorLogin 1

wrong colors

Sometimes you see wrong colors in your NxClient like this: Snapshot-wrong-colors.png In this case, disable compression.

Connected to ...

Symptom: Your attempt to connect to NX fails after nxclient output "Connected to computername". You get the error message <source>

The NX service is not available or the NX access was disabled on host computername

</source> When you click on "Detail" you get something like <source>

NX> 203 NXSSH running with pid: 7266
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: 192.168.178.3 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed.

</source>

Solution, in this case for SUSE Linux 12.2 and NX 3.5: <source>

ln -s /usr/NX/home/nx/.ssh/authorized_keys2 /usr/NX/home/nx/.ssh/authorized_keys

</source>

authentication failed for user

Symptom
When logging in you get the error message

<source>

authentication failed for user youruser 

</source>

Solution
One time the problem was that nxserver was set to authenticate via its own password database. Instead I wanted it to use the system users. Solution was to edit /usr/NX/etc/server.cfg and set

<source>

EnableUserDB="0"

</source> If that does not help see #TroubleShooting_authentication_problems.

Downloading the session information

Symptom 1: Your NX connection fails after the message "Downloading session information". When you set SessionLogLevel to 7 in /usr/NX/etc/node.cfg and try again you find in /var/log/messages something like <source>

NX> 596 /usr/bin/xauth: /home/user/.nx/C-hostname-1007-E856077CEA415BD723D2013A45400AC9/scripts/authority:3:  
bad display name "hostname:1007" in "add" command

</source>

Reason 1-1: NX expects to be able to connect to the localhost by using its hostname.

Solution 1-1: Make sure you can ping your local host like this: <source>

ping $(hostname)

</source>

Reason 1-2: You do not have enough disk space left or you have a quota active.

Solution 1-2: Free up some disk space or de-activate the quota.

Symptom 2: Your NX connection fails after the message "Downloading session information". You get an error message saying: "Connection error", when you click on "Details" you get: <source>

cat: /var/lib/nxserver/db/running/sessionId{C5763A18515642F4BE46F8488615912D}: No such file or directory
NX> 1000 NXNODE - Version 3.2.0-73 OS (GPL, using backend: 3.5.0)
NX> 280 Exiting on signal: 15

</source>

Solution 2: Create the missing folder like this: <source>

nxserver:/var/lib/nxserver/db # mkdir running
nxserver:/var/lib/nxserver/db # chown nx running/

</source>

Established display connection

Symptom: Your NX connection fails after the message "Established display connection". The log file on the server under /home/user/.nx/latest/session contains a string <source> Error: Aborting session with 'Could not open default font 'fixed''.</source>

Solution 1: It may be the X Font Server. Start it <source>

/etc/init.d/xfs start

</source>

Solution 2: Copy over the folder /usr/share/fonts/misc from your client to the server.

Server configuration error

You get <source>

Server configuration error. Cannot log in.
Please contact your system administrator.

</source>

Solution 1: you need: a home dir for the user

Solution 2: your harddisk is full, make space

Maximum number of allowed users

Symptom: When logging in you get the error message <source>

Reached the maximum number of allowed users on 
this server.

</source>

Solution:

  • add your user to /usr/NX/users.db

<source> vi /usr/NX/etc/users.db</source>

  • restart the NX service using the command

<source> /etc/init.d/nxserver restart</source>

not available

If you get an error message that NX is not available or has been disabled, re-install it: <source>

/usr/NX/bin/nxserver --uninstall
/usr/NX/bin/nxserver --install

</source>

maximum session number exceeded

List your user sessions with <source> nxkill --list</source> Then kill them like this: <source>

# ps -A | grep -i nx
 3435 ?        00:00:00 nxserver
 3477 ?        00:00:00 nxssh
 3481 ?        00:00:00 nxnode
 3576 ?        00:00:03 nxagent
 3579 ?        00:00:00 nxserver
 3586 ?        00:00:00 nxssh
 3594 ?        00:00:00 nxnode
28689 ?        00:00:00 nxserver
28732 ?        00:00:00 nxssh
28737 ?        00:00:00 nxnode
28830 ?        00:25:54 nxagent
28833 ?        00:00:00 nxserver
28838 ?        00:02:01 nxssh
28848 ?        00:00:00 nxnode
# nxkill --kill --pid 28830

</source>

no sessions are active

enable users

If you cannot log in to the NX server and get an error message like <source> maximum session number exceeded</source> AND <source> nxkill --list </source> shows you there are no active user sessions, this can be the case because your user is not enabled to log in. To find out if your user is enabled to log in, use <source> nxserver --userlist</source> You will be able to log in with all users that are shown then.

Re-install NX

If no sessions are shown, you will have to re-install NX: <source>

/usr/NX/bin/nxserver --uninstall
/usr/NX/bin/nxserver --install

</source>

TroubleShooting authentication problems

To troubleshoot authentication problems best strace the nxclient process like this: <source> strace -s 99 nxclient </source> You will see a lot of output so you may want to redirect it to a file or filter it as described in piping. One output that you will see is what is being transmitted between nxclient and nxserver: <source>

write(10, "hello NXCLIENT - Version 3.5.0\n", 31) = 31
write(10, "SET SHELL_MODE SHELL\nSET AUTH_MODE PASSWORD\nlogin\n", 50) = 50

</source> You can now manually replay this: <source>

  1. su - nx

HELLO NXSERVER - Version 3.5.0-9 - LFE NX> 105 hello NXCLIENT - Version 3.5.0 Hello NXCLIENT - Version 3.5.0 NX> 134 Accepted protocol: 3.5.0 NX> 105 SET SHELL_MODE SHELL Set shell_mode: shell NX> 105 SET AUTH_MODE PASSWORD Set auth_mode: password NX> 105 login Login NX> 101 User: tstaerk tstaerk NX> 102 Password: ******** NX> 404 ERROR: wrong password or login. NX> 999 Bye. </source> For example one time I saw a suspicious line <source> open("/usr/NX/etc/passwords.db", O_RDONLY) = 4</source> which showed me that nxserver would look in /usr/NX/etc/passwords.db for passwords. I set the respective parameter in /usr/NX/etc/server.cfg and authentication worked again.

keypresses take long

Symptom
In the NX session you type a single key and it takes about 5 second until this key is being displayed. If you type a second key the first key is being displayed immediately. Always the last key needs a long waiting time.
Solution
Set "connection speed" to something higher, e.g. LAN or ADSL

See also