Skip to content

Latest commit

 

History

History
234 lines (180 loc) · 15.6 KB

install-rhel7.adoc

File metadata and controls

234 lines (180 loc) · 15.6 KB

Path Intro section

Install Red Hat Enterprise Linux for Development

Prerequisites section

This tutorial provides an overview of the key steps for installing Red Hat Enterprise Linux Server for developers.

Step1 Duration

10-30 minutes

Step1 Title

Download Red Hat Enterprise Linux

Step2 Duration

30-60 minutes

Step2 Title

Install Red Hat Enterprise Linux

Step3 Duration

10 minutes

Step3 Title

Getting ready for software development

Step4 Title

Select a development technology

Step1 Content

In this step, you will register for a Red Hat Enterprise Linux Developer Suite Subscription and download Red Hat Enterprise Linux Server.

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.

Step2 Content

This section provides a brief overview of the steps for installing Red Hat Enterprise Linux. Detailed instructions can be found in the Red Hat Enterprise Linux Installation Guide.

There are a few key steps to remember during the installation process:

  1. 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.

  2. 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.

  3. Select Server with a GUI under Software Selection so the system will boot into the full graphical environment after installation. By default, Red Hat Enterprise Linux Server will not install a graphical desktop.

  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.

Installation instructions

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

    Screenshot Boot Splash
  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 install the software on. 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 16 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. Click Configure to review and/or change the default settings for the network adapter. Optionally, set a Host name for the system. Before leaving this 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.

    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.

Step3 Content

This section provides an overview of post-installation steps that prepare your system for software development. After the system reboots, you will be prompted to accept the license agreement and register the system.

Note: Before registration can proceed, you will be required to agree to the terms and conditions at www.redhat.com/wapps/ugc/ if you haven’t already done so. [FIXME hopefully this can be deleted.]

Screenshot Installation Complete

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

    1. Click the checkbox to accept the license.

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

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

  3. Click to On the Subscription Management Registration screen

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

    2. Click Next to move the next screen. Screenshot Installation Complete

  4. Register your system with Red Hat. Use the same username and password that you created for the Red Hat Customer Portal. Note: For this step to succeed, you must have configured your network connection.

    1. If you have more than one subscription available, select which subscription to attach this installation to

    2. Click Done.

  5. Click Finish configuration when you are done.

  6. 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.

  7. Select your preferred language.

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. If updates are available, yum will list them and ask if it is OK to proceed.

# yum update

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 the RHSCL software collections as well as DTS (the Red Hat Developer Toolset).

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

Step4 Content

First select a development technology, then set up your development environment and create a simple "Hello, World" application.

[FIXME - Where do the tabs come from?]

Faq section title

Troubleshooting and FAQ

Faq section

  1. My system is unable to download updates from Red Hat.

    Your system must be registered with Red Hat using subscription-manager register. You need to have a current Red Hat subscription.

  2. The RHSCL repository is not available or is not found on my system.

    The name of the repository depends on whether you have a server, workstation, or desktop version of Red Hat Enterprise Linux installed.

    Some Red Hat Enterprise Linux subscriptions do not include access to RHSCL. For developers, Red Hat Enterprise Linux Developer Suite includes both RHSCL and DTS.

  3. How do I get newer versions of languages like Perl, PHP, Python, and Ruby in Red Hat Enterprise Linux?

    How can I get Python 3 on Red Hat Enterprise Linux

    Red Hat Software Collections delivers the latest, stable versions of dynamic languages, open source databases, and web development tools that can be deployed alongside those included in Red Hat Enterprise Linux. Red Hat Software Collections is available with select Red Hat Enterprise Linux subscriptions and has a three-year life cycle to allow rapid innovation without sacrificing stability.

  4. How can I get Eclipse installed on Red Hat Enterprise Linux?

    How can I get a newer C/C++ compiler for Red Hat Enterprise Linux 7?

    Where can I get an IDE for C/C++ development on Red Hat Enterprise Linux 7?

    Red Hat Developer Toolset provides the latest, stable, open source C and C++ compilers and complementary development tools including Eclipse. DTS enables developers to compile applications once and deploy across multiple versions of Red Hat Enterprise Linux. The Red Hat Developer Toolset uses Red Hat Software Collections to install a parallel set of packages in /opt/rh where they will not override the system packages that come with Red Hat Enterprise Linux. Red Hat Software Collections is available with select Red Hat Enterprise Linux subscriptions and has a three-year life cycle to allow rapid innovation without sacrificing stability.

    See [FIXME — Get started developing with C++ and Eclipse from the Red Hat Developer Toolset.  — ADD LINK TO GET STARTED SITE]

  5. I’ve got a text-based login screen, how do I get a graphical one?

    During installation of Red Hat Enterprise Linux Server, selecting the Server with a GUI software option will install a full graphical desktop and configure it to start at boot time. You can install the graphical desktop with yum install after registering your system with Red Hat. Log in to the system as the root user, then use the following commands:

    # yum groupinstall 'Server with GUI'
    # yum install @gnome-desktop @x11 @internet-browser

    When complete, type systemctl reboot to reboot your system. When the system restarts, you should see a graphical login screen. [FIXME Note: I didn’t give this much testing]

  6. How do I install the C/C++ compiler?

    During installation, selecting the Development tools software option installs the C/C++ compiler GCC/G++ and other related development tools. You can install these tools with yum install after registering your system with Red Hat. Log in to the system as the root user then use the following command:

    # yum install @development
  7. I didn’t configure a network connection during installation, how do I this on a running system?

    Registration fails with the message that subscription.rhn.redhat.com is unreachable, how do I resolve this?

    If you did not configure a network connection during installation or the configuration was unsuccessful, see the Red Hat Enterprise Linux Networking Guide for information on configuring networking using either graphical or command-line tools.

  8. How do I register my system after installation?

    Use Red Hat Subscription Manager, which can be started from the system menu as a graphical tool, or from the command line using the following command:

    # subscription-manager register --auto-attach