How to Install The Ubuntu Server in Raspberry Pi 4

The Raspberry Pi is that the known single-board pc. Initially, the scope of the Raspberry Pi project was targeted to the promotion of teaching of basic technology in colleges and in developing countries.

Its low valuemovableness and really low power consumption, created the models much more well-liked than anticipated. From meteorological observation post to home automation, tinkerers designed such a large amount of cool comes victimization Raspberry Pi.

The fourth generation of the Raspberry Pi, is provided with options and process power of a dailyPChowever this text isn’t regarding victimization RPi as desktop. Instead, I’ll show you ways to put in Ubuntu server on Raspberry Pi.

In this tutorial you’ll be able to use a Raspberry Pi4 and that i will cover the following:

Installing Ubuntu Server on a microSD card
Setting up a wireless network connection on the Raspberry Pi
Accessing your Raspberry Pi via SSH

You’ll need the following things for this tutorial:

  • A micro SD card (8 GB or greater recommended)
  • A computer (running Linux, Windows or macOS) with a micro SD card reader
  • A Raspberry Pi 2, 3 or 4
  • Good internet connection
  • An HDMI cable for the Pi 2 & 3 and a micro HDMI cable for the Pi 4 (optional)
  • A USB keyboard set (optional)

I have used Ubuntu for making Raspberry Pi SD card during this tutorial however you’ll follow it on alternative Linux distributions, macOS and Windows furtherthis can be as a result of the steps for getting ready the SD card is that the same with Raspberry Pi Imager tool.

The Raspberry Pi Imager tool downloads the image of your choice of Raspberry Pi OS mechanicallythis suggests that you simply want an honest net affiliation for downloading information around one GB.

Step 1: Installing The Image Image in SD Card

Make sure you have got inserted the microSD card into your pc, and install the Raspberry Pi Imager at your pc.

You can transfer the Imager tool for your software package from these links:

Despite i take advantage of Ubuntu, I won’t use the Debian package that’s listed higher thanhowever i will be able to install the snap package using the instruction. This technique may be applied to wider vary of Linux distributions.

sudo snap install rpi-imager

Once you have got put in Raspberry Pi Imager tool, notice and open it and click on on the “CHOOSE OS” menu.

Scroll across the menu and click on on “Ubuntu” (Core and Server Images).

From the obtainable picturesi select the Ubuntu 20.04 LTS 64 bit. If you’ve got a Raspberry Pi 2you’re restricted to the 32bit image.

Important Note: If you use the latest Raspberry Pi 4 – 8 GB RAM model, you should choose the 64bit OS, otherwise you will be able to use 4 GB RAM only.

Select your microSD card from the “SD Card” menu, and click on “WRITE”after.

If it shows some error, attempt writing it once moreit’llcurrentlytransfer the Ubuntu server image and write it to the smallsd card.

It will send word you once the method is completed.

Step 2: Making Wifi Configuration in Ubuntu server

Once the small sd card flashing is completedyou’re nearly able to use it. there’s one thng that you simply might want to try and do before mistreatment it which is to feature Wi-Fi support. If you don’t be intimate at once, you’ll got to place further effort later in connecting to wireless fidelity from terminal in Ubuntu server.

With the sd card still inserted within the card reader, open the file manager and find the “system-boot” partition on the card.

The file that you just are searching for and wish to edit is known as network-config.

This methodmay be done on Windows and MacOS too. Edit the network-config file as already mentioned to feature your Wi-Fi credentials.

Firstly, uncomment (remove the hashtag “#” at the beginning) from lines that square measureenclosedwithin the rectangular box.

After that, replace myhomewifi along with your Wi-Fi network name confined in quotation marks, like “clinerds” and therefore the “S3kr1t” with the Wi-Fi password confined in quotation marks, like “EJUKH9”.

It will look like this:

    dhcp4: true
    optional: true
      "your wifi name":
      password: "your_wifi_password"

Save the file and insert the small sd card into your Raspberry Pi. throughout the primary boot, if your Raspberry Pi fails hook up with the Wi-Fi network, merely bring up your device.

Step 3: Use Ubuntu server on Raspberry Pi (if you have dedicated monitor, keyboard and mouse for Raspberry Pi)

If you have got got an extra set of mouse, keyboard and a monitor for the Raspberry Pi, you’ll use simply use it like allalternativelaptop (but while not GUI).

Simply insert the smallsd card to the Raspberry Pi, introduce the monitor, keyboard and mouse. currentlyactivate your Raspberry Pi. it’ll gift TTY login screen (black terminal screen) and ask for username and password.

Default username: ubuntu
Default password: ubuntu

When prompted, use “ubuntu” for the watchword. Right once a prospering login, Ubuntu canraise you to alter the default password.

Enjoy your Ubuntu Server!

Step 3: Connect remotely to your Raspberry Pi via SSH (if you don’t have monitor, keyboard and mouse for Raspberry Pi)

It is okay if you don’t have a frenzied monitor to be used with Raspberry Pi. whowants a monitor with a server once youwillsimply SSH into it and use it the method you want?

On Ubuntu and mac OS, an SSH consumeris sometimes already put into attach remotely to your Raspberry Pi, you would liketo get its ip address. Check the devices connected to your network and see that one is that the Raspberry Pi.

Since I don’t have access to a Windows machine, you’ll be able to access a comprehensive guide provided by Microsoft.

Open a terminal and run the subsequent command:

ssh ubuntu@raspberry_pi_ip_address

You will be asked to confirm the connection with the message:

Are you sure you want to continue connecting (yes/no/[fingerprint])?

Type “yes” and click the enter key.

When prompted, use “ubuntu” for the password as mentioned earlier. You’ll be asked to vary the password after all.

Once done, you may be automatically logged out and you’ve got to reconnect, using your new password.

Your Ubuntu server is up and running on a Raspberry Pi!

Wrapping Up

Installing Ubuntu Server on a Raspberry Pi is a simplemethod and it comes pre-configured at an excellent degree that the utilization a pleasing expertise.

I have to mention that among all the operative systems that i attempted on my Raspberry Pi, Ubuntu Server was the simples to put ini’m not exaggerating. Check my guide putting in Arch UNIX on Raspberry Pi for reference.

I hope this guide helped you in putting in Ubuntu server on your Raspberry Pi still. If you’ve got queries or suggestions, please let Maine apprehend within the comment section

One comment

Leave a Reply