This Video will show you how to ensure that a service or program starts on boot on Linux. This video was recorded on CentOS 8 but the method shoudl work on most Linux Distros including Ubuntu.
The command that you need to run is:
sudo chkconfig servicename on
This command will ensure that the service starts on boot on Linux
This video will show you how to SSH into a VirtualBox Machine. This video is using CentOS although the concepts should be much the same for other Linux Distros. This Linux Tutorial shows you what do to when you can’t SSH into VirtualBox Machine. First you will need to power off your VM. Next you will need to right click, settings, click network, select adopter 2 and enable VirtualBox host only adapter. Once done you will need to power on the machine. Next you will need to make sure that this new connection has an IP address. In CentOS this is done by creating a new network connection in the /etc/sysconfig/network-scripts folder. We then configure this network have a DHCP IP address and restart the network connection. Once done we restart the network, and SSH in to our machine.
This CentOS 8 tutorial will show you how to install CentOS 8 on VirtualBox. To begin you will see how to create a Virtual machine on VirtualBox. Next you will see how to download CentOS 8 to windows. Next you will see the CentOS 8 installation process. You will mount the CentOS 8 installation media into VirtualBox. Next you will see the CentOS 8 installation process step by step.7 Finally you will log into CentOS 8 server. This installation of CentOS 8 on VirtualBox take place on windows, in affect showing you how to run CentOS 8 on windows 10. The Install process will be the same if you are running on a physical machine.
“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.
Step 1
Log into your MariaDB instance, in our case we log in using the command:
mysql -u root -p
Step 2
After you log in you can see your version in the welcome text – highlighted in the screen-grab below:
Step 3
If you cannot see your version here you can also run the following command to see it:
SELECT VERSION();
A full video tutorial on the process can be found here:
This tutorial will show you how to create a CentOS 7 instance on AWS. We assume that you already have you AWS account created and that you are logged in already.
Step 1
Click Services and then EC2
Step 2
Click Launch Instance
Step 3
Click AWS Marketplace
Search for CentOS
Select the top result – CentOS7
Step 4
Click Continue
Step 5
Select your machine type and click Next Configure Instance details. In our case we will select the t2.micro instance as it is free tier eligible.
Step 6
Change Auto-assign public IP to Enable and click Next: Add storage.
Step 7
Leave the defaults and click Next:Add Tags
Step 8
Click Next: Configure Security Group
Step 9
Click review and Launch.
Step 10
Review your settings and then click Launch.
Step 11
In the drop down menu select create a new key pair, give the key pair a name and Download the Key Pair, then click launch Instances.
Step 12
Click your instance ID to see the instance.
You should now see your instance.
Step 13
To connect to our instance we will need to convert the key we downloaded, to do so we will use putty and puttygen they can be downloaded form here: https://www.putty.org/
Open puttygen and click Load
Step 14
Navigate to where you downloaded your key, click all files, click on your key and click open.
Step 15
Now click Save Private key, when prompted click yes you want to save without a passphrase.
Step 16
Now open putty and enter your public IP into the host name or IP address field, then expand SSH on the left had side.
Step 17
Click auth and then browse, navigate to where you saved your key and select it.
WildFly, formerly known as JBoss AS, or simply JBoss, is an application server authored by JBoss, now developed by Red Hat. WildFly is written in Java and implements the Java Platform, Enterprise Edition (Java EE) specification. It runs on multiple platforms.
WildFly is free and open-source software, subject to the requirements of the GNU Lesser General Public License (LGPL), version 2.1.
This tutorial will show you how to install Wildfly on Centos 7.
Step 1
To run Wildfly you need Java, so we will download it now, run the command:
yum -y install java-1.8.0-openjdk
Confirm that it is installed correctly by running:
java -version
Step 2
Let’s get the firewall ready, there are two ports we need open, lets open them now, run the following commands:
a) Management User (mgmt-users.properties) b) Application User (application-users.properties) (a):
Press enter for the default.
Enter the details of the new user to add. Using realm ‘ManagementRealm’ as discovered from the existing property files. Username:
Enter a Username
Password recommendations are listed below. To modify these restrictions edit the add-user.properties configuration file. – The password should be different from the username – The password should not be one of the following restricted values {root, admin, administrator} – The password should contain at least 8 characters, 1 alphabetic character(s), 1 digit(s), 1 non-alphanumeric symbol(s) Password :
Enter a password.
What groups do you want this user to belong to? (Please enter a comma separated list, or leave blank for none)[ ]: About to add user ‘wildfly’ for realm ‘ManagementRealm’ Is this correct yes/no
Type yes.
Is this new user going to be used for one AS process to connect to another AS process? e.g. for a slave host controller connecting to the master or for a Remoting connection for server to server EJB calls. yes/no?
Type no.
Step 7
Now we will start Wildfly, ensure that you are still in the bin directory and run the following command:
./standalone.sh
If the command is successful output should like so (You can ignore any ssl warnings):
Step 8
Lets confirm wildfly is up, open and web browser and navigate to the IP address of your CentOS server and append the port 8080 to the address, in our case it looks like so:
http://192.168.125.3:8080
You should see a screen that looks like so:
Step 9
Now let’s ensure the management interface is working, navigate to
http://192.168.125.3:9990
You should be prompted for a login, enter the username and password you set in step 6.
You should then see the Wildfly management interface.