Skip to content

Deploying The Engine

Krypt edited this page Nov 14, 2020 · 7 revisions

One youve made sure your config works by running sudo python3 MainEngine.py we can now deploy the thing

Make sure the answered.txt file and index.html is empty before you make the cronjobs, it has the sections/questions cleared from previous scan to calculate points gained from prev scan and whatnot

You can make a cronjob or a systemd timer for the MainEngine.py so it actually runs the engine, ill be making a cronjob that runs this every you have to edit /etc/crontab and add this line

*  *    * * *   root    export XAUTHORITY=/run/user/<userid>/gdm/Xauthority && export DISPLAY=:0 && python3 path/to/MainEngine.py

replace with your user who is gonna be doing the image id

This will run it every min

You can also link the html file to the desktop to make it appear on it and thats it!

Clone this wiki locally