From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Install CentOS 7 - Linux Tutorial

From the course: LPIC-1 Exam 102 (Version 5.0) Cert Prep

Start my 1-month free trial

Install CentOS 7

- [Instructor] For most of this course, we'll be using a CentOS 7 Enterprise Linux Virtual Machine running in VirtualBox. I won't walk through every step of the installation but instead we'll focus on the important parts. Here's a short checklist of what we need to do to install successfully. Number one, be sure you have virtualization turned on in your BIOS/UEFI. Also, be sure your host OS is 64-bit. Now, install VirtualBox in your host OS. To do so, go to VirtualBox.org and click on the Download VirtualBox 6 icon. I'll be using Linux on my host OS, but Windows, MacOS X and Solaris will also work. If you're using Linux, you may be able to install VirtualBox through the package manager instead. If that's an option. I had it recommended. Second, install VirtualBox extension pack on the host by downloading it from the same webpage. Once it's downloaded, open it and VirtualBox should install the extension. This extension provides faster USB devices, disk encryption and meta virtual network cards. Next, download the CentOS 7 DVD ISO image. You can download it by going to CentOS.org. As of this recording, CentOS 8 is newly available. However, since the exam covers technologies included in CentOS 7, we'll use that version instead. To download an older version such as CentOS 7, you want to click on the alternative downloads link. Now, scroll down to version 7 and click on mirrors. Next, click on a mirror and then find the .ISO file. If you click this file, it will download with HTTP. You also have the option of downloading a torrent file, which should start a torrent client. Using BitTorrent may be faster and will put less load on the servers. Once these are downloaded, start VirtualBox and create a new VM by clicking on New. For the name, I'll start typing in CentOS and it'll fill in the other fields for me. I'll then change the name to rhhost1. This is nice shortcut, saving time. Now click through the rest of the dialogs by taking the defaults. After the VM has been created, click on Settings to optimize the VM. Click on System, and change the memory to two gigabytes. It isn't required to have this much, but the GUI does run nicer. Click on Processor to add more CPUs if you have them. Now click on Acceleration to change the hypervisor. For me, KVM is the best choice. If you're using a Windows host, you may want to choose Hyper-V. Take note that default is a good choice as well and has the highest chance of working. Now click on Display and click on Enable 3D Acceleration. Leave the Display Type as VMSVGA for now, so the install goes smoothly. I've had problems with the other choices during install with some distributions in the past. Later, feel free to change it to VBoxSVGA which may provide additional speed up. Click on OK. And then click on Start. Now choose your downloaded CentOS 7 ISO image and click on Open. Now click on Start again. Highlight Install CentOS 7 and hit Enter. For the install, I will skip to the important parts. Just pause the video until your installation catches up. During the install, set your time and timezone. And for software selection, choose Server with GUI. And then click on Done. This will give us a nice base to install with the graphical interface. Be patient as the installation GUI may be slow. Also, click on Installation Destination, and immediately click Done. The default automatic partition configuration is fine for what we are doing. Then click on Begin Installation. Once it starts installing, give root a nice strong password. CentOS will warn you if the password is weak. Then click on Done and click on User Creation. We're going to create a user here. The user name isn't that important but making the user an administrator is. During this course I'll be using several different users, but all of them will have administrator privileges through sudo. I will create a user name grant now and check the Make this user an administrator box. This step is necessary for future lessons. If you create other users later, make sure you add them to the group named wheel which gives them admin privileges using the sudo command. That is essentially what this checkbox does. Once your installation is done, then click on Reboot. Now accept the license agreement. Click on Finish Configuration, and then log in. After you've logged in, click through all of the post installation dialog boxes. Now CentOS 7 is installed and we can proceed.

Contents