Ubuntu Server 22.04 LTS is the latest Ubuntu series released on April 21, 2022 that has long term support till 2032. It includes cloud images for Amazon Web services, Google Cloud and Microsoft Azure. All these services are incorporated with the advanced security updates. The latest series further includes the OpenSSL 3.0 that makes the cryptography more purposeful and secure. Having the advantage of running the Ubuntu server on all platforms, it would be fair enough to say that this operating system will be an ideal fit for your Raspberry Pi device.

This tutorial will provide you with the quick approach to install Ubuntu Server 22.04 LTS on Raspberry Pi 4.

How to Install Ubuntu Server 22.04 LTS on Raspberry Pi 4

To install Ubuntu Server on Raspberry Pi follow the below mentioned steps:

Step 1: Download Raspberry Pi Imager from the website.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-1.png" data-lazy- height="615" src="data:image/svg xml,” width=”1292″>

Step 2: Install the Imager on your system desktop.

Step 3: Insert USB or SD card Storage into the system.

Step 4: Open the Imager and pick the “CHOOSE OS” option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-2.png" data-lazy- height="406" src="data:image/svg xml,” width=”664″>

Step 5: Go to the “Other general-purpose OS” option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-3.png" data-lazy- height="411" src="data:image/svg xml,” width=”661″>

Step 6: Select the “Ubuntu” option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-4.png" data-lazy- height="407" src="data:image/svg xml,” width=”659″>

Step 7: Select any Ubuntu 22.04 Server from the below options. In our case, we select the 64-Bit version.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-5.png" data-lazy- height="411" src="data:image/svg xml,” width=”668″>

Step 8: Next, pick the “CHOOSE STORAGE” option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-6.png" data-lazy- height="413" src="data:image/svg xml,” width=”664″>

Pick USB or SD card storage. Here, we are using USB storage.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-7.png" data-lazy- height="405" src="data:image/svg xml,” width=”664″>

Step 9: Click on the “WRITE” option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-8.png" data-lazy- height="410" src="data:image/svg xml,” width=”674″>

Step 10: Select “YES” option to format the USB or SD card storage.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-9.png" data-lazy- height="409" src="data:image/svg xml,” width=”666″>

This begins the writing process.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-10.png" data-lazy- height="414" src="data:image/svg xml,” width=”668″>

Wait for a while till you see an onscreen window where you will be advised to remove the SD card from the card reader.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-11.png" data-lazy- height="407" src="data:image/svg xml,” width=”661″>

Step 11: Turn on the Raspberry Pi device and insert the SD card after 5 seconds.

Step 12: Wait till the black login screen appears where you will be asked to enter the ubuntu login details. Use login and password as “ubuntu”.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-12.png" data-lazy- height="22" src="data:image/svg xml,” width=”620″>

Setting Up WiFi on Ubuntu Server

This phase is crucial as it will allow you to access your Ubuntu server from another device. To setup WIFI on Ubuntu server, issue the following command to identify the name of network interfaces:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-13.png" data-lazy- height="48" src="data:image/svg xml,” width=”645″>

Then find the netplan configuration file run the below-mentioned command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-14.png" data-lazy- height="34" src="data:image/svg xml,” width=”642″>

The above file “50-cloud-initi.yaml” is the configuration file for setting up internet on Ubuntu server. To open the configuration file, issue the below-given command:

$ sudo nano /etc/netplan/50-cloud-init.yaml

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-15.png" data-lazy- height="388" src="data:image/svg xml,” width=”643″>

Now add the following script in the file right below the “version: 2” line.

wifis:


        wlan0:


            dhcp4: true


            optional: true


            access-points:


             “”:


               password:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-16.png" data-lazy- height="387" src="data:image/svg xml,” width=”644″>

Make sure to use the proper indentation same as the one shown above as improper indentation will cause an error to load the file. Save the file using “Ctrl X”, add “Y” and press Enter.

Next, use the following command to connect to the wireless interface.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-17.png" data-lazy- height="19" src="data:image/svg xml,” width=”641″>

Accessing the Ubuntu Server from Laptop or PC

After setting up the WIFI on the Ubuntu server, it’s now time to use the server from Laptop or PC. For this purpose, you will need PuTTY utility for accessing the Ubuntu terminal on Laptop or PC. You can download the application from the website and then use the following steps to access the Ubuntu server terminal.

Step 1: Open the application after successfully installing it on your desktop.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-18.png" data-lazy- height="438" src="data:image/svg xml,” width=”454″>

Step 2: Add the hostname of your Ubuntu server. To find the hostname,run the following command:

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-19.png" data-lazy- height="325" src="data:image/svg xml,” width=”647″>

The above highlighted IP is the host IP address of our Ubuntu server. We can now use this IP address in the hostname section of PuTTY and then click on the “Open” button.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-20.png" data-lazy- height="441" src="data:image/svg xml,” width=”449″>

Step 3: Choose the “Accept” option.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-21.png" data-lazy- height="419" src="data:image/svg xml,” width=”660″>

Use login as “ubuntu” and enter password as “ubuntu”.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-22.png" data-lazy- height="416" src="data:image/svg xml,” width=”658″>

This successfully connects you to the Ubuntu server‘s terminal and you can now be able to use the terminal right onto your desktop.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-23.png" data-lazy- height="417" src="data:image/svg xml,” width=”660″>

Adding a Desktop Environment

If you want to add a desktop environment for Ubuntu server, you can use the following command to install xubuntu desktop environment which is pretty lightweight as it uses the Xfce environment:

$ sudo apt install xubuntu-desktop

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-24.png" data-lazy- height="38" src="data:image/svg xml,” width=”646″>

You can also install other desktop environments as well using the link for guidance.

During the installation, you will also see an on-screen window for configuring the display manager .

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-25.png" data-lazy- height="387" src="data:image/svg xml,” width=”645″>

Press Enter to proceed. Then, choose the default display manager. Pick the one according to your choice.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-26.png" data-lazy- height="386" src="data:image/svg xml,” width=”642″>

This begins the installation again, waits till it completes and then reboot your Raspberry Pi to view the desktop environment.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-27.png" data-lazy- height="900" src="data:image/svg xml,” width=”1597″>

To find the applications, Go to the “Activities” option at the top left corner of the desktop.

<img alt="" data-lazy- data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/How-to-Install-Ubuntu-Server-22.04-28.png" data-lazy- height="900" src="data:image/svg xml,” width=”1597″>

Now, you can install several applications with ease because you have perfectly set up the Ubuntu desktop environment through the Ubuntu server. This completes the setup process of Ubuntu Server on Raspberry Pi.

Conclusion

Ubuntu Server 22.04 LTS is a lightweight and open-source platform which includes the latest security updates and long-term support. It is well suited for your Raspberry Pi device because of utilizing low memory resources. The above installation guide will assist you in installing Ubuntu Server on Raspberry Pi devices so that you can access the device terminal on Laptop or PC through PuTTY or can install a desktop environment to easily use the graphical interface of the operating system.

About the author

<img data-del="avatar" data-lazy-src="https://kirelos.com/wp-content/uploads/2022/05/echo/unnamesadadsasdd-150×150.jpg" height="112" src="data:image/svg xml,” width=”112″>

Awais Khan

I’m an Engineer and an academic researcher by profession. My interest for Raspberry Pi, embedded systems and blogging has brought me here to share my knowledge with others.