Last active
November 23, 2022 17:02
-
-
Save mauvehed/6dfc0e9bf8632e43736a0fbba37cdba2 to your computer and use it in GitHub Desktop.
Revisions
-
mauvehed renamed this gist
Sep 16, 2022 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewing
File renamed without changes. -
mauvehed revised this gist
Sep 16, 2022 . 1 changed file with 10 additions and 28 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,34 +1,16 @@ ### Documentation https://www.digitalocean.com/community/tutorials/how-to-upgrade-to-ubuntu-22-04-jammy-jellyfish ### Do the thing Execute the following command to update a server ```sudo apt update && sudo apt upgrade && sudo apt dist-upgrade``` Run release upgrade to either stable or development release ```sudo do-release-upgrade``` or ```sudo do-release-upgrade -d``` Profit. -
mauvehed created this gist
Aug 27, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,34 @@ Execute the following command to update a server ```sudo apt update && sudo apt upgrade``` Now, install the unattended upgrade on your Ubuntu system through the following command: ```sudo apt install unattended-upgrades apt-listchanges bsd-mailx``` After that, turn on the unattended security updates by running the following command: ```sudo dpkg-reconfigure -plow unattended-upgrades``` After executing the command, configure the automatic update by executing the command given below: ```sudo vi /etc/apt/apt.conf.d/50unattended-upgrades``` Now, you can set up the alert email ID by the below command: ```Unattended-Upgrade::Mail "[email protected]";``` In the above command, you can write your email ID instead of “[email protected]”. In case you want automatically reboot the Ubuntu box without confirmation for the Kernel update, then use the following command: ```Unattended-Upgrade::Automatic-Reboot "true";``` Finally, you can edit the /etc/apt/listchanges.conf and set up the email ID: ```[email protected]``` You can verify that the setup is working by executing the below command: ```sudo unattended-upgrades --dry-run``` The software updater in Ubuntu will also give you update when available. You only need to click on the update option, and the package will be automatically upgraded to a newer version