Some setup scripts / guides for VMs in Proxmox VE.

This note is highly dependent on the following repo: https://github.com/j3soon/linux-scripts

Ubuntu Basics

  • Ubuntu22_Init. Install Ubuntu 22.04 with Minimal Install, reboot after installation and then power off. Remove the ISO in Hardware tab and reboot again.
    • Ubuntu_Basic. Run the following:
      sudo apt-get install -y curl && bash -c "$(curl -fsSL https://raw.githubusercontent.com/j3soon/linux-scripts/master/init-ubuntu.sh)"
      

Ubuntu Packages

  • Unattended_Upgrade_Uninstall. Run the following:
    sudo apt-get remove unattended-upgrades
    
  • SSH_Server_Install. Run the following:
    sudo apt-get install -y openssh-server
    ip a
    
  • ZSH_and_Plugins_Install. Run the following:
    sudo apt-get install -y curl && bash -c "$(curl -fsSL https://raw.githubusercontent.com/j3soon/linux-scripts/master/install-zsh-and-plugins.sh)"
    
  • Docker_Install. Run the following:
    sudo apt-get install -y docker.io
    sudo usermod -aG docker $USER
    # Re-login to update user group information
    docker run hello-world
    

Packages with Credentials

  • Anydesk_Unattended_Install. Run the following:
    sudo apt-get install -y curl && bash -c "$(curl -fsSL https://raw.githubusercontent.com/j3soon/linux-scripts/master/install-anydesk-unattended.sh)"
    
  • Git_Email_Install. Run the following:
    sudo apt-get install -y curl && bash -c "$(curl -fsSL https://raw.githubusercontent.com/j3soon/linux-scripts/master/set-up-git-email-for-gmail.sh)"
    

Hardware Basics

  • PVE_Audio_and_SPICE. In the Hardware tab, add an audio device, and change the Display to SPICE (qxl).

  • PVE_GPU_Install. In the Hardware tab, add a PCI device, select the GPU, and check All Functions.

    • (Failing) NV_OSS_Driver_Install. Run the following:
      sudo apt-get install -y curl && bash -c "$(curl -fsSL https://raw.githubusercontent.com/j3soon/linux-scripts/master/nvidia/install-oss-driver.sh)"
      
    • NV_Driver_510_Install. Run the following:
      sudo apt-get install -y nvidia-driver-510
      
      • NV_Docker_Install. Run the following:
        sudo apt-get install -y curl && bash -c "$(curl -fsSL https://raw.githubusercontent.com/j3soon/linux-scripts/master/nvidia/install-nvidia-docker.sh)"
        

Posted: