BASH
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
6 hours 40 min ago
3 days 7 hours ago
3 days 7 hours ago
1 week 4 days ago
4 weeks 3 days ago
6 weeks 4 days ago
8 weeks 1 hour ago
9 weeks 5 days ago
9 weeks 5 days ago
15 weeks 1 day ago