Ubuntu – rc.local
Faced with the fact that in Ubuntu there is no usual CentOS file with me "rc.local", the solution is the following. Create a service: with the following content: Create the file"rc.local" and add it to the execution bit: