2 Installing Oracle Linux Manually

This chapter describes how to perform a basic Oracle Linux installation by using a CD, DVD, or a USB drive.

Starting the Installation

To install Oracle Linux, you need to boot the system from a boot image. You might need to configure the host system's BIOS or hypervisor settings to use the boot device that you have chosen. When the system locates the boot image file, the boot menu appears, as shown in Figure 2-1.

Figure 2-1 Boot Menu


The image shows the Oracle Linux 7 boot menu, with options for installing Oracle Linux and troubleshooting.

The boot menu contains the following options:

Install Oracle Linux 7

Uses the graphical installation program to install Oracle Linux, provided that the system has sufficient memory and the video card is supported. Otherwise, the text-based installation option is selected, see Text-Based Installations.

Test this media & install Oracle Linux 7

Tests the installation media and then uses the graphical installation program to install Oracle Linux, provided that the system has sufficient memory and the video card is supported. Otherwise, text-based installation is selected.

This is the default option.

Troubleshooting

Provides access to a separate menu which contains options for resolving issues with installing or booting an Oracle Linux 7 system, see Troubleshooting Menu Options.

Use the up and down arrow keys to navigate the boot menu. To install Oracle Linux 7, select one of the options to install Oracle Linux and press Enter. The Welcome to Oracle Linux 7 screen is displayed. Figure 2-2 shows the options on this screen.

Figure 2-2 Welcome to Oracle Linux 7


The image shows the options on Welcome Screen with a list of languages on the left and a list of locales on the right. Below the list of languages is a search box for searching for a language.

In the left-hand box, use the mouse to select the language to use for the installation, or type the name of the language in the search box. In the right-hand box, select a locale. The language you select becomes the default language for the system. If you need to, you can change the default language after you have installed the software.

Click Continue, the Installation Summary screen is displayed. Figure 2-3 shows the options on this screen.

Figure 2-3 Installation Summary


The image shows the options on the Installation Summary screen. The screen is arranged as a menu, with a list of options with large icons and text. The menu is divided into three areas: a Localization area at the top with options for Date & Time, Keyboard and Language Support; a Software area in the middle with options for Installation Source and Software Selection; and a System area at the bottom with options for Installation destination, Kdump, and Network & Hostname.

The Installation Summary screen presents an overview of the options selected for the installation and a menu for configuring those options. As a minimum, you must visit the options that are marked with a warning icon. If you want to connect the system to a network, you should also visit the Network Configuration option and ensure that network connections are enabled. You can change the installation configuration options as much as you like, the installation does not begin until you click Begin Installation. As you visit the configuration options, pay attention to any warning messages displayed at the bottom of the screen.

Setting the System Time and Supporting Other Languages

This section describes how to use the options in the Localization section of the Installation Summary screen.

Setting the System Time

To set the correct time for the system, click the Date & Time option on the Installation Summary screen to display the Date & Time screen. Figure 2-4 shows the options on this screen.

Figure 2-4 Date & Time


The image shows the options on the Date & Time screen. There is a menu bar with two drop-down lists on the left for selecting a region and city, and on the right an On/Off switch for enabling NTP and a Settings button. Below the menu bar is a map of the world divided into timezones, with the currently selected timezone highlighted. Below the map is another menu bar with are Up/Down buttons on the left for adjusting the time and options for selecting the time display format, and on the right there are three drop-down lists for selecting the month, day, and year.

Pick a time zone by selecting a region and city from the drop-down lists, or by clicking a location on the map. Choose a country and city that are in the same time zone as your system. You need to specify a time zone even if you intend to use the Network Time Protocol (NTP) to set the time on the system.

Before you can enable NTP, ensure that the system is connected to a network by selecting the Network & Hostname option on the Installation Summary screen (see Configuring the Host Name and Connecting to a Network). To enable NTP, move the Network Time switch to the ON position and click the Settings button to display a dialog where you can configure the NTP servers that the system should use.

To set the date and time manually, ensure the Network Time switch is in the OFF position, and then adjust the date and time at the bottom of the screen if needed.

Click Done to save your configuration and return to the Installation Summary screen.

Adding Keyboard Layouts

To add support for any additional keyboards that will be used with the system, click the Keyboard option on the Installation Summary screen to display the Keyboard Layout screen. Figure 2-5 shows the options on this screen.

Figure 2-5 Keyboard Layout


The image shows the options on the Keyboard Layout screen. There is a list box on the left and text box on the right. The list box displays a list of the keyboard layouts that have been added. Below this box is a button bar with buttons for adding and removing keyboard layouts, for changing the order of the layouts in the list, and for displaying a picture of the layout that is currently selected in the list. The text box on the right is an area for testing keyboard layouts. Below this is an Options button.

Click the + button to display a dialog where you can select the additional keyboard layouts you want to install on the system. To check a keyboard layout:

  • Select the keyboard in the list and click the Keyboard button at the bottom of the screen to display a picture of the layout.

  • Click the keyboard icon at the top of the screen to change the current keyboard, then click in the box on the right, and type some text.

If you add multiple keyboard layouts, the first keyboard shown in the list of keyboards is the default keyboard. Use the arrow buttons to change the order of the list. You should also click Options and configure the keyboard shortcut for switching between layouts.

Click Done to save your configuration and return to the Installation Summary screen.

Adding Language Support

To add support for any additional locales that will be used with the system, click the Language Support option on the Installation Summary screen to display the Language Support screen. Figure 2-6 shows the options on this screen.

Figure 2-6 Language Support


The image shows the options on the Language Support screen. There are two list boxes. The box on the left contains a list of languages. Below this is a search box. The box on the right contains a list of locales for the language that is currently selected on the left.

Select a language in the left-hand box, or type in the search box, and then select one or more locales in the right-hand box.

Click Done to save your configuration and return to the Installation Summary screen.

Selecting the Software to Install

This section describes how to use the options in the Software section of the Installation Summary screen.

Selecting the Full Installation Image

When you install Oracle Linux, you need to specify a location that contains the full installation image. To specify a location, click the Installation Source option on the Installation Summary screen to display the Installation Source screen. Figure 2-7 shows the options on this screen.

Figure 2-7 Installation Source


The image shows the options on the Installation Source screen. There are three options for selecting the installation source: Auto-detected Installation Media, ISO file, and On the Network. The auto-detected installation media option contains a Verify button. The ISO file option contains a drop-down list for selecting a disk, a Choose an ISO button and a Verify button. The On the Network option contains a drop-down list for selecting the network protocol, a text box for the network location, a Proxy Setup button, and a This URL Refers To A Mirror List check box. Below the options for selecting the installation source, is an area for adding repositories. There is a box on the left which lists the repositories. Below this there is a button bar with buttons for adding, removing and reloading repositories. On the right are text boxes for configuring the name, location, and proxy details of the repository that is currently selected on the left.

Select the location of the full installation image, as follows:

Auto-detected installation media

This option is only available if the installation program detected a local device that contains the full installation image. If you did not check the installation media when you started the installation, click Verify to check the media.

ISO file

This option is only available if the installation program detected a local hard drive that can be mounted. Select the device in the Drive list, and then click Choose an ISO to select an ISO image. Click Verify to check the media.

On the network

Select the network protocol required to access a network installation server from the list and then enter either :

  • For HTTP or HTTPS, the URL of the installation image.

    If needed, click Proxy setup and configure the details for your organization's proxy server that acts as an intermediary for Internet access.

  • For NFS and FTP, the domain name or IP address of the server and the path to the directory that contains the installation image.

    For NFS, the path can be the path to an ISO image. Enter any NFS mount options that are required.

To use a network location, ensure that the system is connected to a network (see Configuring the Host Name and Connecting to a Network) otherwise the installation program reports an error.

You can also use the + button to specify additional repositories containing software you want to install. The Server-HighAvailability and Server-Resilient Storage repositories listed contains upstream high availability packages and are not supported in Oracle Linux 7.

Click Done to save your configuration and return to the Installation Summary screen.

Selecting the Software to Install

To select the software you want to install on the system, click the Software Selection option on the Installation Summary screen to display the Software Selection screen. Figure 2-8 shows the options on this screen.

Figure 2-8 Software Selection


The image shows the options on the Software Selection screen. There are two boxes, the one on the left contains a list of base environments, and the one on the right contains a list of add-ons for the selected base environment. There are check boxes next to each base environment and add-on.

The screen is in two parts, the Base Environment on the left and the Add-Ons for Selected Environment on the right. In the Base Environment part, you select an environment that best matches what the system will be used for. In the Add-Ons part, you select the software you want to add to the selected Base Environment.

The Minimal Install base environment is the default environment. It contains only the minimum set of packages required to run Oracle Linux and does not include many administration tools that you might normally use, such as wget or unzip. This environment is the most secure environment to install and requires the least system resources to run. After the software is installed, you can install any other packages that you require.

The Server with GUI base environment is the only environment that displays a graphical desktop when the system boots. All other base environments boot into a command-line environment.

By default, the Server with GUI base environment installs the Gnome 3 desktop. If you want an alternative desktop, select KDE as an add-on.

There is no base environment or add-on for installing the Oracle Database (RDBMS). After you install Oracle Linux 7, you can use the Oracle RDBMS Server Pre-Install RPM to perform preinstallation configuration tasks for Oracle Database. For more information, go to https://docs.oracle.com/en/database/oracle/oracle-database/18/ladbi/automatically-configuring-oracle-linux-with-oracle-preinstallation-rpm.html#GUID-22846194-58EF-4552-AAC3-6F6D0A1DF794.

Click Done to save your configuration and return to the Installation Summary screen.

Configuring System Storage and Networking

This section describes how to use the options in the System section of the Installation Summary screen.

Choosing Where to Install the Software and Configuring Storage

To choose where to install the software and to configure the storage, click the Installation Destination option on the Installation Summary screen to display the Installation Destination screen. Figure 2-9 shows the options on this screen.

Figure 2-9 Installation Destination


The image shows the options on the Installation Destination screen. There is a box that lists all the local hard disks. Below the list of hard disks is the Add a disk button for adding specialist storage devices. Beneath this are the options for partitioning the disks and encrypting them.

On this screen, you select the local disks and other storage you want to use for the installation, and configure the partitioning and file system types you want to use. The installation program does not make any changes to any of the disks and storage until you click Begin Installation on the Installation Summary screen.

First, choose the devices on which you want to install Oracle Linux:

  • In the Local Standard Disks section, select the local disks you want to use for the installation by clicking on them. A Tick icon is displayed next to the disks you have selected.

  • In the Specialist & Network Disks section, you can select hardware RAID, iSCSI or Fibre Channel over Ethernet (FCoE) storage devices. Click Add Disk to display the options for adding and configuring these device types.

Next, select how you want to partition the selected disks automatically or manually. By default, the Automatically configure partitioning option is selected. Automatic disk partitioning creates the following layout on the selected disks:

  • A standard partition for an XFS file system mounted at /boot. This partition is sized to 500 MiB by default, or 1 GiB on systems running Oracle Linux 7.3 or later.

  • A 200 MiB EFI system partition mounted at /boot/efi (UEFI-based systems only).

  • A partition in the remaining disk space configured as a Logical Volume Manager (LVM) physical volume for an LVM volume group that contains:

    • A logical volume for an XFS file system for the root file system (/).

    • A logical volume for an XFS file system for the /home file system (if the selected disks are larger than 50 GiB in total).

    • A logical volume for a swap partition.

With automatic partitioning, you might not have sufficient space to install the software if the disk is already partitioned. The information at the bottom of the screen tells you how much disk space is needed for the software you have selected. To free some disk space, select I would like to make additional space available and click Done. The Reclaim Disk Space window is displayed, as shown in Figure 2-10. You are also prompted to free disk space if you click Done and there is insufficient space.

Figure 2-10 Reclaim Disk Space


The image shows the Reclaim Disk Space window. The windows shows a list of disks and the partitions on the disks. Beneath the list there is a button bar with buttons for preserving, deleting and shrinking partitions. At the bottom of the window there are Cancel and Reclaim Space buttons.

Select the partitions you want to use, then click Delete, Shrink, or Delete all to free disk space, and then click Reclaim Space.

If you want full control over how the disks are partitioned or the file system types used, you must partition the disks manually by selecting I will configure partitioning. The options for partitioning are displayed when you click Done. You can partition disks using standard partitions, btrfs, LVM logical volumes, or LVM thin provisioning. For an example of how to partition disks manually, see Installing a System With a Btrfs root File System

If you select Encrypt my data on the Installation Destination screen, you are prompted to enter a passphrase for the encryption when you click Done. This option encrypts all the disk partitions, except the partition that contains /boot, using Linux Unified Key Setup (LUKS). If a partition is encrypted, you cannot access data on the partition without entering the passphrase. If you lose this passphrase, you cannot recover the data on the disk. If you only want to encrypt particular partitions, you must partition the disks manually. There are some important issues when encrypting data:

  • For LVM, selecting Encrypt my data encrypts the LVM physical volume and all the logical volumes that it contains. If you do not select Encrypt my data, you can encrypt the logical volume by selecting the Encrypt check box on the Manual Partitioning screen or encrypt the physical volume by selecting the Encrypt check box on the Configure Volume screen.

  • For btrfs, encryption can only be applied to the block device that contains the file system, including its subvolumes. For example, enabling encryption for the /home subvolume of a btrfs root file system implicitly enables encryption for the root file system itself. You can only select the Encrypt check box on the Configure Volume screen. Because btrfs does not support encryption at the file-system level, you cannot select the Encrypt check box on the Manual Partitioning screen for a btrfs file system.

  • Do not select the Encrypt check box or a BTRFS, LVM, or LVM Thin Provisioning device type for the /boot file system. The /boot file system must be configured on a standard partition and should be of the type, ext4 or XFS.

Oracle Linux uses the Grand Unified Bootloader version 2 (GRUB 2) boot loader as the default boot loader. The boot loader runs when the system starts and loads the kernel, without the need for boot media. By default, GRUB 2 is installed in either the master boot record (MBR) or the GUID partition table of the device that contains the root (/) file system. Click Full disk summary and bootloader to change the location of GRUB 2 or to prevent its installation. For UEFI-based systems, the GPT is always used. For BIOS-based systems (including UEFI-based systems in legacy BIOS mode), by default the MBR is used if the disk size is less than 2 TiB, otherwise the GPT is used.

Click Done to save your configuration and return to the Installation Summary screen.

Configuring Kdump

To configure Kdump, click the Kdump option on the Installation Summary screen, the Kdump window is displayed. Figure 2-11 shows the options on this screen.

Figure 2-11 Kdump


The image shows the options on the Kdump screen. At the top is a check box to enable Kdump, followed by options to configure the amount of memory to reserve for Kdump.

In the event of a system crash, Kdump captures information that assists in determining the cause. By default, Kdump is enabled and the amount of memory reserved for Kdump is calculated automatically. Select Manual if you want to set the amount of reserved memory yourself.

Click Done to save your configuration and return to the Installation Summary screen.

Configuring the Host Name and Connecting to a Network

The installation program does not force you to configure the system's network interfaces and, for some types of installation, network connections are disabled by default. To connect the system to a network either during installation or when the system boots, click Network & Hostname option on the Installation Summary screen to display the Network & Hostname screen. Figure 2-12 shows the options on this screen.

Figure 2-12 Network


The image shows the options on the Network & Hostname screen. There is box on the left that contains a list of network devices. Below this box is a button bar with buttons for adding and removing devices, and a text box for configuring the host name. The area on the right shows the current configuration of the selected network devices and contains an On/OFF switch to enable the device and a Configure button.

To enable a network interface, select the interface in the list of interfaces and then move the switch to the ON position. By default, the IP settings for a network interface are configured automatically using DHCP for IPv4, and the Automatic method for IPv6. To edit the connection, click Configure to display the connection settings window as shown in Figure 2-13.

Figure 2-13 Network Connection Settings


The image shows the Network & Hostname screen with the connection settings window. There is text box at the top for specifying a name for the connection. Below this are a series of tabs containing the general, ethernet, 802.1x, data center bridging, IPv4, and IPv6 settings for the device.

To enable the connection whenever the network is available, select Automatically connect to this network when it is available on the General tab. Use the settings on the other tabs to configure the connection. For example to set a static IPv4 address, click IPv4 Settings and select Manual for the Method, and then enter values for the IP address, network mask, gateway, and DNS parameters. When you have finished configuring the connection, click Save.

On the Network & Hostname screen, enter the host name of the system as either as a single name or as a fully-qualified domain name (FQDN), for example, host01.example.com. If you use the Dynamic Host Configuration Protocol (DHCP) to provide network settings, enter a single name and allow DHCP to assign the domain name.

You can also add special network devices such as an interface bond or team, or a VLAN (virtual local area network) device. Click the + button to access the settings for configuring these devices.

Click Done to save your configuration and return to the Installation Summary screen.

Setting the Security Policy

You can optionally set security policy at installation time by configuring settings in the Security Policy screen.

Note:

Because security policy is not required on all systems, only use the Security Policy screen if you need to enforce a specific security policy, per what is mandated by your organization or government regulations.

By default, no security policies are enforced and no checks are performed during or after an installation, unless you specifically configure settings in this screen at installation time.

As shown in Figure 2-14, there are several pre-defined policies (profiles) that are available in the Security Policy screen. These security policies follow the recommendations and guidelines that are defined by the Security Content Automation Protocol (SCAP) standard. See Oracle® Linux 7: Security Guide for more details about SCAP.

You can also add custom security policies that you download from an HTTP, HTTPS, or FTP server. You use the Change content option in the Security Policy screen to configure custom policies.

Figure 2-14 Security Policy


An image of the Security Policy screen, which lists the pre-defined security policies, or profiles, that are available, as well as the various settings and options that you can configure in this screen.

To set security policy in the Security Policy screen, begin by toggling the Apply security policy switch to On. This switch is located at the top of the screen.

Note:

If the Apply security policy switch is set to Off, you cannot configure any of the settings in this screen. The switch can be set to Off if you are not setting security policy during the installation.

Select a profile from the list of profiles that is displayed in the top window of the screen. Click the Select profile button. A message confirming the selection is displayed in the Changes that were done or need to be done: field that is located in the bottom window of the screen. A checkmark is displayed next to the selected profile on the right of the window.

Click Done to save the changes and return to the Installation Summary screen.

You use the same screen to configure custom security settings. You can download the custom profile from an HTTP, HTTPS, or FTP server. Note that you must have an active network connection so that you can download the custom profile prior to using this option. You also might need to perform certain pre-installation tasks.

To use a custom profile, click the Change content button that is located in the top left corner of the screen. Clicking this button opens another window, where you type the URL to the download location of the custom profile.

Note:

You must use the complete address, including the protocol, for the location of the custom profile, for example, http://.

Click Fetch to download the custom security profile. Alternately, click Use SCAP Security Guide to return to the default policy selection window.

Check that the Changes that were done or need to be done: field shows the changes to be made. Then, click Done to save the changes.

During the installation, the security policy that you applied is installed according to the restrictions and recommendations that are defined in the specified profile. In addition, the openscap-scanner package is added to the packages that are installed. This package provides a tool for compliance and vulnerability scanning.

When the installation has completed, the system is automatically scanned to verify compliance, and the results are saved to the /root/openscap_data directory on the system.

Completing the Installation

Once you have selected all your installation configuration options, click Begin Installation on the Installation Summary screen to start the installation. The Configuration screen is displayed. Figure 2-15 shows the options on this screen.

Figure 2-15 User Settings


The image shows the options on the Configuration screen. The screen is arranged as a menu with large icons, with a Root Password option and a User Creation option.

The screen contains a menu with two options for configuring users and a status bar that shows the progress of the installation. You can use the menu options while the installation is in progress. You must set the root password to finish the installation. Creating a user is optional, you can do it now or when the installation is complete. It is best to create a user, as you should not log in to the system as the root user.

If you want users to authenticate using a mechanism such as LDAP or Kerberos, you need to configure this when the installation is complete.

Setting the Root Password

Click Root Password to display the Root Password screen. Figure 2-16 shows the options on this screen.

Figure 2-16 Root Password


The image shows the options on the Root Password screen. There are two text boxes for entering and confirming the root password. Between the two text boxes is an indicator bar which shows the strength of the password.

Enter the root password in the Root Password and Confirm fields. The screen provides a visual indication about the strength of the password. Click Done to return to the Configuration screen. If you set a weak password, you have to click Done twice.

Creating a User

Click User Creation to display the Create User screen. Figure 2-17 shows the options on this screen.

Figure 2-17 Create User


The image shows the options on the Create User screen. There are text boxes for entering the User's full name and user name. Below these are options to make the user an administrator and to require the user to have a password. Then there are two text boxes for entering and confirming the user's password. Between the two text boxes is an indicator bar which shows the strength of the password. At the bottom is the Advanced button.

Enter the details of the local user account you want to create. Again there is a visual indication about the strength of the password.

Select Make this user administrator if you want the user to be able to administer the system. Selecting this option adds the user to the wheel user group, which enables them to run administrative tools using the sudo command.

If you want more control over how the user is configured, for example to specify the user's home directory or user ID, click Advanced.

Once you have configured the user, click Done to return to the Configuration screen. If you set a weak password, you have to click Done twice.

Rebooting and Initial Setup

Once you have completed the user configuration, click Finish Configuration. When the packages are installed, click Reboot.

If you installed a base environment other than the Server with GUI environment, the system reboots as a non-graphical system and displays a login prompt. Once you log in, you can review the license agreement at /usr/share/oraclelinux-release/EULA.

If you installed the Server with GUI environment, the system reboots and the Initial Setup screen is displayed. Figure 2-18 shows the options on this screen.

Figure 2-18 Initial Setup


The image shows the options on the Initial Setup screen. The options are arranged as a menu with large icons, with a License Information option and a User Creation option.

You must select the License Information option and accept the license agreement. The User Creation option is only displayed if you did not create a user during installation. If you create a user here, the options for creating a user are the same as during the installation.

Click Finish Configuration, the Set Up Software Updates window is displayed, as shown in Figure 2-19.

Figure 2-19 ULN Registration


The image shows the Set Up Software Updates screen. At the top is a Why Should I Connect to ULN button. Beneath that there are options to register or not register the system with ULN. Underneath there is a Back and a Forward button.

If the system has an active network connection, you use the following screens to register your system with the Unbreakable Linux Network (ULN), and to subscribe the system to software and Ksplice updates. Click Finish. The graphical login screen is displayed.