Talk:Nxserver

Hi, i think there r some mistakes or steps that are not need around here, because i have 4 different nxservers running and none with Password Auth setup to Yes. I think you dont need it. Probably you will so to make your ssh tests on the wiki post, but for the connection, you dont need to change your sshd configuration.

Here my steps to configure a NX server:

1. Be sure that your /etc/hosts have your hostname configured with the name you setup on gentoo install:

"127.0.0.1 yourhostnamehere localhost"

2. Setup the server.cfg inside /usr/NX/etc/ ( default location of NX install for the stable gentoo ebuild ) as u like.

3. In particular, a good configuration of server.cfg lies on maintenance of the following lines (of course, for ssh and simple servers): "EnablePasswordDB=0" "SSHAuthorizedKeys= "authorized_keys" ( avoid create another file, aka "authorized_keys2")

4. Setup the node.cfg and take care if you have change things inside server.cfg ( like Nodename, sshauthorizedkeys, SSHDPORT). If would like to setup some things about the client options, setup here ( DPI resolution, Cups share, extra PATHS, etc).

5.a OPTIONAL - Reinforce you sshd options if this nxserver are on a public ip or network. ( Like ssh attempts,and so on...)

5.b Setup the server for the users (as root):

cd /usr/NX/bin ./nxserver --keygen ./nxserver --useradd $username

6. Rename the key and send to the user (/usr/NX/share/keys/default.id_dsa.key), i usually put the key inside my .ssh folder with the following notation:

"nxserver-$hostname.id_dsa.key"

7. After that, setup your nxclient to use this key and voila. You dont need to startup the nxserver daemon and others.

It's not a config for the experts and heavy servers, but for one or two users, work like a charm.

bye,

ochugo at gmail.com