I want to install some packages and configure Ubuntu after Ubuntu is installed on my laptop.
I have found that we can use .sh
files to create such things. But I think it is not very robust. For example, if something happens during installation and I ran the .sh
file again, it will start things from the beginning. Also if I want to append multiple lines to the ~/.bashrc
file, it is not very convenient.
I have found Docker as a potential solution but it is not made to set up your local environment.
Is there a robust and systematic way of doing it?
This could be also useful if I am spinning a VM on Cloud platform and want to have few things installed/configured.
cloud-init
can be used. I also foundAnsible
. – Shiv Krishna Jaiswal Jul 25 '21 at 03:04