Debian
-
How To Create Temporary and Permanent Redirects with Nginx
Introduction HTTP redirection is way to point one domain or address to another. There are a few different kinds of redirects, each of which mean something different to the client browser. The two most common types are temporary redirects and permanent redirects. Temporary redirects (response status code 302 Found) are useful if a URL temporarily needs to be served from a different location. For example, if you are performing site maintenance, you may wish to use a temporary redirect from…
-
How To Protect SSH with Fail2Ban on Debian 11
Introduction SSH is the de facto method of connecting to a cloud server. It is durable, and it is extensible — as new encryption standards are developed, they can be used to generate new SSH keys, ensuring that the core protocol remains secure. However, no protocol or software stack is totally foolproof, and SSH being so widely deployed across the internet means that it represents a very predictable attack surface or attack vector through which people can try to gain…
-
How To Set Up a Firewall with UFW on Debian 11
Introduction UFW, or Uncomplicated Firewall, is a simplified firewall management interface that hides the complexity of lower-level packet filtering technologies such as iptables and nftables. If you’re looking to get started securing your network, and you’re not sure which tool to use, UFW may be the right choice for you. This tutorial will show you how to set up a firewall with UFW on Debian 11. Prerequisites To follow this tutorial, you will need one Debian 11 server with a…
-
Linux Mint Debian Edition Makes Me Believe It’s Finally the Year of the Linux Desktop
It wasn’t long ago that I decided to ditch my Ubuntu-based distros for openSUSE, finding LEAP 15 to be a steadier, more rock-solid flavor of Linux for my daily driver. The trouble is, I hadn’t yet been introduced to Linux Mint Debian Edition (LMDE), and that sound you hear is my heels clicking with joy. LMDE 6 with the Cinnamon desktop. Allow me to explain. While I’ve been a long-time fan of Ubuntu, in recent years, it’s the addition of…
-
How To Install and Use LinuxBrew on a Linux VPS
Status: Deprecated This article is deprecated and no longer maintained. Reason Homebrew now provides mainline support for Linux. See Instead This article may still be useful as a reference, but may not work or follow best practices. We strongly recommend using a recent article written for the operating system you are using. How to Install and Use Homebrew on Linux Intro LinuxBrew is a Linux-fork of the popular Mac OS X HomeBrew package manager. LinuxBrew is package-management-software, which enables installing…
-
How To Install Node.js on Debian 10
Introduction Node.js is a JavaScript runtime for server-side programming. It allows developers to create scalable backend functionality using JavaScript, a language many are already familiar with from browser-based web development. In this guide, you will learn how to install Node.js on a Debian 10 server three different ways: Using the default Debian repository Using a PPA software repository Using NVM (Node Version Manager) to install and activate different versions of Node. For many users, using apt with the default repository…
-
How To Setup a Firewall with UFW on an Ubuntu and Debian Cloud Server
Introduction Setting up a functioning firewall is crucial to securing your cloud server. Previously, setting up a firewall was done through complicated or arcane utilities. Many of these utilities (e.g., iptables) have a lot of functionality built into them, but do require extra effort from the user to learn and understand them. Another option is UFW, or Uncomplicated Firewall. UFW is a front-end to iptables that aims to provide a more user-friendly interface than other firewall management utilities. UFW is…
-
How To Configure the Apache Web Server on an Ubuntu or Debian VPS
Introduction Apache is one of the most popular web servers on the internet. It is used to serve more than half of all active websites. Although there are many viable web servers that will serve your content, it is helpful to understand how Apache works because of its ubiquity. This article will examine some general configuration files and the options that can be controlled within them. This article will follow the Ubuntu/Debian layout of Apache files, which is different from…
-
How To Import and Export Databases in MySQL or MariaDB
Introduction Importing and exporting databases is a common task in software development. You can use data dumps to back up and restore your information. You can also use them to migrate data to a new server or development environment. In this tutorial, you will work with database dumps in MySQL or MariaDB (the commands are interchangeable). Specifically, you will export a database and then import that database from the dump file. 1-Click deploy a database using DigitalOcean Managed Databases. Let…