Debian

How to Install vsftpd FTP Server on Debian 12

To install the vsftpd FTP server on Debian 12 (Bullseye), you can follow these steps:Step 1 : Connect to your Debian 12 server using an SSH client or access the server directly.Step 2 : Update the package list and upgrade existing packages by running the following commands:sudo apt update sudo apt upgrade Step 3 : Install the vsftpd package by executing the following command:sudo apt install vsftpd Step 4 : Once the installation is complete, the vsftpd service will start automatically. You can v

How to Enable SSH Password Login on Debian 12

In Debian 12 (Bullseye) and newer versions, SSH password login is disabled by default for security reasons. However, if you still want to enable SSH password login, you can follow these steps:Step 1 : Connect to your Debian 12 server.Step 2 : Open the SSH configuration file /etc/ssh/sshd_config in a text editor with elevated privileges. For example:sudo nano /etc/ssh/sshd_config Step 3 : Look for the following line in the file:#PasswordAuthentication yes Step 4 : Remove the leading # to uncommen

How to Setup SFTP Server on Debian 12

To set up an SFTP server on Debian 12, you can use OpenSSH, which provides secure file transfer capabilities. Here's a step-by-step guide:Step 1 : Install OpenSSH Server:sudo apt update sudo apt install openssh-server Step 2 : Open the SSH server configuration file using a text editor. For example, using Nano:sudo nano /etc/ssh/sshd_config Step 3 : Find the following line in the file and uncomment it by removing the # at the beginning if it exists:#Subsystem sftp /usr/lib/openssh/sftp-server Cha

How to Zip or Unzip Files on Debian 12

To zip or unzip files on Debian 12, you can use the zip and unzip commands. Here's how you can use them:Install the ZIP and UNZIP Step 1 : Open a terminal on your Debian 12 system.Step 2 : Run the following command to update the package list:sudo apt-get update Step 3 : Run the following command to install the zip and unzip packages:sudo apt-get install zip unzip Zip files Step 4 : Navigate to the directory where the files you want to zip are located:cd /path/to/files Step 5 : Use the zip comman

How To Deploy a React Application with Nginx, PM2 on Debian 12

To deploy a React application with Nginx and PM2 on Debian 12, you can follow these steps:Step 1 : Install Nginx:- Refer to this guide for installing Nginx on Debian 12Step 2 : Install PM2:- Refer to this guide for installing PM2 on Debian 12Step 3 : Create a new React application:- Run the following command to create a new React application using Create React App:npx create-react-app my-app Replace my-app with the desired name for your application.Step 4 : Build your React application:- Change

How to Set Up Nginx as a Reverse Proxy Server for PM2 on Debian 12

To set up Nginx as a reverse proxy server for PM2, you can follow these steps:Step 1 : Install Nginx:sudo apt update sudo apt install nginx Step 2 : Configure Nginx as a reverse proxy:Create a new configuration file for your domain using a text editor. In this example, we'll use example.com as the domain name:sudo nano /etc/nginx/sites-available/example.com Step 3 : Inside the file, add the following configuration::server { listen 80; server_name example.com; location / { pr

How to Install PM2 on Debian 12

To install PM2 on Debian 12, you can follow these steps:Step 1 : Open a terminal session.Step 2 : Update your package index:sudo apt update Step 3 : Install PM2 globally using npm:sudo npm install --global pm2 This command will download and install PM2 globally on your Debian 12 system.Step 4 : Verify the installation by checking the version of PM2:pm2 --version You should see the version number displayed if the installation was successful.Step 5 : (Optional) Initialize PM2 as a startup service:

How to Install Yarn on Debian 12

To install Yarn on Debian 12, you can follow these steps:Method 1 : Using npm Step 1 : Open a terminal.Step 2 : Install Yarn globally using npm:npm install --global yarn This command will download and install Yarn globally on your Debian 12 system.Step 3 : Verify the installation by checking the version of Yarn:yarn --version You should see the version number displayed if the installation was successful.Method 2 : Using PPA Step 4 : Update your package index:sudo apt update Step 5 : Install the

How to Install NVM on Debian 12

NVM stands for Node Version Manager. It is a command-line tool that allows you to easily manage multiple versions of Node.js on your system. NVM provides a convenient way to install, switch between, and manage different versions of Node.js for different projects or applications.To install NVM on Debian 12, you can follow these steps:Step 1 : Open a terminal.Step 2 : Update your package index:sudo apt update Step 3 : Install the dependencies required for NVM:sudo apt install curl Step 4 : Downloa

How to Install Node.js on Debian 12

To install Node.js on Debian 12, you can follow these steps:Step 1 : Update the package index:sudo apt update Step 2 : Install the required dependencies for Node.js:sudo apt install curl dirmngr apt-transport-https lsb-release ca-certificates Step 3 : Add the NodeSource repository to your package sources:curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - This command adds the Node.js 20.x repository. You can replace 20.x with a different version if desired.Step 4 : Install Node.js

How to Install Let's Encrypt SSL in Apache on Debian 12

To install Let's Encrypt SSL on Apache in Debian 12, you can follow these steps:Step 1 : Update your system:sudo apt update sudo apt upgrade Step 2 : Install the necessary packages:sudo apt install certbot python3-certbot-apache Step 3 : Configure Apache to use SSL:sudo a2enmod ssl Step 4 : Restart Apache for the changes to take effect:sudo systemctl restart apache2 Step 5 : Create a new Apache configuration file for your domain:sudo nano /etc/apache2/sites-available/example.com.conf Step 6 : Ad

How to Install Let's Encrypt SSL in Nginx on Debian 12

To install Let's Encrypt SSL in Nginx on Debian 12, you can follow these steps:Step 1 : Ensure that your domain is correctly pointed to your server's IP address and that Nginx is installed and running correctly.Step 2 : Open a terminal or SSH into your Debian 12 system.Step 3 : Update the package lists by running the following command:sudo apt update Step 4 : Install Certbot and the Nginx plugin by running the following command::sudo apt install certbot python3-certbot-nginx Step 5 : Configure N

How to Install WordPress with LEMP on Debian 12

To install WordPress with the LEMP stack (Linux, Nginx, MySQL, PHP) on Debian 12, you can follow these steps:Step 1 : Follow the instructions in this post to set up the LEMP stack on Debian 12. The tutorial provides detailed steps and explanations for the installation process..Step 2 : Create a MySQL database and user for WordPress:- Log in to MySQL as the root user: sudo mysql - Create a new database: CREATE DATABASE wordpress; - Create a new user and grant privileges:CREATE USER 'wordpressuse

How to Install phpMyAdmin with Nginx on Debian 12

To install phpMyAdmin with Nginx on Debian 12, you can follow these steps:Step 1 : Update System Packages:sudo apt update Step 2 : Install phpMyAdmin:sudo apt install phpmyadmin During the installation, you will be prompted to choose a web server. Select None and press Enter.Step 3 : Configure the database for phpMyAdmin:- When the prompt asks you to configure the database for phpMyAdmin, select "Yes" and press Enter.- Next, you will be asked to enter the MySQL application password for phpMyAdmi

How To Install WordPress with LAMP on Debian 12

To install WordPress on your Debian 12 server, you can follow these steps:Step 1 : Install LAMP Stack:If you haven't already installed the LAMP (Linux, Apache, MySQL, PHP) stack, please refer to the previous article on how to install it hereStep 2 : Create a MySQL Database and User:sudo mysql This command will open the MySQL command-line interface. Once you're inside MySQL, run the following commands to create a new database and user for WordPress:CREATE DATABASE wordpress; GRANT ALL PRIVILEGES