Install Plex on Ubuntu 18.04

Plex is a streaming media server that lets you organize your video, music, and photo collections and stream them to all of your devices at any time and from anywhere.

Although this tutorial is written for Ubuntu 18.04 Bionic Beaver the same steps can be used for Debian and Ubuntu 16.04 Xenial Xerus.


You’ll need to be logged in as a user with sudo access to be able to install packages on your Ubuntu system.

Install Plex Media Server

The easiest way to install and manage Plex Media Server on Ubuntu 18.04 is by using the Plex official repository. It requires no technical knowledge and it should not take you more than 20 minutes to install and configure the media server.

Follow the steps below to install the Plex Media Server on your Ubuntu system:

Start by importing the repository’s GPG key using the following curl command:

curl | sudo apt-key add -

Add the Plex APT repository to your system’s software repository list by issuing:

echo deb public main | sudo tee /etc/apt/sources.list.d/plexmediaserver.list

Once the Plex repository is enabled, update the apt package list and install the latest version of the Plex Media Server with: Continue reading “Install Plex on Ubuntu 18.04” »


Install Apache Tomcat 8.5 on CentOS 7.3


Server with CentOS 7 – 64bit
2 GB or more RAM (Recommended)
Root Privileges on the server

Step 1 – Install Java (JRE and JDK)

In this step, we will install the Java JRE and JDK from the CentOS repository. We will install Java 1.8.11 on the server with the yum command.

Run this command to install Java JRE and JDK from CentOS repository with yum:

yum -y install java-1.8.0-openjdk.x86_64 java-1.8.0-openjdk-devel.x86_64

It will take some time, wait until the installation finished.

Then you should check the Java version with the command below:

java -version

You should see results similar to the ones below:

openjdk version "1.8.0_111"
OpenJDK Runtime Environment (build 1.8.0_111-b15)
OpenJDK 64-Bit Server VM (build 25.111-b15, mixed mode)

Step 2 – Configure the Java Home Environment Continue reading “Install Apache Tomcat 8.5 on CentOS 7.3” »


How to Monitor your Linux and Windows Servers with CloudStats

CloudStats is a server monitoring service which allows you to monitor your whole server infrastructure from a single dashboard interface and helps timely to prevent any kind of technical issues and downtimes. With CloudStats it is possible to monitor Linux servers, including those on CentOS, Debian, Fedora, Ubuntu etc.

CloudStats server monitoring Agent collects data about all key server metrics such as CPU, RAM and disk space usage, as well as a status of networks, processes, URLs or IPs. This information will be kept and displayed in your CloudStats account interface.

Almost every user can easily setup and run CloudStats without any special skills or knowledge.

Here is an instruction of how to perform Linux server monitoring using CloudStats.

1. Go to sign-up page and create a new account by adding your “Subdomain” name, it could be anything like your company name or website name (in our example – ‘ravisaive‘).

2. In the CloudStats online interface you can add your server for monitoring. To add new server click on the green button “Add New Monitor” and select “Add New Server”. Continue reading “How to Monitor your Linux and Windows Servers with CloudStats” »


Install SVN Server on Ubuntu and Test it with Tortoise

Execute the following commands to update the Ubuntu repository list and install apache + svn.

sudo apt-get update
sudo apt-get install subversion apache2 libapache2-svn apache2-utils

*If asked type Y (Yes). If you have trouble updating check your internet connection, proxy, try update fix-missing etc.

Create your repository folder in this case /svn/repos/ Continue reading “Install SVN Server on Ubuntu and Test it with Tortoise” »


Upgrade WordPress without FTP

Open /wp-config.php

Now the first thing you need to do is to open the wp-config.php file from your WordPress root folder (you may access this file from your WordPress installer folder). From the installation folder, the file is located at wordpress/wp-config.php


Paste the following code to your wp-config.php file, preferably just below every other line of code.


Save and Try updating now. If you have inappropriate directory and file permission, might  encounter upgrade error. Try to do the following-

Web Server Ownership

The first level is actually to make sure that your web server has ownership over the directories:

chown -R www-data:www-data your-wordpress-directory

Directory Permissions

The second level is also required – you must make sure that the directory permissions are properly set:

sudo find /var/www/wordpress/ -type d -exec chmod 755 {} \;
sudo find /var/www/wordpress/ -type f -exec chmod 644 {} \;

Remove apache, phpmyadmin etc from ubuntu 16.04

You can remove the packages in Ubuntu by executing the commands:

dpkg --purge phpmyadmin
dpkg --purge mysql-server
dpkg --purge apache2.2-common


You have option also to remove the following packages:

sudo apt-get remove apache2*
sudo apt-get remove phpmyadmin 
sudo apt-get remove mysql-server
sudo apt-get remove php5


sudo apt-get --purge apache2*
sudo apt-get --purge phpmyadmin 
sudo apt-get --purge mysql-server
sudo apt-get --purge php5

How to update Debian 6 Squeeze

After a Debian version has reached EOL (end of life), its repositories go to the Debian archive. Therefore we can use this archive to get packags for our distribution. The syntax for our /etc/apt/sources.list is as follows:

deb <version> main non-free contrib
deb-src <version> main non-free contrib

deb <version>/updates main non-free contrib
deb-src <version>/updates main non-free contrib

So for Debian Etch, you’d comment out all other repositories in /etc/apt/sources.list and add the following lines: Continue reading “How to update Debian 6 Squeeze” »


Business Server- How should it be

So, what would be a business on premise server look like…? Tried to build a feature based composition, but I guess need more upgradations-

  • Server operating system- Ubuntu 12.04 LTS
  • Network Firewall- ufw *
  • DNS server- Dnsmasq
  • DHCP server- ISC DHCP
  • Internet sharing with proxy and cache control, including reporting and user access control- Squid | Sarg
  • Anti-Virus and Anti-Spam ClamAV | AMaViS | SpamAssassin
  • Groupware Email, Contacts, Calendar, Webmail, with native Microsoft Outlook compatibility and mobile device support- SOGo *
  • Instant Messaging, VOIP and Video Chat server- Openfire | Spark *
  • Shared Printers and Files- Samba
  • Webserver Apache *
  • FTP server- ProFTP *
  • Database server- MySQL *
  • VPN- LogMeIn Hamachi  | Haguichi *
  • Virtualization support- Oracle VM VirtualBox *
  • Network Backup- RAID1 NAS *
  • Cloud Backup- Ubuntu One *
  • Remote Desktop Administration- x11vnc *
  • Remote Web Administration- Webmin
  • System Monitoring- Automatic Security Updates

All suggestions are welcome 🙂


Mondo CLI

If you want to do a backup in Linux, there are many tools for the job. But if you want the ability to recover from a disaster, as well as back up, only a handful are left. Of those, less than half are able to replace the functionality of Ghost or Acronis TrueImage in a Linux environment, and of those, only one or two (that I know of) can do this without either being ridiculously confusing or requiring a network or backup server.

The winner for me (and my mission critical business computers) is Mondo Archive. With Mondo Archive, you can do all sorts of nifty things, such as back up your windows/linux dual boot and automatically restore them to a completely different computer, restoring to a different disk setup or file system, and more. Here is a simple guide to using it.

Step 1: Install Mondo from Synaptic by first starting Synaptic, entering your root password, and then doing a search for the word "mondo" (without the quotes). Select it for installation. Several dependencies will be added.

Step 2: After you have installed them all, determine whether you will be using hard disk, CD, DVD or something else to back up to. Mondo supports CD-Rs, CD-RWs, DVDs, creating .ISO images on your hard disk, tape drives, CD Streamers and NFS mounts for backing up to. If you have the disk space to spare, and you plan to make CDs or DVDs, I suggest creating .ISO files on your hard disk and then later burning them to whatever media you have chosen later, although Mondo can do direct to device burning, too. I do it this way to make sure the run ends successfully before I overwrite my DVD-RW backup set. The alternative is to have multiple backup sets if you use RW media. Right now, that's not feasible for me. If you do store your images on the hard drive, you will want to have a specific directory set up to hold them. I use /home/myhomedir/backup. You would replace myhomedir with your login name, of course.

Step 3a: Decide how you want to run Mondo. I used to run it in its GUI mode. Note that this is a CLI based GUI. You can do this by invoking the program from a terminal you are logged into as root, like so:


[root@localhost backup]# mondoarchive

Mondo will then automatically detect as much information as possible, and will walk you through the rest. When it asks you whether your kernel is sane, for PCLinuxOS, the answer is YES. (Of course it is!)

Step 3b: If you need greater control than you can get from the GUI, as I do, you will need to use the CLI and type in a rather long command. Here is the command I use to create full system backups, which I will dissect for you afterwards:


mondoarchive -O -V -i -s 4480m -d /home/shannon/backup -I / -E /home/shannon/backup -T /home/shannon/backup -x /dev/sda1 -x /dev/sda2 -9 -f /dev/sda -l GRUB

Dissection: Continue reading “Mondo CLI” »