Skip to content

Instantly share code, notes, and snippets.

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 novemberalpha/20d26e15b831758d67a3a60fa91c7261 to your computer and use it in GitHub Desktop.
Save novemberalpha/20d26e15b831758d67a3a60fa91c7261 to your computer and use it in GitHub Desktop.
Step 1: Create new autologin.conf file
sudo nano /etc/systemd/system/getty@tty1.service.d/autologin.conf
Step 2: Add these lines
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin pi --noclear %I 38400 linux
Step 3: Save file with ctrl-x
Step 4: Activate new autologin service
sudo systemctl enable getty@tty1.service
Step 5: Edit .bashrc to run script on login
nano ~/.bashrc
Step 6: add this line at the end
docker logs -f openagbraindockerrpi_brain_1
Step 7: Reboot and enjoy your new logging on your touchscreen
Not the best side effect:
Everytime you log in to your pi you'll get the tail and have to ctrl-c to get to the command prompt.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment