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.
Step 1
Edit the rc.local file in vi by running:
sudo vi /etc/rc.local
Step 2
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.
Step 3
Give the executable permission to the rc.local file by running the following command:
chmod +x /etc/rc.d/rc.local
Step 4
Reboot the system by running:
sudo init 6
Step 5
When the machine reboots run the following command to insure the file has been created and that there is content in the file:
In this tutorial I will show you how to RDP into your CentOS 7 Server. This tutorial will also work on a Redhat 7 server. In order to follow this tutorial you will need to be sure that you have CentOS 7 installed with the GNOME Desktop. If you haven’t done this yet be sure to follow this tutorial to get up to speed.
The first thing that we need to do is to add two repos to our CentOS server. The two commands that you need to run are:
Next we will install the xrdp software package and then start it as a service. The commands to do this are:
sudo yum -y install xrdp tigervnc-server
Sudo systemctl start xrdp.service
Now we need to allow the ports for xrdp through the firewall. After that we’ll need to restart the firewall service. This can be done by running these commands.
This tutorial will show you how to reset the root password on CentOs 7 / Redhat 7. As a health warning please be sure that when doing this you have taken a snapshot of your VM or if it’s a physical server that you follow the instructions very carefully. With that in mind lets get started.
Step 1
When the system boots up press e on this screen.
Step 2
In the screen that appears scroll down to the line were you see Linux 16
Now Change where its says ro to:
rw init=/sysroot/bin/sh
Then press ctrl + x
Step 3
You will now be in emergency mode which will look like the screen below:
Step 4
Type in the command:
chroot /sysroot
Step 5
Reset the root password by typing in:
passwd root
Step 6
No ensure that selinux will be relabelled by typing the command:
In this tutorial you will learn how to install CentOS 7 on VMWare workstation 12. The first thing that you need to do to Install CentOS 7 is to download CentOS 7 from the CentOS website:
This tutorial shows you how to install Joomla 3 on CentOS 7 / Redhat 7 Linux (RHEL).It shows you first how to download, unzip and move the Joomla files to the correct directory for apache.
Next it shows you how to download and install php including the php-mysqli extension that is needed by Joomla. You will then see how to configure Apache to see the Joomla files.
Next you will then configure permissions and set up your Joomla Database in MYSQL (MariaDB) Finally you will install Joomla.
The commands that you need to follow along with this tutorial are:
This video describes the process of installing Drupal 8 on CentOS 7. This tutorial takes place on a CentOS 7 machine but the commands will also work on a Redhat (RHEL) 7 Machine.
The commands that you need to follow along with this tutorial are:
This video shows how to log into a CentOs 7 server from a Windows machine using SSH keys. The video will show you how to generate the keys using Putty and then how to configure your CentOS 7 Server to allow you to authenticate into the server.
Putty is available to download from www.putty.org.
The commands that you need to follow along with the tutorial are: