Posts

Rclone backup all VPS to microsoft onedrive

In this tutorial, How to use Rclone backup all VPS to microsoft onedrive. It's very simple, free to backup all to Cloud with Rclone. Rclone supports a lot of Cloud services Google Drive Amazon S3 Openstack Swift / Rackspace cloud files / Memset Memstore Dropbox Google Cloud Storage Amazon Drive Microsoft OneDrive Hubic Backblaze B2 Yandex Disk SFTP The local filesystem Install Rclone on VPS Link direct download here : I use Ubuntu server on VPS. cd /root/ wget https://downloads.rclone.org/rclone-current-linux-amd64.zip unzip rclone-current-linux-amd64.zip cp rclone-v*-linux-amd64/rclone /usr/sbin/ rm -rf rclone-* Rclone command basic rclone config – Configure the connection to the cloud service. rclone copy – Copy files from server to cloud, skip if data already exists. rclone sync – Synchronize between server and cloud, only update data on cloud. rclone move – Move files from server to cloud. rclone delete – Delete the data of the folder. rclone purge – Deletes the data of the fol...

Guide to Issue Let's Encrypt certificates for multiple websites Nginx

Introduction Learn how to issue Let's Encrypt certificates for multiple websites using Nginx . This comprehensive guide covers installation, configuration, automation, and more, ensuring your websites stay secure and compliant. Securing your websites with SSL/TLS certificates is crucial for protecting data, enhancing user trust, and improving search engine rankings. Let's Encrypt offers a free, automated, and open-source solution for obtaining SSL certificates, making it easier than ever to secure your websites. In this tutorial, we will walk you through the steps to issue Let's Encrypt certificates for multiple websites using Nginx. By following this guide, you'll be able to configure Nginx to use SSL, automate the renewal process, and ensure all your sites remain secure. What is Let's Encrypt? Let's Encrypt is a certificate authority that provides SSL/TLS certificates for free. It automates the process of certificate issuance, making it accessible even for use...

How to Install Caddy on Ubuntu

Introduction Caddy is an innovative, user-friendly web server that simplifies website management with its automatic HTTPS capabilities and straightforward configuration. Known for its exceptional ease of use, Caddy has quickly become a preferred choice for developers looking to deploy web servers with minimal hassle. In this guide, we will walk you through the steps to install Caddy on Ubuntu, ensuring you can leverage its powerful features for your web projects. Prerequisites A Ubuntu OS. A root user access or normal user with administrative privileges. Installing Caddy on Ubuntu  Step 1: Update Your System Before installing any new software, it's crucial to ensure that your system is up to date. Open your terminal and run the following commands: Copy code sudo apt update sudo apt upgrade -y These commands will refresh your package list and install the latest updates for your installed packages, ensuring your system is prepared for the Caddy installation. Step 2: Add Caddy's ...

How to installing Docker in Raspberry Pi 4: A Step-by-Step Guide

Introduction Learn how to install Docker on a Raspberry Pi 4 with our step-by-step guide. Set up Docker, Docker Compose, and deploy your first application on Ubuntu OS. Perfect for developers and enthusiasts. The Raspberry Pi 4 is a versatile mini-computer, ideal for running a variety of applications, including Docker containers. Docker is a powerful platform that simplifies application deployment by packaging software into containers. This guide will walk you through the process of installing Docker on a Raspberry Pi 4, using Ubuntu OS as the operating system. Whether you are a developer, a system administrator, or a tech enthusiast, this tutorial will provide you with the knowledge to get Docker up and running on your Raspberry Pi. What is Docker? Docker is an open-source platform that automates the deployment, scaling, and management of applications. It allows you to package an application and its dependencies into a standardized unit called a container. Containers are lightweight...

Master the curl command cheat sheet

Introduction Learn how to use the curl command like a pro with this in-depth guide. This cheat sheet covers everything from basic HTTP requests to advanced options, helping you make the most out of curl’s powerful features. The curl command is one of the most powerful and versatile tools available in the Linux command line for making HTTP requests and interacting with a wide range of protocols. Whether you're fetching data from a web server, uploading files via FTP, or simply testing an API, curl has got you covered. This guide aims to be your go-to resource for mastering the curl command, offering a detailed cheat sheet along with practical examples to help you understand and utilize its full potential. If you’ve ever found yourself lost in the myriad of curl options and flags, this article is for you. With over 1600 words of detailed explanations, you’ll walk away with the knowledge needed to leverage curl like a true Linux expert. Let’s dive in! What is Curl? Curl stands for Cl...

Secure Your SSH Logins: How to enable SSH 2FA on AlmaLinux

Image
Introduction Enabling two-factor authentication (2FA) for SSH logins on AlmaLinux significantly enhances your system’s security by adding an extra layer of protection. In this tutorial, we'll guide you through the process of setting up 2FA, ensuring your SSH connections are more secure against unauthorized access. This method integrates the use of Google Authenticator, providing a simple and effective way to bolster your server’s defense. Follow these detailed steps to configure 2FA on your AlmaLinux system, and safeguard your data with an additional verification step every time you log in. Install the Google Authenticator on AlmaLinux sudo dnf install epel-release -y sudo dnf install google-authenticator qrencode qrencode-libs -y After install completes, I will create a new secret key in ~/.ssh directory Run command as follows google-authenticator -s ~/.ssh/google_authenticator The output terminal as below [root@DevopsRoles ~]# google-authenticator -s ~/.ssh/google_authenticator ...

How to Perform speed test command line linux - Quick and Accurate Methods

Image
Introduction In the world of network administration and troubleshooting, knowing how to test your internet speed efficiently is a must. For Linux users, there are powerful command-line tools available to perform speed tests without the need for graphical interfaces or third-party applications. This article will guide you through several methods to measure download, upload, and ping speeds directly from the terminal, making it easier to diagnose connectivity issues and optimize your network performance. In this tutorial, How to  run a Speedtest from your command line. The requirement Nodejs version > 8+.  speed test command line Install speed test command line [vagrant@localhost ~]$ wget https://nodejs.org/dist/v14.15.4/node-v14.15.4.tar.gz [vagrant@localhost ~]$ tar xvf node-v14.15.4.tar.gz [vagrant@localhost ~]$ cd node-v14.15.4/ [vagrant@localhost node-v14.15.4]$ sudo ./configure [vagrant@localhost node-v14.15.4]$ sudo make [vagrant@localhost node-v14.15.4]$ sudo make ins...

Rasberry Pi 4 can't connect to WiFi ubuntu server [fixed]

Introduction In this tutorial, How to connect to WiFi ubuntu server on Rasberry Pi  4. Today, I buy Rasberry PI 4 new and install ubuntu 20.04 LTS. root@ubuntu:~# cat /etc/lsb-release DISTRIB_ID=Ubuntu DISTRIB_RELEASE=20.04 DISTRIB_CODENAME=focal DISTRIB_DESCRIPTION="Ubuntu 20.04.1 LTS" root@ubuntu:~#  after finish, Rasberry Pi 4 no identify ip address of wilfi. :D.  Rasberry Pi 4 can't connect to WiFi ubuntu server [fixed] The first, check network interface your system. ll -la /sys/class/net/ Create new file config for wifi " /etc/netplan/wlan.yaml" apply configure and reboot netplan apply The result, as below root@ubuntu:~# ll -la /sys/class/net/ total 0 drwxr-xr-x  2 root root 0 Jan  1  1970 ./ drwxr-xr-x 74 root root 0 Jan  1  1970 ../ lrwxrwxrwx  1 root root 0 Jan  1  1970 eth0 -> ../../devices/platform/scb/fd580000.ethernet/net/eth0/ lrwxrwxrwx  1 root root 0 Jan  1  1970 lo -> ../../devices/virtual/net/l...