We need to create an exercise that involves installing a kernel update. Therefore we cannot live with a big repository called repo. We need to add one selinux compatible called updates. In our quirky Macbook based environment we will have to reboot our infrastructure server so it has Internet exposure. Your mileage may vary. In […]
Read More →Category: RHCSA exam prep
User/group exercise
The problem is to create a group called sysadm. abraham needs to be a secondary member of this group. leah is a secondary member of sysadm group. rachael has no interactive login is not a member of sysadm. For simplicity make the password equal to blackhat Next objective: Make a folder /redhat/sysadm group ownership […]
Read More →RHCSA add a 512 MiB ext4 filesystem named /cluster
The exam question use smaller mount points but the tolerance is generally 30% We will skip the screen shots from gdisk/fdisk as we just did that for swap.
Read More →RHCSA: swap exercise
RHCSA has some practical exercises. The standards police decides you system needs another 1 GB of swap. A correct answer according to actual test students is +/- 30% So we begin: gdisk /dev/sdb Note Linux swap at /dev/sdb1 exactly 1 GB/1014 MiB vim /etc/fstab verify with: free -m
Read More →Set selinux to enforcing
According to some reports selinux might not be in enforcing mode on the system you are given. Because Red Hat and the NSA are pushing selinux the test requires it. Student beware. If getenforce is not set to enforcing take the next step vim /etc/selinux/config set SELINUX=enforcing and reboot
Read More →RHCSA SELINUX allow a apache subdirectory to be serviced
RHCSA studying. classroom.example.com 10.0.2.10 has a web server and /var/www/html/repo is where we want the yum repository to be. A little selinux problem with that in enforcing mode. yum -y install nmap ##our test dummy. The answer: chcon -R -t httpd_sys_content_t “/var/www/html/repo/” restorecon -R /var/www/html/repo Like magic yum then works.
Read More →RHCSA Network exercise
First check that network manage is enabled systemctl list-unit-files | grep -i net systemctl status NetworkManager -l | grep enp My kingdom for an easy way to go back to eth0 nmcli connection delete enp0s3 # Delete any connection from previous use of the VM nmcli connetion add connection add con-name enp0s3 type ethernet autoconnect […]
Read More →Building a RHCSA classroom server (part 2)
Click storage Live CD/DVD and lick the optical drive image and choose the same iso image you built the system with. Press okay. I needed to reboot to make the dvd visibl. Your mileage may vary. Click back into the system and log in to system as student I usually arrange the desktop at this […]
Read More →Building a RHCSA classroom server (part 1)
This article shows how to build the classroom server which most RHCSA test exercises are run against. The environment is virtual box running on a very new Macbook Pro with a modern CPU and 32 GB of Ram. We start with a dead machine transferred from the old Mac. Next we add in the CentOS […]
Read More →RHCSA exam prep recover root password
Your root password is lost and gone forever. Temporary video version without sound.[youtube][/youtube] Your sudo account has been blocked by an incompetent SA(System Administrator). This according to reports is often on the test. It takes 5 minutes to fix. Reboot your system and intervene on the kernel prompt. Press e to edit go down to […]
Read More →