Author: Rahul

I, Rahul Kumar am the founder and chief editor of TecAdmin.net. I am a Red Hat Certified Engineer (RHCE) and working as an IT professional since 2009..

In the previous article we describe to how to Setup RAID-1 in RHEL/CentOS systems. Some times disks attached with the array get failed working, RAID simply mark it as faulty device and do not use it any more. In that situation we need to replace the faulty device with new working device. The below image is showing that /dev/sdc1 disk has been marked as faulty and new disk attached has taken place of that with complete data sync. In this article you will get to how to check which device is faulty and how to remove them from raid array.…

Read More

RAID stands for Redundant Array of Inexpensive (Independent) Disks. RAID-1 is also known as striping. RAID-1 required minimum two disks. The max data on RAID-1 can be stored to size of smallest disk in RAID array. In this article we are using CentOS 6.5 running with VMWare. I have added two virtual disks as /dev/sdb and /dev/sdc for configuring RAID-1 partition. Each disk size is 10GB and we will one partition on both disks of 5GB which will created as /dev/sdb1 and /dev/sdc1. Know few things about RAID-1 as below. Pros – Secure data from single disk failure as same…

Read More

SMTP (Simple Mail Transfer Protocol) is a protocol for sending email messages between servers. Most email systems that send mail over the Internet use SMTP to send messages from one server to another, and to deliver messages to local mail clients like Microsoft Outlook or Apple Mail. SSMTP is a simple and lightweight utility that allows users to send emails from the command line or shell scripts. It is especially useful for systems that don’t have a full-blown mail server installed, such as a headless server or a machine running on a cloud platform. In this article, we will show…

Read More
AWS

In the contemporary digital world, the seamless synchronization of files between local storage and cloud-based storage systems like Amazon’s Simple Storage Service (S3) is paramount. Whether you’re a business seeking to ensure data redundancy, a developer looking to streamline your workflows, or an individual aiming to back up your precious files, understanding the nuts and bolts of synchronization can be a game-changer. This article walks you through the step-by-step process of synchronizing files between your local storage and S3 buckets. Preparation To successfully perform this operation, you will need to have an AWS account with necessary IAM (Identity and Access…

Read More

Crontabs are very useful in Linux for scheduling repeated jobs. We can schedule any script or command to run on particular time interval. All the jobs executed by cron runs in background. As a system admin, we know the importance of backups of system or application configuration files and we do it through cronjob but most of time to forget to take back of cronjobs. This article will describe you to how to take backup of scheduled jobs for specific user or all users in system. To install or know more about Crontab refer our earlier articles. How to Install…

Read More

MariaDB is an relational database management system (RDBMS). Generally we use single node of database server for small application but think about application which have thousands of users keep online at a time, In that situation we need a structure which will capable to handle this load and provides high availability. So we need to add multiple database servers interconnected with each other and keep synchronized, so in case any server goes down other servers can take place of them and provide services to users. MariaDB Galera Cluster is an synchronous Active-Active multi-master cluster of MariaDB databases. Which keeps all…

Read More
AWS

S3cmd is created for managing S3 buckets on Linux servers. But we also use this tool on windows servers as well. This article will help you to setup s3cmd in windows systems. If you are searching here to setup s3cmd on Linux system read next article install s3cmd on Linux. S3cmd System Requirements: s3cmd required Python 2.7 or greater version to run. We also need to install GPG. Step 1 – Install Python Download and install python 2.7 or the higher version from python official site and install it. https://www.python.org/downloads/ After installing python, append the Python in Path environment variable.…

Read More

Ruby is a highly popular, interpreted, high-level programming language. It was designed by Yukihiro “Matz” Matsumoto to prioritize programmer productivity and fun. Ruby offers a simple syntax that’s natural to read and easy to write. In this tutorial, we’ll demonstrate how to install Ruby 3.2 on CentOS or Red Hat Enterprise Linux (RHEL) using the Ruby Version Manager (RVM). RVM is a command-line tool that allows you to easily install, manage, and work with multiple ruby environments. It gives you flexibility concerning the version of Ruby you want to use in your system and helps in managing/gem dependencies. In this…

Read More

All the sites running with SSL are used https protocol on default port 443. SSL provides secure data communication by encrypting data between server and client. In our earlier articles we have described about installing lighttpd and creating virtualhosts in CentOS/RHEL systems. This article will help you to configure SSL in Lighttpd server. For this example we are using an self signed certificate. If you are looking for configure ssl in Apache/HTTPD, then you have to this article. Step 1: Create Certificate Signing Request (CSR) For creating SSL certificate, the first requirement is to create private key and CSR. A…

Read More

VirtualHosting is an implementation of hosting multiple domains on single server. It enabled to utilize maximum resources of server and reduces cost. Now a days mostly all web servers supports virtualhosting environment. In our earlier article we describe to install Lighttpd server on CentOS/RHEL. This article will help you to setup VirtualHosts in Lighttpd server. For example we are using following domains- site1.tecadmin.net site2.tecadmin.net Step 1: Create Server Document Root First create folders for both domains (if not exists) # mkdir -p /sites/vhosts/site1.tecadmin.net/www # mkdir -p /sites/vhosts/site2.tecadmin.net/www For testing purpose we are creating an index.html file at both document roots…

Read More