Search

User login

Poll

What is your favorite DB Server ?:
CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
1 + 0 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.

My YM

Alexa Rank

Who's online

There are currently 0 users and 72 guests online.
Home | Services

BASH

user warning: in /usr/home/wowtutorial/public_html/includes/cache.inc on line 112.

Simple Bash Script to Monitor Services in Linux Server

Here is a sample or simple shell script to monitor every services in your server such as http, ssh, mail, dns, mysql, etc..

Feel free to modify it for your own use.

---------------------------------------------------------------------

Change FreeBSD Default Shell to Bash

CSH is a FreeBSD default shell so if we want to change the freebsd default shell we need to make sure bash is installed on the server.

Check BASH

#which bash
/usr/local/bin/bash

It's mean bash already installed on the server.

If BASH is not installed yet, we can installed it from FreeBSD port

Install BASH

#cd /usr/ports/shells/bash
#make install clean

Next, we will change freeBSD CSH default shell to BASH shell

Change CSH shell to BASH

#chsh -s /usr/local/bin/bash youruser

Enable FreeBSD Bash Console Color with GNUls

There is a simple way to coloring a FreeBSD Console.
First, we need to install GNULS.

Login into your FreeBSD server with root access.
Install GNULS from FreeBSD port

#cd /usr/ports/misc/gnuls
#make install clean

Add a gnuls command into .bashrc or .bash_profile
.bashrc is for root shell
.bash_profile is for user shell

Modify your root .bashrc

#cd /root
#pico .bashrc

### add this line below into .bashrc
alias ls='gnuls --color=auto -a'

Modify your user .bash_profile

Recent comments

Facebook Fans

Sponsors

Tag Cloud