You are not logged in.

#1 2009-01-15 01:31:02

phil90
Member
Registered: 2008-09-13
Posts: 36

[SOLVED] installing NX server on a VPS

Hello


I would like to know how I would install NX  on a archlinux VPS. 

The information provided in Archwiki about Freenx works on a computer but not in a VPS.

I would like to set it as a remote desktop that I can access trough NX  I know it is possible since there is a template running on Debian that use NX and it works.

The issue may be related to the configuration of  X.
Xorg is configure in my computer but I cannot get it to configure properly inside of the VPS.

When I attempt to startx it always says  xf86OpenConsole: Cannot open /dev/tty0.


What can be done?


Thank   you

Last edited by phil90 (2009-03-31 01:37:03)

Offline

#2 2009-01-15 12:57:46

aglarond
Member
From: Texas, USA
Registered: 2008-11-20
Posts: 129

Re: [SOLVED] installing NX server on a VPS

Xorg shouldn't have to be configured properly on a server for NX to run. I've set it up exactly like you are, except I used nxserver and not freenx.

When you try to connect with the client and it fails, there should be a details button you can click. What's in there?

-mS

Offline

#3 2009-01-17 00:08:26

phil90
Member
Registered: 2008-09-13
Posts: 36

Re: [SOLVED] installing NX server on a VPS

Hello aglarond


Thank you for your quick reply.

I tried to set up nxserver but I cannot get it to work.

It appears that the file NoMachine Nx says I should edit in their guide dont even exist.

When trying to logon I get this output:

NX> 202 Authenticating user: nx
NX> 208 Using auth method: publickey
NX> 204 Authentication failed

I am not surprised since I don't know how to configure it and everthing I find on the internet does not seem to give me the information I need.

What should I do?

Offline

#4 2009-01-17 00:20:52

sand_man
Member
From: Australia
Registered: 2008-06-10
Posts: 2,164

Re: [SOLVED] installing NX server on a VPS

Looks like you have not set up the public keys correctly


neutral

Offline

#5 2009-01-17 02:43:41

phil90
Member
Registered: 2008-09-13
Posts: 36

Re: [SOLVED] installing NX server on a VPS

Thank you Sandman

I tried this and it does not work.

I may not be doing it right tought.


I set my public DSA key to be the same in SSH and Nx but still the same error message


There is a confusing part tought.

Why does it say user nx

I am not trying to log as Nx but as nxuser

NX> 202 Authenticating user: nx

Last edited by phil90 (2009-01-17 04:41:31)

Offline

#6 2009-01-17 02:57:54

aglarond
Member
From: Texas, USA
Registered: 2008-11-20
Posts: 129

Re: [SOLVED] installing NX server on a VPS

The software first authenticates with the user 'nx' and then authenticates the other user. That's what the key in your client setup is for. You'll want to compare the key setup in the client to the client.id_dsa.key in /opt/NX/home/nx/.ssh.

If it's not in that directory, check your /etc/passwd file for user nx. It'll be in the .ssh directory under it's home directory.

If those match, try posting your /etc/ssh/sshd_config here. There may be something in there preventing you from logging in.

Also, sshd is running, right?

-mS

Offline

#7 2009-01-18 04:44:22

phil90
Member
Registered: 2008-09-13
Posts: 36

Re: [SOLVED] installing NX server on a VPS

Thank you very much  for your help

sshd is runnnig.


/opt/NX/home/nx/.ssh does not exist and there is nothing that looks like it.



Right now I am just starting back from the beginning with setting up Nx

Is there a guide that I can follow step by step?

The weird thing is I tried to follow the guide from the official website and the files they talk about do not exist even tought servernx is installed.

Last edited by phil90 (2009-01-18 06:18:12)

Offline

#8 2009-01-18 16:23:46

aglarond
Member
From: Texas, USA
Registered: 2008-11-20
Posts: 129

Re: [SOLVED] installing NX server on a VPS

Take a look at the Arch wiki:

http://wiki.archlinux.org/index.php/FreeNX

-mS

Offline

#9 2009-01-21 01:33:16

phil90
Member
Registered: 2008-09-13
Posts: 36

Re: [SOLVED] installing NX server on a VPS

Just too bad that  it does not work.

Anyway I got further in making things work by compiling the softwares with the tar.gz and finally changed the operating system to Ubuntu  and made it work really easily.

Offline

#10 2009-01-21 02:26:40

aglarond
Member
From: Texas, USA
Registered: 2008-11-20
Posts: 129

Re: [SOLVED] installing NX server on a VPS

Hmm. Not sure what's different about your setup. I used the steps in the wiki for my machines and they came right up. There are certain standard config file I use that always get copied when I build a new machine. Maybe there's something in there I'm missing.

Glad you got it working somehow, anyway.

-mS

Offline

#11 2009-01-21 02:29:18

phil90
Member
Registered: 2008-09-13
Posts: 36

Re: [SOLVED] installing NX server on a VPS

It may be the fact that I was trying to install it under a VPS and not regular computer


Thank you for your help

Offline

#12 2009-02-26 01:00:49

stefanwilkens
Member
From: Enschede, the Netherlands
Registered: 2008-12-10
Posts: 624

Re: [SOLVED] installing NX server on a VPS

phil90 wrote:

Thank you Sandman

I tried this and it does not work.

I may not be doing it right tought.


I set my public DSA key to be the same in SSH and Nx but still the same error message


There is a confusing part tought.

Why does it say user nx

I am not trying to log as Nx but as nxuser

NX> 202 Authenticating user: nx

nx is the user for the connection, not the user on the system.

I just tried this on my server and it works perfectly, as long as you follow the wiki properly. I ran into the exact same problem and did:

/opt/NX/bin/nxsetup --install --setup-nomachine-key --clean --purge

that creates the "nx" user and sets the server to allow us of the default key that comes with the client.


Arch i686 on Phenom X4 | GTX760

Offline

Board footer

Powered by FluxBB