Score:1

Installing packages and configuring post Ubuntu install

sa flag

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.

Shiv Krishna Jaiswal avatar
sa flag
I think `cloud-init` can be used. I also found `Ansible`.
Tejas Shetty avatar
us flag
Does this answer your question? [How do I make post-install scripts?](https://askubuntu.com/questions/47404/how-do-i-make-post-install-scripts)
Score:1
cn flag

Look up cloud-init, which has been the way to customize Ubuntu VMs and containers for years.

It also works on most newer Ubuntu bare-metal installers.

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.