Oracle Linux 7 Minimal Server installieren

In this tutorial, we show you how to install the latest version of Oracle Linux 7 on a dedicated hardware server or on a private virtual machine by using the DVD ISO image or a bootable Oracle Linux USB. Oracle Linux is a free and stable open source Linux distribution developed by Oracle and compiled mostly from Red Hat Enterprise Linux source code.

The latest version of Oracle Linux includes many bug fixes, new packages, and improved system stability and performance. Some of the most notable changes in this new release are: Kernel support with Red Hat Compatible Kernel (RHCK), optimized Unbreakable Enterprise Kernel for Oracle Linux (UEK) with support for Oracle Database, signed certificate from Oracle to support UEFI Secure Boot, server-side support for SSH1 protocol from SSH server has been deprecated, all cryptographic protocols and algorithms considered insecure have been deprecated, yum package manager with payload_gpgcheck support, NBDE support for encrypted disk volumes, extended support for the Btrfs file system.

The installation procedure covers only the basic process of installing Oracle Linux 7 on a UEFI-based machine. However, the same installation process can be successfully applied on older BIOS motherboards or on UEFI systems with Legacy Mode or CSM (Compatibility Support Module) enabled.

PREREQUISITES

  • The latest Oracle Linux Server ISO image for the x86_64bit architecture from the following download mirrors https://community.oracle.com/docs/DOC-917963. You may also need to log in to the Oracle Software Delivery Cloud to obtain the download links.
  • A direct or proxy Internet connection to the machine where the installation is taking place to activate the RHEL system and then download and upgrade the system.

Preliminary Requirements

After downloading the Oracle Linux 7.4 DVD ISO image from the Oracle Mirrors download link, burn the bootable image to a DVD using DVD burning software or create a bootable USB drive with the Oracle Linux 7.4 image. The bootable USB drive must be created on Windows using the Rufus utility to be fully compatible with UEFI-based motherboards. On Linux, you can use the dd command line software to transfer the image to a USB drive. If you don’t have a UEFI motherboard, you can use any other program to create a bootable Oracle Linux 7.4 USB stick. Some of the most popular programs for creating bootable USB sticks can be found at https://www.pendrivelinux.com/.

Another important aspect to keep in mind to properly install Oracle Linux 7 on physical computers with UEFI-based motherboards is to open your motherboard’s UEFI settings (by pressing a special key, e.g. F1, F2, F11, F12, Del, Esc) and disable the QuickBoot/FastBoot and Secure Boot options, even though the Oracle Linux boot loader is digitally signed for UEFI. The BIOS/EFI keys you need to press during hardware initialization or when powering on the computer to access BIOS/UEFI settings depend heavily on the motherboard manufacturer’s specifications and should be included in the motherboard’s manual. Another important aspect to consider is changing the boot order of the computer and instructing the BIOS/EFI to use the correct drive for booting (DVD drive or USB). On some machines, the boot order or boot drive can be changed or selected by pressing a special button when turning on the hardware.

Installing Oracle Linux 7.4 Server

After you have made the above settings for your computer’s UEFI/BIOS motherboard, place the Oracle Linux 7.4 DVD ISO image or bootable USB stick into the appropriate drive on the motherboard and reboot or power on the computer. Press the appropriate boot key on the keyboard and instruct the BIOS or UEFI software to boot the computer from the appropriate DVD or USB drive. The bootable ISO image of Oracle Linux 7.4 should load and the first installation image will appear on your screen. From this menu, select Install Oracle Linux 7.4 and press Enter to start the installation process, as shown in the image below.

After a few seconds, the Oracle Linux graphical installer will load into your computer’s memory and show you the “Welcome to Oracle Linux 7.4” screen. Select the appropriate language for the installation process of your system and press the Next button.

On the next screen you will see the “Installation Overview” menu. First select the Date and Time menu to open this menu. Use the map to select your geographical location. Under the map you also have the option to configure the date and time settings. When the time is set correctly, click the Done button at the top left to complete this step and return to the initial menu, as you can see on the pictures below.

In the next step, click the Keyboard menu and set up the keyboard layout for your system. To add another keyboard layout, click the + button and select the appropriate keyboard. When you have completed this step, click Done to return to the main menu.

Next, select the Language Support menu and set the language support for your system. You can select and install multiple languages at once. When you have finished this step, click Done to return to the main menu.

Next, go to the Installation Source menu and select Automatically detected installation media as the default. You also have other advanced options to install from other network locations such as HTTP, HTTPS, FTP or NFS servers. You should also enable the options for additional repositories. When you are done, click Done to return to the main menu.

In the next step, go to the Software Selection menu. There you will find a list of some predefined base environments for your system. You can choose to install a graphical desktop environment such as Gnome, KDE Plasma, or Creative Workstation, or you can install a custom server installation such as a web server, compute node, virtualization host, infrastructure server, graphical user interface server, or file and print server.

The most suitable environment for a server is the Minimal installation option, as it is the most flexible and requires only a small amount of disk space. Select the Minimal Installation base environment, choose Compatibility Libraries Add-ons from the left pane and click the Done button to complete this setting and return to the main menu.

Next, click the System Security Policy menu and select a security profile from the list. It’s safe to choose the default security profile. Click the Select Profile button and toggle the Apply Security Policy button to ON. When you are done, click the Done button to return to the main screen.

Next, click the Installation Target menu to open the Storage Partition settings. In the device selection select the hard disk of the local computer. Then, in the Other Storage Options menu, check the Auto-configure partitioning option.

This option will automatically partition the computer’s hard disk with the correct /(root), /home and swap partitions. When you’re done, click the Done button to enable disk partitioning and return to the main menu.

Next, select the KDUMP menu and disable the KDUMP kernel crash mechanism to free up system memory. Click the Done button to apply these settings and return to the main menu.

Next, select the Network & Hostname menu and configure your computer’s FQDN hostname. Click the Apply button to set up the computer name. Also enable the network service for your Ethernet interface by changing the Ethernet button from OFF to ON. You can also manually configure the network interface at this step by clicking the Configure button. When you are done, click the Done button to return to the main installation menu.

Before you start the installation, you should double-check all the configurations of the installer. When you are done, click the Start Installation button to start the RHEL 7 installation.

After the installer has started, the user account configuration screen will be displayed. Click the ROOT PASSWORD menu on the configuration screen and set up a secure password for the root account. When you’re done, click the Done button to return to the User Settings screen.

Next, click the User Creation menu and add a new system account and a secure password for that account. Check Make this user an administrator and A password is required for this account to grant this user root privileges and manually enter the password every time you log in to the system. When you are done setting up the admin user, click the Done button to return to the initial menu and wait for the installation process to complete.

After a few minutes, depending on the resources of your system, the installation program reports that Red Hat Enterprise Linux has been successfully installed on your machine. To use the system, simply remove the installation media and restart the computer.

After the reboot, log in to the Oracle Linux 7.4 terminal using the credentials you provided when you installed the system and upgrade the system by entering the following command with root privileges.

sudo yum update

That’s it! You have successfully installed the latest version of Oracle Linux 7 on your machine.