nxserver setup problem

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Hey guys, was trying to get nxserver running on my ubuntu box so that I can access it from my XP desktop and get rid of the extra mouse and keyboard that are hanging around.

I installed the client, node, and server packages from nomachine.com. During the installation of the server I received warnings about not having an SSH daemon on port 22, so I grabbed openssh-server and installed that.

I then tried nxserver --daemon start but received a command not found from bash. I decided that the new directory must not be on the path, so I changed dir to /user/bin/NX/bin and did an ls to verify that the files were present. Tried to execute the same command, with the same result:

bash: nxserver: command not found

I saw some other info on the web that indicated that the files would also be found in /etc/init.d so I went there and tried it with the same result. Also got the same result whether running sudo first or not.

Any ideas? Thanks.
 

sciencewhiz

Diamond Member
Jun 30, 2000
5,885
8
81
To execute a program, you have to have the full path, so you can do "/usr/bin/NX/bin/nxserver --daemon" or change directory to /usr/bin/NX/bin/ and then run "./nxserver --daemon"
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Thanks for the tip. I was in usr/bin/NX/bin when I executed the programs. I first did an ls on the directory to make sure they were there. That's what makes this so confusing. The programs are there, but they won't run. Kind of confusing reply too. Does the "command not found" come from bash, or nxserver?

Guess there isn't a lot of experience here with nxserver. Maybe I will punt and try Xming over ssh.
 

sciencewhiz

Diamond Member
Jun 30, 2000
5,885
8
81
Originally posted by: Markbnj
Thanks for the tip. I was in usr/bin/NX/bin when I executed the programs. I first did an ls on the directory to make sure they were there. That's what makes this so confusing. The programs are there, but they won't run. Kind of confusing reply too. Does the "command not found" come from bash, or nxserver?

it's from bash. Did you did again with the ./ in front?
 

Nothinman

Elite Member
Sep 14, 2001
30,672
0
0
I was in usr/bin/NX/bin when I executed the programs. I first did an ls on the directory to make sure they were there. That's what makes this so confusing. The programs are there, but they won't run. Kind of confusing reply too. Does the "command not found" come from bash, or nxserver?

By default the current directory isn't in your PATH for security reasons.
 

Markbnj

Elite Member <br>Moderator Emeritus
Moderator
Sep 16, 2005
15,682
14
81
www.markbetz.net
Originally posted by: sciencewhiz
Originally posted by: Markbnj
Thanks for the tip. I was in usr/bin/NX/bin when I executed the programs. I first did an ls on the directory to make sure they were there. That's what makes this so confusing. The programs are there, but they won't run. Kind of confusing reply too. Does the "command not found" come from bash, or nxserver?

it's from bash. Did you did again with the ./ in front?

Aha. I think you and Nothinman have cleared it up for me. I had no idea the current directory wasn't in my path. Live and learn. I'll give it a try that way right now.

Edit: sweet, thanks for the help. Stupid thing to be hung up on for an hour :). Once I could execute the various utilities I confirmed that it was running and was able to install the client on my XP box and start a remote gnome session with no further troubles. I'm pretty impressed by how responsive the desktop is over the lan.