Install Xubuntu 19.10 on a Raspberry Pi 4
- Sean Davis
- How To
- October 20, 2019
Table of Contents
💡 This guide is obsolete! Please check out the new Install Xubuntu 20.04, 21.10, or 22.04 on Raspberry Pi 4 guide.
With the release of Ubuntu 19.10 “Eoan Ermine,” Ubuntu Server is available for the Raspberry Pi 4 for the first time. With the Pi 4’s major boost in performance, once we can install Ubuntu Server, we can install and run any of the flavors. Let’s get to it!
Getting the Server Image
First off, head to the Ubuntu 19.10 release images. We want one of the Preinstalled server images since booting on the Raspberry Pi is still a tricky fiasco. You’ll see two installation options:
We’ll want to choose the first option, Hard-Float. While the Pi 4 does, in fact, support the 64-bit ARM image, unfortunately USB devices fail to initialize with this option. If you have no need for mouse and keyboard, feel free to use the 64-bit option. This should be resolved in time for the 20.04 release.
Installing the Server Image
Once your server image has been downloaded, download and run Etcher. If you’ve never used Etcher before, it’s a simple, cross-platform solution for installing disk images to USB devices. It’s reliable and easy to use and will help you avoid overwriting your hard drives.
Select the downloaded image (.xz is fine; no need to extract), select the correct storage location, and click Flash! After a few minutes, the image will be installed and validated, and you’ll be ready to go. Re-insert your MicroSD card into your Raspberry Pi, connect an ethernet cable, power it on, and proceed to the next step.
Note: Once the USB installation finished, I received an error message saying the checksums did not match, but everything seemed to work correctly afterward.
Logging In
This part tripped me up for a while. Once installed, the default username and password are both “ubuntu”. However, the first login to your Raspberry Pi has to be via SSH! The first step is to find the IP address of your Raspberry Pi device.
Be mindful that scanning for devices might be frowned upon if you’re in a corporate or other shared environment. With that warning out of the way, let’s use nmap to look for our device. I won’t cover usage here, but a quick DuckDuckGo search can point you in the right direction. The server installation image defaults the hostname to “ubuntu,” so look for that.
$ nmap -sP 192.168.1.0/24
...
Nmap scan report for ubuntu.attlocal.net (192.168.1.230)
Host is up (0.00036s latency).
...
Once you know where the device is, SSH in and reset your password. Enter “yes” to continue connecting if prompted for the fingerprint.
$ ssh ubuntu@ubuntu.attlocal.net
ubuntu@ubuntu.attlocal.net's password:
You are required to change your password immediately (administrator enforced)
WARNING: Your password has expired.
You must change your password now and login again!
Changing password for ubuntu.
Current password:
New password:
Retype new password:
passwd: password updated successfully
Connection to ubuntu.attlocal.net closed.
Now, SSH in again with your new password, and let’s install Xubuntu!
Installing Xubuntu
We’re almost done! Now it’s time to decide: Do you want Xubuntu Core, the minimal Xubuntu base that you can easily customize to your needs or Xubuntu Desktop, our standard installation option? I’ll be installing Core for this guide, but if you want to install Desktop, just replace “xubuntu-core^” with “xubuntu-desktop^”.
Also worth noting, while setting up Xubuntu on the Raspberry Pi, I came across an issue that caused our default login screen to fail. This has been fixed upstream, but to work around this issue, we will now use Slick Greeter for our login screen. Now, let’s get back to the installation. Please note that the caret, ^, is not a typo!
sudo apt update
sudo apt install xubuntu-core^ slick-greeter
This will take a while. Once everything’s installed, the final step is to set Slick Greeter as the login screen. Create /etc/lightdm/lightdm.conf with the following contents using your favorite command-line editor.
[SeatDefaults]
greeter-session=slick-greeter
And finally, reboot!
sudo reboot
Installation Complete
Your Raspberry Pi 4 will now boot into a graphical environment, and you’ll be greeted by Slick Greeter. Log in with the password you created earlier, and the Xubuntu desktop will load the same as you’d find outside of the Raspberry Pi.
What’s Next?
That’s up to you, but I first recommend creating a new user. The default Ubuntu user is an administrator with a bit more power than you normally have on the desktop installation.
Beyond that, the Pi’s the limit! Have fun, and enjoy running the mouse-based distribution on your mouse-sized computer.
Thanks!
I purchased my Raspberry Pi 4 with funds from my Patreon, so my patrons helped make this project possible. I’ll continue experimenting with the Pi 4, so look forward to even more awesome projects. Thanks, everybody!