• Ubuntu 22.04 Nginx+PHP

    This will install Nginx and PHP 7.x on Ubuntu 18.04 or later and perform basic configurations needed to get it up and running. This is used to create servers to serve static content as well as minor PHP scripts that need to run on it. After we’ll set up SSL using LetsEncrypt and use it…

    Read More

  • Ubuntu 22.04 Install Samba

    So you want to use a linux server on local network. Great, but if you still have to access the files through ssh or ftp, it is troublesome. So why not access the files over samba network share? It is also great when you want to setup a simple NAS server on your local network.

    Read More

  • Proxmox with one Public IP

    The goal of this guide is to set up a Proxmox at a hoster who gives you only one public IP (V4 and / or V6) on a dedicated server.The goal is that all virtual machines have Internet and that you can forward port to them.

    Read More

  • Ubuntu 22.04 Tailscale VPN + Subnet router

    This is a step by step guide to install Tailscale VPN and setup Subnet router on Ubuntu OS. The guide will allow installation on both physical hardware, KVM virtual machine, as well as unprivileged LXC containers.

    Read More

  • PHP-FPM Restart Upon Crash

    PHP-FPM service, when running as socket, seems to crash making Nginx output errors and users frustated. This is a simple fix to bypass the issue with auto restarting the php upon crash. Although it is recommended to see why the crash occurs in first place and fix that first.

    Read More

  • Ubuntu Add Sudo User

    It is best not to use root user for anything as root is a common user name. It’s better to create sudo users for these purposes. Here’s the easiest way to add a user to sudo group.

    Read More

  • Ubuntu 22.04 SSH + TOTP

    In order to protect your SSH against hacks, the most basic you can do is to change the port, but that is never enough. We know the basics to be disable root logins, change port, enable pubkey authentication, IP based blocking and so on. However, one shoe never fits all. If you keep changing computers,…

    Read More

  • Nginx SSL Site Config

    Sample configuration used for most SSL sites.

    Read More

  • ESP OTA code upload

    When ESP is installed on a project, the USB port is not always accessible. Sometimes, even though the USB is accessible, the device is installed on site and bringing along your laptop to reprogram it is troublesome. It is more convinient to just reprogram it over the air (OTA).

    Read More

  • Nginx + PHP continious output

    Some times we requrire the page to display partial content, such as progress while the PHP is still working in background. In apache, disabling output buffering works fine, however for nginx, the following code need to be added on top of any PHP script (before output stats).

    Read More