
Autostart a terminal app on Raspberry boot
I wanted to run a terminal command on every boot and this was achieved by:
- use ‘raspi-config’ to boot in CLI mode with auto-login
- enter the following lines at the end of /home/pi/.bashrc file
if [ $(tty) == /dev/tty1 ]; then
htop ##change this to be the thing you want or even a script [full path to]
fi