sysadmin Articles






Backup and restore apt packages on Debian-Ubuntu

Suppose you want to install all the apt packages already installed on one server to another one. On the source machine execute the following commands to make a list of installed packages and their “states” (installed manually or automatically): sudo dpkg --get-selections > pkgs_selection.lst sudo apt-mark showauto > …

A simple Python email gateway

Say you have a Django web application that you want to integrate with emails to make it possibile to send data and files to your web application over SMTP. The good news is that Python has a simple SMTP daemon in the standard library, together with modules to parse emails …


Configure SFTP access to your Ubuntu server through SSH

Sometimes you have to give your users a way to manage files on your server. A typical scenario is a web server where your users manage their websites by themselves. The classical approach in this scenario was to use FTP to give file management capabilities to your users, but it …

How to turn your Raspberry PI in a Google Cloud Print device

Google Cloud Print (GCP) is a quite useful Google service, allowing you to print in a GCP compliant printer from everywhere and from every device of yours, be it a desktop, a tablet or a smartphone. There are quote a lot of printers out there supporting GCP out of the …