The task we had for this exercise was to create a website that first takes user input then validates the given user input and after submitting then redirects to a page that then serves as a confirmation page. All of this was to be done with PHP and by using sessions. The latter part of the exercise was to store user info in cookies and use that info on another page. I'd also like to point out that while all code works and is valid, as required by the assignment, I wrote this post from memory and not while doing the exercise.
This exercise had us configuring the entire Linux Apache2 Mariadb Php7.2 development stack for a Linux based machine. I used my Acer Aspire Laptop from previous exercises and a minion named azazel running on Virtualbox with a xubuntu 18.04 LTS OS.
Controlling a Windows 10 minion
For the exercise I used my Acer Aspire V laptop and a freshly installed Windows 10 running on virtualbox called "Merihem".
As the Windows was a fresh install I chose to do this step by step from the beginning. First up I needed to figure out which version of salt-minion I needed to install on the Windows. It's extremely important to make sure that both minion and master are running the same version of salt.
Exercises were done on my acer aspire V running on a xubuntu 18.04 LTS OS, booted from a live usb-drive (Kingston DataTraveller 16gb) due to the usage of Vagrant (and just to spice things up).
This assignment had us using some linux shell scripting and using Vagrant/Virtualbox to set up a new virtual machine.
This exercise had us create a script that installs salt-minion on the computer instantly.
First I created a folder in which to do my project.
The script I created read
This was all written in markdown, as the assignment ordered. The machine used for the assigment was my Acer Aspire V laptop running a Xubuntu 18.04 LTS OS. Minions will be reported later on as the exercise goes on.
The minion used was a virtualbox xubuntu 18.04 LTS machine called azazel.
In this exercise we were to create states that did various tasks from installing and configuring apache to configuring demons on our own.
For the exercise I used my Acer Aspire V laptop and my regular xubuntu 18.04 salt-minion running in virtualbox called "azazel".
After booting my laptop and starting virtualbox I tested the connection between my master and my minion with 'sudo salt 'azazel test.ping'
Controlling a Kali-minion
The purpose of this exercise was to control a salt-minion with a salt-master and preform a couple of tasks with it.
I chose to create the master on my Acer Aspire V laptop running on a xubuntu 18.04 LTS system, and just for fun I decided to make my Virtualbox machine running a Kali Linux my minion.
C) Creating the master
To create the connection you need to first install the salt-master framework on the machine you chose as the master.
To make a file unreadable and unwritable by other than the user you are logged in as currently.
chmod go-rw nameoffile
chmod is the command to change the modifications in a file
g=group, o=others, u=user a=all
r=read, w=write, x=execute
This exercise was about installing apache2 and creating a php compatible website.
The first task was to install apache2 and have the user homepage work. The user home page can be found by navigating to your own ip-address and /~username e.g. 188.8.131.52/~xubuntu.
The current username can be found via the command 'whoami' and your ip-address with the command 'ip addr'. When you try to connect to the server it does not respond because apache2 is not installed
H2 reading the log files and some new programs.
The second exercise was done on my Acer Aspire V laptop running on the usb boot on a Kingston DataTraveller 16gb we created in a previous assignment.
First I ran command 'sudo apt-get update' to updates the packages that are available.