Sys-Admin

A 40-post collection

MongoDB replication and backup methods

This post explains how to configure a replicated MongoDB database environment and create full database backups of a MongoDB instance to create redundancy, improve data availability, and provide failure recovery. MongoDB replication How does it work? MongoDB handles replication through replication sets. Conceptually, replication sets are similar to the master-slave configuration explained... Read more

PostgreSQL replication and backup methods

Replication provides redundancy and increases data availability, allowing you to recover from hardware failure and service interruptions. If you have multiple copies of your data, you can dedicate one to disaster recovery, reporting, or backup. Setting up a typical PostgreSQL replicated environment on Terminals We will start with two new Terminals, created... Read more

MySQL replication and backup methods

Setting up a typical MySQL replicated environment with Terminals There are several ways to set up database replication with MySQL. The most popular is the master-slave setup. This replication process allows you to keep multiple copies of your MySQL data by synchronizing it automatically from a master to a slave database server.... Read more

Connecting Terminals: lazy admin edition

This blog post will show you a simple command line tool that we've created to make it easier to link Terminals. For a more extensive and 'low-level' explanation about how to connect Terminals using our API call, please refer to this blog post. Installation This tool is a simple Python script you... Read more

Getting started with Ansible in Terminals

Ansible is a radically simple IT automation platform that makes your applications and systems easier to deploy. Avoid writing scripts or custom code to deploy and update your applications— automate in a language that approaches plain English, using SSH, with no agents to install on remote systems. Earn a good reputation and... Read more

Provisioning linked Terminals

An easy way to start and provision connected Terminals. Some time ago, we were talking about horizontal scaling with Terminals. As a basic condition, in a horizontally scalable or a load balanced infrastructure you need communication between the servers. Without the right know-how this can be extremely time consuming. For example, what... Read more

ELK - elegant logs analysis part III: Kibana

The ELK stack is basically a set of tools commonly used for log parsing, analysis, and graphic representation. In this series we'll discover the real power of these 3 fantastic tools. Series ELK - elegant logs analysis part I: LogstashELK - elegant logs analysis part II: ElasticSearchELK - elegant logs analysis part... Read more

ELK - elegant logs analysis part I: Logstash

The ELK Stack is basically a set of tools commonly used for log parsing, analysis, and graphic representation. In this series we'll discover the real power of these 3 fantastic tools. Series ELK - elegant logs analysis part I: LogstashELK - elegant logs analysis part II: ElasticSearchELK - elegant logs analysis part... Read more

CasperJS: Functional test automation

As originally defined by its authors: CasperJS is an open source navigation scripting & testing utility written in Javascript for PhantomJS and SlimerJS. Functional development tests are currently an essential part of the application development process. These tests are mainly focused on bug discovery, and help to ensure the quality of our... Read more

How to password protect Linux-dash

If you've installed Linux-dash to monitor your server then the next step is to secure access to it and protect your sensitive server info. This is a simple process, and the very first thing you should do is spin up the Terminal you'd like to work with so that you're inside the... Read more

How to install Dash on Ubuntu 14.04

Linux-dash is an open source visual dashboard used to monitor various performance indicators and system information on Linux servers. It's super easy to install and set up, and is great for those who prefer a more graphic approach to system monitoring. In this tutorial you'll see how to quickly and easily install... Read more

How to use Monit with Terminals

Monit is a small open source utility for managing and monitoring Unix systems. Monit conducts automatic maintenance and repair and can execute meaningful causal actions in error situations. Sounds like magic, right? It's pretty close. Monit is a modern tool with that Unix feeling, and simplicity at its core. With Monit, you... Read more

Using Eclipse with Terminal

Eclipse is a well known integrated development environment (IDE). It provides a base workspace and an extensible plug-in system for customizing the development environment. Eclipse is mainly used to develop Java applications but, by means of various plug-ins, it may also be used to develop Ada, ABAP, C, C++, COBOL, Fortran, Haskell,... Read more

Ubuntu 14.04 first steps

Setting up a computer from scratch can be daunting for first-time users. Most of us are used to dealing with a graphical interface, and many of us -- myself included at one point -- have never worked on a Linux operating system. The first few steps to getting your server up and... Read more

LAMP to LEMP

LAMP is a popular server stack used to deliver dynamic content through the interplay of four open source technologies: Linux, MySQL, PHP, and an Apache web server. LEMP is very similar, however it makes use of an Nginx web server rather than Apache. In this tutorial we'll examine how to switch from... Read more

How to Install LAMP on Ubuntu 14.04

LAMP is an acronym that stands for Linux, Apache, MySQL, PHP - a stack of technologies that work together to shine light on your project by enabling your server to host dynamic websites and applications. Linux is the operating system, and it powers the others which in turn handle specific tasks related... Read more

Terminal startup scripts

Continuity Imagine you could travel back in time and re-start your life (or someone else's) from a precise moment in the past. This is essentially what the snapshot enables you to do with a terminal. Every time you start a new snapshot the Terminal is unique, but you're beginning at the execution... Read more

How to SSH into non-root users

There are several reasons you may wish to SSH into a non-root user on your Terminal. Perhaps you've gone through our "3 tips for superheroes and superusers tutorial," and have decided to restrict access to the root account. Or perhaps you're setting up SSH for an employee or contractor and you don't... Read more