using kannel for nagios sms alerts

How to install kannel sms gateway on Debian Linux for nagios SMS notifications

What you will learn

In this article, you will learn how to install kannel server on Debian and integrate it to a Nagios server for sms notifications. We asume that the reader already has a working Nagios server and we will focus on Kannel installation and its integration with Nagios.

Requirements

  • Privileged access to your Debian server
  • SMPP account or USB modem
  • A Nagios server
  • Privileged access to your Nagios server

Difficulty

MEDIUM

Conventions

# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Setting up Kannel

using kannel for nagios sms alerts

Install Kannel

The installation of kannel is simply done through apt-get command:

# apt-get install kannel

Read more

using newusers for bulk user creation

Simple way for unattended bulk user creation in Linux

Introduction

As a Linux system administrator, you will sometimes have to add new user account to your system. To do so, adduser command is often used. When it comes to multiple users’ creation, adduser command may become boring and time-consuming.
This short article intends to provide the Linux system administrator with a simple and unattended way for bulk user creation. The newusers command will help you to create multiple users by getting their info from a prefilled file.

Requirements

Privileged access to your Linux machine

Conventions

# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How to proceed

Create a file containing the usernames

In this initial step, you need to create a file that will contain the list of the usernames that are to be created.

$ vi users-list.txt

Read more

determining device port

Connect your Ubuntu Linux machine to cisco serial console

What you will learn

In this article, you will learn how you can use your Ubuntu Linux machine to open a serial console on a cisco device.

Requirements

  • Privileged access to your Ubuntu machine
  • A serial cable

Conventions

# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

How to proceed

Install screen

In this step you need to install screen, a program that will allow you to open the serial console fo your cisco device.

$ sudo apt install screen

Read more

git clone etherpad

Install Etherpad web-based real-time collaborative editor on Ubuntu 16.04 Linux

Introduction

Etherpad is an Open Source, web-based and real-time collaborative editor. It allows multiple persons, using their web browsers to edit a document at the same time. It also offers some cool features like rich text formatting and instant messaging.

The objective is to install Etherpad on Ubuntu 16.04 Linux.

Conventions

# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user

Requirements

Privileged access to your Ubuntu machine.

Steps to follow

Install the prerequisites

In this first stage, let’s install git, curl, libssl-dev, python and build-essential.

$ sudo apt install git curl python libssl-dev pkg-config build-essential

Install node.js

Etherpad relies on node.js. We will install its latest stable version by using the following linux commands:

$ wget https://nodejs.org/dist/v6.9.2/node-v6.9.2-linux-x64.tar.xz
$ tar xJf node-v6.9.2-linux-x64.tar.xz
$ sudo mkdir /opt/nodejs/ && mv node-v6.9.2-linux-x64/* /opt/nodejs
$ echo "PATH=$PATH:/opt/nodejs/bin" >> ~/.profile

Read more

check vpnserver installation

Setting up SoftEther VPN Server on Ubuntu 16.04 Xenial Xerus Linux

Introduction

Whether you want to be able to connect remotely to your corporate network or to construct a virtual network between two remote points, through an unsecure network (eg: Internet), you will somehow need a VPN (Virtual Private Network). A VPN allows you to securely connect to a remote LAN (Local Area Network) through Internet or untrusted networks.

SoftEther is an Open Source VPN Server, an alternative to OpenVPN. It’s thought to be the world’s most powerful and easy-to-user multi-protocol VPN software.
Our article concerns how to setup SoftEther on Ubuntu Xenial Xerus Linux.

What you will need

  • Ubuntu 16.04 Xenial Xerus Linux
  • A 30 GB available disk space is recommended
  • A root privilege

Note that binaries used for this article are x64 architectures. If your machine is not x64, you need to choose the suitable binaries.

Conventions

# – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
$ – requires given linux commands to be executed as a regular non-privileged user
> – given command to be executed from vpncmd command line interface

Preparing the server

Upgrade the system:

$ sudo apt update
$ sudo apt upgrade

Install (if not installed yet) build-essential for compilation purpose:

$ sudo apt install build-essential

Read more