Skip to content

Instantly share code, notes, and snippets.

@savelee
Created April 3, 2018 14:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save savelee/ba191d828da414b7a5179405225b7bcf to your computer and use it in GitHub Desktop.
Save savelee/ba191d828da414b7a5179405225b7bcf to your computer and use it in GitHub Desktop.
Google Assistant on a Raspberry Pi (AIY Voicekit). - Headless reboot
//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
[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