Install OpenJDK, Android command line tools and Android SDK on Ubuntu

Installing OpenJDK with Android SDK and tools

If you want to develop an Android application or game, it’s essential to have Java Development Kit (JDK), Android command line tools, and the SDK. With utilities like keytool, you can generate app signing keys, with, adb debug the application on a real device, with sdkmanager you can install Android SDKs and so on. In … Read more

How to configure Linux mail server using Docker and Mailu

Debian Linux Mailu setup

If you are an experienced system administrator you may want to setup your own email server. Setting up a custom email server is a challenging task, but you gain a better understanding of how email works and its inner mechanism by completing it. In this tutorial, you will learn how to setup a full-featured Linux … Read more

How to protect Linux server from bots and hackers

Protecting GNU Linux server from bots and hackers

You’ve rented a server or VPS/VDS. Your fresh new remote machine is here and you want to login right now. So do hackers and bots. But how to secure your server? Let’s figure out. Prerequisite: trustworthy hosting provider First, ensure that your server is hosted by a reliable server provider. If you use shared hosting, … Read more

Configuring Django app settings for production environment

Make Django settings secure

If you are running a Django project in a production environment then you have to take care of the way you manage your settings.py file. Most developers have one settings file for development and one for production. In this tutorial I will show you how to make your settings file meet production environment requirements. Is … Read more

How to use MySQL/MariaDB with Python, tutorial

How to use MySQL in Python

MySQL is the most popular open-source database management system. Today we will look at the usage of MySQL in Python via module mysql-connector-python also known as mysql.connector. Requirements Before you start, make sure you have the following: Basic Python 3 knowledge. Python and Pip installed. If not, run this command (for Debian and Ubuntu):sudo apt … Read more

How to setup Gunicorn and Nginx for Django on Debian

Installing and configuring Gunicorn with Nginx on Debian

If you develop your project on Django, then you probably know that you need a web server like nginx to serve your static files: images, stylesheets and so on. While Django has its own ability to serve static files, you should use it only during development. In this guide you will learn how to install … Read more

Fixing TemplateDoesNotExist Django error

Fixing Django TemplateDoesNotExist error

Django is a popular Python web framework. Because it is popular, a lot of people are learning Django. And if you’ve just started learning Django and are stuck with TemplateDoesNotExist error, see the solution in this article. “TemplateDoesNotExist at /” error So, when developing your Python Django web application, you can encounter the following error: … Read more

How to install Django, MariaDB on Debian 11

Configuring django with MariaDB on Debian

In this tutorial, I will show you how to install Django, MariaDB on Debian 11 (codenamed Bullseye) from official repository. This tutorial also applies to all Debian-based distribution, for example, Ubuntu. We will use Debian 11 because it is one of the most popular GNU/Linux distributions and is a well supported operating system. Installing Python … Read more

How to fix BadLength (poly request too large) Xlib error

How to fix BadLength error

In some of Xorg Linux applications you might see the following error when you use certain Unicode characters, like “❔” (fancy question mark): The numbers can be different, but the error persists. Typically, it crashes the application. There are various solutions to this problem, but I found the most optimal one. You just need to … Read more