Created
April 3, 2018 14:33
-
-
Save savelee/ba191d828da414b7a5179405225b7bcf to your computer and use it in GitHub Desktop.
Google Assistant on a Raspberry Pi (AIY Voicekit). - Headless reboot
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//follow these steps in order to make the raspberry pi reboot in headless mode | |
1. Open my_assistant.service file in an editor: | |
sudo nano /lib/systemd/system/my_assistant.service | |
2. Copy contents of my_assistant.service in editor | |
3. Make your service script executable: | |
sudo chmod 644 /lib/systemd/system/my_assistant.service | |
4. In case of script changes reload: | |
sudo systemctl daemon-reload | |
5. Start the script to test it: | |
sudo systemctl start my_assistant.service | |
6. When everything works fine, enable the service: | |
sudo systemctl enable /lib/systemd/system/my_assistant.service | |
7. Reboot the system | |
reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[Unit] | |
Description=My awesome assistant app | |
After=multi-user.target | |
[Service] | |
ExecStart=/usr/bin/python3 -u assistant_library_with_button_demo.py | |
WorkingDirectory=/home/pi/AIY-projects-python/src/examples/voice | |
Restart=always | |
User=pi | |
[Install] | |
WantedBy=graphical.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment