COFC DevOPS: Setup
Github Repository
Goals:
- Set up 3 virtual machines
- 1 Ubuntu (Command Machine)
- 2 CentOS “webservers”
- Set up an non-root user that is a part of the
wheel group on our webservers
Prerequisites:
- VirtualBox
- ISOs:
Configuration Steps:
- Download Virtualbox
- Download ISOs
- We will want to have the following configurations for our three VMs:
- 16 GB of storage per VM
- 1024 MB of RAM per VM
- Network will be set to Host Only Adapter
- We will set up the Ubuntu Server first and then the CentOS Servers
- We will need to update our repositories and packages that are installed on the system with the following commands:
sudo apt update: update the software repositories
sudo apt full-upgrade: download and upgrade the software packages
- Some notes for the Ubuntu Server:
- We will need to check to see if the following packages are installed:
git
ansible
net-tools
python
python3
- We will need to make sure we start the SSH service and enable it on startup:
sudo systemctl start ssh; sudo systemctl enable ssh
- We will need to create a non-root user for the VM:
- Create user:
sudo useradd [username] [for this lab we will use devops as the non-root user]
- Set password for the user:
passwd devops
- Add the user to the
sudo group: sudo usermod -aG sudo devops
Book
Linux Basics for Hackers