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

CentOS 7 install - Linux Tutorial

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

Start my 1-month free trial

CentOS 7 install

- [Instructor] For most of this course we'll be using a CentOS seven 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 slash 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 six icon. I'll be using Linux on my host OS but Windows, macOS 10 and Solaris will also work. If you're using Linux, you may be able to install VirtualBox to the package manager instead. If that's an option, I highly recommend it. Second, install the VirtualBox Extension Pack on the host by downloading it from the same web page. Once it's downloaded, open it and VirtualBox should install the extension. This extension provides faster USB devices, disc encryption and better virtual network cards. Next, download the CentOs seven DVD ISO image. You can download it by going to centos.org. As of this recording CentOS eight is newly available. However, since the exam covers technologies included in CentOS seven, we'll use that version instead. To download an older version such as CentOS seven, you want to click on the alternative downloads link. Now scroll down to version seven and click on mirrors. Next, click on a mirror and then find the dot 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 will fill in the other fields for me. I'll then change the name to rhhost one. This is a nice shortcut saving time. Now click to the rest of the dialogues 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 Cavium 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 it has the highest chance of working. Now click on Display and click on enable 3D Acceleration. Leave the display type as a VMSVGA for now so the install goes smoothly. I've had problems with the other traces during install with some distributions in the past. Later, feel free to change it to VBoxSVGA which may provide an additional speed up. Click on OK and then click on Start. Now choose your downloaded CentOS seven ISO image and click on open. Now click on start again. Highlight install CentOS Seven 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 time zone and for software selection choose server with GUI, 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 but immediately click Done. The default automatic partition configuration is fine for what we're doing. Think we can begin installation. Once it starts installing give router 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 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 username 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 the installation is done, then click on reboot. Accept the license agreement. Click on finish configuration and then login. After you've logged in, click through all of the post installation dialog boxes. Now CentOS seven is installed and we can proceed.

Contents