AKZN Notes

Archives for My Lazy and Forgetful Mind

Tag: Ubuntu

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 […]

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 […]

Using Rclone to sync file to Google Drive on Ubuntu

As of now, Google has yet to release an official backup/sync client for Linux. The following write-up describes an approach for using an open source package, rclone, to automate backups from Linux to Google drive. Download/install rclone: To download/install rclone: $ cd $HOME $ curl https://rclone.org/install.sh | sudo bash … rclone v1.53.1 has successfully installed. […]

Install FreeRADIUS & daloRADIUS on Ubuntu 20.04 + MySQL/MariaDB

taken from https://bytexd.com/freeradius-ubuntu/ with a few update to support daloRADIUS with freeradius v3.0. (as is, daloradius only support freeradius v2, and accounting will error) (TBA) add mikrotik radius client (TBA) add tutorial sqlcounter daloradius scheme to freeradius In this tutorial we’ll install FreeRADIUS on a server running Ubuntu 20.04 and configure it to work with […]

Windows Ubuntu Virtual Box Update Hash Sum Missmatch Fix

On installing Ubuntu as guest from Windows Host, if you got an error Update Hash Sum Missmatch Fix, this is a fix for that Based on https://askubuntu.com/a/1242739 Try this before running apt: $ sudo bash # mkdir /etc/gcrypt # echo all >> /etc/gcrypt/hwf.deny Because apt use sha256 method from libgcrypto20, but optimized too much. We […]

Keep Processes Running After Ending SSH Session

Problem Let’s say I launch a bunch of processes from a ssh session. Is it possible to terminate the ssh session while keeping those processes running on the remote machine? Solution 1. Using built-in bash command For new task nohup nohup long-running-command & It was made specifically for this, it even logs stdout to nohup.log. […]

INSTALL aria2 to Ubuntu VPS

[VPS][UBUNTU] INSTALL aria2 Table of Contents Install Aria2 Make and configure aria2 config Make the service handler aria2 on init.d install Aria2 Webui Install Aria2 sudo apt install aria2 Make and configure aria2 config install to your path sudo nano /path/to/config/aria2/aria2.conf configure as required, uncomment the rpc part if you want to use aria2 webui […]

Installing and managing LAMP Webserver

Install LAMP Automatic i’m not suggesting this because more often than not i got error instlalation. Run the below command in terminal: php latest wget –no-cache -O – https://raw.githubusercontent.com/akzn/lamp-stack-install/main/lamp-install.sh | bash php 7.4 https://github.com/akzn/lamp-stack-install/blob/main/lamp-stack-install-php7.4 low spec device my suffer slow install or hang if using automatic install Manual php 7.4 follow https://github.com/akzn/lamp-stack-install/blob/main/lamp-stack-install-php7.4 then change mysql […]