How to Install Docker Compose on Linux Systems 1. Run this command to download the latest version of Docker Compose: $ sudo curl -L$(uname -s)-$(uname -m) -o /usr/local/bin/docker-compose Use the latest Compose release number in the download command. The above command is an example, and it may become out-of-date. To ensure you have the latest version, check the Compose repository release […]

How To Protect SSH With Fail2Ban

Install Fail2Ban on Ubuntu 16.04 $ sudo apt-get update $ sudo apt-get install fail2ban The default settings are good and for more info see the link below. With the default settings, the fail2ban service will ban a client that unsuccessfully attempts to log in 5 times within a 10 minute window.

How To Install RocketChat On Ubuntu 16.04

Rocket.Chat is the leading free open source team chat Slack alternative. Enterprise Features Rocket.Chat is free, unlimited and open source. Replace Slack with the ultimate team chat software solution. Free audio and video conferencing, guest access, screen sharing, file sharing, LiveChat, LDAP Group Sync, two-factor authentication (2FA), E2E encryption, SSO, dozens of OAuth providers […]

How To Install Full Text Search Using Elastic Search And Nextcloud

We also install Java from ubuntu launchpad which is much easier than installing java manually 1. Install https support for apt $ sudo apt install apt-transport-https ca-certificates 2. Install Java Install java 8 installer from ubuntu launchpad. Add java repository Import Ubuntu GPG key: $ sudo apt-key adv –keyserver –recv-keys EEA14886 Add java repository: […]

How To Manually Install Oracle Java 9 On Ubuntu 16.04

Install Oracle Java 9 Download the 64-bit (or 32-bit) Linux “compressed binary file” into your home directory – it has a “.tar.gz” file extension. Uncompress it: $ tar -xvf jdk-9.0.4_linux-x64_bin.tar The JDK 8 package is extracted into ./jdk-9.0.4 directory. N.B.: Check carefully this folder name since Oracle seem to change […]

How To Install Nodejs On Ubuntu 16.04 The code below will install Nodejs 8 (LTS) $ sudo curl -sL | sudo -E bash – $ sudo apt-get install -y nodejs Alternatively, for Node.js 9: $ curl -sL | sudo -E bash – $ sudo apt-get install -y nodejs Optional: install build tools To compile and install native addons from […]

How To Migrate Linux Servers

I am using these steps to migrate from a Ubuntu 16.04 32bit server (512mb) to a 64bit server (1gb) on DigitalOcean. These same steps can be used as a guide for migrating servers for any provider. Migrating is not as simple as just restoring a snapshot to a new server image because when we do […]

How To Install OpenProject On Ubuntu 16.04 With LEMP Stack 1. The Easy Way These steps will install OpenProject on Ubuntu 16.04 with Nginx and MariaDB (or MySQL). Before getting started it is assumed that you have already installed a LEMP stack and created a new database in MySQL/MariaDB. If not, go here Install LEMP locally on Ubuntu 16.04. I also used Vagrant to […]

Using Git To Deploy Code Setting Up The Remote Server The following instructions apply to your remote (eg: Production/Staging) server(s). 1. Create a new directory for your git repository (preferably outside of your www directory – in our case /var/www/ $ sudo mkdir -p /var/www/ $ cd /var/www/ my example: $ sudo mkdir -p /var/www/ $ cd /var/www/ 2. […]

How To Restore A Nextcloud Backup Simply copy your configuration and data folder (or even your whole Nextcloud install and data folder) to your Nextcloud environment. You could use this command: 1. Copy the data directory: $ sudo rsync -Aax /media/ncbackup/nextcloud-data/ /var/www/data/ To copy the Nextcloud directory (this is optional, you can also just use a new downloaded version of […]

How To Install MongoDB On Ubuntu 16.04 1. Import they key for the official MongoDB repository $ sudo apt-key adv –keyserver hkp:// –recv EA312927 After successfully importing the key, you will see: gpg: Total number processed: 1 gpg: imported: 1 (RSA: 1) 2. Issue the following command to create a list file for MongoDB $ echo “deb xenial/mongodb-org/3.2 multiverse” | […]