RED HAT ENTERPRISE LINUX
The world’s leading enterprise Linux platform
Get Started
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.
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:
- 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 underSoftware Selection during installation. By default, Red Hat Enterprise Linux Server will not install a graphical desktop. - 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.
- 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.
- 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:
- a 64-bit x86 machine.
- 4 GB of RAM
- 20 GB of available disk space.
- For more detailed minimum hardware requirements and compatibility information, see theRed Hat Enterprise Linux Installation Guide.
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
- Start the system from the bootable disk and select Install Red Hat Enterprise Linux.Note: you can skip the media checking step by hitting the Esc key.
- Select your preferred language and keyboard layout to use during installation.
- 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.
- Perform the follow steps to make your software selection:
- Click Software selection.
- On the next screen, under Software selection, in the Base environment list on the left, select Server with GUI.
- In the list Add-ons for selected environment on the right, select Development tools.
- Click the Done button. Note: After returning to the Installation summary screen it will take several seconds to validate your choices.
- 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.
- 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. The default settings should be fine for most networks that use DHCP.
- Optionally, set a Host name for the system.
- Click Save to dismiss the network adapter configuration dialog.
- 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.
- Click Done.
- Click KDump to disable KDump and free up memory. Click the box next to Enable kdumpso that it is no longer checked. Then click Done.
- Click the Begin installation button when you are ready to start the actual installation.
- 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.
- 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.
- After the installation process completes, click the Reboot button.
If you need help, see Troubleshooting and FAQ.
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:
- Accept the license agreements and register the system with the Red Hat Subscription Management.
- Install the latest software updates.
- 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.
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.
- Click License information to go the license acceptance screen.
- Click the check box to accept the license.
- Click Done in the upper left corner to return to the Initial Setup screen.
- If you didn’t configure a network during installation, click Network and host name to configure your network connection.
- 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.
- Click Subscription Manager
- Leave I will register with set to the default.
- if you need to configure an HTTP proxy server, click Configure Proxy
- Click Next to move the next screen.
- Enter the same username and password that you use for the Red Hat Customer Portal, access.redhat.com.
- Optionally, enter a System Name that will be used to identify this system on the Red Hat Customer Portal.
- Click Register.
- 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.
- Click Attach.
- Click Done.
- Finally, Click Finish configuration.
- 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. SeeTroubleshooting and FAQ.If you get a text-based login screen instead of a graphical one, see Troubleshooting and FAQ.
- Select your preferred language for the GNOME desktop. Then click Next.
- Select your keyboard layout. Then click Next.
- Optionally follow the dialogs to connect your online accounts or click Skip.
- 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.
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:
- To accept the license agreement:
- Enter 1 and hit return to enter the License information section.
- Enter 2 and hit return to accept the license agreement.
- Enter c and hit return to leave the License information section.
- Enter c and hit return to complete the initial setup.
- 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.
- Select your preferred language for the GNOME desktop. Then click Next.
- Select your keyboard layout. Then click Next.
- Optionally follow the dialogs to connect your online accounts or click Skip.
- Click Start using 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.
- Check that the network connection has been started:
- Run Settings from the System Tools group of the Applications menu.
- Click the Network icon under the Hardware group of All Settings.
- Select the Wired network.
- Make sure the toggle switch in the upper right is switched on.
- 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.
- When you are finished with network settings close the window by clicking the X in the upper right corner.
- Now register the system:
- Start Red Hat Subscription Manager from the System tools group of theApplications menu.
- Click the Register button in the upper right corner of Subscription Manager.
- Leave I will register with set to the default on the System Registration dialog.
- if you need to configure an HTTP proxy server, click Configure Proxy
- Click Next to move the next dialog.
- 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.
- Optionally, enter a System Name that will be used to identify this system on the Red Hat Customer Portal.
- Click Register.
- 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.
- Click Attach.
- Click the X in the upper right hand corner to close Red Hat Subscription Manager.
You are now ready to start using Red Hat Enterprise Linux. Next, install the latest updates.
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 RHSCLsoftware 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
In this step you will select your programming language and then set up and run a simple “Hello, World” application. You have a choice for traditional development or do a docker pull for building in containers.
GCC via Red Hat Developer Toolset on RHEL 7 Recommended
Developed by the GNU project as the free compiler of the GNU system, it includes front ends for C, C++, and Fortran. Also includes Eclipse, GDB, SystemTap, Oprofile, Valgrind and much more.
Developed by the GNU project as the free compiler of the GNU system, it includes front ends for C, C++, and Fortran. Also includes Eclipse, GDB, SystemTap, Oprofile, Valgrind and much more.
GCC 5 base version on RHEL 7
Supported for the entire life of RHEL 7.
Supported for the entire life of RHEL 7.
In addition to the above, see the entire list of software collections including databases (MongoDB, PostgreSQL, etc), web servers (Apache httpd, Nginx, etc.), and more, view the Red Hat Software Collections Technology Brief.
Want to know more about what you can do with RHEL?
Become a Red Hat developer: developers.redhat.com
Red Hat delivers the resources and ecosystem of experts to help you be more productive and build great solutions. Register for free at developers.redhat.com.
Follow the Red Hat Developer Blog
http://developerblog.redhat.com
http://developerblog.redhat.com
- 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. - 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.
- 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 LinuxRed 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.
- 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. - 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 GUIsoftware 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 theroot
user, then use the following commands:# yum groupinstall 'Server with GUI' # yum install @gnome-desktop @x11 @internet-browser
When complete, typesystemctl reboot
to reboot your system. When the system restarts, you should see a graphical login screen. - 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 theroot
user then use the following command:# yum install @development
- 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.
- 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
0 comments:
Post a Comment