How To Use opt In Bash Script,Example This is an exmaple of how to create bash script with Opt in. #!/bin/bash echo “Select no. for option” OPTIONS=”Hello LinuxTribe Quit” select opt in $OPTIONS; do if [ “$opt” = “Quit” ]; then echo done exit elif [ “$opt” = “Hello” ]; then echo Hello World elif […]
Articles
How To Use case in Bash Script, Example
How To Use case in Bash Script, Example This is only an example. #/bin/bash echo “Give Full Path where the file is located” read pth echo “Give the file name” read fle if [ -f $pth/$fle ];then echo “$fle file is found in $pth” else echo “$fle file not found in $pth” echo “U r […]
Debian: Set non-interactive mode in apt / apt-get command
In this post, we will know how to do non-interactive apt install in Debian Operating System.
By this method you can skip the interactive query ask while doing apt or apt-get install command.
Xen Virtual Machine Migration (In Hyper-VM)
In this post, we will learn about how to do Xen Virtual Machine migration from one Host Base Machine to other. We hope you know how to create a Virtual Machine in Xen. Our both host machines had the same specs and same LVM management. Here LVM Management means in both host machine we have […]
How to install and configure DHCP server on RHEL 5
Dynamic Host Configuration Protocol (DHCP) is a client/server protocol helps to assign ip address automatically and dynamically to client machine.In this post we will learn how to install and configure DHCP server in RHEL 5. Note: DHCP runs on UDP port 67 for the DHCP serve and UDP port 68 for the DHCP client machines. […]
sed: -e expression #1, char 24: Invalid range end
While working on sed command stricken with this, error : “sed: -e expression #1, char 24: Invalid range end “). To solve this problem, we have used sed and tr command. We made a bash script having expect command in it. We were passing variable value from my mysql database into the bash script. The […]
How to Use Expect In Bash Script
In this bash script we will use expect scripting. Expect is known primarily as an indispensable application for system administrators. We use expect generally in case where input from user is required , for eg. ssh, ftp, telnet, sudo etc. Given below is sample bash script which will first ssh the remote host and then […]
Nagios plugin check_mailfromd bash script
In this post we will create Nagios plugin check_mailfromd in bash script.This nagios plugin is written in a very simple way and easy to understand. Task To check service status of mailfromd service. Create nagios plugin check_mailfromd Create a new bash script file called check_mailfromd. Use your favorite file editor for this, we in general […]
Xen Server License Nagios Plugin (bash script)
Introduction In this post we will share about the “Xen Server License Nagios Plugin” written in bash script. It was good experience to create the nagios plugin for Xen server license. Task To show how many days are left for Xen Server expiration. Requirement You must have following items to be installed in system. 1. […]
You don’t have permission to access /nagios on this server :Solved
The article describes encountering a “Forbidden” error while installing Nagios. Despite following the Quick Start guide, login attempts with the nagiosadmin account failed. The issue was resolved by installing the PHP packages, allowing successful access to the Nagios interface.
Authenticate root to login in GUI mode in Fedora 10
Today we have installed Fedora10 in my PC in Virtual Box.We were aware that by default Fedora 10 do not permit root to login in Runlevel 5. Fedora has tightened their security.We did some changes in system and tested the root authentication issue in our PC. Steps To Authenticate root to login in GUI mode […]
Minimised Application not visible in panel – RHEL 5
How to solve when the minimised applications in panel get disappeared in RHEL 5 ? Two days ago I found a very strange problem in my PC(I am using the RHEL 5.0 Operating System). Whenever I minimised my opened application like terminal,web browser,anything it did nt appear in bottom panel(Taskbar).I had to get back these […]
What is Runlevel in Linux
Do you know what is runlevel in Linux ? This is one of the important term use in linux. There are 7 Runlevel mode in Linux. In this post we will try to explain about runlevel in Linux Operating System. What is runlevel In linux the Runlevel is described as the state or mode that […]
Forgot root password reset in runlevel 1 : Red Hat (RHEL 5)
Learn how to reset fogotten root passwd in RHEL 5 (Red Hat Enterprise Linux). We will login in runlevel 1 to reset forgot password.














