staging.inyokaproject.org

FreeNX Client - Verbindungsprobleme

Status: Ungelöst | Ubuntu-Version: Xubuntu 7.04 (Feisty Fawn)
Antworten |

Musicman

Anmeldungsdatum:
16. Januar 2007

Beiträge: 216

hallo

Ich versuche FreeNX zu installieren. an und für sich hat das bisher prima geklappt, aber es fehlt noch das letzte bisschen damit der client verbindet.

Also folgendes habe ich gemacht:

vim /etc/apt/sources.list

deb http://free.linux.hp.com/~brett/seveas/freenx feisty-seveas freenx
deb-src http://free.linux.hp.com/~brett/seveas/freenx feisty-seveas freenx


hinzugefügt

danach
wget http://free.linux.hp.com/~brett/seveas/freenx/1135D466.gpg -O- | sudo apt-key add -

sudo apt-get update
sudo aptitude install freenx

sudo nxserver --adduser reto
sudo nxserver --passwd reto
sudo nxserver --restart

sudo vim /etc/ssh/sshd_config
zuoberst eingefügt: AllowUsers reto
sudo /etc/init.d/ssh restart

sudo dpkg-reconfigure freenx
custom key kreiiert und die datei
/var/lib/nxserver/home/.ssh/client.id_dsa.key
auf meinen windows rechner kopiert und im NX Client for Windows eingefügt. (ich verwende XP und möchte damit auf mein Xubuntu System zugreifen)

jedoch kann der client nicht verbinden. ssh funktioniert garantiert (ich arbeite von windows aus mit putty)
wenn ich login reto und das passwort eingebe kommt aber diese fehlermeldung:
Server not installed or NX acces disabled ☹

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

der server läuft aber:

sudo nxserver --restart
NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
NX> 123 Service stopped
NX> 122 Service started
NX> 999 Bye

jetzt frage ich mich bei der zeile NX> 202 Authenticating user: nx, wieso da nicht reto steht und wieso das so nicht klappt. ich habe mich ziemlich lange im netz schlaugemacht und nichts gefunden. dieser beitrag ist auch eine art anleitung für welche die freeNX installieren wollen. leider klappt noch nicht alles

gruss musicman

ps. ich frage mich, bei der erstellung vom user reto:

sudo nxserver --adduser reto
NX> 100 NXSERVER - Version 1.5.0-60 OS (GPL)
NX> 1000 NXNODE - Version 1.5.0-60 OS (GPL)
NX> 716 Public key is already present in: /home/reto/.ssh/authorized_keys2
NX> 1001 Bye.
NX> 999 Bye


der public key ist also in /home/reto/.ssh/authorized_keys2, jedoch kann ich den key nicht so im client importieren....

Musicman

(Themenstarter)

Anmeldungsdatum:
16. Januar 2007

Beiträge: 216

ok ich habs aufgegeben. eigetnlich suche ich immer noch eine einfache methode auch grafisch auf meinen server zugreifen zu können (ich greife vom homenetzwerk auf den xubuntu server zu der ebenfalls im gleichen netzwerk liegt). ich möchte gerne von einem xp-rechner darauf zugreifen. jetzt habe ich schon diverse vnc ausprobiert und keiner lief richtig. x11vnc läuft zwar, aber nur dann wenn ich mich grafisch am pc einlogge. da ich aber keinen bildschirm mehr am server habe und nur per putty darauf zugreife, kann ich ja den x-server nicht starten und somit nicht per x11vnc darauf zugreifen, oder sehe ich das falsch?

reever

Avatar von reever

Anmeldungsdatum:
3. Juni 2006

Beiträge: 755

Hallo music_man !

Ist denn auf dem Server der openssh-server installiert ?

Gruss reever

Musicman

(Themenstarter)

Anmeldungsdatum:
16. Januar 2007

Beiträge: 216

ja openssh-server ist drauf.
ich habe freenx wieder gelöscht, weil ich installationsprobleme hatte. in einem neuen versuch wollte ich die pakete manuell installieren (also version 2.xx anstatt 1.5x) und dort gabs konflikte und ich konnte den nxserver nicht installieren

twolf

Anmeldungsdatum:
9. Mai 2007

Beiträge: 47

Probier doch mal die offiziellen Pakete von Nomachine anstatt FreeNX. Ich habe die auf all meinen Systemen ohne Probleme installiert (Reihenfolge client, node dann server), und der Zugriff hat danach jeweils ohne irgendwelche zusätzliche Konfiguration sofort tadellos geklappt. Vorher natürlich die bereits installierten Pakete entfernen, und evtl. verbliebene Überbleibsel in /usr/NX von Hand entfernen.

Gruss, Tobias

Musicman

(Themenstarter)

Anmeldungsdatum:
16. Januar 2007

Beiträge: 216

hey twolf

ich habe jetzt alle pakete entfernt und autoclean gemacht. dann usr/NX ebbenfalls gelöscht und neugestartet. der installationsverlauf sieht so aus:

reto@MINI-ITX:~/Desktop$ sudo dpkg -i nxclient_2.1.0-17_i386.deb
Wähle vormals abgewähltes Paket nxclient.
(Lese Datenbank ... 94764 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke nxclient (aus nxclient_2.1.0-17_i386.deb) ...
Richte nxclient ein (2.1.0-17) ...

reto@MINI-ITX:~/Desktop$ sudo dpkg -i nxnode_2.1.0-22_i386.deb
Wähle vormals abgewähltes Paket nxnode.
(Lese Datenbank ... 94903 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke nxnode (aus nxnode_2.1.0-22_i386.deb) ...
Richte nxnode ein (2.1.0-22) ...
NX> 700 Starting: install node operation at: Sa Mai 19 10:47:22 2007.
NX> 700 Autodetected system 'debian'.
NX> 700 Install log is '/usr/NX/var/log/install'.
NX> 700 Creating configuration in /usr/NX/etc/node.cfg.
NX> 700 Inspecting local CUPS environment.
NX> 700 Generating CUPS entries in: /usr/NX/etc/node.cfg.
NX> 700 WARNING: Cannot find file: printers.conf.
NX> 700 WARNING: Please verify your CUPS configuration.
NX> 700 Installation of NX node was completed with warnings..
NX> 700 Please review the install log '/usr/NX/var/log/install'.
NX> 700 for further details..
NX> 700 Showing file '/usr/NX/share/documents/node/cups-info':.

CUPS Printing Backend

The NX Node setup procedure could not detect your "CUPS"
installation: either CUPS  is not installed on your system
or it was installed in a non-standard path. CUPS is needed
in order to enable printing support in your NX system.
Please note that you can enable  printing support for your
NX system at any time; to do this make sure  that you have
CUPS installed then run:

  /usr/NX/scripts/setup/nxnode --nxprintsetup <pathname>

to specify the location of the CUPS root path.
NX> 700 Bye.


reto@MINI-ITX:~/Desktop$ sudo dpkg -i nxserver_2.1.0-22_i386.deb
Wähle vormals abgewähltes Paket nxserver.
(Lese Datenbank ... 95111 Dateien und Verzeichnisse sind derzeit installiert.)
Entpacke nxserver (aus nxserver_2.1.0-22_i386.deb) ...
Richte nxserver ein (2.1.0-22) ...
NX> 700 Installing: server at: Sa Mai 19 10:48:05 2007.
NX> 700 Autodetected system: debian.
NX> 700 Install log is: /usr/NX/var/log/install.
NX> 700 Creating configuration file: /usr/NX/etc/server.cfg.
NX> 723 Cannot start NX statistics:
NX> 709 NX statistics are disabled for this server.
NX> 700 WARNING: Error when trying to connect to NX server, error is:
NX> 700 WARNING: NX> 203 NXSSH running with pid: 5049
NX> 200 Connected to address: 127.0.0.1 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed..
NX> 700 WARNING: nxsetup cannot validate the sanity of the current installation:
NX> 700 WARNING: the current system or NX configuration could be broken.
NX> 700 WARNING: If difficulties arise (for example sessions cannot be started),
NX> 700 WARNING: it is advisable that you try to uninstall the NX server and the
NX> 700 WARNING: NX client packages then install them again.
NX> 700 WARNING: Search also the NoMachine Knowledge Base at the URL below:
NX> 700 WARNING: http://www.nomachine.com/kb
NX> 700 WARNING: for common errors encountered when performing a software update
NX> 700 WARNING: and the related hints on how to solve them..
NX> 700 Installation of NX server was completed with warnings.
NX> 700 Please review the install log '/usr/NX/var/log/install'
NX> 700 for further details.
NX> 700 Showing file '/usr/NX/share/documents/server/install-notices':

Creating Users

Starting from version 1.5.0, NX is configured to allow access from
any system user, as long as valid credentials are given to the user
for the SSH login. NX provides an alternative authorization method,
allowing system administrators to determine which users are given
access to the NX functionalities. This works by implementing a se-
paration between the system password and the NX password, so that,
for example, it is possible to forbid remote access to the system
by any other means except via NX and its tools used to implement
effective accounting of the system resources used by the user.

To activate the NX user and password DBs, you will have to edit the
NX server configuration file by hand or use the NX Server Manager
web tool available for download on the NoMachine Web site at:

http://www.nomachine.com/download-manager.php

From version 2.0.0, NX provides support for multi-node capabilities
and load balancing. To grant access to the node running on a remote
machine, the administrator should create the user account directly
on the node host by running the NX node commands as root user.

For further information on how to control access to your NX system,
please refer to the System Administrator's Guide available on the
NoMachine Web site at:

http://www.nomachine.com/documentation/admin-guide.php

The NoMachine Team.

NX> 700 Bye.

schon ein paar fehler, ist soweit alles ok? vorallem das stört mich:

NX> 700 WARNING: Error when trying to connect to NX server, error is:
NX> 700 WARNING: NX> 203 NXSSH running with pid: 5049
NX> 200 Connected to address: 127.0.0.1 on port: 22
NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed..

denn das kommt mir bekannt vor, ist das doch der fehler den mir der client immer meldet...

gruss musicman

Musicman

(Themenstarter)

Anmeldungsdatum:
16. Januar 2007

Beiträge: 216

interessant ist jetzt (habe ich eben rausgefunden: wenn ich mit putty und dem user nx einlogge kommt das:

login as: nx
nx@192.168.1.10's password:
HELLO NXSERVER - Version 2.1.0-22 - LFE
NX> 105

ich bin dann also direkt auf dem server. ausserdem habe ich es jetzt endlich geschafft die version 2.1.xx zu installieren. danke soweit!

twolf

Anmeldungsdatum:
9. Mai 2007

Beiträge: 47

Hmm, bei mir hatte das jeweils ohne diese Fehlermeldung funktioniert. Hast Du evtl. sonst noch irgendwo Überreste der früheren Installation, mittlerweile ungültige SSH Keys oder so? Ist Deine SSHD Konfiguration unverändert default, oder hast Du daran mal irgendwas rumgeschraubt?

Gruss, Tobias

Musicman

(Themenstarter)

Anmeldungsdatum:
16. Januar 2007

Beiträge: 216

die datei /etc/ssh/sshd_config habe ich mal angepasst (wie oben beschrieben) ansonsten weiss ich nicht was ich verändert haben könnte. soweit ich weiss habe ich einfach openssh installiert und das hat danach sofort funktioniert... ohne änderung. die fehlermeldungen bei der installation sind schon etwas merkwürdig, ich habe keine ahnung was ich noch versuchen soll...

Blaimi

Avatar von Blaimi

Anmeldungsdatum:
9. Januar 2008

Beiträge: 943

Über den Benutzer "nx" entsteht die ssh-Verbindung zwischen Client und Server. Als Authentifizierungsmetode benutzt dieser die Key-Datei, die auf alle Clients und auf den Server kopiert wurde. An Dieser Verbindung stimmt irgendwas nicht, sodass es gar nicht soweit kommt, dass man die eigentlichen benutzerdaten eingeben kann

Blaimi

Antworten |