Install Ubuntu 20.04 LST on Oracle VM VirtualBox

  • Download the desired version of Ubuntu image from the official site:
    http://ftp.ubuntu-tw.org/mirror/ubuntu-releases/
  • Create a new VM:

  • Settings of VM:
    • Modify boot order:

    • General:

    • System:

    • Display:
      Maximize the Video Memory to prevent booting into black screen.

    • Storage:
      • Select Optical Drive > Choose the virtual optical disk file which downloaded at first step.
    • Customize Shared Folder:
      To share files between your host system and virtual machine.

Start the virtual machine and install Ubuntu through virtual optical disk

Press ENTER to remove the medium and continue booting.

  • Set up a proxy server if needed:
    e.g. 169.19.8.10:8080

How to active the Shared Clipboard?

  • Devices > Insert Guest Additions CD Image

Fix the error when inserting the Guest Additions CD Image

Simply unmount the existing CD image, then it would be able to insert again for the autorun.

How to configure apt behind proxy server

  • Create/Edit apt.conf:
    sudo vi /etc/apt/apt.conf

  • Insert content below in apt.conf, then we’re all set.
    Acquire::http::Proxy "http://169.19.8.10:8080";
    
  • Check your proxy settings:
    $ env | grep proxy`
    
    # https_proxy=http://169.19.8.10:8080
    # http_proxy=http://169.19.8.10:8080
    # no_proxy=localhost,127.0.0.0/8,::1
    

    paragraph break

⤧  Previous post [JavaScript30] Day 08 - Canvas ⤧  Next post 世界末日那一天,你的程式靜靜躺在北極圈 - GitHub Archive Program