View on GitHub

Settings_Linux

Useful bash scripts and settings for managing a Linux server

Upgrade of chalkboard

Last updated 2020-12-24 by Adam Lu


  1. Upgraded from Ubuntu 18.04 LTS to Ubuntu 20.04 LTS:

    • First applied these commands using the alias updateall:

      sudo apt-get update -y
      sudo apt-get upgrade -y
      sudo apt-get dist-upgrade -y
      sudo apt-get autoremove -y
      
    • Rebooted the server:

      sudo reboot
      
    • Performed upgrade using the command:

      sudo do-release-upgrade -d
      
    • Initial message:

      Checking for a new Ubuntu release Get:1 Upgrade tool signature [1,554 B] Get:2 Upgrade tool [1,340 kB] Fetched 1,342 kB in 0s (0 B/s) authenticate ‘focal.tar.gz’ against ‘focal.tar.gz.gpg’ extracting ‘focal.tar.gz’

      Reading cache

      Checking package manager

      Continue running under SSH?

      This session appears to be running under ssh. It is not recommended to perform a upgrade over ssh currently because in case of failure it is harder to recover.

      If you continue, an additional ssh daemon will be started at port ‘1022’. Do you want to continue?

    • Typed N and entered this on chalkboard directly instead:

      sudo do-release-upgrade -d
      
    • Series of questions:

      TO DOWNLOAD

    • Applied these commands again using the alias updateall:

      sudo apt-get update -y
      sudo apt-get upgrade -y
      sudo apt-get dist-upgrade -y
      sudo apt-get autoremove -y
      
  2. Disabled automatic hibernation

    • Tried this approach to prevent chalkboard from automatically hibernating

      sudo systemctl mask sleep.target suspend.target hibernate.target hybrid-sleep.target