You are on page 1of 3

Making the Aegir code run at the startup

This procedure assumes that Aegir code has been placed in the /home/pi directory
already.

 In terminal write: sudo crontab –e

This will open the crontab file as shown below.


 Add this line at the end:
@reboot sudo python /home/pi/Aegir-master/AS_sensors_v2.py &

 Write this command in the terminal: nano /home/pi/.config/lxsession/LXDE-


pi/autostart

This will open autostart file as shown below.


 Add this line at the end:
@chromium-browser --start-fullscreen --incognito http://localhost:5000/

Note: After pasting these two commands in their respective files, files need to be
saved. This is done by pressing Ctrl+X (for exiting the file), then pressing the Y (Y for
yes) key and then finally the Enter key.

You might also like