Install from sources
This tutorial explains how to install neubot from sources, assuming you have already downloaded the sources archive.
Note that in this page we assume that you have downloaded version 0.4, but, of course, you should adapt the commands to match the version number of the archive you have downloaded.
If you read this tutorial you might also want to read how to uninstall neubot once you installed it from sources.
With Unix you can either install neubot or run neubot in-place from sources directory. Here are the commands to install neubot on Debian, other Unixes may require different commands (especially for creating user and group). If in doubt, check the manuals of your system:
Make sure that Python >= 2.5 and python -V
This command should output something like:
Python 2.6.5. If Python is not installed you should manage to install it using the proper tools of your Unix distribution.
Unpack the sources archive:
tar -xzf neubot-0.4.tar.gz
Enter the sources directory:
The right command to become root depends on the policy of your Unix distribution. The traditional command to become root has always been
su. But Ubuntu, and MacOsX (and possibly others) require you to use
Add neubot group:
groupadd -r _neubot
Add neubot user:
useradd -r -d/ -g_neubot -s/usr/sbin/nologin _neubot
Start neubot daemon:
Neubot will become a daemon, will drop root privileges, and will run on behalf of the
_neubotuser and group, periodically performing transmission tests.
Automatically start neubot daemon at startup.
Assuming that Python is at
/usr/local/bin/python, add the following code snippet to
/usr/local/bin/python /usr/local/bin/neubot start
Exit from the root shell:
See FAQ 2.4.