Ubuntu Deployment
Basic commands needed to setup Ubuntu.
System
Section titled “System”Expand LVM
Section titled “Expand LVM”sudo lvextend -l +100%FREE /dev/ubuntu-vg/ubuntu-lvsudo resize2fs /dev/mapper/ubuntu--vg-ubuntu--lvPackage Installation
Section titled “Package Installation”Docker
Section titled “Docker”Run the Docker install script they provide:
curl -fsSL https://get.docker.com -o get-docker.sh && sh get-docker.shFirst, add the repository to our sources list
echo deb https://downloads.plex.tv/repo/deb public main | tee /etc/apt/sources.list.d/plexmediaserver.listThen, add the signing key to ensure the packages haven’t been altered
curl https://downloads.plex.tv/plex-keys/PlexSign.key | apt-key add -Google Chrome
Section titled “Google Chrome”First, setup Google’s Linux signing key.
curl -fSsL https://dl.google.com/linux/linux_signing_key.pub | sudo gpg --dearmor | sudo tee /usr/share/keyrings/google-chrome.gpg >> /dev/nullNext, add the Chrome repository
echo deb [arch=amd64 signed-by=/usr/share/keyrings/google-chrome.gpg] http://dl.google.com/linux/chrome/deb/ stable main | sudo tee /etc/apt/sources.list.d/google-chrome.listNow, update the APT cache, and install the repository
sudo apt update && sudo apt install google-chrome-stableVirtualisation
Section titled “Virtualisation”Remove Sparse Space on QEMU VM
Section titled “Remove Sparse Space on QEMU VM”qemu-img convert -O qcow2 source.qcow2 shrunk.qcow2