Page 1 of 2

Remote control with nomachine NX

Posted: Thu 22 Nov 2007, 21:03
by vampire666
I wanted to take control of another computer on a LAN in my house.
I made some researches and I came up to nomachine NX (better then VNC)
http://www.nomachine.com/select-package ... id=1&ids=2

But I don't know how to install the server on puppy.

Could someone help me? I know that this is a rather strange request, but I am very inexperienced in Linux.

I tried unpacking the TAR version of the file in the link in /usr , but then what?

This is the info in the page:
Downloading and Installing

TAR.GZ version

* Download the TAR.GZs in the /usr directory
* Change your working directory to the location where you saved the package and install it by running from a console:

# cd /usr
# sudo tar zxvf nxclient-3.0.0-84.i386.tar.gz
# sudo tar zxvf nxnode-3.0.0-93.i386.tar.gz
# sudo tar zxvf nxserver-3.0.0-79.i386.tar.gz

* Run the setup script for installing the NX Node and NX Server software:

# sudo /usr/NX/scripts/setup/nxnode –-install
# sudo /usr/NX/scripts/setup/nxserver –-install

If you don't have the sudo utility installed, log on as superuser ("root") and run the commands without sudo.
Note: click here for detailed instructions on how to install the NX Client, NX Node and NX Server packages. The NX service can be controlled by the command /usr/NX/bin/nxserver --status|--start|--stop|--restart. Additional commands are available to configure the server. Try /usr/NX/bin/nxserver --help for more information. Please, don't forget to download and read the NX Server Administrator's Guide available here.

Posted: Thu 22 Nov 2007, 21:28
by Ian
If you have unpacked the files into /usr you should have the directory NX in there.
What you have to do is run the install scripts and to do this all you need to do is open a terminal and type in the instructions:

/usr/NX/scripts/setup/nxnode –-install

/usr/NX/scripts/setup/nxserver –-install

if you get error messages post them back here.

You may need to have the Puppy compiler installed or there might be some library dependancies.

Posted: Thu 22 Nov 2007, 21:42
by vampire666
Thanks a bunch for the reply. :)

When I run "/usr/NX/scripts/setup/nxnode –-install" it says "bash: /usr/NX/scripts/setup/nxnode: No such file or directory"...in fact it isn't there.

This is what I get after I use the
"/usr/NX/scripts/setup/nxserver –-install"
# /usr/NX/scripts/setup/nxserver --install

Usage: nxserver ACTION

Actions:

--install {SYSTEM} Run the NX server install procedure for the
specified system or distribuition

--update {SYSTEM} Run the NX server update procedure for the
specified system or distribution

--uninstall Run the NX server uninstall procedure for the
specified system or distribution

--pre-uninstall Disable access to new NX sessions, terminate
sessions and reset the session DBs.

--keygen Generate a new pair of SSH keys. After run-
ning this procedure, the NX clients will use
the key: /usr/NX/share/keys/default.id_dsa.key
to connect to this NX server.

--help Show this message

The specified SYSTEM must be one of the following operating systems,
or none. In the latter case the NX setup will try to autodetect the
system or will choose the layout that better resembles one of the
known systems.

redhat RedHat 7.3, 8.0, 9.0, AS, ES, etc.
suse SuSE 7.3, 8.x, 9.x, etc.
mandrake Mandrake 9.2 10.x, etc.
debian Debian Woody 3.0, Unstable, Ubuntu, etc.
solaris Sun Solaris 8.0, 9.0, 10.0, etc.
fedora Fedora Core 1, 2, 3, 4, 5, etc.
NX> 704 ERROR: Unable to autodetect the operating system type, please specify it
#
EDITED error corrected --> look at the above bold text.

Posted: Thu 22 Nov 2007, 21:49
by vampire666
I guess that at this point I have to put:

"/usr/NX/scripts/setup/nxserver –-install [debian]" but how to I insert those special paragraphs in linux puppy? I know ho to do it in windows, but in puppy I can't find out. :oops:

EDIT: But a part from this, isn't it strange that the file nxnode isn't there?

Posted: Thu 22 Nov 2007, 22:09
by Ian
What is in the /usr/NX/scripts/setup directory.

Posted: Thu 22 Nov 2007, 22:17
by muggins
Try /usr/NX/scripts/setup/nxserver –-install debian

Otherwise it might be easier to download the specific debian & install that.

Posted: Thu 22 Nov 2007, 22:18
by Everitt
vampire666 wrote:I guess that at this point I have to put:

"/usr/NX/scripts/setup/nxserver –-install [debian]" but how to I insert those special paragraphs in linux puppy? I know ho to do it in windows, but in puppy I can't find out. :oops:

EDIT: But a part from this, isn't it strange that the file nxnode isn't there?
As far as I can see the node setup is a seperate download, and the instructions are badly written generic install steps. It lists the commands for each part, and leaves it up to the user to decide which ones they actually need.

Posted: Thu 22 Nov 2007, 22:18
by vampire666
Ian wrote:What is in the /usr/NX/scripts/setup directory.
There's only the nxserver file (I also checked if there where other hidden files). :?

Posted: Thu 22 Nov 2007, 22:21
by vampire666
muggins wrote:Try /usr/NX/scripts/setup/nxserver –-install debian

Otherwise it might be easier to download the specific debian & install that.
This is what I get:
# /usr/NX/scripts/setup/nxserver --install debian
NX> 700 Installing: server at: Thu Nov 22 23:20:14 2007.
NX> 700 Autodetected system: debian.
NX> 700 Install log is: /usr/NX/var/log/install.
NX> 700 ERROR: Output: adduser: unrecognized option `--system'
BusyBox v1.6.1 (2007-08-26 04:52:27 MDT) multi-call binary

Usage: adduser [OPTIONS] user_name

Add a user to the system

Options:
-h DIR Assign home directory DIR
-g GECOS Assign gecos field GECOS
-s SHELL Assign login shell SHELL
-G Add the user to existing group GROUP
-S Create a system user (ignored)
-D Do not assign a password (logins still possible via ssh)
-H Do not create the home directory.
NX> 700 ERROR: Cannot add user: nx to the system.

Posted: Thu 22 Nov 2007, 22:26
by vampire666
Everitt wrote:
vampire666 wrote:I guess that at this point I have to put:

"/usr/NX/scripts/setup/nxserver –-install [debian]" but how to I insert those special paragraphs in linux puppy? I know ho to do it in windows, but in puppy I can't find out. :oops:

EDIT: But a part from this, isn't it strange that the file nxnode isn't there?
As far as I can see the node setup is a seperate download, and the instructions are badly written generic install steps. It lists the commands for each part, and leaves it up to the user to decide which ones they actually need.
Argh! You are right!!! I'm downloading the node now...I'll post immediately here after I try to install it.

Posted: Thu 22 Nov 2007, 22:31
by vampire666
So installing "/usr/NX/scripts/setup/nxnode --install debian" gives me this:
# /usr/NX/scripts/setup/nxnode --install debian
NX> 700 Starting: install node operation at: Thu Nov 22 23:28:03 2007.
NX> 700 Autodetected system 'debian'.
NX> 700 Install log is '/usr/NX/var/log/install'.
NX> 700 Creating configuration in /usr/NX/etc/node.cfg.
/usr/NX/scripts/setup/nxnode: line 1373: cd: /etc/rc3.d: No such file or directory
/usr/NX/scripts/setup/nxnode: line 1375: cd: /etc/rc2.d: No such file or directory
/usr/NX/scripts/setup/nxnode: line 1377: cd: /etc/rc5.d: No such file or directory
/usr/NX/scripts/setup/nxnode: line 1379: cd: /etc/rc6.d: No such file or directory
/usr/NX/scripts/setup/nxnode: line 1381: cd: /etc/rc0.d: No such file or directory
NX> 700 Inspecting local CUPS environment.
NX> 700 Generating CUPS entries in: /usr/NX/etc/node.cfg.
NX> 700 Installation of version: 3.0.0-93 completed.
NX> 700 Bye.
Installing "/usr/NX/scripts/setup/nxserver --install debian" gives:
# /usr/NX/scripts/setup/nxserver --install debian
NX> 700 Installing: server at: Thu Nov 22 23:29:58 2007.
NX> 700 Autodetected system: debian.
NX> 700 Install log is: /usr/NX/var/log/install.
NX> 700 ERROR: Output: adduser: unrecognized option `--system'
BusyBox v1.6.1 (2007-08-26 04:52:27 MDT) multi-call binary

Usage: adduser [OPTIONS] user_name

Add a user to the system

Options:
-h DIR Assign home directory DIR
-g GECOS Assign gecos field GECOS
-s SHELL Assign login shell SHELL
-G Add the user to existing group GROUP
-S Create a system user (ignored)
-D Do not assign a password (logins still possible via ssh)
-H Do not create the home directory.
NX> 700 ERROR: Cannot add user: nx to the system.
Do i have to add a username? Whatever I want? (I'm sorry to be so...inexperienced :roll: )
EDIT: Has this something to do with puppy authentication username (which I don't have set up)? Or is just the username used for the program?

Posted: Thu 22 Nov 2007, 23:16
by vampire666
1.2 Prerequisites

Installation of the NX Client and NX Node packages is a prerequisite for installing NX Server. To install NX Client and NX Node, please follow the instructions reported in the correspondent Installation Instructions available at:

http://www.nomachine.com/documents/client/install.php
http://www.nomachine.com/documents/node/install.php
I find out this on another page: http://www.nomachine.com/documents/server/install.php

So it looks like I have to install before the client (although I won't have to use it on that machine as it will be the server). My bad. Now I don't hame much time so I'll try do to this and keep you posted on my success/un-success as soon as possible.

Thanks to all of you!

Posted: Fri 23 Nov 2007, 12:36
by vampire666
I installed the client and node, but when installing the server I get the same error about the user:
# /usr/NX/scripts/setup/nxserver --install debian
NX> 700 Installing: server at: Fri Nov 23 13:34:47 2007.
NX> 700 Autodetected system: debian.
NX> 700 Install log is: /usr/NX/var/log/install.
NX> 700 ERROR: Output: adduser: unrecognized option `--system'
BusyBox v1.6.1 (2007-08-26 04:52:27 MDT) multi-call binary

Usage: adduser [OPTIONS] user_name

Add a user to the system

Options:
-h DIR Assign home directory DIR
-g GECOS Assign gecos field GECOS
-s SHELL Assign login shell SHELL
-G Add the user to existing group GROUP
-S Create a system user (ignored)
-D Do not assign a password (logins still possible via ssh)
-H Do not create the home directory.
NX> 700 ERROR: Cannot add user: nx to the system.
#
Anyone knows what should I do at this point?
EDIT: I found this:
http://nomachine.org/ar/view.php?ar_id=AR03E00451
Why the installation of NX server could fail with error 'Cannot add user: nx' ?
It has been verified that when nscd (Name Server Cache Daemon) is running on the host machine, some delay in updating the cache can occur.

In this case, even if NX server has been previously correctly uninstalled, and the user nx removed from the system, the 'id nx' can still be present in the cache and
your next attempt to install NX server can fail with error:

NX> 704 ERROR: Cannot add user: nx. User: nx already exists.
NX> 704 ERROR: Please try to fix the problem by reinstalling the server.

In a similar way, it could also happen that the nx user has been created on the system during the NX Server installation, but the cache is still not updated. In this
case, the 'chown' command issued during the installation procedure could fail, for example with error:

NX> 700 ERROR: Output: chown: unknown user id nx.
NX> 700 ERROR: Cannot set ownership attributes for
'/usr/NX/etc/passwords.db.lock' to 'nx:root'

In order to solve both these issues, you may try to stop and restart the NSCD process:

# /etc/init.d/nscd stop
# /etc/init.d/nscd start
But is seams that there's no /etc/init.d/nscd in puppy. How can I do then?

Posted: Fri 23 Nov 2007, 12:57
by HairyWill
vampire666 wrote:NX> 700 ERROR: Output: adduser: unrecognized option `--system'
BusyBox v1.6.1 (2007-08-26 04:52:27 MDT) multi-call binary

Usage: adduser [OPTIONS] user_name
looks like busybox's adduser might have problems
http://www.murga-linux.com/puppy/viewtopic.php?t=22543

Posted: Fri 23 Nov 2007, 13:16
by vampire666
Thanks HairyWill...but i don't know how to use that info for my advantage. :roll: I mean, do I have to install tinylogin and use that?

When I add the user (alain), it says that it's already in use:
# adduser alain
adduser: alain: group name already in use"
:?:

Posted: Fri 23 Nov 2007, 23:37
by HairyWill
Vampire,
I've never used tiny login either and can't really offer any advice i just knew I'd seen something similar before.

Posted: Sat 24 Nov 2007, 00:52
by vampire666
Ok, no problem.

Thanks for the interest. :)

Posted: Sat 24 Nov 2007, 01:48
by Ian
Tinylogin already exists in Puppy.

I think what you would have to do is add the user nx.

To do this create a directory named 'home' in the top directory:

in a console type,

mkdir /home

then run.

adduser nx

type in a pasword, you will not see the password echoed back to the terminal, hit enter and type it again and hit enter.

This will give you the user nx.

To remove a user, type,

deluser 'the user name'

hit enter.

Posted: Sat 24 Nov 2007, 10:07
by HairyWill
3.01 with not much added

Code: Select all

# ls -l /bin/adduser
lrwxrwxrwx 1 root root 7 2007-11-24 09:21 /bin/adduser -> busybox
I have tried looking for *iny* *ogin* and find nothing that seems to relate to tinylogin.
It is available as a pet in the package manager.

Posted: Sat 24 Nov 2007, 12:23
by Ian
HaryWill, try.

find / -name tinylogin

you should get

/bin/tinylogin

If you are trying to add a user try the steps that I have detailed above.