ValidationServer
Installing the Validation Server
Go back to the accomplishments main page.
The server works by scanning all the Ubuntu One shares from .trophy files that have not been signed. It then adds these to a queue. The server also checks for new shares to accept.
We then process the queue one by one to validate the .trophy files, and if they validate, add a .trophy.sig file.
This service requires an Ubuntu Server with a headless Ubuntu One setup. For information on setting up a Headless Ubuntu One, see https://wiki.ubuntu.com/UbuntuOne/Headless
Please note: the server is set up specifically with my own (Jono Bacon) use-case in mind; there are therefore lots of hard coded paths and such.
Get the branch
cd ~/ bzr branch lp:~jonobacon/ubuntu-accomplishments-system/validation-service
Setting Up
Add the PYTHONPATH to the login:
nano ~/pam_environment
Add the following to the file:
PYTHONPATH=$PYTHONPATH:/home/jono/validation-service
Create the directories required:
mkdir ~/queue mkdir ~/logs mkdir ~/accomplishments
Create a .matrix file (an example is included, just rename it and edit):
cp validation-service/.matrixexample .matrix
Specify where your Ubuntu One 'Shared With Me' directory is and where the 'queue' directory is.
Starting the services
The various services are started as cron jobs. Edit your cron:
crontab -e
Add the following:
*/1 * * * * /home/jono/validation-service/cron_br.sh */2 * * * * /home/jono/validation-service/cron_wo.sh */2 * * * * /home/jono/validation-service/cron_sh.sh
Accomplishments/Installing/ValidationServer (last edited 2012-03-31 19:10:21 by 99-41-167-234)