• No results found

RHCE(RHEL7) Lab Step 4

N/A
N/A
Protected

Academic year: 2021

Share "RHCE(RHEL7) Lab Step 4"

Copied!
5
0
0

Loading.... (view fulltext now)

Full text

(1)

CertDepot

Everything you need to pass your RHCSA, RHCE, LFCS, LFCE & VCP exams.

search here …   Go

RHEL7: Set up a local

repository for a lab.

Last updated on November 30, 2014 (1,489 views) — No Comments ↓

To be able to quickly deploy new VMs, you need a local repository. Install the Apache package: # yum group install ‐y "Basic Web Server" Create the directories for the CentOS distribution and the updates: # cd /var/www/html # mkdir ‐p conf repo/CentOS/7 # cd repo/CentOS/7 # mkdir ‐p centosplus/x86_64 extras/x86_64 os/x86_64 updates/x86_64

In the software requirements, it was specified to download the DVD version or the Everything version of the CentOS 7 M A R

6

Fri M A R

13

Fri M A R

20

Fri  Upcoming Events

Share this link

6:00 pm ­ View Details  vanVugt: Free online class on SELinux issues 6:00 pm ­ View Details  vanVugt: Free online class on NFS­ Kerberos 6:00 pm ­ View Details  vanVugt: Free online class on ACLs Home About RHEL6 RHEL7 VCP5­DCV

(2)

distribution. It is now time to use it. Mount the previously downloaded iso and copy it into the right place: # mount ‐o loop CentOS‐7.0‐1406‐x86_64‐DVD.iso /mnt # cd /mnt # tar cvf ‐ . | (cd /var/www/html/repo/CentOS/7/os/x86_64; tar xvf ‐) # cd /; umount /mnt In order to prepare the centosplus, extras and updates repositories, install the createrepo package: # yum install createrepo Prepare the centosplus, extras and updates repositories: # cd /var/www/html/repo/CentOS/7/centosplus/x86_64; createrepo . # cd ../../extras/x86_64; createrepo . # cd ../../updates/x86_64; createrepo . Go into the directory where the repository configuration is: # cd /etc/yum.repos.d Create the local.repo file and paste the following lines: [os] name=master ‐ Base baseurl=http://192.168.1.5/repo/CentOS/$releasever/os/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm‐gpg/RPM‐GPG‐KEY‐CentOS‐7 [updates] name=master ‐ Updates baseurl=http://192.168.1.5/repo/CentOS/$releasever/updates/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm‐gpg/RPM‐GPG‐KEY‐CentOS‐7 A P R

3

Fri A P R

10

Fri A P R

15

Wed A P R

24

Fri

RHCSA6:

Task of the

day

Allowed time: 10 minutes.  Set up a default configuration HTTP server with SELinux in Enforcing mode and active iptables. 6:00 pm ­ View Details  vanVugt: Free online class on Apache 6:00 pm ­ View Details  vanVugt: Free online class on troubleshooting 6:00 pm ­ View Details  vanVugt: Free online class on iSCSI 6:00 pm ­ View Details  vanVugt: Free online class on remote logins

(3)

[extras] name=master ‐ Extras baseurl=http://192.168.1.5/repo/CentOS/$releasever/extras/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm‐gpg/RPM‐GPG‐KEY‐CentOS‐7 [centosplus] name=master ‐ CentosPlus baseurl=http://192.168.1.5/repo/CentOS/$releasever/centosplus/$basearch/ gpgcheck=1 gpgkey=file:///etc/pki/rpm‐gpg/RPM‐GPG‐KEY‐CentOS‐7 Note: A yum update command will update the system with what the local Apache server’s got. Copy the local.repo file into the /var/www/html/conf directory to make it available to the new VMs: # cp local.repo /var/www/html/conf Assign the SELinux attributes to the files: # restorecon ‐R /var/www/html Activate the Apache server at boot and start it: # systemctl enable httpd && systemctl start httpd Add the Apache service to the firewall configuration: # firewall‐cmd ‐‐permanent ‐‐add‐service=http success Reload the firewall configuration: # firewall‐cmd ‐‐reload

RHCE6: Task

of the day

Allowed time: 15 minutes.  Set up a httpd virtual server called "dummy" with DocumentRoot assigned to /opt.

Twitter

How to Configure tigervnc server on Centos 7: How to Configure tigervnc server on Centos 7 bit.ly/1BLEAfI Retweeted by CertDepot Jastis4Ever @Jastis4Ever Expand 6h Tweets Follow Tweet to @CertDepot

Recently

Updated

Pages

RHEL7 Free available resources RHEL7: Use yum transaction history. RHEL7: Install

(4)

success Clean up the yum configuration: # yum clean all Check the yum configuration: # yum repolist all Loaded plugins: fastestmirror, langpacks centosplus      | 2.9 kB     00:00 extras      | 2.9 kB     00:00 os      | 3.6 kB     00:00 updates       | 2.9 kB     00:00 (1/2): os/7/x86_64/group_gz       | 157 kB   00:00 (2/2): os/7/x86_64/primary_db       | 4.9 MB   00:00 Loading mirror speeds from cached hostfile repo id      repo name       status centosplus/7/x86_64      master ‐ CentosPlus       enabled:     0 extras/7/x86_64      master ‐ Extras       enabled:     0 os/7/x86_64      master ‐ Base       enabled: 8,465 updates/7/x86_64       master ‐ Updates      enabled:     0 repolist: 8,465 Finally, you need an extra step to regularly update your lab local repository. Create a Bash script called /root/rsync.sh and paste the following lines (where mirror.ovh.net/ftp.centos.org/7/ is the url of a close CentOS repository): #!/bin/bash /usr/bin/rsync ‐av ‐‐delete ‐‐delete‐excluded ‐‐exclude "local" ‐‐exclude "isos" ‐‐exclude "*.iso" ‐‐exclude "xen4" ‐‐exclude "*.i686.*" ‐‐exclude "i386" rsync://mirror.ovh.net/ftp.centos.org/7/ /var/www/html/repo/CentOS/7 Give the execution permissions: # chmod u+x /root/rsync.sh Put this script into the root crontab (# crontab ­e): Red Hat Enterprise Linux systems as virtual guests. RHEL7 RHCSA Exam objectives RHEL7: Update the kernel package appropriately to ensure a bootable system. RHEL7: Locate, read, and use system documentation including man, info, and files in /usr/share/doc. RHEL7: How to deal with HTTPD SELinux policy. SELINUX: Use boolean settings to modify system SELinux settings. SELINUX: Diagnose and address routine SELinux policy violations. RHEL7: How to install a Nginx & PHP service.

Recent

Comments

mfsid on RHEL6 LFCS Exam

(5)

00 02 * * * /root/rsync.sh Note: The first synchronization will last a while but, after, it will be quick. After synchronization, you will get this kind of result: # yum repolist all Loaded plugins: fastestmirror, langpacks Loading mirror speeds from cached hostfile repo id      repo name      status centosplus/7/x86_64      master ‐ CentosPlus      enabled:    70 extras/7/x86_64      master ‐ Extras      enabled:    44 os/7/x86_64      master ‐ Base      enabled: 8,465 updates/7/x86_64       master ‐ Updates       enabled:   866 repolist: 9,445

Leave a Reply

You must be logged in to post a comment.

objectives CertDepot on Final call for RHCSA 6 & RHCE 6 exams. konrad on Final call for RHCSA 6 & RHCE 6 exams. CertDepot on Website news. CertDepot on RHEL7 RHCSA Exam objectives

Poll for

favorite

book

What is your favorite book to prepare RHCSA & RHCE exams?  Damian Tommasino’s book  Michael Jang’s book  Asghar Ghori’s book  Others  None Vote View Results

References

Related documents

Background: The present study investigated the cardiovascular determinants of cardiac output (CO), mean systemic filling pressure analogue (Pmsa) derived by Geoffrey

‰ Fund applied to High Court for orders permitting it to apply the statutory scheme, including within “ pension interest” the withdrawal benefit which would be payable if the

r The Governor and Council, on motion by Councilor Griffin, seconded by Councilor Burton, authorized the acceptance of $7345 from Division of Human Services to

low high Although not directly related to the repeated-dose endpoint, many category members have been tested for in vivo acute effects in rodents and fish. In addition,

Even though Business New Zealand recommends that secret ballots for strikes be restricted to strikes related to collective bargaining (in which only union members can participate)

Finally, the articulation of Bahrom’s hierarchies of trade in Tajikistan emphasises this family’s Uzbek background and their historical pedigree as traders in contrast to

(b) Although the total surface area of Earth is (that of a sphere), the area to be used in a computation of how many protons in an approximately unidirectional beam (the solar

ANALYSIS OF FORMULA: The chief herbs, Radix Rehmanniae Glutinosae (sheng di huang) and Radix Scrophulariae Ningpoensis (xuan shen), work syner- gistically to