freenx в 2009,1

PCLinuxOS

Модератор: Bizdelnick

Аватара пользователя
bazav
Сообщения: 177

freenx в 2009,1

Сообщение bazav »

доброго всем времни. при подключении вываливается ошибка.
NX> 105 /usr/bin/nxserver: line 1531: 5906 Terminated sleep $AGENT_STARTUP_TIMEOUT
NX> 596 Session startup failed.
NX> 1004 Error: NX Agent exited with exit status 1. To troubleshoot set SESSION_LOG_CLEAN=0 in node.conf and investigate "/home/user/.nx/F-C-avtoserv-1000-183ED022C0F57852D74924A0D2AEDF60/session". You might also want to try: ssh -X myserver; /usr/bin/nxnode --agent to test the basic functionality. Session log follows:
Can't open /var/lib/nxserver/db/running/sessionId{183ED022C0F57852D74924A0D2AEDF60}: No such file or directory.
NX> 1006 Session status: closed
NX> 1001 Bye.
mv: cannot stat `/var/lib/nxserver/db/running/sessionId{183ED022C0F57852D74924A0D2AEDF60}': No such file or directory
/usr/bin/nxserver: line 562: kill: (5642) - No such process
NX> 280 Exiting on signal: 15

насколько понимаю он должен при подключении создать файл с номером сессии.
Спасибо сказали:
mailman137
Сообщения: 492
ОС: Debian-based mixed

Re: freenx в 2009,1

Сообщение mailman137 »

bazav
Я тут маленько подергался с репозиториями; и прошу объяснить, в чем выгода использования freenx (вообще)?
Спасибо сказали:
Аватара пользователя
bazav
Сообщения: 177

Re: freenx в 2009,1

Сообщение bazav »

ну это аля RDP )) тока под линукс.
Спасибо сказали:
Аватара пользователя
SinClaus
Сообщения: 1952
Статус: Мучитель Мандривы
ОС: Arch,BSD

Re: freenx в 2009,1

Сообщение SinClaus »

Использовался NX из репозитария?
Спасибо сказали:
Аватара пользователя
bazav
Сообщения: 177

Re: freenx в 2009,1

Сообщение bazav »

да
система 2009,1
Спасибо сказали:
mailman137
Сообщения: 492
ОС: Debian-based mixed

Re: freenx в 2009,1

Сообщение mailman137 »

ну это аля RDP )) тока под линукс

Дык, это я понял. Хоть Ваша тема и в подфоруме Mandriva,
наверное, речь все же о конкретном софте, и чтобы рассуждать об его настройках, надо бы иметь его
установленным в системе. Я ж не зря упоминаю об репозиториях, поскольку, например для Debian в оффрепах
этого софта я не нашел. Это отнюдь не означает, что мне никак не подключить сторонние репозитории или
скачать пакеты с ресурса разработчика и поставить их от руки. Однако, есть ли резон тратить время, анализировать
вероятные конфликты и привлекать в систему дополнительные к устанавливаемому софту зависимости? Я бы не прочь это
сделать и порассуждать о конфигурации freenx, в плане просто познавательного интереса; но, опять же, мне интересна
Ваша мотивация использования удаленного рабочего стола, который в данном случае базируется на самодостаточном ssh...
Спасибо сказали:
Аватара пользователя
SinClaus
Сообщения: 1952
Статус: Мучитель Мандривы
ОС: Arch,BSD

Re: freenx в 2009,1

Сообщение SinClaus »

mailman137, а причём тут ваши репозитории? У нас в репах - последняя версия этого софта.
Есть что сказать - скажите, нет - ...
Спасибо сказали:
mailman137
Сообщения: 492
ОС: Debian-based mixed

Re: freenx в 2009,1

Сообщение mailman137 »

Есть что сказать - скажите, нет - ...

проваливайте (продолжая Вашу мысль)?
SinClaus
Со всем моим уважением к Вам я все же попрошу не делить на "у нас" и "у вас" общее дело.
И хоть если у меня что-то не сложилось с подобной изложенной в топике задачей в другом дистрибутиве,
мне, надеюсь, не возбраняется высказываться в данном подфоруме. А ради истины я могу и вновь обратиться
к давненько не применяемой мной Mandriva; и еще раз пробовать найти подходящее решение грамотной установки
в Debian. Времени бы еще...
P.S. Вообще-то, я на форуме не ради потрепаться и заработать некий статус.
И жаль, что интересная тема, хоть и достаточно освещенная в Сети, обойдена здесь вниманием остальных.
I'll be back.
Спасибо сказали:
mailman137
Сообщения: 492
ОС: Debian-based mixed

Re: freenx в 2009,1

Сообщение mailman137 »

Код: Выделить всё

sh-3.2$ uname -a
Linux localhost 2.6.27-desktop-0.rc8.2mnb #1 SMP Thu Oct 2 06:11:56 EDT 2008 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz GNU/Linux
sh-3.2$ su -
Password:
[root@localhost ~]# urpmi freenx
Для удовлетворения зависимостей будут установлены следующие пакеты:
   Пакет                          Версия       Релиз         Платформа
(источник "Main Updates (Official2009.0-1)")
  openssh-server                 5.1p1        2.2mdv2009.0  i586
(источник "Contrib (Official2009.0-12)")
  freenx                         0.7.1        7mdv2009.0    noarch
(источник "Contrib Updates (Official2009.0-13)")
  nxagent                        3.2.0        4.1mdv2009.0  i586
Будет использовано 5.1МБ дополнительного дискового пространства.
Будет загружено 1.5МБ пакетов.
Установить 3 пакетов? (Y/n) Y

    $MIRRORLIST: media/main/updates/openssh-server-5.1p1-2.2mdv2009.0.i586.rpm
    $MIRRORLIST: media/contrib/updates/nxagent-3.2.0-4.1mdv2009.0.i586.rpm
    $MIRRORLIST: media/contrib/release/freenx-0.7.1-7mdv2009.0.noarch.rpm
устанавливается openssh-server-5.1p1-2.2mdv2009.0.i586.rpm freenx-0.7.1-7mdv2009.0.noarch.rpm nxagent-3.2.0-4.1mdv2009.0.i586.rpm из /var/cache/urpmi/rpms
Подготовка...                    ###########################################################################
####
      1/3: nxagent               ###############################################################################
      2/3: openssh-server        ###########################################################################
####
Warning: network-up is needed by sshd in runlevel 2
Warning: network-up is needed by sshd in runlevel 3
Warning: network-up is needed by sshd in runlevel 4
Warning: network-up is needed by sshd in runlevel 5
Warning: network-up is needed by sshd in runlevel 2
Warning: network-up is needed by sshd in runlevel 3
Warning: network-up is needed by sshd in runlevel 4
Warning: network-up is needed by sshd in runlevel 5
Warning: network-up is needed by sshd in runlevel 2
Warning: network-up is needed by sshd in runlevel 3
Warning: network-up is needed by sshd in runlevel 4
Warning: network-up is needed by sshd in runlevel 5
Warning: network-up is needed by sshd in runlevel 2
Warning: network-up is needed by sshd in runlevel 3
Warning: network-up is needed by sshd in runlevel 4
Warning: network-up is needed by sshd in runlevel 5
Warning: network-up is needed by sshd in runlevel 2
Warning: network-up is needed by sshd in runlevel 3
Warning: network-up is needed by sshd in runlevel 4
Warning: network-up is needed by sshd in runlevel 5
Warning: network-up is needed by sshd in runlevel 2
Warning: network-up is needed by sshd in runlevel 3
Warning: network-up is needed by sshd in runlevel 4
Warning: network-up is needed by sshd in runlevel 5
      3/3: freenx                ###########################################################################
####
----------------------------------------------------------------------
Дополнительная информация о пакете freenx-0.7.1-7mdv2009.0.noarch
After installing this package, an nx user is created (this is a
system user, do not try to log in as him), with a home located
at /var/lib/nxserver/nxhome. His password is a random
32-character password.

Your user must install the key located at:
/var/lib/nxserver/nxhome/.ssh/client.id_dsa.key
to log in.

For knx, put it in: /usr/share/knx/ with world-readable right.
For nomachine.com Nx client for windows put it in : C:\Program
Files\NX Client for Windows\share

You user will now be able to log in using their username
and password provided you have ssh logins enabled for them
----------------------------------------------------------------------
[root@localhost ~]# rpm -qi freenx
Name        : freenx                       Relocations: (not relocatable)
Version     : 0.7.1                             Vendor: Mandriva
Release     : 7mdv2009.0                    Build Date: Чтв 24 Июл 2008 16:35:46
Install Date: Вск 24 Апр 2011 14:40:33      Build Host: n1.mandriva.com
Group       : Networking/Remote access      Source RPM: freenx-0.7.1-7mdv2009.0.src.rpm
Size        : 182899                           License: GPL
Signature   : DSA/SHA1, Птн 03 Окт 2008 02:44:58, Key ID 445935f878d019f5
Packager    : Thierry Vignaud <tvignaud@mandriva.com>
URL         : http://freenx.berlios.de/
Summary     : Free NX implementation
Description :
NoMachine NX is the next-generation X compression and roundtrip
suppression scheme. It can operate remote X11 sessions over 56k
modem dialup links or anything better.

This package contains a free (GPL) implementation of the nxserver
component.
[root@localhost ~]# rpm -ql freenx
/etc/logrotate.d/freenx
/etc/nxserver
/etc/nxserver/node.conf
/etc/nxserver/passwords
/etc/nxserver/passwords.orig
/etc/nxserver/users.id_dsa
/etc/nxserver/users.id_dsa.pub
/usr/bin/nxdialog
/usr/bin/nxkeygen
/usr/bin/nxloadconfig
/usr/bin/nxnode
/usr/bin/nxnode-login
/usr/bin/nxserver
/usr/sbin/nxsetup
/usr/share/doc/freenx
/usr/share/doc/freenx/AUTHORS
/usr/share/doc/freenx/COPYING
/usr/share/doc/freenx/README.urpmi
/var/lib/nxserver
/var/lib/nxserver/db
/var/lib/nxserver/db/closed
/var/lib/nxserver/db/failed
/var/lib/nxserver/db/running
/var/lib/nxserver/nxhome
/var/lib/nxserver/nxhome/.ssh
/var/lib/nxserver/nxhome/.ssh/authorized_keys2
/var/lib/nxserver/nxhome/.ssh/client.id_dsa.key
/var/lib/nxserver/nxhome/.ssh/known_hosts
/var/lib/nxserver/nxhome/.ssh/server.id_dsa.pub.key
/var/log/nxserver.log
[root@localhost ~]# cat /etc/rc.local
#!/bin/sh
#
### BEGIN INIT INFO
# Provides: rc.local
# X-Mandriva-Compat-Mode
# Default-Start: 2 3 4 5
# Short-Description: Local initialization script
# Description: This script will be executed *after* all the other init scripts.
#              You can put your own initialization stuff in here if you don't
#              want to do the full Sys V style init stuff.
### END INIT INFO

touch /var/lock/subsys/local
if [ ! -d /tmp/.X11-unix ] ; then
        mkdir /tmp/.X11-unix
        chmod 1777 /tmp/.X11-unix
fi



[root@localhost ~]# cat /etc/nxserver/node.conf |grep -i ssh_authentication
ENABLE_SSH_AUTHENTICATION="1"
[root@localhost ~]# cat /etc/ssh/sshd_config |grep -i 'passwordauthentication yes'
PasswordAuthentication yes
[root@localhost ~]# nxsetup
------> You did select no action.
        FreeNX guesses that you want to _install_ the server.
        Type "y" to abort the installation at this point in time.
        "N" is the default and continues installation.
        Use "/usr/sbin/nxsetup --help" to get more detailed help hints.

 Do you want to abort now? [y/N]

------> It is recommended that you use the NoMachine key for
        easier setup. If you answer "y", FreeNX creates a custom
        KeyPair and expects you to setup your clients manually.
        "N" is default and uses the NoMachine key for installation.

 Do you want to use your own custom KeyPair? [y/N]
Starting ssh service ...Запускается sshd:                       [  OK  ]
done
Setting up /etc/nxserver ...done
Setting up /var/lib/nxserver/db ...done
Setting up /var/log/nxserver.log ...done
Setting up known_hosts and authorized_keys2 ...done
Setting up permissions ...done
Setting up cups nxipp backend ...cp: невозможно выполнить stat для `/usr/lib/cups/backend/ipp': Нет такого файла или каталога
[root@localhost ~]# nxserver --help
NXSERVER - Version 2.1.0-72-SVN OS (GPL)
Usage: nxserver <option>
--adduser <user>: Add a new user
--passwd <user>: Change password of <user>
--deluser <user>: Remove a user from nx
--listuser: List enabled users

--start: Start the nx server
--stop: Stop the nx server
--status: Show status of nx server
--restart: Restart the nx server. (start,stop)

--list [ user | sessionid ]: List running sessions of user or sessionid
--history [ user | sessionid | clear ]: Show history [ of user | sessionid ] or clear the history
--terminate <user | :display | sessionid>: Terminate the session pointed to by
       sessionid or display, or all sessions of the specified user.
       Use * for all sessions.
--force-terminate: Like terminate, but removes also session info.
--suspend <user | :display | sessionid>: Suspend the session pointed to by
       sessionid or display, or all sessions of the specified user.
       Use * for all sessions.
--cleanup: Terminates all running sessions. Useful after power-outage.

--broadcast <message>: Send a message to all users
--send <user | :display | sessionid> <message>: Send a message to the specified user or sessionid
[root@localhost ~]# nxserver --status
NX> 100 NXSERVER - Version 2.1.0-72-SVN OS (GPL)
NX> 110 NX Server is running
NX> 999 Bye
[root@localhost ~]# lsof -i
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
X         2197 root    1u  IPv6   5059      0t0  TCP *:x11 (LISTEN)
X         2197 root    3u  IPv4   5159      0t0  TCP *:x11 (LISTEN)
dhclient 10084 root    7u  IPv4  26482      0t0  UDP *:bootpc
dhclient 10244 root    7u  IPv4  26726      0t0  UDP *:bootpc
dhclient 11261 root    9u  IPv4  27802      0t0  UDP *:bootpc
dhclient 12044 root   10u  IPv4  29292      0t0  UDP *:bootpc
dhclient 12663 root   10u  IPv4  31148      0t0  UDP *:bootpc
dhclient 13382 root   10u  IPv4  32498      0t0  UDP *:bootpc
dhclient 13773 root   10u  IPv4  33705      0t0  UDP *:bootpc
dhclient 14392 root   10u  IPv4  34894      0t0  UDP *:bootpc
dhclient 14981 root   10u  IPv4  36425      0t0  UDP *:bootpc
dhclient 15353 root   10u  IPv4  37367      0t0  UDP *:bootpc
dhclient 16407 root    9u  IPv4  39225      0t0  UDP *:bootpc
xl2tpd   16637 root    3u  IPv4  39801      0t0  UDP *:l2tp
sshd     24101 root    3u  IPv6 780050      0t0  TCP *:ssh (LISTEN)
sshd     24101 root    4u  IPv4 780052      0t0  TCP *:ssh (LISTEN)
[root@localhost ~]# nxserver --adduser user
NX> 100 NXSERVER - Version 2.1.0-72-SVN OS (GPL)
NX> 1000 NXNODE - Version 2.1.0-72-SVN OS (GPL)
NX> 716 Public key added to: /home/user/.ssh/authorized_keys2
NX> 1001 Bye.
NX> 999 Bye
[root@localhost ~]# nxserver --passwd user
NX> 100 NXSERVER - Version 2.1.0-72-SVN OS (GPL)
New password:
Password changed.
NX> 999 Bye

Цепляемся к nxserver гуевым клиентом (в данном случае по localhost) и наблюдаем на дисплее ожидаемую картинку в картинке.
А вот в терминале это выглядит примерно так. Мне не очень нравится.

Код: Выделить всё

[root@localhost ~]# lsof -i
COMMAND    PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
X         2197 root    1u  IPv6   5059      0t0  TCP *:x11 (LISTEN)
X         2197 root    3u  IPv4   5159      0t0  TCP *:x11 (LISTEN)
nxesd     4113 user    3u  IPv4 801382      0t0  TCP localhost:6001 (LISTEN)
dhclient 10084 root    7u  IPv4  26482      0t0  UDP *:bootpc
dhclient 10244 root    7u  IPv4  26726      0t0  UDP *:bootpc
dhclient 11261 root    9u  IPv4  27802      0t0  UDP *:bootpc
dhclient 12044 root   10u  IPv4  29292      0t0  UDP *:bootpc
dhclient 12663 root   10u  IPv4  31148      0t0  UDP *:bootpc
dhclient 13382 root   10u  IPv4  32498      0t0  UDP *:bootpc
dhclient 13773 root   10u  IPv4  33705      0t0  UDP *:bootpc
dhclient 14392 root   10u  IPv4  34894      0t0  UDP *:bootpc
nxssh    14903 user    3u  IPv4 822261      0t0  TCP localhost:41077->localhost:ssh (ESTABLISHED)
nxssh    14903 user    8u  IPv4 822946      0t0  TCP *:11000 (LISTEN)
sshd     14905 root    3r  IPv4 822262      0t0  TCP localhost:ssh->localhost:41077 (ESTABLISHED)
sshd     14907   nx    3u  IPv4 822262      0t0  TCP localhost:ssh->localhost:41077 (ESTABLISHED)
sshd     14907   nx    7u  IPv4 822302      0t0  TCP localhost:x11-ssh-offset (LISTEN)
sshd     14907   nx    8u  IPv6 822303      0t0  TCP [::1]:x11-ssh-offset (LISTEN)
netcat   14912   nx    3r  IPv4 822930      0t0  TCP localhost:58430->localhost:5000 (ESTABLISHED)
dhclient 14981 root   10u  IPv4  36425      0t0  UDP *:bootpc
ssh      15220   nx    3u  IPv4 822686      0t0  TCP localhost:41079->localhost:ssh (ESTABLISHED)
sshd     15221 root    3r  IPv4 822687      0t0  TCP localhost:ssh->localhost:41079 (ESTABLISHED)
sshd     15224 user    3u  IPv4 822687      0t0  TCP localhost:ssh->localhost:41079 (ESTABLISHED)
dhclient 15353 root   10u  IPv4  37367      0t0  UDP *:bootpc
nxagent  15420 user    0u  IPv6 822886      0t0  TCP *:45240 (LISTEN)
nxagent  15420 user    1u  IPv4 822887      0t0  TCP *:56467 (LISTEN)
nxagent  15420 user   11u  IPv4 822949      0t0  TCP *:8000 (LISTEN)
nxagent  15420 user   12u  IPv4 822931      0t0  TCP localhost:5000->localhost:58430 (ESTABLISHED)
dhclient 16407 root    9u  IPv4  39225      0t0  UDP *:bootpc
xl2tpd   16637 root    3u  IPv4  39801      0t0  UDP *:l2tp
sshd     24101 root    3u  IPv6 780050      0t0  TCP *:ssh (LISTEN)
sshd     24101 root    4u  IPv4 780052      0t0  TCP *:ssh (LISTEN)
[root@localhost ~]

Кстати, мне перехотелось лепить это в Debian.

Спасибо сказали:
apprentice
Сообщения: 595
ОС: Debian 6

Re: freenx в 2009,1

Сообщение apprentice »

mailman137 писал(а):
17.04.2011 02:41
в чем выгода использования freenx


Он позволяет более-менее приемлемо организовать терминальную систему.

Все остальные варианты на мой взгляд хуже, хотя и сам freenix далек от идеала...
Спасибо сказали:
Аватара пользователя
malamba
Сообщения: 86
ОС: Mandriva 2008.0

Re: freenx в 2009,1

Сообщение malamba »

Добавлю свои пять копеек.
FreeNx - это быстрый ( в отличии от VNC) аналог rdp. VNC даже при маленькой заявленной скорости соединение зависает на графике.

У меня тоже не сложилось поставить его в Mandrive (2010).
Но я его использовал в качестве клиента и есть подозрения, что сервер был кривоват, поэтому претензии собственно к пакету freenx от Mandriva предъявлять пока что не могу.
Спасибо сказали: