Installation
Installation instructions for Centos 7
Tip: Boot Menu
If you got the boot failure message, restart the computer and press [F10] to get to the boot menu, select the Hard Disk as boot device and continue. Booting your system
Configuring a Linux GatewayAt this point you have a basic Centos 7 installed and updated. This will serve as a host for the virtual machines where you will do the majority of the work in this course. All the rest of our labs will assume you have this basic system running. If, for any reason, your system becomes corrupted during the semester, you'll have to redo this lab to be able to continue with the remaining uncompleted labs. You are responsible for YOUR system. If you do not perform back-ups you have taken this risk on yourself. Poor planning on your part does not constitute an emergency for anyone else.
Configuring Sudo
Switch
to root using su or su- (remember su- switches you to root and places
you in root's home directory, with root's profile settings. su switches
you to root, but with your current user's profile settings and does not
change your working directory).
Issue the following command:
Wikipedia
has useful information on why we use visudo instead of directly editing
the /etc/sudoers file. It is worth looking at as it may appear on next
week's quiz.
http://en.wikipedia.org/wiki/Sudo#Tools_and_similar_programs
Sudo
can be configured to allow multiple users administrative access without
giving anyone else the root password. Additionally you can configure
sudo to only allow users to execute specific commands with elevated
(root) privilges. Sudo works much the same as Run As Administrator in
Windows. For additional information, I found this video provided a very
good explaination:
After issuing the visudo command, find the line that reads as follows:
What
this means is allow root to run from any terminal (first all), acting
as any user (second all), and execute any command (third all). Below
this line, add the following (without the curly braces):
Configuring your Hostname
Configure your hostname on your host OS to be c6host, by issuing the following command.
Configure your hostname on your host OS to be c6host, by issuing the
following command. Change the line that reads
HOSTNAME=localhost.localdomain (or whatever it contains if it does not
exactly match this) to the following:
c7host
Note
that this change will not take effect until after you reboot, however
since you will need to reboot to apply other changes later that
makes sense to do this all at once.
Installing the virtualization software
|
No comments:
Post a Comment