0% found this document useful (0 votes)
37 views3 pages

Making The Aegir Code Run at The Startup

This document provides instructions for making Aegir code run automatically at startup on a Raspberry Pi. It involves adding a line to the crontab file to run the Aegir Python script at reboot and adding a line to the autostart file to automatically open Chromium in fullscreen incognito mode displaying the Aegir web interface. Saving the edited files is done using Ctrl+X, Y, and Enter keys.

Uploaded by

Hassaan Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
37 views3 pages

Making The Aegir Code Run at The Startup

This document provides instructions for making Aegir code run automatically at startup on a Raspberry Pi. It involves adding a line to the crontab file to run the Aegir Python script at reboot and adding a line to the autostart file to automatically open Chromium in fullscreen incognito mode displaying the Aegir web interface. Saving the edited files is done using Ctrl+X, Y, and Enter keys.

Uploaded by

Hassaan Ahmad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 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