Automate Ubuntu startup for increased productivity

This is going to make you more productive. Simply create a bash script that opens all the stuff you usually open up one after another when you start your PC.

Example:

chris@trashcan:~$ vim startup.sh
chris@trashcan:~$ cat startup.sh 
#!/bin/bash

# moar terminal windows
gnome-terminal
gnome-terminal

# VScode (last session and or specific project dirs)
code
# code ~/project_dir/

# Firefox (usually blocking -> push to background)
firefox & 
disown

# Chrome
google-chrome &
disown

# System Settings (dumbass mic)
gnome-control-center &
disown
chris@trashcan:~$ sudo chmod +x startup.sh 
[sudo] password for chris:
chris@trashcan:~$ ./startup.sh 

Instead of running this from the command line like the example above, I prefer to

chris@trashcan:~$ mv startup.sh Desktop/
chris@trashcan:~$ sudo reboot
[sudo] password for chris:

and just double click it with my mouse whenever I boot up my PC.

Of course, you can also configure the script to be called automatically on system startup but that is eventually going to annoy you, I promise.

Leave a comment

Your email address will not be published. Required fields are marked *