Fix slow SSH startup in Debian Buster

How to fix SSH timeout kernel random crng init done in Debian Linux

Introduction

I noticed on some of my Debian Buster installs, SSH times out and then waits until “random: crng init done” happens before restarting and finally allowing remote logins. This can sometimes add an extra 1+ minutes to boot time and can be pretty annoying. So if you’re experiencing a problem with SSH hanging or timing out while you’re server is booting up, then hopefully this quick how-to guide will help you out!

CONTINUE READING

How to send mail from a Linux server using Gmail

How to send mail from Linux server with Gmail SMTP and DMA featured image

Introduction

This Linux mail tutorial will show you how to send mail from your Linux server using Gmail. DMA (Dragonfly Mail Agent) will be used to setup outgoing mail from a Linux server using a Gmail account to provide great deliverability. By using DMA you won’t have to deal with having bigger software like Exim, Postfix, etc installed. DMA is a small mail transport agent that’s perfect for servers (or even desktop computers) that only need to send outgoing e-mail like log files, notifications, security notifications from fail2ban, etc and it doesn’t need to listen on network ports. I use DMA on almost all of my servers and I absolutely love it.

CONTINUE READING

Setup a simple web server firewall using nftables

Setup a simple web server firewall with nftables

Introduction

Nftables is a framework created by the Netfilter Project and it replaces iptables in Debian Buster. Starting with Debian Buster, it’s recommended that you migrate from using iptables to nftables. If you need help migrating from iptables to nftables you can find a great guide here which shows how to use some neat and easy to use tools to translate iptables rules to nftables.

The reason why nftables was created was because the old iptables framework had issues concerning performance, scalability, code, etc. I personally chose to start using nftables (besides it becoming default in Debian Buster) because I really liked the new syntax used in nftables and it kind of reminds me of PF.

CONTINUE READING

Install PHP 7.3 on Debian Stretch

Debian Stretch PHP 7.3 installed using the DEB SURY PHP package repo

Introduction

This tutorial will show you how to easily use PHP 7.3 on Debian Stretch. You’ll notice that Debian Stretch only comes with PHP 7.0 and if you want better performance and the latest features, you might want to look at installing PHP 7.3 instead.

I’m going to show you to add the DEB SURY PHP package repo which will allow you to easily install PHP 7.3 on Debian Stretch. The DEB SURY PHP package repo was created and currently being run by Ondřej Surý, the official maintainer of PHP in Debian and Ubuntu. This means that the PHP 7.3 packages you install via this tutorial will be highly compatible when it comes to upgrading to the future Debian release which is Debian Buster.

CONTINUE READING

How to install MariaDB on Debian 10 Buster

Installing Mariadb server on Debian 10

Introduction

MariaDB is a popular open source database server that is developed by some of the original developers of MySQL and it includes numerous enhancements over standard MySQL. It is the default database server in Debian Buster and is a drop-in replacement for MySQL (although you might want to double check MariaDB vs MySQL compatibility before migrating from MySQL to MariaDB).

This how-to guide will show you how to easily install MariaDB on Debian 10 using the main Debian Buster repository.

CONTINUE READING