Red Hat Enterprise Linux

Subtitle
The world’s leading enterprise Linux platform

Hello World!

Build Something Today

Let's walk through everything you need to build your first application.

Red Hat Enterprise Linux

Thank you for downloading

Your download should start automatically. If you have any problems with the download, please use the direct link.

Hello World!

1. Download Red Hat Enterprise Linux (RHEL)

Body

In this step, you will download Red Hat Enterprise Linux Server. For the download, you will need to register with developers.redhat.com. After you register as a developer, you will be given a subscription for Red Hat Enterprise Linux Developer Suite. Red Hat Enterprise Linux Server and additional development tools are included in Red Hat Enterprise Linux Developer Suite.

Download the Red Hat Enterprise Linux Server DVD .iso file.

Note: Later in this guide, you will need the Red Hat username and password you create during registration for accessing Red Hat sites.

2. Install RHEL on Bare Metal

Body

This section provides an overview of the key steps for installing Red Hat Enterprise Linux so you can get started with software development. Note: This tutorial does not replace the Red Hat Enterprise Linux Installation Guide. Instead, this tutorial provides an overview of the key steps for software developers. For detailed instructions, see the respective manual.

A few things to keep in mind:

  1. The Red Hat Enterprise Linux Server .iso you downloaded in step 1 will be used to install a system with a full graphical desktop. You will select Server with a GUI under Software Selection during installation. By default, Red Hat Enterprise Linux Server will not install a graphical desktop.

  2. You will need to select an Installation destination, which is the disk or partition(s) where the software will be installed. The disk or partition(s) you select will be overwritten. Make sure you understand your selection before starting the installation to avoid accidental data loss.

  3. You should configure networking under Network and host name before starting the installation. You will need access to the Internet to complete registration and download additional software. The network can be configured after the system is installed. However, the steps are more straightforward during installation.

  4. Create your primary user account during installation: After the installation begins, you will be instructed to set a password for the root account and be given the opportunity to create a regular user account. You should create a user before the installation process completes. The regular user will be your primary login for development. The root account should only be used for system administration tasks. If you don’t create a user before the installation completes, you will need to reboot and then log in as root to create user accounts.

System Requirements

The requirements for your physical system are:

Instructions for making a bootable DVD or USB drive can be found in the Red Hat Enterprise Linux Installation Guide.

If you encounter difficulties at any point, see Troubleshooting and FAQ.

Installation instructions

  1. Start the system from the bootable disk and select Install Red Hat Enterprise Linux.

    Screenshot Boot Splash

    Note: you can skip the media checking step by hitting the Esc key.

  2. Select your preferred language and keyboard layout to use during installation.

  3. Under Localization review the settings and make any necessary changes for date and time, language, and keyboard layout. Note: The Done button to return to the Installation summary screen is located in the upper left corner of the screen.

    Screenshot Installation Options

  4. Perform the follow steps to make your software selection:

    1. Click Software selection.

    2. On the next screen, under Software selection, in the Base environment list on the left, select Server with GUI.

    3. In the list Add-ons for selected environment on the right, select Development tools.

    4. Click the Done button. Note: After returning to the Installation summary screen it will take several seconds to validate your choices.

      Screenshot Software Selection

  5. Click Installation destination to specify which disk or partition(s) to use for Red Hat Enterprise Linux. Note: It is important that you understand the choices that you are making in this section to avoid accidental data loss. It is strongly recommended that you read the Installation Destination section of the the Red Hat Enterprise Linux Installation Guide. The installation destination should be at least 20 GB or larger to accommodate the OS, graphical desktop, and development tools.

  6. Click Network & host name to configure the network. If the system has more than one network adapter, select it from the list on the left. Then click the On/Off button on the right to enable the network adapter.

    1. Click Configure to review and/or change the default settings for the network adapter. The default settings should be fine for most networks that use DHCP.

    2. Optionally, set a Host name for the system.

    3. Click Save to dismiss the network adapter configuration dialog.

    4. Before leaving the Network & Host name screen, make sure there is at least one network adapter enabled with the switch in the On position. A network connection will be required to register the system and download system updates.

    5. Click Done.

      Screenshot Network Configuration

  7. Click KDump to disable KDump and free up memory. Click the box next to Enable kdump so that it is no longer checked. Then click Done.

  8. Click the Begin installation button when you are ready to start the actual installation.

  9. On the next screen, while the installation is running, click User creation to create the user ID you will use to log in for normal work.

    Screenshot User Creation

  10. Click Root password to set the password for the root user. Note: If you choose a password that the system considers to be weak, you will need to click Done twice.

  11. After the installation process completes, click the Reboot button.

    Screenshot Installation Complete

If you need help, see Troubleshooting and FAQ.

3. Get ready for software development

Body

This section has a number of post-installation steps that complete the installation of Red Hat Enterprise Linux and prepare it for software development. The steps are:

  1. Accept the license agreements and register the system with the Red Hat Subscription Management.

  2. Install the latest software updates.

  3. Add additional software repositories containing development software.

Complete installation and register the system

After installation, during the first boot of the system, you will be asked to accept the license agreement and register the system with Red Hat Subscription Management. Completing these steps are required for your system to download software from Red Hat.

Screenshot Installation Complete

Note: In some cases, when booting the system for the first time, you may not see the graphical post-installation screen shown above. If you see a text-based license acceptance prompt follow the instructions in Complete installation and register the system (alternate) instead.

  1. Click License information to go the license acceptance screen.

    1. Click the check box to accept the license.

    2. Click Done in the upper left corner to return to the Initial Setup screen.

  2. If you didn’t configure a network during installation, click Network and host name to configure your network connection.

  3. In the next step you will register your system with Red Hat and attach it to your subscription. Note: For this step to succeed, you must have successfully configured your network connection.

    1. Click Subscription Manager

    2. Leave I will register with set to the default.

    3. if you need to configure an HTTP proxy server, click Configure Proxy

    4. Click Next to move the next screen.

      Screenshot Installation Complete

    5. Enter your Red Hat username and password. This is the login that you use for Red Hat sites such as the Red Hat Customer Portal, access.redhat.com.

    6. Optionally, enter a System Name that will be used to identify this system on the Red Hat Customer Portal.

    7. Click Register.

    8. On the next screen you will be shown the list of subscriptions that are available to your user ID. If you have more than one subscription available, select which subscription to attach this system to.

    9. Click Attach.

    10. Click Done.

  4. Finally, Click Finish configuration.

  5. Log in to the system with the username and password you created during installation.

    If you didn’t create a regular user, you will need to log in as root and create a user. See Troubleshooting and FAQ.

    If you get a text-based login screen instead of a graphical one, see Troubleshooting and FAQ.

  6. Select your preferred language for the GNOME desktop. Then click Next.

  7. Select your keyboard layout. Then click Next.

  8. Optionally follow the dialogs to connect your online accounts or click Skip.

  9. Click Start using Red Hat Enterprise Linux.

You are now logged into Red Hat Enterprise Linux. The Getting Started page of the GNOME Help viewer is opened automatically as a full screen application after your first login. You may minimize, resize, or exit out of that application by using the window controls on the upper right corner.

Screenshot Red Hat Enterprise desktop

Proceed to Install the latest updates

Complete installation and register the system (alternate)

In some cases, when booting the system for the first time, you may not see the graphical post-installation screen. If you see a text-based license acceptance prompt as shown below, follow these alternate instructions:

Screenshot alternate post-install license

  1. To accept the license agreement:

    1. Enter 1 and hit return to enter the License information section.

    2. Enter 2 and hit return to accept the license agreement.

    3. Enter c and hit return to leave the License information section.

    4. Enter c and hit return to complete the initial setup.

  2. Log in to the system with the username and password you created during installation at the graphical login screen. If you didn’t create a regular user, you will need to log in as root and create a user. See Troubleshooting and FAQ.

    1. Select your preferred language for the GNOME desktop. Then click Next.

    2. Select your keyboard layout. Then click Next.

    3. Optionally follow the dialogs to connect your online accounts or click Skip.

    4. Click Start using Red Hat Enterprise Linux.

    5. The Getting Started page of the GNOME Help viewer is opened automatically as a full screen application after your first login. You may minimize, resize, or exit out of that application by using the window controls on the upper right corner.

  3. Check that the network connection has been started:

    1. Run Settings from the System Tools group of the Applications menu.

    2. Click the Network icon under the Hardware group of All Settings.

      Screenshot alternate network

    3. Select the Wired network.

    4. Make sure the toggle switch in the upper right is switched on.

    5. Check that the settings for IP address, default route, and DNS are appropriate for your network. If you need to change them, Click the settings button in the lower right corner.

    6. When you are finished with network settings close the window by clicking the X in the upper right corner.

      Screenshot alternate network

  4. Now register the system:

    1. Start Red Hat Subscription Manager from the System tools group of the Applications menu.

    2. Click the Register button in the upper right corner of Subscription Manager.

      Screenshot alternate register

    3. Leave I will register with set to the default on the System Registration dialog.

    4. if you need to configure an HTTP proxy server, click Configure Proxy

    5. Click Next to move the next dialog.

      Screenshot alternate register 2

    6. Enter your Red Hat username and password. This is the login that you use for Red Hat sites such as the Red Hat Customer Portal, access.redhat.com.

    7. Optionally, enter a System Name that will be used to identify this system on the Red Hat Customer Portal.

    8. Click Register.

      Screenshot alternate register login

    9. On the next dialog, you will be shown the list of subscriptions that are available to for your Red Hat username. If you have more than one subscription available, select the subscription to attach this system to.

      Screenshot alternate register attach

    10. Click Attach.

    11. Click the X in the upper right hand corner to close Red Hat Subscription Manager.

      Screenshot alternate register attach

You are now ready to start using Red Hat Enterprise Linux. Next, install the latest updates.

Screenshot Red Hat Enterprise desktop

Install the latest updates

In this step, you will download and install the latest updates for your system from Red Hat. In the process, you will verify that your system has a current Red Hat subscription and is able to receive updates.

First, start a Terminal window from the Application menu. Then, after using su to change to the root user ID, use subscription-manager to verify that you have access to Red Hat software repositories.

$ su -
# subscription-manager repos --list-enabled

If you don’t see any enabled repositories, your system might not be registered with Red Hat or might not have a valid subscription. See Troubleshooting and FAQ for more information.

Now download and install any available updates by running yum update.

# yum -y update

If yum updates the kernel package or installs a large number of updates, you should reboot your system. You can do this from the VM’s desktop by clicking the down arrow icon in the upper right corner, then clicking the power icon. Alternatively you can reboot the system from the command line:

# reboot

Enable additional software repositories

In this step you will configure your system to obtain software from the Optional RPMs and RHSCL software repositories. The Optional RPMs repository includes a number of development packages. The RHSCL repository includes the both Red Software Collections as well as Red Hat Developer Toolset (DTS).

# subscription-manager repos --enable rhel-server-rhscl-7-rpms
# subscription-manager repos --enable rhel-7-server-optional-rpms

4. Build something today

Body

In this step you will select your programming language and then set up and run a simple application.

You can a install languages, frameworks, and middleware by simply using yum install. For container development, a number of the development technologies are available as container images that can be installed with docker pull.

Select your programming language:


Perl

Native

Using native Perl on RHEL 6 or RHEL 7

Using Perl 5.20 on RHEL 6 or RHEL 7 with Red Hat Software Collections

With containers

Basic container - docker pull rhscl/perl-520-rhel7

Additional Content

Need some help?

For more information, see:

You can also view the entire list of software collections including databases (MongoDB, PostgreSQL, etc), web servers (Apache httpd, Nginx, etc.), and more, in the Red Hat Software Collections Technology Brief on the Red Hat Customer Portal.

Build Something Today

Let's walk through everything you need to build your first application.

Download Get Started
×