How To Install BlogoText CMS on Ubuntu 18.04 LTS

Install BlogoText CMS on Ubuntu 18

BlogoText is an open source, lightweight, web publishing platform (CMS) for creating minimalist blogs and websites.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation BlogoText CMS on a Ubuntu 18.04 (Bionic Beaver) server.

BlogoText features:

    • Blog with comments and RSS feeds
    • Links sharing
    • RSS Reader
    • Images/Files uploading and sharing
    • JSON/ZIP/HTML import-export; WordPress import
    • Support Addons

Install BlogoText CMS on Ubuntu 18.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB and PHP) server.

A Ubuntu 18.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.1-cli php7.1-mbstring php7.1-gd php7.1-opcache php7.1-mysql php7.1-json php7.1-mcrypt php7.1-xml php7.1-curl

You’ll need to also adjust some settings in your php.ini. Open up the file and edit these two variables:

nano /etc/php/7.1/apache2/php.ini

Also, add/modify the following settings:

date.timezone = 'America/New_York'
file_uploads = On
allow_url_fopen = On
short_open_tag = On
memory_limit = 256M
upload_max_filesize = 100M
max_execution_time = 360

Step 3. Installing BlogoText CMS on Ubuntu 18.04 LTS.

First thing to do is to go to BlogoText’s download page and download the latest stable version of BlogoText, At the moment of writing this article it is version 3.7:

https://github.com/BlogoText/blogotext/archive/3.7.6.zip
unzip 3.7.6.zip
sudo mv blogotext-3.7.6 /var/www/html/blogotext

We will need to change some folders permissions:

chown -R www-data:www-data /var/www/html/blogotext/
chmod -R 755 /var/www/html/blogotext/

Step 4. Configuring MariaDB for BlogoText CMS.

By default, MariaDB is not hardened. You can secure MariaDB using the mysql_secure_installation script. you should read and below each steps carefully which will set root password, remove anonymous users, disallow remote root login, and remove the test database and access to secure MariaDB:

mysql_secure_installation

Configure it like this:

- Set root password? [Y/n] y
- Remove anonymous users? [Y/n] y
- Disallow root login remotely? [Y/n] y
- Remove test database and access to it? [Y/n] y
- Reload privilege tables now? [Y/n] y

Next we will need to log in to the MariaDB console and create a database for the BlogoText CMS. Run the following command:

mysql -u root -p

This will prompt you for a password, so enter your MariaDB root password and hit Enter. Once you are logged in to your database server you need to create a database for BlogoText CMS installation:

CREATE DATABASE chamilodb;
CREATE USER 'chamilouser'@'localhost' IDENTIFIED BY 'Pa$$worD123';
GRANT ALL PRIVILEGES ON chamilodb.* TO 'chamilouser'@'localhost';
FLUSH PRIVILEGES;
quit

Step 5. Configuring Apache web server for BlogoText CMS.

Create a new virtual host directive in Apache. For example, create a new Apache configuration file named ‘blogotext.conf’ on your virtual server:

touch /etc/apache2/sites-available/blogotext.conf
ln -s /etc/apache2/sites-available/blogotext.conf /etc/apache2/sites-enabled/blogotext.conf
nano /etc/apache2/sites-available/blogotext.conf

Add the following lines:

<VirtualHost *:80>
ServerAdmin [email protected]
DocumentRoot /var/www/html/blogotext
ServerName your-domain.com
ServerAlias www.your-domain.com
<Directory /var/www/html/blogotext/>
Options FollowSymLinks
AllowOverride All
</Directory>
ErrorLog /var/log/apache2/your-domain.com-error_log
CustomLog /var/log/apache2/your-domain.com-access_log common

Save and close the file. Restart the apache service for the changes to take effects:

a2ensite blogotext.conf
a2enmod rewrite
systemctl restart apache2

BlogoText will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your-domain.com/ or http://server-ip/ and complete the required the steps to finish the installation. If you are using a firewall, please open port 80 to enable access to the control panel.

blogotext-install

Congratulation’s! You have successfully installed BlogoText CMS. Thanks for using this tutorial for installing BlogoText content management system on your Ubuntu 18.04 LTS (Bionic Beaver) system. For additional help or useful information, we recommend you to check the official BlogoText web site.

How To Install FFmpeg 4.1.3.tar.bz2 on Ubuntu 18.04 LTS

FFmpeg

FFmpeg is a cross-platform solution for streaming audio and video as well as recording and conversion. There’s also a great PHP package called ffmpeg-php that allows for easy use of FFmpeg from inside PHP scripts. In this tutorial i will show you the easy way to install ffmpeg and ffmpeg-php (php extension).

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation FFmpeg on an Ubuntu 18.04 Bionic Beaver server.

Install FFmpeg on Ubuntu 18.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing FFmpeg on Ubuntu 18.04 LTS.
Method 1. Install FFmpeg using PPA:

You’ll need to add FFmpeg’s PPA (personal package archive) to your system:

sudo add-apt-repository ppa:jonathonf/ffmpeg-3
sudo apt update
sudo apt install ffmpeg libav-tools x264 x265

Method 2. Install FFmpeg using default repository Ubuntu:

Install FFmpeg on Ubuntu is to use the apt command:

sudo apt install ffmpeg

To check for a installed ffmpeg version run:

### ffmpeg -version
ffmpeg version 3.4.2-1build1 Copyright (c) 2000-2018 the FFmpeg developers

Congratulation’s! You have successfully installed FFmpeg. Thanks for using this tutorial for installing FFmpeg on your Ubuntu 18.04 LTS Bionic Beaver. For additional help or useful information, we recommend you to check the official FFmpeg web site.

How To Install Let’s Encrypt SSL for Nginx on Ubuntu 18.04 LTS

Install Let’s Encrypt SSL for Nginx on Ubuntu 18

Let’s Encrypt is a free open certificate authority (CA) that provides free certificates for websites and other services. The service, which is backed by the Electronic Frontier Foundation, Mozilla, Cisco Systems, and Akamai. Unfortunately, LetsEncrypt.org certificates currently have a 3 month lifetime. This means you’ll need to renew your certificate quarterly for now.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Let’s Encrypt SSL for Nginx on Ubuntu 18.04 LTS server.

Install Let’s Encrypt SSL for Nginx on Ubuntu 18.04 LTS

Step 1. First make sure that all your system packages are up-to-date

apt-get update
apt-get upgrade

Step 2. Installing Let’s Encrypt SSL on Ubuntu 18.04 LTS.

First, Add certbot to the repository:

sudo add-apt-repository ppa:certbot/certbot
sudo apt update
sudo apt install python-certbot-nginx

Step 3. Setup Domain Name to Server Block.

Certbot automates the configuration of SSL for Nginx by looking for the server_name directive that matches the domain you’re requesting a certificate for. If you have already configured the server_name directive previously, you can skip to Step 4.

Step 4. Generate Certs using Certbot.

First, We can now generate certs using certbot. Replace intanramona.net with your own domain:

sudo certbot --nginx -d intanramona.net -d www.intanramona.net

Enter an email address where you can be contacted in case of urgent renewal and security notices:

Please read the Terms of Service at
https://letsencrypt.org/documents/LE-SA-v1.2-November-15-2017.pdf. You must
agree in order to register with the ACME server at
https://acme-v01.api.letsencrypt.org/directory
-------------------------------------------------------------------------------
(A)gree/(C)ancel:

Press a and ENTER to agree to the Terms of Service:

Would you be willing to share your email address with the Electronic Frontier
Foundation, a founding partner of the Let's Encrypt project and the non-profit
organization that develops Certbot? We'd like to send you email about EFF and
our work to encrypt the web, protect its users and defend digital rights.
-------------------------------------------------------------------------------
(Y)es/(N)o:

Press n and ENTER to not share your email address with EFF:

Obtaining a new certificate
Performing the following challenges:
http-01 challenge for intanramona.net
http-01 challenge for www.intanramona.net
Waiting for verification...
Cleaning up challenges
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/default
Deploying Certificate to VirtualHost /etc/nginx/sites-enabled/default

If successful, you will be able to choose between enabling both http and https access or forcing all requests to redirect to https:

Please choose whether or not to redirect HTTP traffic to HTTPS, removing HTTP access.
-------------------------------------------------------------------------------
1: No redirect - Make no further changes to the webserver configuration.
2: Redirect - Make all requests redirect to secure HTTPS access. Choose this for
new sites, or if you're confident your site works on HTTPS. You can undo this
change by editing your web server's configuration.
-------------------------------------------------------------------------------
Select the appropriate number [1-2] then [enter] (press 'c' to cancel):

Press 2 and ENTER to redirect HTTP traffic to HTTPS:

Redirecting all traffic on port 80 to ssl in /etc/nginx/sites-enabled/default
Redirecting all traffic on port 80 to ssl in /etc/nginx/sites-enabled/default

-------------------------------------------------------------------------------
Congratulations! You have successfully enabled https://devtest1.com and
https://www.devtest1.com

You should test your configuration at:
https://www.ssllabs.com/ssltest/analyze.html?d=intanramona.net
https://www.ssllabs.com/ssltest/analyze.html?d=www.intanramona.net
-------------------------------------------------------------------------------

IMPORTANT NOTES:
- Congratulations! Your certificate and chain have been saved at:
/etc/letsencrypt/live/intanramona.net/fullchain.pem
Your key file has been saved at:
/etc/letsencrypt/live/intanramona.net/privkey.pem
Your cert will expire on 2018-12-05. To obtain a new or tweaked
version of this certificate in the future, simply run certbot again
with the "certonly" option. To non-interactively renew *all* of
your certificates, run "certbot renew"
- If you like Certbot, please consider supporting our work by:

Donating to ISRG / Let's Encrypt: https://letsencrypt.org/donate
Donating to EFF: https://eff.org/donate-le

Step 5. Setup auto renewal Let’s Encrypt.

Let’s Encrypt certificates are valid for 3 month, they need to be checked for renewal periodically. Certbot will automatically run twice a day and renew any certificate that is within thirty days of expiration:

sudo certbot renew --dry-run

Congratulation’s! You have successfully installed Let’s Encrypt. Thanks for using this tutorial for installing Let’s Encrypt SSL on Ubuntu 18.04 LTS Bionic Beaver system. For additional help or useful information, we recommend you to check the official Let’s Encrypt web site.

How To Install Netdata Monitoring on Ubuntu 18.04 LTS

Install Netdata Monitoring on Ubuntu 18

Piwik is an open source web analytics application. It rivals Google Analytics and includes even more features and allows you to brand your brand and send out custom daily, weekly, and monthly reports to your clients.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Netdata Monitoring on an Ubuntu 18.04 Bionic Beaver server.

Install Netdata Monitoring on Ubuntu 18.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Netdata Monitoring on Ubuntu 18.04 LTS.

Install Netdata using following command:

sudo apt install netdata

Step 3. Configure Netdata Monitoring.

Run the following command to configuration file and bind the server IP address:

nano /etc/netdata/netdata.conf

Then change the line to bind to the IP address of the server and save the changes:

[global]
 run as user = netdata
 web files owner = root
 web files group = root
 # Netdata is not designed to be exposed to potentially hostile
 # networks.See https://github.com/firehol/netdata/issues/164
 bind socket to IP = 127.0.0.1

After restart NetData service to apply the changes:

systemctl restart netdata

Step 4. Accessing Netdata Monitoring.

Netdata Monitoring will be available on HTTP port 19999 by default. Open your favorite browser and navigate to http://yourdomain.com:19999 or http://server-ip:19999

netdata-monitoring

Congratulation’s! You have successfully installed Netdata. Thanks for using this tutorial for installing Netdata Monitoring on your Ubuntu 18.04 LTS Bionic Beaver. For additional help or useful information, we recommend you to check the official Netdata web site.

How to Install Asterisk (Usage Survey) on Ubuntu 18.04 LTS

Install Asterisk on Ubuntu 18

Asterisk is the most popular and widely adopted open source PBX platform that powers IP PBX systems, conference servers and VoIP gateways. It is used by individuals, small businesses, large enterprises and governments worldwide.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Asterisk on an Ubuntu 18.04 Bionic Beaver server.

Install Asterisk on Ubuntu 18.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Installing Dependencies.

Install all required packages on your Asterisk with the following commands:

apt-get install build-essential
apt-get install git-core subversion libjansson-dev sqlite autoconf automake libxml2-dev libncurses5-dev libtool

Step 3. Installing Asterisk on Ubuntu 18.04 LTS.

First, download the latest version of Asterisk:

cd /usr/src/
wget http://downloads.asterisk.org/pub/telephony/asterisk/asterisk-15-current.tar.gz
tar zxf asterisk-15-current.tar.gz

Once the asterisk archive is extracted, change to the asterisk-15.5.0 directory with the following command:

cd asterisk-15.*/
./contrib/scripts/install_prereq install

The script will install all necessary packages and upon successful completion, it will print the following message:

#############################################
##    install completed successfully.      ##
#############################################

Next step is to run the ./configure script which will check your system for missing libraries and binaries and prepare the Asterisk source code for the build process:

./configure

Upon successful completion, you will see the following output:

configure: Menuselect build configuration successfully completed

               .$$$$$$$$$$$$$$$=..
            .$7$7..          .7$$7:.
          .$$:.                 ,$7.7
        .$7.     7$$$$           .$$77
     ..$$.       $$$$$            .$$$7
    ..7$   .?.   $$$$$   .?.       7$$$.
   $.$.   .$$$7. $$$$7 .7$$$.      .$$$.
 .777.   .$$$$$$77$$$77$$$$$7.      $$$,
 $$$~      .7$$$$$$$$$$$$$7.       .$$$.
.$$7          .7$$$$$$$7:          ?$$$.
$$$          ?7$$$$$$$$$$I        .$$$7
$$$       .7$$$$$$$$$$$$$$$$      :$$$.
$$$       $$$$$$7$$$$$$$$$$$$    .$$$.
$$$        $$$   7$$$7  .$$$    .$$$.
$$$$             $$$$7         .$$$.
7$$$7            7$$$$        7$$$
 $$$$$                        $$$
  $$$$7.                       $$  (TM)
   $$$$$$$.           .7$$$$$$  $$
     $$$$$$$$$$$$7$$$$$$$$$.$$$$$$
       $$$$$$$$$$$$$$$$.

configure: Package configured for:
configure: OS type  : linux-gnu
configure: Host CPU : x86_64
configure: build-cpu:vendor:os: x86_64 : pc : linux-gnu :
configure: host-cpu:vendor:os: x86_64 : pc : linux-gnu :

Now that the configuration is completed start the compilation process using the make command:

make

Once the build process is completed, you will be presented with the following message:

+--------- Asterisk Build Complete ---------+
+ Asterisk has successfully been built, and +
+ can be installed by running:              +
+                                           +
+             make install                  +
+-------------------------------------------+

As the message above says, the next step is to install Asterisk and its modules by typing:

make install

Once the installation is finished the script will display the following message:

+---- Asterisk Installation Complete -------+
 +                                           +
 +    YOU MUST READ THE SECURITY DOCUMENT    +
 +                                           +
 + Asterisk has successfully been installed. +
 + If you would like to install the sample   +
 + configuration files (overwriting any      +
 + existing config files), run:              +
 +                                           +
 + For generic reference documentation:      +
 +    make samples                           +
 +                                           +
 + For a sample basic PBX:                   +
 +    make basic-pbx                         +
 +                                           +
 +                                           +
 +-----------------  or ---------------------+
 +                                           +
 + You can go ahead and install the asterisk +
 + program documentation now or later run:   +
 +                                           +
 +               make progdocs               +
 +                                           +
 + **Note** This requires that you have      +
 + doxygen installed on your local system    +
 +-------------------------------------------+

Run the make samples command to install the Asterisk sample configuration files:

make samples
make config
make install-logrotate

You will see the following output indicating that the logrotation configuration has been successfully created:

if [ ! -d "/etc/asterisk/../logrotate.d" ]; then \
        /usr/bin/install -c -d "/etc/asterisk/../logrotate.d" ; \
fi
sed 's#__LOGDIR__#/var/log/asterisk#g' < contrib/scripts/asterisk.logrotate | sed 's#__SBINDIR__#/usr/sbin#g' > contrib/scripts/asterisk.logrotate.tmp
/usr/bin/install -c -m 0644 contrib/scripts/asterisk.logrotate.tmp "/etc/asterisk/../logrotate.d/asterisk"
rm -f contrib/scripts/asterisk.logrotate.

The last step is to enable Asterisk service to start on boot with:

systemctl start asterisk
systemctl enable asterisk
systemctl status asterisk

Congratulation’s! You have successfully installed Asterisk. Thanks for using this tutorial for installing Asterisk on your Ubuntu 18.04 LTS Bionic Beaver. For additional help or useful information, we recommend you to check the official Asterisk web site.

How To Install MyWebSQL on Ubuntu 18.04 LTS

Install MyWebSQL on Ubuntu 18

MyWebSQL is a free and open source web based WYSIWYG client for managing the databases on your server. It provides a simple and intuitive interface with the look and feel of a desktop application. This PHP based application offers rich features amd plenty of tools for database management and it can work with MySQL, PostgreSQL, and SQLite databases.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation MyWebSQL on an Ubuntu 18.04 Bionic Beaver server.

MyWebSQL Features

  • Multiple Syntax highlighted SQL editors
  • WYSIWYG Table creator/editor
  • Quick Inplace multi-record editing
  • Desktop application look and feel
  • Excellent support for all major browsers
  • Zero configuration installation
  • Multilingual Interface with themes support
  • Supports MySQL 4 and 5, PostgreSQL 8 and 9 and SQLite databases
  • Import database script, export database, tables or results to multiple formats

Install MyWebSQL on Ubuntu 18.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Install LAMP (Linux, Apache, MariaDB and PHP) server.

A Ubuntu 18.04 LAMP server is required. If you do not have LAMP installed, you can follow our guide here. Also install all required PHP modules:

apt-get install php7.1-cli php7.1-mbstring php7.1-gd php7.1-opcache php7.1-mysql php7.1-json php7.1-mcrypt php7.1-xml php7.1-curl

1
Step 3. Installing MyWebSQL on Ubuntu 18.04 LTS.

First, download a MyWebSQL package from the terminal using the wget command:

wget https://phoenixnap.dl.sourceforge.net/project/mywebsql/stable/mywebsql-3.7.zip

Unzip the archive file with to default web server document root directory:

unzip mywebsql-3.7.zip -d /var/www/html

Change ownership and permission of the as MyWebSQL CMS follows:

chown -R www-data:www-data /var/www/html/mywebsql/
chmod -R 775 /var/www/html/mywebsql/

Then, You can now test and verify the installation by the typing the following in your browser (using your own server IP address): http://your-IP-address/mywebsql/install.php.

Install-MyWebSQL

Step 4. Accessing MyWebSQL.

MyWebSQL will be available on HTTP port 80 by default. Open your favorite browser and navigate to http://your-domain.com/mywebsql or http://server-ip/mywebsql and Login with your MariaDB root accoun. If you are using a firewall, please open port 80 to enable access to the control panel.

Congratulation’s! You have successfully installed MyWebSQL. Thanks for using this tutorial for installing MyWebSQL on your Ubuntu 18.04 LTS Bionic Beaver. For additional help or useful information, we recommend you to check the official MyWebSQL web site.

How To Install Google Earth on Ubuntu 18.04 LTS

Install Google Earth on Ubuntu 18

Google Earth is a virtual globe that lets you travel anywhere sitting right in front of your desk. You can explore any place on earth (even in 3D) and also beyond earth. You can explore the surface of the Moon and Mars, and explore the stars in the night sky.

This article assumes you have at least basic knowledge of Linux, know how to use the shell, and most importantly, you host your site on your own VPS. The installation is quite simple and assumes you are running in the root account, if not you may need to add ‘sudo’ to the commands to get root privileges. I will show you through the step by step installation Google Earth on an Ubuntu 18.04 Bionic Beaver server.

Install Google Earth on Ubuntu 18.04 LTS

Step 1. First make sure that all your system packages are up-to-date

sudo apt-get update
sudo apt-get upgrade

Step 2. Install Prerequisites Packages.

Before you install Google Earth, make sure install prerequisites packages:

apt install gdebi-core wget

Step 3. Installing Google Earth on Ubuntu 18.04 LTS.

First, download Google Earth installation package:

wget https://dl.google.com/dl/earth/client/current/google-earth-pro-stable_current_amd64.deb

Next, use the gdebi command to install Google Earth:

sudo gdebi google-earth-pro-stable_current_amd64.deb

After finishing installing Google Earth package, you can either run:

google-earth-pro

Congratulation’s! You have successfully installed Google Earth. Thanks for using this tutorial for installing Google Earth on your Ubuntu 18.04 LTS Bionic Beaver. For additional help or useful information, we recommend you to check the official Google Earth web site.