May 26, 2018 · Notes Debian Ubuntu

Debian/Ubuntu Desktop: Run terminal commands on startup

I use this to start Conky on boot. Modify Name and Exec to run almost any script on startup.

Create a file ~/.config/autostart/conky.desktop containing the following:

[Desktop Entry]
Name=Conky
Exec=conky -d
Type=Application
Terminal=false
StartupNotify=false

This runs the command as you log into your desktop. For other options, look up rc.local or crontab's @reboot tag.