Most of the Sysadmins don’t prefer to use / directory to store their files or databases. So if they have installed MongoDB database server, by default it stored all data in /var/lib/mongo (version/os specific). In this tutorial, we will change the MongoDB default data path to other directories where we have attached a new disk (EBS volume in AWS). Instruction’s to Change MongoDB Default Data Path: 1. Before making any changes, stop mongodb service sudo systemctl stop mongod.service 2. Now change the location mongo directory to elsewhere on the filesystem as per need. For this tutorial, create a data directory…
Author: Rahul
The CASE statement is a powerful conditional statement in Bash that allows you to test a variable against a list of values. It is a more concise and efficient alternative to using multiple if-then statements. Many times it is a good alternative to if-else statements. You can also use it for processing the command line arguments in a shell script. In this article, we will introduce you to the CASE statement in Bash and provide examples of how it can be used in Bash scripts. The syntax of the CASE statement in Bash The syntax of the CASE statement in…
What is GPT Partition ? GPT (GUID Partition Table) is a standard for the layout of the partition table on a physical hard disk, using globally unique identifiers (GUID). GPT is a part of the EFI standard that defines the layout of the partition table. GPT is useful for creating filesystem on disk larger than 2TB. For smaller size of disks generally we use MBR but it does not support disk over 2TB. sgdisk is a command-line GUID partition table (GPT) manipulator for Unix like systems. In this article we are using sgdisk command to Clone/Copy a GPT Partition Table…
In this comprehensive tutorial, we will delve into the Bash if elif else statement, a crucial control structure in shell scripting. Bash, an acronym for Bourne-Again SHell, is a Unix shell and command-line interpreter that has become the default shell for many Linux distributions and macOS. Mastering the if elif else statement will greatly enhance your ability to write efficient and flexible shell scripts. 1. Understanding Bash if elif else Statement The if elif else statement is a control structure that allows you to execute a block of code based on whether a given condition is true or false. It…
When using Linux, it’s common to work with servers that are not nearby. To handle files and folders on these distant servers, you need a way to reach their files securely. One good way to do this is by connecting to the remote file system over SSH (Secure Shell). SSHFS is a tool that lets you connect to folders on a remote server through SSH, right from your own computer. To get SSHFS, you simply install it using the package manager specific to your Linux distribution. Once installed, SSHFS allows you to access and manage remote directories as if they…
VNC ( Virtual Network Computing ) Servers enables remote desktop access for Linux systems similar to MSTSC in windows. Generally Linux administrators doesn’t prefer to use windows access, But some times we required to have access remote desktop of Linux. In that case we need to install vnc server on our Linux system. This tutorial will help you to Setup VNC Server and configure remote access for users on CentOS, RHEL and Fedora Users. Step 1: Install Required Packages Most of Linux servers doesn’t have desktop installed on their system. So make sure you have installed else use following command…
Installing Apache OpenOffice on Fedora is a simple process that allows you to use a powerful, free office suite on your computer. OpenOffice includes programs like a word processor, spreadsheet, and presentation maker, which are similar to Microsoft Office. In this guide, we will explain how to install Apache OpenOffice on your Fedora system in easy steps. Whether you are new to Fedora or installing software for the first time, this guide will help you get started quickly and easily. System Requirements: Operating System: Fedora 30 or higher. Processor: 64-bit (x86-64) or higher. Memory: At least 256 MB of RAM,…
MariaDB 10.0 Stable version has been released and available to install using yum package manager. Today we have upgrading TecAdmin.net database server from MariaDB 5.5 to MariaDB 10.0 using Yum. This upgrade goes very smooth for me. But be carefully and keep backup for you all database to recovery from unnecessary damage. Step 1: Backup Databases We recommend to backup all your databases before upgrading mariadb. You can use any tool as per your preference to do it. For this example i am taking a full backup of all databases using mysqldump. # mysqldump -u root -p –all-databases > alldb.sql…
Installing and configuring VsFTPd (Very Secure FTP Daemon) on Fedora Linux involves several steps. This article will guide you through the process, ensuring that you have a secure and efficient FTP server up and running. VsFTPd is known for its security and speed, making it a popular choice for setting up an FTP server on Linux systems. It supports both anonymous and authenticated FTP access and can be configured for high performance and security. Pre-requisites A system running Fedora Linux Sudo privileges or access to the root user Installation of VsFTPd 1. Update System Packages: Begin by updating your system’s…
Monit is a powerful, open-source utility for managing and monitoring Unix systems. Widely appreciated for its simplicity and ease of use, Monit conducts automatic maintenance and repair of system services, offering peace of mind for system administrators. This article provides a comprehensive, step-by-step guide to installing, configuring, and utilizing Monit on a Linux system. Step 1: Installing Monit Monit is available in the repositories of most Linux distributions. To install Monit, use your distribution’s package manager. For Debian/Ubuntu systems, you can use: sudo apt-get update sudo apt-get install monit For Red Hat/CentOS systems, use: sudo yum install monit For Arch…