Linux Installation Guide - SoonerRobotics/SCR-Resources GitHub Wiki

Note: These instructions may differ from computer to computer. Please update this if you have any advice for other members

Dual Booting Ubuntu 18.04 with Windows

Follow the guide for dual booting Ubuntu 16.04, but use the Ubuntu 18.04 image, available here: Ubuntu 18.04.2 LTS (Bionic Beaver)

If you already have Ubuntu 16.04, you can upgrade to Ubuntu 18.04 without going through the whole process again. You should google how to do this and then update this wiki entry

Dual-Booting Ubuntu 16.04 with Windows 10

Requirements

  • A computer preinstalled with Windows
  • Internet connection
  • A 8GB+ USB stick
  • Rufus https://rufus.ie/ (or a similar flash drive ISO burner like Win32DiskImager)

Note: if you have a Microsoft Surface, you will have to do some special stuff to allow dual booting (specifically related to booting from USB). That's not really covered here yet.

Steps

  1. Format your USB
  • Go to File Explorer, right click your USB, choose format.
  • Choose FAT32 for File System, then click format
  1. Allocate space for Linux on your hard drive
  • Try to allocate at least around 75GB to 100GB total (more is fine)
  • Go to Create and format hard disk partitions
  • On your volume choose Shrink Volume then enter the amount of space to shrink.
  1. Install Ubuntu
  • Make your flash drive a boot device
  • Boot from the USB Drive
    • Figure out how to get to BIOS on your computer (you probably will need to restart your computer). This is very dependent on your computer's manufacturer (ASUS, Dell, etc.)
    • Once in BIOS, Enable "Boot from USB" and then choose your USB
    • Save your choices, and the computer will restart
    • Choose "Install Ubuntu" from the Boot Options screen that eventually appears
    • Follow the installer's instructions until "Installation Type". Once you're there, choose "Something Else"
  • Custom Partitioning (The Something Else)
    • Select the free space you allocated in Step 2.
    • We are going to make 3 partitions, /, /home, and /swap
      • / is where the operating system and programs run from
      • /home is where all user data lives
      • /swap is memory that is used as additional RAM storage. If you want to save some space, you don't really need swap (but it can help performance)
    • Click on the "+" button, select "/" and give it about 15-20GB.
    • Repeat this for /home and /swap. Give /swap around 8-16GB and give /home the rest.
    • Complete installation by following the rest of the Installer's instructions.
  1. That's it! Check out the troubleshooting guide if you run into any problems

Troubleshooting Guide

Read this for solutions to your Linux installation errors

Errors while creating live USB

Check for following:

  • Make sure your image is an .iso file. If it's .iso.torrent, use BitTorrent https://www.bittorrent.com/ to obtain the image.
  • Your USB is formatted

Errors while freeing space for Linux

  • Ensure you have enough space to free on your computer.
  • Freed space doesn't need to be formatted or used to create a new volume

Ubuntu won't launch on startup

  • Make sure the USB is to be booted in BIOS
  • Make sure the USB is created correctly

Ubuntu's "Installation Type" is empty

  • Go to cmd
  • Run bcdedit /set {current} safeboot minimal to enable safe boot
  • Go to BIOS
  • Switch SATA Controller to AHCI
  • Reboot computer
  • Go to cmd and run bcdedit /deletevalue {current} safeboot to disable safe boot
  • Restart and Windows should start with AHCI drivers

Ubuntu freezes when you shut down

  • Open Ubuntu's Terminal
  • Run sudo nano etc/default/grub
  • Edit GRUB_CMDLINE_LINUX_DEFAULT="quiet splash" to GRUB_CMDLINE_LINUX_DEFAULT="quiet splash acpi=force"
  • Save using Ctrl+O
  • Exit using Ctrl+X
  • Run update-grub

Switching from Ubuntu to Windows changes Windows time

  • Go to Ubuntu Terminal
  • Run timedatectl set-local-rtc 1
⚠️ **GitHub.com Fallback** ⚠️