Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

How to Install Oracle Linux on a Raspberry Pi — The Easy Way

DZone 's Guide to

How to Install Oracle Linux on a Raspberry Pi — The Easy Way

Learn how to install Oracle Linux on a Raspberry Pi.

· IoT Zone ·
Free Resource

In one of my past posts, I showed how one can install Oracle Linux on a Raspberry Pi from a Mac via the command line. Luckily, my colleague Philippe pointed out to me that things can be even much, much easier thanks to Etcher, an open-source tool to flash SD cards and USB drives. Etcher is available for Mac, Linux, and Windows, which should make the following steps generic.

tl;dr

  1. Download the latest Oracle Linux image for ARM
  2. Flash your SD card using Etcher
  3. Put the SD card into your Raspberry Pi and boot it up

Downloading the Image

Downloading the image is straight forward and remains the same, just get the latest image from the Oracle Linux for ARM Downloads page. Alternatively, you can also just download it via wget http://download.oracle.com/otn-pub/otn_software/linux/rpi3-ol7.6-image-20181116.img.xz:

$ wget http://download.oracle.com/otn-pub/otn_software/linux/rpi3-ol7.6-image-20181116.img.xz
--2019-08-05 11:18:33-- http://download.oracle.com/otn-pub/otn_software/linux/rpi3-ol7.6-image-20181116.img.xz
Resolving download.oracle.com... 184.26.156.34
Connecting to download.oracle.com|184.26.156.34|:80... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: https://edelivery.oracle.com/otn-pub/otn_software/linux/rpi3-ol7.6-image-20181116.img.xz [following]
--2019-08-05 11:18:33-- https://edelivery.oracle.com/otn-pub/otn_software/linux/rpi3-ol7.6-image-20181116.img.xz
Resolving edelivery.oracle.com... 23.56.112.136
Connecting to edelivery.oracle.com|23.56.112.136|:443... connected.
HTTP request sent, awaiting response... 302 Moved Temporarily
Location: http://download.oracle.com/otn-pub/otn_software/linux/rpi3-ol7.6-image-20181116.img.xz?AuthParam=1565029233_d74a7c35436dbdf9509feabc32fdc0bf [following]
--2019-08-05 11:18:33-- http://download.oracle.com/otn-pub/otn_software/linux/rpi3-ol7.6-image-20181116.img.xz?AuthParam=1565029233_d74a7c35436dbdf9509feabc32fdc0bf
Connecting to download.oracle.com|184.26.156.34|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://download.oracle.com/otn-pub/otn_software/linux/rpi3-ol7.6-image-20181116.img.xz?AuthParam=1565029233_d74a7c35436dbdf9509feabc32fdc0bf [following]
--2019-08-05 11:18:33-- https://download.oracle.com/otn-pub/otn_software/linux/rpi3-ol7.6-image-20181116.img.xz?AuthParam=1565029233_d74a7c35436dbdf9509feabc32fdc0bf
Connecting to download.oracle.com|184.26.156.34|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 279309592 (266M) [text/plain]
Saving to: 'rpi3-ol7.6-image-20181116.img.xz'

rpi3-ol7.6-image-20181116.img.xz 100%[=================================================================================>] 266.37M 16.2MB/s in 16s

2019-08-05 11:18:49 (17.0 MB/s) - 'rpi3-ol7.6-image-20181116.img.xz' saved [279309592/279309592]

$


Once you have downloaded the image, just plug in your SD card into the SD card reader and startup Etcher.

Next, choose the image you have just downloaded by clicking on Select image. You won't even need to uncompress the image or anything like that. Etcher is capable of reading the xz format.

Etcher automatically detects external disks such as your SD card and other USB devices. It does not show internal hard drives, preventing you from accidentally flashing your OS disk instead of the SD card, but you still have to be careful if you have other USB sticks or disks plugged in. If you don't, Etcher should have detected the SD card automatically; if not, click on Change and choose the SD card.

Once you have the image and the SD card selected, just hit Flash! and Etcher will do the rest for you. It will flash the SD card

Also, it will validate it for you immediately afterward.

This makes sure that the flashing operation was successful. Once done, you are good to go with plugging the SD card into your Raspberry Pi.

The rest is business as usual. Put the SD card into your Raspberry Pi and boot it up by plugging in the power. Then log into the Raspberry Pi as the root user with the password oracle. You will have to change the password immediately after you login.

login: root
root's password:
You are required to change your password immediately (root enforced)
Changing password for root.
(current) UNIX password:
New password:
Retype new password:
[root@rpi3 ~]# uname -a
Linux rpi3 4.14.35-1818.3.3.el7uek.aarch64 #2 SMP Mon Sep 24 15:15:19 PDT 2018 aarch64 aarch64 aarch64 GNU/Linux
[root@rpi3 ~]# cat /etc/oracle-release
Oracle Linux Server release 7.6


And voila, you are up and running with Oracle Linux on a Raspberry Pi.

Have fun! 

Topics:
linux ,oracle linux ,raspberry pi

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}