These steps should work for multiple versions of Ubuntu Server.
Thankfully enabling automatic updates in Ubuntu is super easy.
First make sure that the “unattended-upgrades” package is installed
sudo apt install unattended-upgrades
It was already installed on my Ubuntu 20.04 server instance. Next run dpkg to reconfigure and enable updates
sudo dpkg-reconfigure unattended-upgrades
You should get the following prompt.
Configuring automatic updates
Hit “Yes” to enable.
Your system should now automatically install updates. however, if it needs to reboot it may not. You can configure the reboot options in
sudo vi /etc/apt/apt.conf.d/50unattended-upgrades
Scroll down to the Reboot lines and uncomment
// Automatically reboot *WITHOUT CONFIRMATION* if
// the file /var/run/reboot-required is found after the upgrade
Unattended-Upgrade::Automatic-Reboot "true"; // <- Uncomment line
// If automatic reboot is enabled and needed, reboot at the specific
// time instead of immediately
// Default: "now"
Unattended-Upgrade::Automatic-Reboot-Time "02:00"; // <- Uncomment line
Save the file. Your system should now automatically install stable updates.
Disable automatic update
You can disable the automatic updates by running the dpkg command again.
sudo dpkg-reconfigure unattended-upgrades
and selecting “No”
Automatic updates should now be off.
More information can be found at the following link.
Replace 128K with the rate you would like. Rate is in Bytes, K for kilobytes M for megabytes.
More info from the man pages
--limit-rate=amount Limit the download speed to amount bytes per second. Amount may be expressed in bytes, kilobytes with the k suffix, or megabytes with the m suffix. For example, --limit-rate=20k will limit the retrieval rate to 20KB/s. This is useful when, for whatever reason, you don't want Wget to consume the entire available bandwidth. This option allows the use of decimal numbers, usually in conjunction with power suffixes; for example, --limit-rate=2.5k is a legal value. Note that Wget implements the limiting by sleeping the appropriate amount of time after a network read that took less time than specified by the rate. Eventually this strategy causes the TCP transfer to slow down to approximately the specified rate. However, it may take some time for this balance to be achieved, so don't be surprised if limiting the rate doesn't work well with very small files.
For some reason a lot of applications out there do not have a built RPM package. Fortunately, there are a bunch of applications built into snap, so we can install snap and then install Discord.
You can also use the copr repo. Visit the following link for instructions.
By default Linux and OLED displays don’t really want to play well together. icc-brightness is a handy utility that resolves the problem, but all the instructions I found online were for Ubuntu/Debian based distributions.
LibreNMS stores all it’s files in /opt/librenms
Quick and easy way to back up the LibreNMS files is to use tar.
tar zcvf librenms_backup.tgz /opt/librenms
Migrating Database
I believe you can copy the whole /var/lib/mysql directory. Should be able to use the above command. If not you can do a mysqldump and then import it on the new system.
Restoring a Pixel to the factory image is a pretty straight forward operation if you are familiar with fastboot and adb. This guide assumes you have fastboot already installed and setup in your user path. If not you can refer to the following link for more information.
WARNING – THESE STEPS WILL DELETE ALL USER DATA OFF THE DEVICE.
For some reason I ran into an issue where I can not remove authorized SSH Keys in AirOS version 6.3. It redirects to a 404 page and then to the main page.
Attempting to remove SSH keys in AirOS404 Error while attempting to remove SSH keys
Thankfully, we can still remove the authorized keys from the command line. For more information on making changes over SSH, refer to the following post.