AKZN Notes

Archives for My Lazy and Forgetful Mind

Archives

Importing MySQL Gzipped Dump File via Terminal

Importing MySQL Gzipped Dump File via Terminal When dealing with MySQL databases, it’s common to export and import data for various reasons, such as backups or transferring data between environments. In this concise guide, we’ll focus on importing a gzipped MySQL dump file using the terminal on a system running Ubuntu. Step 1: Navigate to […]

How to Set Timezone Permanently on Ubuntu to UTC+7 (Indochina Time, ICT)

Introduction: Setting the correct timezone on your Ubuntu system is crucial for accurate timekeeping and proper synchronization. In this article, we will guide you through the process of permanently setting the timezone to UTC+7 (Indochina Time, ICT) using the timedatectl command. Step 1: Open a Terminal Open a terminal on your Ubuntu system. You can […]

Securing Your Website with Cloudflare SSL

Cloudflare offers powerful features to enhance the security and performance of your website. One crucial aspect is securing the communication between your visitors and Cloudflare, as well as between Cloudflare and your origin server. In this article, we’ll explore the SSL options provided by Cloudflare and how to choose the right configuration for your needs. […]

The Most Secure Way to Encrypt and Decrypt Your Data on PHP

The Most Secure Way to Encrypt and Decrypt Your Data Data security is a critical aspect of modern applications, and choosing a robust encryption method is paramount to protect sensitive information. In this guide, we’ll explore a secure approach to encrypt and decrypt data using PHP and OpenSSL. Generate Two Random Keys Before we delve […]

Change or Set autologin User on Armbian

This worked for me: added the following two lines to /etc/lightdm/lightdm.conf.d/22-armbian-autologin.conf autologin-user=<YOUR USER> autologin-user-timeout=0 the complete file: [Seat:*] autologin-user=pi autologin-user-timeout=0 user-session=xfce

Install OpenWRT on Bolt BL-100/BL-201 Using Script

This tutorial guides you through the installation of OpenWRT using a bash script, executed via a web browser interface of the BL-100/BL-201 router. This installation method is beginner-friendly as it can be done solely through the router’s web interface without the need for command line access. Installation Steps 💡 IMPORTANT: Ensure the router is connected […]

Run two PHP version on same server

Below is a simple Markdown tutorial for configuring Apache to run two PHP versions (PHP 7.4 and PHP 8.0) concurrently using PHP-FPM. This assumes you’re using a Linux system with Apache. Running Multiple PHP Versions with Apache and PHP-FPM before starting, check if we already has two php version sudo update-alternatives –display php Prerequisites Linux […]

Deploy NodeJs Application to VPS

Deploying a Node.js application to a Virtual Private Server (VPS) is a crucial step in bringing your web applications to life. In this guide, we’ll walk you through the process of setting up your VPS, transferring your Node.js code, and configuring the server to host your application efficiently. Deploy to VPS Set Up Your VPS: […]

Change OpenWRT Logo / Title Text on Luci Header Bolt BL 201

Some of Custom Openwrt Firmware has modified Openwrt Logo on luci header. And its getting value from OpenWRT Hostname such as OpenWRT shipped on custom BOLT BL201. If you want to modify its name here steps. To change the hostname in OpenWRT, you can follow these steps: SSH into your OpenWRT router: Use an SSH […]

How to deploy golang API backend

Step-by-Step Guide: Deploying a Golang API Backend on a Linux Server Prerequisites: You have a Golang API project ready. You have access to a Linux server. Apache is installed and properly configured on the server. Deployment Steps: 1. Check the .env File: Ensure your Golang project has a properly configured .env file containing all the […]