Debian Server First Steps

In one of my previous posts I covered the what I consider to be the initial steps one should take when setting up the Debian (or any other Linux) server either self hosted on bare-metal or VPS in the cloud. Things have changed a bit since than and I thought it would be a good idea to share my thoughts in form of a guide and expand it a bit....

August 25, 2024 · 4 min

Unattended Upgrades

The unattended upgrades feature on Debian-based distros is very handy way to ensure that you are running up-to-date security patches and latest versions of software running. At some point when you reach a certain limit of running instances, like VMs and containers, it starts to be hard and time consuming to keep them all updated. I have servers running locally in my homelab, as well as numerous instances in the cloud....

March 1, 2024 · 3 min

Production deployment Django WSGI application on nginx and gunicorn

Following my previous post on nginx installation process, I will now describe the process of deploying a Django WSGI application on nginx. Tero Karvinen has a great guide on his website on deploying Django using Apache 2 webserver and mod_wsgi, which I have adapted to use for nginx. Install virtual environment The first step is to create a new virtual environment inside your directory. In this example, I will store my Django projects in the /home/evgeni/publicwsgi directory, and activate the virtual environment using the following commands:...

June 6, 2023 · 5 min

Setting up nginx web server on a fresh Debian 11 VM

For nearly my entire career, I’ve been using the Apache2 web server as my main solution for web hosting. For many years, Apache2 was the number 1 web server and the obvious choice. However, the competitor nginx has been on the rise and a few years ago, took the #1 spot away from Apache. I am now working on a new web project and decided to give nginx a try. I run my setup on a newly installed Debian 11 virtual machine that I acquired from Digital Ocean....

June 1, 2023 · 3 min