How to Install and Update OpenSSL on CentOS 7

Install and Update OpenSSL on CentOS 7

In this tutorial we’ll learn how to install and Update OpenSSL on CentOS 7. We will also install and configure its prerequisites. OpenSSL is a library that provides cryptographic functionality, especially SSL/TLS for popular applications like secure servers, MySQL databases and email programs. The list attributes standard-commands, digest-commands, and cipher-commands output a list (one entry per line) of the names of all standard commands, message digest commands, or cipher commands, respectively, that are available in the current openssl utility.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install and Update OpenSSL on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update

Step 2. Install OpenSSL.

First, Get the current version with “openssl version” and “yum info openssl” command:

### openssl version
OpenSSL 1.0.1e-fips 11 Feb 2013
### yum info openssl

Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.ratiokontakt.de
 * epel: mirrors.n-ix.net
 * extras: mirror.de.leaseweb.net
 * updates: mirror.softaculous.com
Installed Packages
Name        : openssl
Arch        : x86_64
Epoch       : 1
Version     : 1.0.1e
Release     : 51.el7_2.1
Size        : 1.5 M
Repo        : installed
From repo   : updates
Summary     : Utilities from the general purpose cryptography library with TLS
            : implementation
URL         : http://www.openssl.org/
License     : OpenSSL
Description : The OpenSSL toolkit provides support for secure communications
            : between machines. OpenSSL includes a certificate management tool
            : and shared libraries which provide various cryptographic
            : algorithms and protocols.

Available Packages
Name        : openssl
Arch        : x86_64
Epoch       : 1
Version     : 1.0.1e
Release     : 51.el7_2.2
Size        : 711 k
Repo        : updates/7/x86_64
Summary     : Utilities from the general purpose cryptography library with TLS
            : implementation
URL         : http://www.openssl.org/
License     : OpenSSL
Description : The OpenSSL toolkit provides support for secure communications
            : between machines. OpenSSL includes a certificate management tool
            : and shared libraries which provide various cryptographic
            : algorithms and protocols.

 

Next, download the latest version of OpenSSL using following command:

cd /usr/local/src
wget https://www.openssl.org/source/openssl-1.0.2-latest.tar.gz
tar -zxf openssl-1.0.2-latest.tar.gz

Once the file is extracted, compile OpenSSL and install/upgrade OpenSSL as follows:

cd openssl-1.0.2a
./config
make
make test
make install

We now copy older version on other path:

mv /usr/bin/openssl /root/
ln -s /usr/local/ssl/bin/openssl /usr/bin/openssl

Now verify the OpenSSL version:

### openssl version
OpenSSL 1.0.2k 26 Dec 2017

Congratulation’s! You have successfully install and update OpenSSL on your CentOS 7 server. Thanks for using this tutorial for installing OpenSSL on CentOS 7 system.

How to Disable SELinux on CentOS 7

Disable SELinux on CentOS 7

In this tutorial we’ll learn how to disable SELinux on CentOS 7. We will also install and configure its prerequisites. SELinux, an abbreviation of Security-Enhanced Linux, is a safety enhancement to the Linux operating system. It’s a tagging system that blocks many system capabilities in its default settings.

SELinux is quite beneficial for many users, but due to the administrative overhead, you might be better off only disabling it. The time spent adding rules and upgrading permissions on SELinux versus the added security benefit may not be worthwhile.

Note: SELinux is remarkably beneficial within a general Linux system safety strategy, and we recommend leaving it enabled in implementing manner in production environments where possible. If a particular program or package doesn’t work properly with SELinux customized adjustments could be made that is the favored option in contrast to simply disabling the whole thing.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

SELinux Basics

A fast overview of the 3 different SELinux modes. SELinux can be in implementing, permissive, or handicapped manner.

  • Enforcing:
    This is the default. In enforcing manner, if something happens on the system that’s against the defined policy, the action will probably be both blocked and logged.
  • Permissive:
    This Mode won’t actually block or deny anything from occurring, however, it will log anything that would have been blocked in enforcing manner. It’s a fantastic way to use if you possibly need to test a Linux system which has never used SELinux and you wish to get an idea of any problems you might have. No system reboot is needed when switching between permissive and enforcing modes.
  • Disabled:
    Disabled is turned off, nothing is logged in any way. In order To swap to the disabled manner, a system reboot will be required. Additionally, if you are switching from disabled manner to either Permissive or employing manners a system reboot will also be required.

Disable SELinux on CentOS 7

Step 1. First check if SELinux status.

sestatus

Result:

[root@myvpsource ~]# sestatus
SELinux status:             enabled
SELinuxfs mount:            /sys/fs/selinux
SELinux root directory:     /etc/selinux
Loaded policy name:         targeted
Current mode:               enforcing
Mode from config file:      enforcing
Policy MLS status:          enabled
Policy deny_unknown status: allowed
Max kernel policy version:  28

To permanently disable SELinux, use your favorite text editor to open the file /etc/sysconfig/selinux as follows:

nano /etc/sysconfig/selinux

By default this file appears as shown below:

# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#     enforcing - SELinux security policy is enforced.
#     permissive - SELinux prints warnings instead of enforcing.
#     disabled - No SELinux policy is loaded.
SELINUX=enforcing
# SELINUXTYPE= can take one of three two values:
#     targeted - Targeted processes are protected,
#     minimum - Modification of targeted policy. Only selected processes are protected.
#     mls - Multi Level Security protection.
SELINUXTYPE=targeted

Change “SELINUX=enforcing” to “SELINUX=disabled” and save the configuration file.

For the changes to take effect, you need to reboot your system and then check the status of SELinux using sestatus command as shown:

sestatus

Congratulation’s! You have successfully disable SELinux temporarily or permanently on your CentOS 7 server. Thanks for using this tutorial for disable SELinux on CentOS 7 system.

How to Install Monsta FTP on Ubuntu

Install Monsta FTP on Ubuntu

In this tutorial we will show you how to install Monsta FTP on Ubuntu 16.04. We will also install and configure its prerequisites. Monsta FTP is an open source (free to use) web-based file manager for your website or server which connects you via FTP to to any distant Server, so that you can upload, download and edit files in your browser. Login Upload Video upload Rename Overview Monsta FTP is released Under the GNU General

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Monsta FTP on Ubuntu

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing LAMP on Ubuntu 16.04.

You should check out this LAMP stack install tutorial for Ubuntu 16.04, if you haven’t installed LAMP yet.

Step 3. Installing Monsta FTP.

First, download the file directly from Monsta FTP:

wget -O mftp.zip https://www.monstaftp.com/downloads/mftp.php
unzip mftp.zip

Once unzipped, move the mftp directory into your web directory:

mv mftp /var/www/html

Step 4. Accessing Monsta FTP.

Now you can access the Monsta FTP, You’ll then open your web browser and access your install from http://www.yourdomain.com/mftp. If you have not yet set up a domain for your server or do not have one, you can access your site via its IP address: http://192.168.1.1/mftp.

Congratulation’s! You have successfully install and configured Monsta FTP on your Ubuntu 16.04 server. Thanks for using this tutorial installing Monsta FTP server on Ubuntu 16.04 LTS (Xenial Xerus) system.

How to Install Firefox Quantum on CentOS

Install Firefox Quantum on CentOS

In this tutorial we’ll learn how to install Firefox Quantum on CentOS 7. We will also install and configure its prerequisites. Mozilla released Firefox Quantum on 14th November, 2017, though it had been in Beta for quite a while but an official release was supplied. Firefox quantum is reported to be the quickest version of Firefox till date. It’s said to be two times faster than Firefox was 6 months past & uses 30 percent less memory than its competitor, Chrome. Less memory usage means quicker page loading and smoother browsing experience for users.

Mozilla Has built the UI & underlying browser, called Servo, Completely from the floor up. All these new improvements will make Firefox Quicker to load and render web pages, and also its user interface ought to be Responsive and quick even under heavy load with countless tabs.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Firefox Quantum on CentOS

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y clean all
yum -y update

Step 2. Installing Firefox Quantum.

Firstly we will download the Firefox Quantum from the Official Website:

### 32-Bit ###
cd /opt
sudo wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/57.0/linux-i686/en-US/firefox-57.0.tar.bz2
sudo tar xfj firefox-57.0.tar.bz2

### 64-Bit ###
cd /opt
sudo wget https://download-installer.cdn.mozilla.net/pub/firefox/releases/57.0/linux-x86_64/en-US/firefox-57.0.tar.bz2
sudo tar xfj firefox-57.0.tar.bz2

After Firefox application files had been decompressed and installed to /opt/firefox/ system path, execute the below command to first launch the browser:

/opt/firefox/firefox

Next, create a quick launch icon in your desktop applications menu:

cd /usr/share/applications/
sudo cp firefox.desktop firefox-quantum.desktop

Then, open firefox-quantum.desktop file for editing and search and update the following lines:

Name=Firefox Quantum Web Browser
Exec=/opt/firefox/firefox %u
Exec=/opt/firefox/firefox -new-window
Exec=/opt/firefox/firefox -private-window

Save and close the file changes. Launch Mozilla Quantum by navigating to Applications -> Internet menu where a new Firefox Quantum launcher should appear.

Congratulation’s! You have successfully install and configured Firefox Quantum on your CentOS 7 server. Thanks for using this tutorial for installing Firefox Quantum web browser on CentOS 7 system.

How to Install UFW Firewall on Ubuntu 16.04

Install UFW Firewall on Ubuntu 16.04

In this tutorial we will show you how to install UFW Firewall on Ubuntu 16.04. We will also install and configure its prerequisites.The UFW (uncomplicated firewall) is a front-end for managing firewall rules and it is easy to utilize for host-based firewalls. The UFW is used through the command line interface and plans to make firewall configuration simple.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install UFW Firewall on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing UFW Firewall.

UFW is installed by default with Ubuntu, if not installed then we will install them using the below command:

sudo apt-get install ufw

Check the install:

ufw --version

And that is it, not much to the install and setup here. Nothing to enable or restart with systemd since UFW is a wrapper for iptables and netfilters:

ufw enable

Once enabled, ufw will be active and will start on system boot. Please note that all the incoming connections will be denied by default while the outgoing connections will be allowed. To check the default configuration, you can use the following command:

sudo ufw show raw

Attention! The following are examples, please use only if you know what you are doing!

Allow connections to SSH:

sudo ufw allow ssh

Enable other services:

sudo ufw allow 80/tcp
sudo ufw allow 443/tcp
sudo ufw allow 21/tcp

Allow connections from specific IP addresses:

sudo ufw allow from 111.111.111.120

For more usage commands you can use the –help flag:

sudo ufw --help

Most common uwf commands:

 enable                          enables the firewall
 disable                         disables the firewall
 default ARG                     set default policy
 logging LEVEL                   set logging to LEVEL
 allow ARGS                      add allow rule
 deny ARGS                       add deny rule
 reject ARGS                     add reject rule
 limit ARGS                      add limit rule
 delete RULE|NUM                 delete RULE
 insert NUM RULE                 insert RULE at NUM
 route RULE                      add route RULE
 route delete RULE|NUM           delete route RULE
 route insert NUM RULE           insert route RULE at NUM
 reload                          reload firewall
 reset                           reset firewall
 status                          show firewall status
 status numbered                 show firewall status as numbered list of RULES
 status verbose                  show verbose firewall status
 show ARG                        show firewall report
 version                         display version information

Application profile commands:
 app list                        list application profiles
 app info PROFILE                show information on PROFILE
 app update PROFILE              update PROFILE
 app default ARG                 set default application policy

Congratulation’s! You have successfully install and configured UFW Firewall on your Ubuntu 16.04 server. Thanks for using this tutorial installing UFW Firewall on Ubuntu 16.04 LTS (Xenial Xerus) system.

How to Install TeamSpeak Server on CentOS 7

Install TeamSpeak Server on CentOS 7

In this tutorial we’ll learn how to install TeamSpeak Server on CentOS 7. We will also install and configure its prerequisites. TeamSpeak is a voice over internet protocol (VoIP) software that allows users to communicate with one another over the internet. It is often utilized in computer gaming, but it is also utilized in the company and for overall communication between family and friends.

I recommend to use a minimal CentOS server setup as a basis for the tutorial, that can be a virtual or a root server image with an CentOS 7 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install TeamSpeak Server on CentOS 7

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

yum -y install epel-release
yum -y update
yum -y install nano wget perl tar net-tools bzip2

Step 2. Create a new system user.

It is not recommended to run TeamSpeak as user root, so we will create a new system user by running the following command:

adduser --shell /bin/false teamspeak -d /opt/teamspeak3 -M

Step 3. Installing TeamSpeak.

First, download the latest TeamSpeak 3 server files for 64-bit Linux. Check their website, a new version may be available:

wget http://dl.4players.de/ts/releases/3.0.12.4/teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2

Once it is downloaded, unpack the archive:

tar xvf teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
cd teamspeak3-server_linux_amd64
cp * -R /home/teamspeak
cd ..
rm -rf teamspeak3-server_linux_amd64*

Change ownership of the TeamSpeak server files:

chown -R teamspeak:teamspeak /home/teamspeak

Make the TeamSpeak server start on boot:

nano /lib/systemd/system/teamspeak.service

Copy the following content into the startup script file:

[Unit]
Description=Team Speak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak/
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target

Once you are done, save the file and close the editor. Now we will activate the script so that it will start on boot:

systemctl --system daemon-reload
systemctl start teamspeak.service
systemctl enable teamspeak.service

Step 4. Configure Firewall for TeamSpeak.

Open the default ports for Teamspeak:

firewall-cmd --zone=public --add-port=9987/udp --permanent
firewall-cmd --zone=public --add-port=10011/tcp --permanent
firewall-cmd --zone=public --add-port=30033/tcp --permanent
firewall-cmd --reload

Congratulation’s! You have successfully install and configured TeamSpeak Server on your CentOS 7 server. Thanks for using this tutorial for installing TeamSpeak on CentOS 7 system.

How to Install TeamSpeak Server on Ubuntu 16.04

Install TeamSpeak Server on Ubuntu 16.04

In this tutorial we will show you how to install TeamSpeak Server on Ubuntu 16.04. We will also install and configure its prerequisites. TeamSpeak is a voice over internet protocol (VoIP) software that allows users to communicate with one another over the internet. It is often utilized in computer gaming, but it is also utilized in the company and for overall communication between family and friends.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install TeamSpeak Server on Ubuntu 16.04

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Create a new system user.

Create a new user with your desired name, we will use the name “chedelics” for this guide:

adduser --disabled-login chedelics

Adding new group `teamspeak' (1000) ...
Adding new user `teamspeak' (1000) with group `teamspeak' ...
Creating home directory `/home/teamspeak' ...
Copying files from `/etc/skel' ...
Changing the user information for teamspeak
Enter the new value, or press ENTER for the default
Full Name []:
Room Number []:
Work Phone []:
Home Phone []:
Other []:
Is the information correct? [Y/n]

Step 3. Installing TeamSpeak.

First, download the latest TeamSpeak 3 server files for 64-bit Linux. Check their website, a new version may be available:

wget http://dl.4players.de/ts/releases/3.0.12.4/teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2

Once it is downloaded, unpack the archive:

tar xvf teamspeak3-server_linux_amd64-3.0.12.4.tar.bz2
cd teamspeak3-server_linux_amd64
cp * -R /home/teamspeak
cd ..
rm -rf teamspeak3-server_linux_amd64*

Change ownership of the TeamSpeak server files:

chown -R teamspeak:teamspeak /home/teamspeak

Make the TeamSpeak server start on boot:

nano /lib/systemd/system/teamspeak.service

Copy the following content into the startup script file:

[Unit]
Description=Team Speak 3 Server
After=network.target
[Service]
WorkingDirectory=/home/teamspeak/
User=teamspeak
Group=teamspeak
Type=forking
ExecStart=/home/teamspeak/ts3server_startscript.sh start inifile=ts3server.ini
ExecStop=/home/teamspeak/ts3server_startscript.sh stop
PIDFile=/home/teamspeak/ts3server.pid
RestartSec=15
Restart=always
[Install]
WantedBy=multi-user.target

Once you are done, save the file and close the editor. Now we will activate the script so that it will start on boot:

systemctl --system daemon-reload
systemctl start teamspeak.service
systemctl enable teamspeak.service

Step 4. Configure Firewall for TeamSpeak.

You may need to forward the following ports to allow connections to your TeamSpeak Server:

iptables -A INPUT -p udp --dport 9987 -j ACCEPT
iptables -A INPUT -p udp --sport 9987 -j ACCEPT
iptables -A INPUT -p tcp --dport 30033 -j ACCEPT
iptables -A INPUT -p tcp --sport 30033 -j ACCEPT
iptables -A INPUT -p tcp --dport 10011 -j ACCEPT
iptables -A INPUT -p tcp --sport 10011 -j ACCEPT

Congratulation’s! You have successfully install and configured TeamSpeak Server on your Ubuntu 16.04 server. Thanks for using this tutorial installing TeamSpeak VoIP on Ubuntu 16.04 LTS (Xenial Xerus) system.

How to Install Firefox Quantum on Ubuntu

Install Firefox Quantum on Ubuntu

In this tutorial we will show you how to install Firefox Quantum on Ubuntu 16.04. We will also install and configure its prerequisites. Mozilla released Firefox Quantum on 14th November, 2017, though it had been in Beta for quite a while but an official release was supplied. Firefox quantum is reported to be the quickest version of Firefox till date. It’s said to be two times faster than Firefox was 6 months past & uses 30 percent less memory than its competitor, Chrome. Less memory usage means quicker page loading & smoother browsing experience for users.

Mozilla Has built the UI & underlying browser, called Servo, Completely from the floor up. All these new improvements will make Firefox Quicker to load and render web pages, and also its user interface ought to be Responsive and quick even under heavy load with countless tabs.

I recommend to use a minimal Ubuntu server setup as a basis for the tutorial, that can be a virtual or a root server image with an Ubuntu 16.04 minimal install from a web hosting company or you use our minimal server tutorial to install a server from scratch.

Install Firefox Quantum on Ubuntu

Step 1. First, ensure your system and apt package lists are fully up-to-date by running the following:

apt-get update -y
apt-get upgrade -y

Step 2. Installing Firefox Quantum.

Ubuntu 17.04-16.04, users will always get the latest version of Firefox via default Ubuntu’s update channel. But the upgrade isn’t yet available and if you are curious to try it, there is an official Mozilla PPA to test the beta version of Firefox Quantum on Ubuntu and its derivatives:

sudo add-apt-repository ppa:mozillateam/firefox-next
sudo apt-get update

Install Firefox Quantum using following command:

sudo apt-get install firefox

That’s it, we can now launch the Firefox Quantum from menu or through terminal with following command:

firefox

Congratulation’s! You have successfully install and configured Firefox Quantum on your Ubuntu 16.04 server. Thanks for using this tutorial installing Firefox Quantum on Ubuntu 16.04 LTS (Xenial Xerus) system.