Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 14/10/2006, à 10:16

pristella

[RESOLU] problème connexion FREENX

bonjour,

j'ai installé freenx et depuis 2 jours j'essais de le faire fonctionner. Pour ça j'ai suivi ces différents tuto :

http://www.coagul.org/article.php3?id_article=330
http://nojhan.free.fr/article.php3?id_article=73
http://www.lan2net.fr/index.php?option=content&task=view&id=78&Itemid=25
http://doc.ubuntu-fr.org/serveur/freenx

Chaque tuto presente une manière de faire différente et il devient difficile de s'y retrouver.

Vloilà ce que j'ai quand j'essais de me connecter :

NX> 203 NXSSH running with pid: 5647
NX> 285 Enabling check on switch command
NX> 285 Enabling skip of SSH config files
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.

quelque soit le tuto, j'ai le même message ?

pour info voilà mon fichier /etc/ssh/sshd_config  à savoir que la connexion ssh fonctionne:

# Package generated configuration file
# See the sshd(8) manpage for details

# What ports, IPs and protocols we listen for
Port 22
# Use these options to restrict which interfaces/protocols sshd will bind to
#ListenAddress ::
#ListenAddress 0.0.0.0
Protocol 2
# HostKeys for protocol version 2
HostKey /etc/ssh/ssh_host_rsa_key
HostKey /etc/ssh/ssh_host_dsa_key
#Privilege Separation is turned on for security
UsePrivilegeSeparation yes

# Lifetime and size of ephemeral version 1 server key
KeyRegenerationInterval 3600
ServerKeyBits 768

# Logging
SyslogFacility AUTH
LogLevel INFO

# Authentication:
LoginGraceTime 120
PermitRootLogin no
StrictModes yes
AllowUsers nx acer

RSAAuthentication yes
PubkeyAuthentication yes
AuthorizedKeysFile	%h/.ssh/authorized_keys

# Don't read the user's ~/.rhosts and ~/.shosts files
IgnoreRhosts yes
# For this to work you will also need host keys in /etc/ssh_known_hosts
RhostsRSAAuthentication no
# similar for protocol version 2
HostbasedAuthentication no
# Uncomment if you don't trust ~/.ssh/known_hosts for RhostsRSAAuthentication
#IgnoreUserKnownHosts yes

# To enable empty passwords, change to yes (NOT RECOMMENDED)
PermitEmptyPasswords no

# Change to yes to enable challenge-response passwords (beware issues with
# some PAM modules and threads)
ChallengeResponseAuthentication no

# Change to no to disable tunnelled clear text passwords
PasswordAuthentication yes

# Kerberos options
#KerberosAuthentication no
#KerberosGetAFSToken no
#KerberosOrLocalPasswd yes
#KerberosTicketCleanup yes

# GSSAPI options
#GSSAPIAuthentication no
#GSSAPICleanupCredentials yes

X11Forwarding yes
X11DisplayOffset 10
PrintMotd no
PrintLastLog yes
KeepAlive yes
#UseLogin no

#MaxStartups 10:30:60
#Banner /etc/issue.net

# Allow client to pass locale environment variables
AcceptEnv LANG LC_*

Subsystem sftp /usr/lib/openssh/sftp-server

UsePAM yes

et voilà le fichier  /etc/nxserver/node.conf

#########################################################################
# General FreeNX directives
#########################################################################

# The host name which is used by NX server. It's should be used if it's
# different than the default hostname (as returned by `hostname`)
#SERVER_NAME="$(hostname)"

# The port number where local 'sshd' is listening.
#SSHD_PORT=22


#########################################################################
# Authentication / Security directives
#########################################################################

# Authentication directives

# This adds the usermode to the possible authentication methods
# Usermode means that a user can start the nxserver as his shell
# and connect directly to the right server via a custom client.
#ENABLE_USERMODE_AUTHENTICATION="0"

# This adds the passdb to the possible authentication methods
#ENABLE_PASSDB_AUTHENTICATION="1"

# This adds SSH to the possible authentication methods. For it to work sshd
# must be set up at localhost accepting password authentication.
#ENABLE_SSH_AUTHENTICATION="1"

# This adds SU to the possible authentication methods. For it to work the 
# "nx" user must be in the wheel (RedHat, Fedora) or the users group (SUSE)
# and the user logging in must have a valid shell that accepts the -c
# parameter.
#ENABLE_SU_AUTHENTICATION="0"

# Require all users to be in the passdb, regardless of authentication method
#ENABLE_USER_DB="0"


# If enabled forces the user to use encryption. This will bail out
# if the user does not have encryption enabled.
#ENABLE_FORCE_ENCRYPTION="0"

# Refuse the NX client connection if SSHD does not export the
# SSH_CONNECTION and SSH_CLIENT variables in the environment
# passed to the NX server.
# 1: Will check the remote IP and will not accept the
#    connection if it can't be determined.
# 0: Will accept the connection even if the remote IP
#    is not provided.
#SSHD_CHECK_IP="0"

# If set to greater zero, nxserver will timeout after that many seconds
# before authentication succeeds.
#
#NX_SERVER_TIMEOUT="10"


#########################################################################
# Restriction directives
#########################################################################

# The base display number from which sessions are started.
#DISPLAY_BASE=1000

# The maximum number of contemporary sessions that can be run on FreeNX
#SESSION_LIMIT=200

# The maximum number of contemporary sessions that a single user can run
# on FreeNX. Defaults to the value of SESSION_LIMIT.
#SESSION_USER_LIMIT=200

# The number of displays reserved for sessions, it has to be greater or equal
# to the maximum number of contemporary sessions that a server can run.
#DISPLAY_LIMIT=200


# User for which sessions should be persistent. Either the keyword "all" or a
# comma-separated list of usernames or groups in the @groupname syntax.
#ENABLE_PERSISTENT_SESSION="all"

# Users and groups for whom persistent sessions should be disabled.
# Especially useful if ENABLE_PERSISTENT_SESSION="all"
#DISABLE_PERSISTENT_SESSION=""


#########################################################################
# Logging directives
#########################################################################

# This directives controls the verbosity of the server-wide log.
# 0: No Logging
# 1: Errors
# 2: Warnings
# 3: Important information
# 4: Server - Client communication
# 5: Information
# 6: Debugging information
# 7: stderror of some applications
#NX_LOG_LEVEL=0

# By setting this to 0 the nxserver might be a bit faster, but passwords can be found in the log files.
#NX_LOG_SECURE=1

# Before turning logging on, please make sure that NX_LOGFILE is
# writeable for the "nx" user
#NX_LOGFILE=/var/log/nxserver.log

# This directive controls if the temporary session directory
# ($HOME/.nx/C-<hostname>-<display>-<session_id>) should be kept after a
# session has ended. A successfully terminated session will be saved as
# T-C-<hostname>-<display>-<session_id> while a failed session will be saved
# as F-C-<hostname>-<display>-<session_id>.
# The default is to cleanup the directories.
#SESSION_LOG_CLEAN=1

# Amount of seconds nxserver is to keep session history. The default of 2592000
# is equivalent to 30 days. If this is 0 no session history will be kept
# and a negative value denotes infinity.
#SESSION_HISTORY=2592000


#########################################################################
# Forwarding directives
#########################################################################

# FreeNX with ENABLE_SERVER_FORWARD="1" will automatically forward all
# connections to the host specified in SERVER_FORWARD_HOST with the
# secret key SERVER_FORWARD_KEY.
#
# This allows to have a "chain" of NX Servers. Note that you will need to
# use "SSL encryption" for all connections.

#ENABLE_SERVER_FORWARD="0"
#SERVER_FORWARD_HOST=""
#SERVER_FORWARD_PORT=22
#SERVER_FORWARD_KEY="/usr/NX/share/client.id_dsa.key"


# FreeNX with ENABLE_NOMACHINE_FORWARD_USER="1" will automatically forward all
# connections to the commercial NoMachine nxserver installed on the same
# machine. This feature is introduced to enable the usage of FreeNX and
# NoMachine NX side by side on the same machine without conflicts.
#
# To make a connection to the FreeNX server, just use 'freenx.<user>' as 
# username (where <username> is the existing Unix username. (You do not 
# need to create a user named 'freenx.<user>'!)
#
# To make a connection to the NoMachine nxserver, use the unmodified
# '<user>' username.

#ENABLE_NOMACHINE_FORWARD_USER="0"
#NOMACHINE_SERVER="/usr/NX/bin/nxserver"
#NOMACHINE_NX_HOME_DIR="/usr/NX/home/nx"


# To just forward connections to the NoMachine server, which connect to a
# certain port enable the following two directives.
# 
# Note: You need to let SSHD listen to several ports to make use of this
#       directive.

#ENABLE_NOMACHINE_FORWARD_PORT="0"
#NOMACHINE_FORWARD_PORT="22"


#########################################################################
# Services directives
#########################################################################

# FreeNX with ENABLE_ESD_PRELOAD="1" will automatically try to setup
# the sound with the help of the esd media helper.
#
# Currently ESD will be used just by the Windows NX Client.
#
# Be sure that $ESD_BIN_PRELOAD is in your path, does exist and work
# before enabling this directive.

#ENABLE_ESD_PRELOAD="0"
#ESD_BIN_PRELOAD="esddsp"

# FreeNX with ENABLE_ARTSD_PRELOAD="1" will automatically try to setup
# the sound with the help of the artsd media helper.
#
# Currently ARTSD will be used just by the Linux NX Client.
#
# Be sure that $ARTSD_BIN_PRELOAD is in your path, does exist and work
# before enabling this directive.

#ENABLE_ARTSD_PRELOAD="0"
#ARTSD_BIN_PRELOAD="artsdsp"

# FreeNX with ENABLE_KDE_CUPS="1" will automatically write 
# $KDE_PRINTRC and put the current used port into it.
# $KDE_PRINTRC is automatically calculated if its not set.

#ENABLE_KDE_CUPS="0"
#KDE_PRINTRC="$KDEHOME/share/config/kdeprintrc"
#CUPS_ETC="/etc/cups"

#########################################################################
# Path directives
#########################################################################

# USER_FAKE_HOME is the base directory for the .nx directory. Use this
# parameter instead of the users home directory if $HOME is on a NFS share.
# Note that this directory must be unique for every user! To accomplish this
# it is recommended to include $USER in the path.
#USER_FAKE_HOME=$HOME

# Add the nx libraries to LD_LIBRARY_PATH before starting nx agents.
# WARNING: This will NOT (and should not) affect applications. ONLY Disable
# this if the nx libraries are in a standard system path (such as /usr/lib)!
#SET_LD_LIBRARY_PATH="1"


# The command binary for the default window manager. If set it is run when a
# 'unix-custom' session is requested by the NX Client and an application
# to run is specified. It defaults to empty (ie no WM is run).
# If KILL_DEFAULT_X_WM is set the WM is terminated after the started 
# application finishes. Else FreeNX will wait for the WM to complete.
#DEFAULT_X_WM=""
#KILL_DEFAULT_X_WM="1"

# When a 'unix-default' session is requested by the client the user's X startup
# script will be run if pressent and executable, otherwise the default X
# session will be run.
# Depending on distribution USER_X_STARTUP_SCRIPT might be .Xclients, .xinitrc
# and .Xsession
# Depending on distribution DEFAULT_X_SESSION might be /etc/X11/xdm/Xsession,
# /etc/X11/Sessions/Xsession or /etc/X11/xinit/xinitrc
#USER_X_STARTUP_SCRIPT=.Xclients
#DEFAULT_X_SESSION=/etc/X11/xdm/Xsession

# The key that contains the name of the script that starts a KDE session.
# It's run when a 'unix-kde' session is requested by the client.
#COMMAND_START_KDE=startkde

# The key that contains the name of the script that starts a gnome session.
# It's run when a 'unix-gnome' session is requested by the client.
#COMMAND_START_GNOME=gnome-session

# The key that contains the name of the script that starts a CDE session.
# It's run when a 'unix-cde' session is requested by the client.
#COMMAND_START_CDE=cdwm

# The key that contains the name of the complete path of command name
# 'xterm'. It is run when a unix "xterm" session is requested by the
# client.
#COMMAND_XTERM=xterm

# The key that contains the name of the complete path of command name
# 'xauth'.
#COMMAND_XAUTH=/usr/X11R6/bin/xauth

# The key that contains the name of the complete path of command name
# 'smbmount'.
#COMMAND_SMBMOUNT=smbmount

# The key that contains the name of the complete path of command name
# 'smbumount'.
#COMMAND_SMBUMOUNT=smbumount

# The key that contains the name of the complete path of the 'netcat' command.
#COMMAND_NETCAT=netcat

# The key that contains the name of the complete path of the 'ssh' and
# 'ssh-keygen' command.
#COMMAND_SSH=ssh
#COMMAND_SSH_KEYGEN=ssh-keygen

# The key that contains the name of the complete path of the 'cupsd' command.
#COMMAND_CUPSD=/usr/sbin/cupsd

# The tool to generate md5sums with
#COMMAND_MD5SUM=md5sum

#########################################################################
# Misc directives
#########################################################################

# When set to 1 this will automatically resume started sessions
#ENABLE_AUTORECONNECT="0"

# When set to 1 this will automatically resume started sessions
# but only if an older client version is used
#ENABLE_AUTORECONNECT_BEFORE_140="1"

# When set to 1 exports NXUSERIP / NXSESSIONID in nxnode
#EXPORT_USERIP="0"
#EXPORT_SESSIONID="0"

# This can be set to any executable, which is started after session startup
# like: $NODE_AUTOSTART {start|restore}
#NODE_AUTOSTART=""

# When set to 1 will start nxagent in rootless mode.
#ENABLE_ROOTLESS_MODE="1"

# If enabled writes entries via the COMMAND_SESSREG program
# into utmp/wtmp/lastlog database.
# Note: You have to make sure that you add the nx user to the
#       utmp or tty group or how its called on your system
#       before this directive works.
#ENABLE_USESSION="0"
#COMMAND_SESSREG="sessreg"

# Extra options sent to the different nx agents. See !M documentation
# for examples of useful parameters.
#AGENT_EXTRA_OPTIONS_RFB=""
#AGENT_EXTRA_OPTIONS_RDP=""
#AGENT_EXTRA_OPTIONS_X=""

# The number of seconds we wait for the nxagent to start before
# deciding startup has failed
#AGENT_STARTUP_TIMEOUT="60"

# The font server the agent will use. If set to "" no font server is used.
# For this to do any good, the client has to have the same font server set
# in /etc/X11/XF86Config
#AGENT_FONT_SERVER=""

# Disable or enable use of 'tcp nodelay' on proxy. Old versions of Linux
# kernels have problems using this option on sockets that will cause a loss
# of TCP connections. This option is not set by default to allow clients to
# specify whether to enable or disable TCP nodelay. Setting this option to
# the value of "0" NX proxy avoids using 'tcp nodelay' but it will cause a
# loss of interaction in sessions.
#PROXY_TCP_NODELAY="0"

# Extra options to nxproxy. See !M documentation for useful parameters.
#PROXY_EXTRA_OPTIONS=""

merci d'avance pour votre aide

A+

Dernière modification par pristella (Le 14/10/2006, à 22:48)

Hors ligne

#2 Le 14/10/2006, à 13:42

sidney_v

Re : [RESOLU] problème connexion FREENX

Ha toi aussi tu bosses sur FreeNX smile

Je l'ai installé sans rien y connaitre en - de 10 minutes ; c'est une installation de base, mais ca fonctionne (authentification basée sur les comptes systèmes locaux)

J'ai simplement téléchargé openssh-server dans les dépots et les 4 .deb sur le site de nomachine ainsi que la dépendance (sur les dépots) qui empechait le client de s'installer.

Aucune configuration supplémentaire de FreeNX, aucun paramétrage spécial de ssh, et je n'ai aps suivi les tutos dont tu parles car ca avait l'air trop compliqué et pas à jour pour la v1.5

Je prépare un tuto là dessus, je post ici dès que c'est officiel wink

Si tu as besoin d'infos avant, n'hésites pas wink

Dernière modification par sidney_v (Le 14/10/2006, à 13:43)


Membre de l'April - « promouvoir et défendre le logiciel libre » - www.april.org

Hors ligne

#3 Le 14/10/2006, à 17:06

pristella

Re : [RESOLU] problème connexion FREENX

salut,

Je l'ai installé sans rien y connaitre en - de 10 minutes

ben tu as bien de la chance, moi je n'y comprends plus rien. J'ai parcouru tout le net, j'ai desinstallé, reinstallé, modifié les fichiers config etc e tout ça sans parvenir à le faire fonctionner.

J'ai installé freenx et ses dépendances à partir de ce dépot :

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

Si tu as une idée du problème, je suis tout ouie smile

A+

Dernière modification par pristella (Le 14/10/2006, à 17:07)

Hors ligne

#4 Le 14/10/2006, à 17:15

sidney_v

Re : [RESOLU] problème connexion FREENX

Je n'ai pas utilisé la même méthode d'installation mais je peux te dire comment j'ai installé FreeNX sur ma Ubuntu :

1. Installation du serveur SSH sur lequel va s'appuyer le serveur FreeNX :

sudo apt-get install openssh-server

2. Téléchargement des 4 paquets au format deb sur le site de nomachine (http://www.nomachine.com/download.php)

NX Client for Linux puis NX Client DEB for Linux 
NX Node for linux puis NX Node DEB for linux 
NX Free Edition puis NX Free Edition DEB for Linux
NX Free Edition puis NX Server Manager Beta DEB for Linux

3. Installation des paquets (respecter l'ordre des commandes pour satisfaire les dépendances)

sudo apt-get install libstdc++2.10-glibc2.2
sudo dpkg -i nxclient_version_i386.deb
sudo dpkg -i nxnode_version_i386.deb
sudo dpkg -i nxserver_version_i386.deb
sudo dpkg -i nxmanager_version_i386.deb

Puis installation du client NX sur un Linux ou Windows et je n'ai qu'à saisir l'ip du serveur et un compte local du serveur valide.

Si ca peux t'aider smile

Dernière modification par sidney_v (Le 14/10/2006, à 17:16)


Membre de l'April - « promouvoir et défendre le logiciel libre » - www.april.org

Hors ligne

#5 Le 14/10/2006, à 22:47

pristella

Re : [RESOLU] problème connexion FREENX

Yeees! ça fonctionne smile mais vous allez m'en vouloir sad

En effet, j'ai pratiqué à la windowsienne sad j'en avais tellement marre de triffouiller les fichiers config de ce programme que j'ai fini par tout reinstaller. Quand je dis tout c'est tout , ubuntu y compris.

Ca ne pas géné parceque mon disque dur est partitionné et je peux reinstaller sans problème toutes mes applications sans accrocs de même pour mes périphérique (webcam, camescope, imprimantes, mon reseau samba et mon serveur ssh etc .)

Néanmoins, concernant mon serveur ssh,  j'avais creer un environnement chrooter. La reinstallation,m'a fait perdre cette environnement.
Mais pour l'instant l'accès à distance sur openssh fonctionne sur un compte classique avec mot de passe. Je dois donc securiser cet accès par des clés publiques et privées et refaire un environnement chrooter. J'espère ne pas tout mettre en l'air en reconstruisant mon environnement chrooter sécurisé qui m'est indispensable.

En tout cas merci à toi. La solution etait simple, installer les dernière version de NX soit celle-la :

nxclient_2.1.0-6_i386.deb
nxmanager_2.1.0-5_i386.deb
nxnode_2.1.0-7_i386.deb
nxserver_2.1.0-9_i386.deb

A+

Dernière modification par pristella (Le 14/10/2006, à 22:49)

Hors ligne

#6 Le 14/10/2006, à 23:17

sidney_v

Re : [RESOLU] problème connexion FREENX

Content d'avoir pu t'aider wink

Pense à mettre Resolu dans le titre de ton topic et courage pour la suite !


Membre de l'April - « promouvoir et défendre le logiciel libre » - www.april.org

Hors ligne

#7 Le 15/10/2006, à 14:34

pristella

Re : [RESOLU] problème connexion FREENX

Salut,

j'ai juste un petit soucis. Depuis que j'ai nxserver de cette manière et avec cette version, il n'est plus possible d'utiliser la ligne de commande.
exemple: actuellement j'utilise la clé par default de nxserver et je souhaite la remplacer par une clé personnel à l'aide de la commande "nxsetup". Malheureusement cette version ne semble pas reconnaitre cette commande :


root@acer-pc-ubuntu:~# nxsetup
bash: nxsetup : commande introuvable
root@acer-pc-ubuntu:~#
root@acer-pc-ubuntu:~# nxserver --status
bash: nxserver : commande introuvable
root@acer-pc-ubuntu:~#

y aurait-il de nouvelles commande pour cette version parceque là on peut rien faire sad

merci d'avance

A+

Hors ligne

#8 Le 20/10/2006, à 09:48

philuser

Re : [RESOLU] problème connexion FREENX

bonjour,

Sur une edgy amd64 je souhaite mettre en oeuvre nxserver,  j'ai donc suivi la procedure, dès l'install du premier module DEB j'ai l'erreur suivante :

Error: Wrong architecture 'i386'
NX Server
NoMachine NX is a fast and scalable terminal server system based on the X11 protocol. NX lets you work fluently even across slow links like modems and provides a full set of administration tools that make it a complete desktop virtualization solution for your organization.
This package contains the NX server software.
Baseline:
nxnode: 2.1.0-7
This package requires the installation of a compatible version of the NX client and NX node software.

Sur je suis sur une amd64, ne peut-on pas installer des packets 'i386' sur une amd64 ?

merci

Hors ligne

#9 Le 20/10/2006, à 10:48

pristella

Re : [RESOLU] problème connexion FREENX

salut, il faut que tu installes nxclient en premier, puis nxnode, nxserver et nxmanager dans l'ordre .

Dernière modification par pristella (Le 20/10/2006, à 14:19)

Hors ligne

#10 Le 30/10/2006, à 04:47

ptitpoul

Re : [RESOLU] problème connexion FREENX

salut,
/usr/NX/bin n'est pas dans le path, donc soit tu le rajoutes (dans ton ~/.bash_profile), soit tu tapes le chemin à chaque fois.

Pour changer les clés, les commandes ont changé avec la version 2, regarde ce post : http://forum.ubuntu-fr.org/viewtopic.ph … 00#p557200.

Enfin, nxmanager n'est pas indispensable, d'autant plus qu'il nécessite un serveur apache, à configurer... donc mieux vaut faire simple, dans le cas d'une utilisation simple.

Dernière modification par ptitpoul (Le 16/11/2006, à 17:27)

Hors ligne