Thursday, 26 April 2018

Installing Ubuntu on a new device (i.e. single boot)

First insert the Ubuntu 'LiveUSB' into the device and after powering on immediately start the boot menu. This is normally achieved by 'mashing' the F7, F10 or F11 or another function key depending on you device.

Select the option to boot as the USB's first partition:


On booting from the ISO you will see a screen similar to this:


The top two options can be both be used for installing Ubuntu however the top option also allows running Ubuntu in 'live' mode which is similar to running it in a sandbox except that you can still access internal storage and any attached devices.

Having selected the first option above you will get the Ubuntu desktop displayed:


As mentioned it is possible to run commands in this 'live' mode for example to look at the current disk usage.

Using the 'df' command it can be seen that the disk is empty:


To perform the installation you can either click on the installation icon on the top left or double click the 'Install Ubuntu 18.04 LTS' icon:


Installation is menu driven with the small dots across the bottom indicating where you are in the menu cycle. First you must select the keyboard layout although the defaults are normally sufficient in most cases:


and then chose the what applications you would like to install. This release offers a new smaller and consequently quicker installation using the 'Minimal' option which is shown below. Again if in doubt just go with the defaults:


You should then obviously choose the 'Erase disk and install Ubuntu':


as this will partition the entire disk space to Ubuntu.

Alternatively if you had selected 'Somthing else' in the 'Installation type' menu you can specify in more detail the how the installation should be performed with more granualr control over disk space and partitions to use for the file system. Beginners should initially ignore this option unless comfortable with the following screen:


Once you've clicked 'Install Now' you will again get a warning message that you can typically safely ignore:


by clicking 'Continue' to move to the next menu. If you are connected to the internet the installer will try and determine you current location otherwise you can change this by clicking anywhere on the map with the effect being to set your timezone to what ever is appropriate to that location:


Next enter details about who you:


The first word of your name will automatically be suggested as your username and the computer name will become the 'host' name. Edit or accept them as appropriate:


Then enter your password. It will tell you how secure it thinks your password is:


Then enter your password again to reconfirm it. Note that if you chose a password longer than nine characters when entering it again you'll temporarily get a misleading 'Passwords do not match' message:


Just ignore this and carry on typing you password out for the full length:


After clicking 'Continue' the installation starts:


During which you will see some slides explaining key features of Ubuntu:






Don't worry about messages saying 'Removing packages' as this is normal:





Eventually it completes and waits for you next action which is convenient as you can leave the installation unattended:


As the displayed message suggests you can either carry on using the sandboxed 'live' Ubuntu by clicking 'Continue Testing' or reboot to try your newly installed Ubuntu. 

If you chose the 'Normal' installation it should look like the following:


There is also a brief introductory slide show highlighting the basics of the new GNOME desktop, whether to set up Livepatch (to automatically keep updated without rebooting), whether to send crash reports to Canonical and a brief introduction to popular applications that are available for installation:





Clicking on the icon on the bottom left shows the applications currently installed:




or for the 'Minimal' installation like this (including the brief introductory slide show):


with a smaller subset of applications installed:



A nice cosmetic touch is to try out the 'community theme' I wrote about here which changes the icons in the 'Normal' installation to look like:



:

or like this for the 'Minimal' installation:




One thing you may encounter early on is a message about updates. For example using a minimal installation as an example you might get the following message:


which if you click on 'Install Now' will prompt you for your password and then starts installing the updates:


and may require a reboot if the kernel has been updated:


Packages (as applications are known) can be installed through clicking on the 'Ubuntu Software' icon on the left or can be manually installed though the command line. For example installing 'gparted':


also automatically creates and icon. So before the installation it looked like:


and afterwards like:


Running 'gparted' shows the entire disk is allocated to Ubuntu:


There are plenty of guides on how to use Ubuntu and if you get stuck you should look at:
Please donate if you find this guide useful using the following link http://goo.gl/nXWSGf.


13 comments:

  1. At what point will you get internet connection? My tablet only has one USB port so I can't connect to the internet if I have the live ubunutu USB connected. Or will wifi work automatically without extra updates?

    ReplyDelete
    Replies
    1. In that case wifi would need to work so if it doesn't using an official ISO (written as a LiveUSB) then you would need to respin it to get wifi OOTB.

      Delete
  2. home screen on my Chuwi H12 reverses (bug?)

    ReplyDelete
    Replies
    1. Have you tried 'xrandr' or using a kernel boot parameter?

      Delete
  3. hello,
    I tried to respin an iso to make wifi/bluetooth work on a Acer Switch one SW1-011, without any luck...
    Another user has the same problem and posted a question here, he wrote down some technical details :

    https://unix.stackexchange.com/questions/434595/wireless-card-is-not-detected-on-ubuntu-and-fedora/443308#443308

    What can I do to contribute solving this problem ?
    If there are more informations needed (some logs / command responses...), I can provide them...

    ReplyDelete
    Replies
    1. Did you respin with a kernel and if so which version? Maybe post the output of your 'isorespin.log' together with a link to your booted 'dmesg'.

      Delete
  4. Hello,
    I pasted the logs here, respining with v4.16.10 kernel :

    https://pastebin.com/8XAk0uxF

    ReplyDelete
    Replies
    1. Can you post a link to the 'dmesg' taken after booting your respun ISO?

      Delete
  5. sorry, here it is :

    https://pastebin.com/seft6L0f

    ReplyDelete
    Replies
    1. Does wifi start after entering:

      sudo rfkill unblock all

      Also try:

      sudo rmmod acer_wmi

      and if that works you'll need to permanently blacklist that module:

      echo blacklist acer-wmi | sudo tee -a /etc/modprobe.d/blacklist-acer-wmi.conf

      (and include as part of respinning).

      Delete
  6. none of the above works : rfkill does nothing apparently, and rmmod gives : "error : module acer_wmi is not currently loaded"

    ReplyDelete
    Replies
    1. Without looking at the ACPI data try respinning with the very latest kernel (i.e. v4.17-rc6 so use either '-u' or '-k v4.17-rc6' options) as otherwise you would most likely need a self-compiled kernel.

      Delete
  7. no luck either with 4.17.RC6... Would you know the kernel compile options which could make it work ?

    ReplyDelete