Last active
April 27, 2017 01:59
-
-
Save novemberalpha/20d26e15b831758d67a3a60fa91c7261 to your computer and use it in GitHub Desktop.
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
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