I want to find out how to run a script made by me at startup before login.
To run a script at startup of Ubuntu, before login, you would edit /etc/rc.local and add your desired commands. Make sure that the script ends with exit 0. LSS
/etc/rc.local