tentando fazer o nomachine funcionar no Ubuntu

0

Eu preciso conectar a minha máquina Ubuntu (15.04) a partir do Windows 10 Machine. Eu instalei o servidor nomachine no Ubuntu e eu posso ver que ele está executando o protocolo NX na porta 4000 de acordo com a GUI do servidor

Na máquina do windows, quando tento conectar, o tempo de conexão com o erro 138 é excedido.

Testes:

Eu posso usar o putty do windows 10 para a máquina Ubuntu sem problemas. Mas parece que não consigo fazer nomachine funcionar.

Alguma dica seria apreciada.

EDIT 1

Eu executei o seguinte comando para ver se a porta 4000 está aberta:

 netstat -ntlp | grep LISTEN

E entre outras coisas, é isso que eu recebo:

 tcp        0      0 0.0.0.0:4000            0.0.0.0:*               LISTEN      -             

EDIT 2

Eu removi e reinstalei assim:

me@devbox:~$ sudo dpkg --purge nomachine && sudo rm -rf /usr/NX /etc/NX .nx
[sudo] password for me: 
(Reading database ... 496028 files and directories currently installed.)
Removing nomachine (5.1.26-1) ...
NX> 702 Starting uninstall at: Tue Jul 19 09:32:57 2016.
NX> 702 Uninstalling: nxserver version: 5.1.26.
NX> 702 Uninstall log is: /usr/NX/var/log/nxuninstall.log.
NX> 702 Saving configuration file to: /usr/NX/etc/server.cfg.backup.
NX> 702 Saving passwords DB to: /usr/NX/etc/passwords.db.backup.
NX> 702 Saving users DB to: /usr/NX/etc/users.db.backup.
NX> 702 Saving administrators DB to: /usr/NX/etc/administrators.db.backup.
NX> 702 Saving profiles DB to: /usr/NX/etc/profiles.db.backup.
NX> 702 Saving guests DB to: /usr/NX/etc/guests.db.backup.
NX> 702 Saving hosts DB to: /usr/NX/etc/hosts.db.backup.
NX> 702 Saving nodes DB to: /usr/NX/etc/nodes.db.backup.
NX> 702 Saving groups DB to: /usr/NX/etc/groups.db.backup.
NX> 702 Uninstalling: nxnode version: 5.1.26.
NX> 702 Uninstall log is: /usr/NX/var/log/nxuninstall.log.
NX> 702 Saving configuration file to: /usr/NX/etc/node.cfg.backup.
NX> 702 Deleting user: nx from the system.
NX> 702 Uninstalling: nxplayer version: 5.1.26.
NX> 702 Uninstall log is: /usr/NX/var/log/nxuninstall.log.
NX> 702 Uninstalling: nxclient version: 5.1.26.
NX> 702 Uninstall log is: /usr/NX/var/log/nxuninstall.log.
NX> 702 Uninstall completed at: Tue Jul 19 09:33:52 2016.
Purging configuration files for nomachine (5.1.26-1) ...
me@devbox:~$ sudo dpkg -i /home/me/Downloads/nomachine_5.1.26_1_amd64.deb
Selecting previously unselected package nomachine.
(Reading database ... 496015 files and directories currently installed.)
Preparing to unpack .../nomachine_5.1.26_1_amd64.deb ...
Unpacking nomachine (5.1.26-1) ...
Setting up nomachine (5.1.26-1) ...
NX> 700 Starting install at: Tue Jul 19 09:42:52 2016.
NX> 700 Installing: nxclient version: 5.1.26.
NX> 700 Using installation profile: Ubuntu.
NX> 700 Install log is: /usr/NX/var/log/nxinstall.log.
NX> 700 Compiling the USB module.
NX> 700 Installing: nxplayer version: 5.1.26.
NX> 700 Using installation profile: Ubuntu.
NX> 700 Install log is: /usr/NX/var/log/nxinstall.log.
NX> 700 To connect the remote printer to the local desktop,
NX> 700 the user account must be a member of the CUPS System Group: lpadmin.
NX> 700 Installing: nxnode version: 5.1.26.
NX> 700 Using installation profile: Ubuntu.
NX> 700 Install log is: /usr/NX/var/log/nxinstall.log.
NX> 700 Creating configuration in: /usr/NX/etc/node.cfg.
NX> 700 Installing: nxserver version: 5.1.26.
NX> 700 Using installation profile: Ubuntu.
NX> 700 Install log is: /usr/NX/var/log/nxinstall.log.
NX> 700 Creating configuration in: /usr/NX/etc/server.cfg.
NX> 700 Install completed at: Tue Jul 19 09:43:33 2016.
NX> 700 NoMachine was configured to run the following services:
NX> 700 NX service on port: 4000
me@devbox:~$ 

Em seguida, iniciei a GUI do serviço e verifiquei se ele está sendo executado.

Agora na minha máquina windows, eu tento conectar, mas ainda está falhando.

Quando você diz que pode ser firewall, devo verificar no lado do Ubuntu ou no lado do Windows?

    
por Happydevdays 18.07.2016 / 22:13

3 respostas

1

Talvez você tenha alterado algo na configuração do nxserver. Tente remover completamente o NoMachine do sistema sudo dpkg --purge nomachine && sudo rm -rf /usr/NX /etc/NX .nx e reinstale do zero.

Pode ser um problema com o firewall. Mas é estranho usar o NoMachine regularmente no Ubuntu e não tenho esses problemas. Pode ser uma boa ideia procurar nos fóruns.

    
por Richie 19.07.2016 / 14:57
0

Seria o firewall no servidor, verifique se as portas não estão sendo bloqueadas.

Você pode tentar desligá-lo, tentar se conectar e, depois do teste, ligá-lo novamente.

    
por Richie 04.08.2016 / 10:35
0

Para mim parece problema de firewall, você pode tentar habilitar a porta 4000 no iptables com

/sbin/iptables -A INPUT -m state --state NEW -m tcp -p tcp --dport 4000 -j ACCEPT

Pode ser bom ativar também as portas UDP.

    
por Alen 04.08.2016 / 10:36