I offer the following procedure on how to install Ubuntu 19.10 on a Pi4
I got most of the following information from the following youtube site Give it a listen because it is quite accurate in the part it covers. The only missing piece was how to configure a network on the Pi4 that has virtually no network tools installed.
This procedure will be self contained with outside references where necessary for clarity or additional reading.
The procedure consists of 7 sections:
- download the Pi 4 iso image
- install the iso image on your sim card (32Gig) with modifications
- after successful boot on the Pi 4 configure your Pi 4 networking - the Pi 4 has no networking tools supplied with the image, i.e., no "ifconfig", "iwlist", etc. This makes configuring the network a bit more difficult.
- updating and upgrading your Pi 4 once connected to the network/internet
- installing a desktop manager
- installing a second desktop - ubuntu desktop gnome3
- logging in with the desktop manager and configuring your wifi network.
Now for the details on how to do this:
- Download the Pi 4 iso image from https://ubuntu.com/download/iot/raspberry-pi Get the 64 bit version.
- Install the iso image on your sim card. I use the tool called balenaEtcher. Its quite simple to use but you may use what ever you are used to. After the image has successfully transferred to your sim card those of you with the 4 GB Pi 4 need to do the following: using the file manager on your ubuntu laptop find "system-boot" and click it. This will reveal all the files/directories in this filesystem. Now do the following: edit the file called usercfg.txt and add the following two lines: total_mem=3072 and dtparam=audio=on. These two lines should be left justified in this file. Do not forget to save this file on the sdc card. Without these two lines a Pi 4 will boot to login and as you reach for the keyboard the login will scroll off the screen and you are done no matter how many times you boot/try again. The login/password pair is ubuntu/ubuntu. Once logged in you will be asked to reset the passwd for ubuntu user.
- Networking - these steps are covered below.
- Updating and Upgrading your Pi4 - also covered below.
- login to the pi
- ip addr --> this will show your network interfaces. my wifi was wlan0 your could be something like ws1pS0. It does not matter. Also note your ethernet interface, most likely eth0.
- connect ethernet cable to Pi 4 - yes this is how we will connect to the internet. trying to configure the wifi at this point was too hard.
- sudo ip link set dev eth0 down
- sudo dhclient eth0
- now this step is a test and it must work or you need to fix why you are not connected to the network
- sudo apt install net-tools - this will install the net-tools package. if it can do this then you are successfully connected to the internet and may continue with step 7. If not you need to get network connectivity because many of the commands that follow require connecting to the Ubuntu site.
- sudo apt update
- sudo apt upgrade
- sudo apt install ubuntu-mate-desktop - this is a one hour install
- when the desktop completes choose xdm (lightdm is another choice but I have not tried it). This too is a long install.
- sudo apt install ubuntu-desktop - this desktop will fix wifi errors that I saw but just remain a bad memory for me.
- disconnect the ethernet cable
- sudo shutdown -Fr now
- you will now be presented with an ubuntu gnome 3 desktop. login: ubuntu/your new password
- now set up wifi.
- at the very top of the screen you will see a couple of icons. There might be a network icon so click on it. I there is no network icon click in that region and it will show you a wifi network icon. click on it and begin to configure your wifi network, i.e., its name and password, dhcp, etc. The network icon may now have a "?" mark in it so reboot. This should fix the question mark issue and you will now have a Pi4 running Ubuntu 19.10.
- open Firefox and if you can surf then your networking is good.
- click on network manager and see if you can list available networks
- let the screen saver/power saver kick in then wake the system. See if you can list available networks in network manager and if you can surf with Firefox.
- if you continue to have a "?" mark over the network icon go to settings ->privacy and set connectivity settings to "off"