How to Replace Systemd With SysV Init On Debian Linux

Objective

Replace systemd with SysV Init as the init system on Debian Stretch

Distributions

Debian Stretch

Requirements

A working Debian Stretch install with root privileges.

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

Introduction

Not everyone loves systemd, and for those that don’t, there really aren’t many options. That’s especially true if you want something like a stable server. Fear not, SysV Init is actually still supported under Debian, and it’s not hard to switch.

**Note:** don’t try this if you’re running GNOME or another desktop environment that has a hard dependency on systemd. It will just break your system.

Add Devuan Repositories

This part isn’t strictly necessary if you just want to switch the init system and leave systemd installed as a compatibility layer. That would work fine. If you absolutely don’t want systemd on your system at all, you need to make some arrangements to make the things that depend on it work.

Devuan, the systemd-less Debian fork is lagging a bit behind. Their Stretch release, ASCII, isn’t ready, and running Devuan’s testing releases isn’t super stable right now. However, the did build some crucial packages to make systemd-dependent programs work without it, and you can use them in Debian.

First, create a new .list file in /etc/apt/sources.list.d/ for Devuan. Then, add the following line to it.

Read more

How to Install Bitcoin-node on Debian 9 Stretch Linux

Objective

The objective is to install latest Bitcoin-node binaries on Debian 9 Stretch Linux.

Operating System and Software Versions

  • Operating System: – Debian 9 Stretch
  • Software: – Bitcoin 0.14.1

Requirements

Privileged access to your Debian system will be required.

Difficulty

EASY

Conventions

Read more

first remote VNC session linux debian

Quick VNC server/client setup on Debian Linux Jessie 8

In this config we will show a quick VNC server/client configuration on Debian Linux Jessie 8. Visit the following page on how to configure VNC on Debian 9 Stretch Linux.

We will be using vnc4server to start a VNC server and xvnc4viewer client to connect remotely. First perform a server installation on the server you wish to remotely connect to:

# apt-get install vnc4server

Next, setup your password. Login as a user you will eventually use to create a remote VNC session and set your password consisting of 6 – 8 characters:

$ vnc4passwd 
Password:
Verify:

Read more

How to Encrypt directory with EncFS on Debian 9 Stretch Linux

Objective

The following article will explain how to encrypt directory using EncFS on Debian 9 Stretch Linux

Operating System and Software Versions

  • Operating System: – Debian 9 Stretch
  • Software: – encfs version 1.9.1

Requirements

Privileged access to may be required to perform EncFS installation.

Difficulty

EASY

Conventions

Read more

How to install Logstash On Debian Linux

How to install Logstash On Debian Linux

How to install Logstash On Debian Linux

Objective

The following guide describes a basic installation of Logstash on Debian Linux.

Operating System and Software Versions

  • Operating System: – Debian 9 (Stretch)
  • Software: – Logstash 5.2

Requirements

Privileged access to your Debian system will be required.

Difficulty

EASY

Conventions

Read more

How to install Java SE Development Kit on Debian Linux

Objective

The objective of this guide is to provide a simple to follow steps on how to install Java SE Development Kit on Debian Linux.

OS and Software Version

  • Operating System: Debian 9 (Stretch)
  • Software: Java SE Development Kit 8

Requirements

Privileged access to your Debian Linux is required. Optionally, curl will be used to download an appropriate Java JDK tarball.

Difficulty

EASY

Conventions

Read more

PHP 7 - speed

Installation of the latest bleeding edge PHP 7 on Debian 8 Jessie Linux

Introduction

PHP 7 - speedDebian’s current stable package repository may not always contain an up to date software to be in line with
our expectations. There is a very good reason for this, such as a stable system as a trade-off for running bleeding edge software.

PHP server-side scripting language is not an exemption! At
the time of writing the current Debian’s PHP version is 5.6.29 whereas the latest PHP source release is 7.1.0( given that there is no PHP 6 at all ).

The current PHP developer’s claims put PHP 7 in front of PHP 5.6 in terms of speed, where PHP 7 is supposed to be as twice as fast as its predecessor:

Thanks to the new Zend Engine 3.0, your apps see up to 2x faster performance and 50% better memory consumption than PHP 5.6, allowing you to serve more concurrent users without adding any
hardware. Designed and refactored for today’s workloads, PHP 7 is the ultimate choice for web developers today.

Reference: zend.com/en/resources/php-7

Objective

To compare a speed between PHP 5.6 and latest PHP 7.1.0 is not an objective of this article. However, the objective is the get that latest PHP 7 release installed on Debian 8 system. Additionally we
will install PHP-FPM (FastCGI Process Manager). This guide will offer two possible installations.

Read more

Debian apt-get squeeze sources.list

Related sources.list repositories:
Wheezy,
Jessie,
Stretch,
Buster

Security Updates

# /etc/apt/sources.list :
deb http://security.debian.org/ squeeze/updates main contrib non-free
deb-src http://security.debian.org/ squeeze/updates main contrib non-free

Australia Mirror

# /etc/apt/sources.list :
deb http://ftp.au.debian.org/debian/ squeeze main contrib non-free
deb-src http://ftp.au.debian.org/debian/ squeeze main contrib non-free

Read more

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