• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
sharadchhetri

sharadchhetri

AI, Linux, Cloud and DevOps

  • Home
  • Resources
    • Learn Linux
    • Articles
  • My Projects & Work
    • My Nagios Plugin
    • My Dockerhub Repo
    • My WordPress plugins
    • My Github Repos
  • Facebook Page
  • Contact
  • Privacy Policy
  • About Me

Articles

How To Use opt In Bash Script

May 15, 2011 by Sharad Chhetri Leave a Comment

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 […]

Filed Under: Articles Tagged With: bash script

How To Use case in Bash Script, Example

May 15, 2011 by Sharad Chhetri Leave a Comment

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 […]

Filed Under: Articles Tagged With: bash script

Debian: Set non-interactive mode in apt / apt-get command

February 18, 2011 by Sharad Chhetri Leave a Comment

Debian

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.

Filed Under: Articles, SSH, Tips And Tricks Tagged With: debian, linux command, ssh

Xen Virtual Machine Migration (In Hyper-VM)

January 22, 2011 by Sharad Chhetri Leave a Comment

xen vm migration

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 […]

Filed Under: Articles Tagged With: xen

How to install and configure DHCP server on RHEL 5

January 19, 2011 by Sharad Chhetri Leave a Comment

install dhcp server

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. […]

Filed Under: Articles Tagged With: DHCP Server

sed: -e expression #1, char 24: Invalid range end

January 2, 2011 by Sharad Chhetri Leave a Comment

sed expression error

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 […]

Filed Under: Articles, Tips And Tricks Tagged With: sed

How to Use Expect In Bash Script

December 7, 2010 by Sharad Chhetri 10 Comments

expect bash

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 […]

Filed Under: Articles Tagged With: bash script, expect

Nagios plugin check_mailfromd bash script

October 17, 2010 by Sharad Chhetri Leave a Comment

nagios plugin check_mailfromd

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 […]

Filed Under: Articles Tagged With: mailfromd, Nagios

Xen Server License Nagios Plugin (bash script)

May 29, 2010 by Sharad Chhetri 3 Comments

xen nagios plugin

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. […]

Filed Under: Articles Tagged With: Nagios, xen

You don’t have permission to access /nagios on this server :Solved

August 11, 2009 by Sharad Chhetri 17 Comments

nagios error

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.

Filed Under: Articles, Monitoring Server Tagged With: Nagios

Authenticate root to login in GUI mode in Fedora 10

April 25, 2009 by Sharad Chhetri Leave a Comment

fedora 10 root gui login

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 […]

Filed Under: Articles Tagged With: Fedora

Minimised Application not visible in panel – RHEL 5

March 29, 2009 by Sharad Chhetri Leave a Comment

minimised application 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 […]

Filed Under: Articles Tagged With: Red Hat

What is Runlevel in Linux

March 23, 2009 by Sharad Chhetri Leave a Comment

linux runlevel

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 […]

Filed Under: Articles Tagged With: runlevel

Forgot root password reset in runlevel 1 : Red Hat (RHEL 5)

March 10, 2009 by Sharad Chhetri 4 Comments

reset forgot root password in 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.

Filed Under: Articles, Tips And Tricks Tagged With: forgot password, Red Hat

  • « Go to Previous Page
  • Page 1
  • Interim pages omitted …
  • Page 31
  • Page 32
  • Page 33

Primary Sidebar

Articles

  • Install n8n docker in Ubuntu for practicing
  • Bash Script: MySQL Database backup to AWS S3
  • Automate no touch Jenkins setup wizard on docker (jcac)
  • How to run and configure Jenkins in Docker container
  • Complete Guide: How to install Nagios Monitoring on AlmaLinux / Rocky Linux
  • Install KVM on Ubuntu 24.04 LTS ( Bash Script )
  • How to install GIMP 2.10 on Ubuntu / Debian
  • 5 ways to check Ubuntu version of system (commands and GUI)
  • How To Solve Forgot MySQL / MariaDB Root Password
  • Create Self Hosted Build Agent Docker Image for Azure DevOps

Copyright © 2026 ยท
The material in this site cannot be republished either online or offline, without our permission.
Proudly Blogging From India.

  • Contact
  • About Me
  • My WordPress plugins
  • Privacy Policy