-->

Saturday, March 9, 2019

Raspberry Pi] 4. Installing Ubuntu Server 18.04 on Raspberry Pi 3 Model B+

Hello, guys. I will let you know how to install Ubuntu Server 18.04 on Raspberry Pi 3 Model B+ in this post. Like Raspbian, if you install Ubuntu Linux on Raspberry Pi, the root filesystem is automatically resized on boot. So you do not need to resize the root filesystem manually. Let's see how to install it.

First please, download the Ubuntu Server image file from the website below.

https://wiki.ubuntu.com/ARM/RaspberryPi

In my case, I downloaded the 'ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img.xz' file. If you download complete, please prepare the micro SD and SD reader. Then combine them and connect them to your computer.


If you use Windows operating system, extract the xz compress using 7-Zip and install it into the micro SD using a program such as Rufus. The use of the Rufus program is very simple. If you don't know how to use it, please refer to the post below.

https://sunguruitchannel01.blogspot.com/2019/02/useful-utilities-1-creating-bootable.html

If you are using Linux operating system, refer to the commands below to install:

[root@centos76 ~]# cd /mnt/hgfs/Raspberry/Ubuntu/
[root@centos76 Ubuntu]# ls
ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img.xz
[root@centos76 Ubuntu]# xz -d ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img.xz

[root@centos76 Ubuntu]# ls -l ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img
-rwxrwxrwx. 1 root root 2422361088 Mar  9 16:14 ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img

[root@centos76 Ubuntu]# lsblk /dev/sdb
NAME MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdb    8:16   1 29.8G  0 disk 

[root@centos76 Ubuntu]# dd if=ubuntu-18.04.2-preinstalled-server-arm64+raspi3.img of=/dev/sdb bs=1M
2310+1 records in
2310+1 records out
2422361088 bytes (2.4 GB) copied, 368.764 s, 6.6 MB/s

[root@centos76 Ubuntu]# lsblk /dev/sdb
NAME   MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sdb      8:16   1 29.8G  0 disk 
├─sdb1   8:17   1  256M  0 part 
└─sdb2   8:18   1    2G  0 part 

[root@centos76 Ubuntu]# parted /dev/sdb unit mb print free
Model: Mass Storage Device (scsi)
Disk /dev/sdb: 32011MB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags: 

Number  Start   End      Size     Type     File system  Flags
        0.02MB  1.05MB   1.03MB            Free Space
 1      1.05MB  269MB    268MB    primary  fat32        boot, lba
 2      269MB   2422MB   2153MB   primary  ext4
        2422MB  32011MB  29589MB           Free Space

[root@centos76 Ubuntu]# eject /dev/sdb

Once the installation is complete, detach the SD reader from your computer and connect the micro SD to the raspberry pi.


Now connect the keyboard, mouse, and monitor to the Raspberry Pi and power on it. You will then be able to see the following screen.


When the boot is complete, you will see the login screen. The ID is ubuntu and the password is ubuntu.


Congratulations. Now you can use Ubuntu Server 18.04 on Raspberry Pi. enjoy your Raspberry Pi. :D

See you next. Thank you.

No comments:

Post a Comment