To set up a Redis master-slave replication on Debian 12, you’ll follow these general steps on each server to configure the master and slave nodes: Step 1: Install Redis Step 2: Configure Redis Master Step 3: Configure Redis Slave On the slave server(s), edit the configuration to connect to the master server. Step 4: Testing… Continue reading
Posts in "dev"
How to create a user with sudo privileges on Debian 12, an run commands without needing to type a password
To create a user with sudo privileges on Debian 12, allowing them to run commands without needing to type a password, follow these steps: Then, add the following line at the end of the file: Replace username with the actual username you created. The user now has sudo privileges and can run commands without entering… Continue reading
How to Install MariaDB on Debian 12 Bookworm ?
To install MariaDB on Debian 12, follow these steps: 1. Update Package Index Start by updating the package index to ensure your system has the latest information on available packages. 2. Install MariaDB Server Use the following command to install the MariaDB server and client: 3. Start and Enable MariaDB Service Once installed, start the… Continue reading
How to Set Up a SWAP Disk Using a Volume in Linode
When using a Linode VM, I needed to set up a custom swap configuration. A custom swap means utilizing a Volume Disk outside of the Virtual Machine’s primary storage. The first step is to create the desired volume, for example, a 20 GB volume. Second step, configure a newly attached 20 GB Linode volume as… Continue reading
How to Install Node.js v20.x on Debian 12
Node.js has become a critical component for building fast, scalable web applications. If you’re using Debian 12 and want to install the latest version of Node.js, such as v20.x, here’s a quick guide to get you started. Step 1,Update Your System Before installing Node.js, it’s always a good idea to ensure your system is up-to-date…. Continue reading
How to setup Docker and run Docker Compose for Managing multi-container on Debian 12 Bookworm
Part 1, Install Docker and Docker Compose Here’s a step-by-step guide to install Docker and Docker Compose on Debian 12 Bookworm Step 1: Update System Packages Ensure your system packages are up to date before starting the installation. Step 2: Install Required Dependencies Install packages that allow apt to use HTTPS and required tools for… Continue reading
How To Setup 4 GB of SWAP file on an Azure Debian 12
To set up a 4 GB swap file on an Azure Debian 12 virtual machine, follow these steps: 1. Check for Existing Swap Before creating a new swap file, check if swap space is already enabled: If nothing is returned, then no swap space is currently active. 2. Create a Swap File You can create… Continue reading
How to Create a .ppk Key from an Existing RSA OpenSSH Key Using Xshell
When managing secure SSH connections, different applications often require different key formats. While Xshell, a powerful terminal emulator, is fully compatible with OpenSSH key files, other applications like HeidiSQL often require a .ppk key for authentication. If you have an RSA OpenSSH key and need to use it with an application that requires a .ppk… Continue reading
Automate Bash Script Execution at System Boot on Debian 12 Using systemd
There are many occasions when we need to run a bash script every time a Linux server boots. This can be particularly helpful for tasks such as mounting storage, starting services, and other essential Linux configurations. Here are the steps to set up bash script execution on server boot using Debian 12. Step 1 :… Continue reading
Install RabbitMQ On Azure Debian 11
The script from the RabbitMQ official documentation is a good reference from any Debian 11 distro, especially for Azure which only have Debian 11 as the latest to install RabbitMQ Based on the link and ensuring compatibility with Debian 11 (“bullseye”), here is the revised script incorporating the necessary changes Run the following command to… Continue reading