Copy the find directory across.

Copy the leaflet-0.7.2 directory and leaflet symlink across.

Install mosquitto from debian package.

Install paho:

# git clone git://git.eclipse.org/gitroot/paho/org.eclipse.paho.mqtt.python.git
# cd org.eclipse.paho.mqtt.python
# python setup.py install

Copy all contents of /etc/mosquitto/ across. This includes the ssl stuff and the password file.

Install and enable the package supervisor.

Copy across contents of /etc/supervisor/.

Start the supervisor daemon, check that locate.py is running.

# systemctl start supervisor.service
# ps ax | grep [l]ocate

If there are problems check the logs under /var/log/supervisor. If supervisor started locate.py as a service we should see something like:

# ls -l /var/log/supervisor/
total 4
-rw------- 1 root root    0 Feb  6 22:00 locateroger-stderr---supervisor-l3VTwk.log
-rw------- 1 root root    0 Feb  6 22:00 locateroger-stdout---supervisor-GIwvng.log
-rw-r--r-- 1 root root 1813 Feb  6 22:00 supervisord.log

Enable the sites find.rogerwhittaker.org.uk and leaflet.rogerwhittaker.org.uk.

Fix the DNS.

Hopefully that’s it, test… Done.