Automatic security updates

Configure automatic security updates on Ubuntu (How to secure a web server – Part 3)

05-15-2018 Alex 0

One of the key aspects to security on Linux systems is the regular updates the community makes to the distribution and packages. A lot of those updates are meant to improve security and fix potential vulnerabilities. For this reason, it’s important to keep your system up to date, especially on a publicly available server. But doing it manually would be a time consuming process, it would involve regularly login into your server and running updates. Instead, it’s much easier to configure a tool that will do it automatically for you. In this article we’ll learn how to enable automatic security updates on Ubuntu, using unattended-upgrades.

UFW firewall

Use UFW as a firewall (How to secure a web server – Part 2)

04-28-2018 Alex 0

The main tool to set up the firewall on Ubuntu is iptables. It is powerful, but very complicated to learn. Fortunately, there is an alternative called UFW (for Uncomplicated FireWall), that is described by Ubuntu as “a frontend for iptables”. Basically, UFW lets you set rules for your firewall in a much easier way that iptables does. Let’s learn how to set some basic rules using UFW!

SSH security

Improve SSH security (How to secure a web server – Part 1)

04-28-2018 Alex 0

In this series of tutorials we’ll take a look at basic server security, and in this first article we’ll learn how to improve SSH security. Any machine connected to the Internet immediately becomes a potential target to any kind of attack (hackers, automatic bots, …). Security is somewhat less of a concern for regular Web hosting (shared hosting or managed hosting for example), as most of it is managed by your hosting provider. Servers that you fully manage, however, come with absolutely no security out of the box. This is the case for most dedicated servers, VPS (Virtual Private Servers) and Cloud platforms (AWS, Google Cloud, …).

Threaded socket server in Python

04-21-2018 Alex 0

We’ve already seen how to create a simple socket server in Python, but sometimes we need to handle multiple incoming requests simultaneously, that require processor-heavy computation from the server. That’s what a threaded socket server can achieve.

Installing and getting started with MicroPython on a ESP8266

03-07-2018 Alex 0

The ESP8266 is an amazing microcontroller that includes a Wifi chip, for a very low price (about $15 for two on Amazon). It offers enough resources to make it the ideal microcontroller choice for most Internet of Things projects. There are several ways to program it, including but not limited to, pseudo-C++ with the Arduino IDE, LUA scripts or MicroPython. In this tutorial we will learn how to set up the ESP8266 with a MicroPython firmware, making it possible to run MictoPython scripts.

Install Mosquitto on a Raspberry Pi

01-28-2018 Alex 0

In this tutorial we’ll learn how to install Mosquitto on a Raspberry Pi. The goal is to use the Raspberry Pi as a MQTT broker in an IoT application. We’ll install Mosquitto, configure it and test it to make sure everything was correctly set up.

Final power supply board

How to build a dual voltage power supply for your breadboard

01-14-2018 Alex 0

One of the most popular articles on this website is the tutorial on how to build a 5V power supply on a breadboard. Following up on that, today we’re going to build a power supply that can output both 3.3V and 5V at the same time. This is particularly useful for circuits where both voltages are needed. We will solder the components on a small protoboard, which will conveniently plug directly into the power rails of our breadboard.

Enable syntax coloring in Nano on Mac OS X

12-14-2017 Alex 0

The basic version of Nano that comes with Mac OS X doesn’t support syntax coloring, and it’s pretty hard to find clear information online about how to enable it. Here is a quick guide on how to enable syntax coloring in Nano on Mac OS X.

python socket server

Simple socket server in Python

11-15-2017 Alex 0

Sockets are one of the most commonly used communication tools on computers, but they can be hard to understand at first. If you break it down however, it’s easy to understand how to use them. In this tutorial we’re going to learn how to implement a simple socket server in Python, that will accept a single client connection.

python keylogger

Simple keylogger with Pynput in Python

11-05-2017 Alex 0

In this tutorial we will focus on logging keyboard events using the Pynput library in Python. I have a Raspberry Pi that I use without a keyboard or mouse, and that is plugged in to my TV. As I mentioned in this tutorial on xdotool, my end goal is to play old games with RetroPie. The only problem is that it’s impossible to control the games over SSH. One possible solution that I found, is to use my laptop to send keyboard events to the Rasperry Pi’s OS.

1 2 3