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..

Configuring a Dynamic Host Configuration Protocol (DHCP) server on CentOS or Red Hat Enterprise Linux (RHEL) systems is a fundamental task for network administrators aiming to automate the assignment of IP addresses and other network settings to client devices. This not only simplifies network management but also enhances the efficiency and reliability of network services. This article delves into essential tips, tricks, and best practices for configuring a DHCP server on CentOS/RHEL, ensuring a robust and efficient network setup. Understanding DHCP Before diving into the configuration nuances, it’s crucial to grasp the essence of DHCP. This network management protocol automates…

Read More

JavaMail API supports the JavaMail (javax.mail) interface for sending email messages. It provides classes for sending email from remote smtp server with authentication like Gmail, sendgrid etc. In this article we are using JavaMail API for sending emails using Java programming language through remote smtp server. This articles example are using Gmail smtp server as a remote smtp server for sending emails. Step 1: Setup JavaMail Environment First we need to download jar file containing all classes in javax.mail. Download jar (mail.jar) file from oracle official website. Now set the classpath in system environment. Windows users make sure you have…

Read More

JavaMail API is a powerful and flexible tool that enables Java developers to incorporate email sending capabilities into their applications. As part of Java’s extensive library, it can manage complex email systems using Simple Mail Transfer Protocol (SMTP) and other messaging protocols. This article offers a comprehensive guide to using JavaMail API with a local SMTP server for sending emails. Understanding JavaMail API The JavaMail API provides a platform-independent and protocol-independent framework that allows users to build mail and messaging applications. The API provides classes that model a mail system. JavaMail does not implement an email server, instead, it allows…

Read More
PHP

Email sending functionality is a crucial part of many web applications. From account verification emails to forgotten password reminders, email helps build communication bridges between your application and its users. One of the most popular libraries for sending emails from PHP applications is PHPMailer. It has a host of features that make it a robust and flexible solution for managing your application’s email functionality. This article will provide a practical approach to implementing PHPMailer in your applications. What is PHPMailer? PHPMailer is an open-source library in PHP that provides a simple and flexible way to send emails from within PHP…

Read More

This article will help you to Install MongoDB with NodeJs and configure their connectivity using Mongoose node app on Ubuntu and Debian systems. For PHP users use our previous article to configure MongoDB with PHP and Apache2 on Ubuntu servers. Prerequsities We assume you already have Node.js and MongoDB installed on your system. If not installed follow our below tutorial first to complete the required installation. MongoDB Installation: Install MongoDB on Ubuntu Install MongoDB on Debian Node.js Installation: Install Node.js on Ubuntu Install Node.js on Debian Install “mongoose” Module Mongoose provides a straight-forward, schema-based solution to modeling your application data…

Read More

MongoDB is an open source NoSQL database. These days mongodb is getting more popularity between web developers for their processing speed. And for PHP5 we all are aware that it is use widely use for faster development. In this article we are installing Latest MongoDB database with PHP5 and Apache2 web server on Ubuntu 14.04 LTS. This article will also work with other Ubuntu versions. Step 1: Install Apache2 First install Apache2 web server on our system using following command, this is available under default repositories of Ubuntu. $ sudo apt-get install apache2 After installing Apache2 it will by default…

Read More

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…

Read More

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…

Read More

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…

Read More

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…

Read More