The Amazon Linux AMI is a supported and maintained Linux image provided by Amazon Web Services for use on Amazon Elastic Compute Cloud (Amazon EC2). It is designed to provide a stable, secure, and high performance execution environment for applications running on Amazon EC2.
Log into your AWS account.
Click services and then EC2
Click launch Instance
Select Amazon Linux 2 AMI
Leave the default values in instance details and click next.
If required add more storage and click next add tags
Click add tag, type Name in the Key field and then type a server name in the Value feed. Click Next Configure Security group
“MariaDB is a community-developed fork of the MySQL relational database management system intended to remain free under the GNU GPL. Development is led by some of the original developers of MySQL, who forked it due to concerns over its acquisition by Oracle Corporation”
This short MariaDB tutorial will show you how to check the version of MariaDB you are running. We are running MariaDB on CentOS 7 but the process should be much the same for other operating systems.
Log into your MariaDB instance, in our case we log in using the command:
mysql -u root -p
After you log in you can see your version in the welcome text – highlighted in the screen-grab below:
If you cannot see your version here you can also run the following command to see it:
A full video tutorial on the process can be found here:
In this example I had a need to record boot up times in a file that i could access easily. To do so I decided to run a command on startup. This tutorial tool place on CentOS but the commands should also work on Ubuntu.
Edit the rc.local file in vi by running:
sudo vi /etc/rc.local
Add the following line to the file, update the home directory to represent your home directory.
Press i to go into insert mode
Enter the line:
echo “the computer booted up at” `date` >> /home/darren/bootup.log
Press ESC and then wq! and enter to save and quit the file.
Give the executable permission to the rc.local file by running the following command:
chmod +x /etc/rc.d/rc.local
Reboot the system by running:
sudo init 6
When the machine reboots run the following command to insure the file has been created and that there is content in the file:
If you have a server that’s available over a network it’s generally a good idea to disable root access over ssh.
The reason for this, is that, scripts run attempting to access your server and these scripts use the root username to try and log in. A simple way to protect yourself is to simply disable root access via SSH.
We will first create a standard user account that we’ll use to administer our system.
Run the command:
Next we’ll set a password for the user
Now let’s give the account admin permissions:
Add the following line to the file:
darren = ALL=(ALL) ALL
Now lets stop root from accessing the server via ssh:
Edit the line:
To make it read:
Now restart SSH:
service sshd restart.
Next make sure your you can ssh into the account you created:
Run a command with sudo to insure you have sudo access
Once you have confirmed you can exit the server knowing that root access is now disabled for the server.
This tutorial will show you how to install Fedroa 27 in VMware Workstation 12. Fedora is an excellent operating system that is open source and free. It runs great on older hardware so is a great option for older laptops. With that said let’s get stuck into the tutorial.