Difference between revisions of "Ubuntu Server LTS"

From World Wide Wiegert Wiki - WWWW
Jump to: navigation, search
(Created page with "# How to disable cloud-init in Ubuntu ## Prevent start - Create an empty file to prevent the service from starting sudo touch /etc/cloud/cloud-init.disabled ## Uninstall - Disable all services (uncheck everything except "None"): sudo dpkg-reconfigure cloud-init - Uninstall the package and delete the folders sudo dpkg-reconfigure cloud-init sudo apt-get purge cloud-init sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/ - Restart the computer sud...")
 
Line 1: Line 1:
# How to disable cloud-init in Ubuntu
- How to disable cloud-init in Ubuntu -


## Prevent start
Prevent start


- Create an empty file to prevent the service from starting
* Create an empty file to prevent the service from starting
sudo touch /etc/cloud/cloud-init.disabled


sudo touch /etc/cloud/cloud-init.disabled
Uninstall
 
## Uninstall
 
- Disable all services (uncheck everything except "None"):


* Disable all services (uncheck everything except "None"):
sudo dpkg-reconfigure cloud-init
sudo dpkg-reconfigure cloud-init
 
* Uninstall the package and delete the folders
- Uninstall the package and delete the folders
 
sudo dpkg-reconfigure cloud-init
sudo dpkg-reconfigure cloud-init
sudo apt-get purge cloud-init
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/
 
* Restart the computer
- Restart the computer
 
sudo reboot
sudo reboot


## Sources
Sources
- https://gist.github.com/zoilomora/f862f76335f5f53644a1b8e55fe98320
* https://gist.github.com/zoilomora/f862f76335f5f53644a1b8e55fe98320
- https://cloudinit.readthedocs.io/en/latest/topics/boot.html#generator
* https://cloudinit.readthedocs.io/en/latest/topics/boot.html#generator
- https://www.blackmoreops.com/2019/04/19/remove-cloud-init-from-ubuntu/
* https://www.blackmoreops.com/2019/04/19/remove-cloud-init-from-ubuntu/

Revision as of 21:37, 5 July 2022

- How to disable cloud-init in Ubuntu -

Prevent start

  • Create an empty file to prevent the service from starting

sudo touch /etc/cloud/cloud-init.disabled

Uninstall

  • Disable all services (uncheck everything except "None"):

sudo dpkg-reconfigure cloud-init

  • Uninstall the package and delete the folders

sudo dpkg-reconfigure cloud-init sudo apt-get purge cloud-init sudo rm -rf /etc/cloud/ && sudo rm -rf /var/lib/cloud/

  • Restart the computer

sudo reboot

Sources