How to Install Docker Compose on Linux Systems

https://docs.docker.com/compose/install/#install-compose 1. Run this command to download the latest version of Docker Compose: $ sudo curl -L https://github.com/docker/compose/releases/download/1.21.0/docker-compose-$(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. https://www.digitalocean.com/community/tutorials/how-to-protect-ssh-with-fail2ban-on-ubuntu-14-04

How To Install RocketChat On Ubuntu 16.04

Rocket.Chat is the leading free open source team chat Slack alternative. https://rocket.chat/ 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 keyserver.ubuntu.com –recv-keys EEA14886 Add java repository: […]

How To Manually Install Oracle Java 9 On Ubuntu 16.04

Install Oracle Java 9 https://askubuntu.com/questions/56104/how-can-i-install-sun-oracles-proprietary-java-jdk-6-7-8-or-jre https://tecadmin.net/install-oracle-java-8-ubuntu-via-ppa/ https://www.digitalocean.com/community/tutorials/how-to-install-java-with-apt-get-on-ubuntu-16-04 https://fribeiro.org/tech/2018/02/07/nextcloud-full-text-elasticsearch/ http://www.oracle.com/technetwork/java/javase/downloads/index.html 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

https://nodejs.org/en/download/package-manager/ The code below will install Nodejs 8 (LTS) $ sudo curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash – $ sudo apt-get install -y nodejs Alternatively, for Node.js 9: $ curl -sL https://deb.nodesource.com/setup_9.x | 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

https://www.openproject.org/download-and-installation/ 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

https://mikeeverhart.net/2013/01/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/site.com/): $ sudo mkdir -p /var/www/site.com/git/project_name.git $ cd /var/www/site.com/git/project_name.git my example: $ sudo mkdir -p /var/www/site.com/staging.git $ cd /var/www/site.com/staging.git 2. […]

How To Restore A Nextcloud Backup

https://docs.nextcloud.com/server/12/admin_manual/maintenance/restore.html 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

https://www.digitalocean.com/community/tutorials/how-to-install-mongodb-on-ubuntu-16-04 1. Import they key for the official MongoDB repository $ sudo apt-key adv –keyserver hkp://keyserver.ubuntu.com:80 –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 http://repo.mongodb.org/apt/ubuntu xenial/mongodb-org/3.2 multiverse” | […]