Archive for the ‘Linux/Unix’ Category

Tabbed shells for Cygwin

Monday, January 30th, 2012

Smokeping on Scientific Linux 6

Wednesday, January 4th, 2012

Some notes for future self.

The page here helped me get smokeping properly configured on SL6.

I created this init script based on the script for cupsd – /etc/init.d/smokeping (update: added configtest option)

egrep trick

Tuesday, November 29th, 2011

Here’s a neat trick. I wanted to highlight some output I was watching so it would stand out, in this case a specific IP address on a load balancer. The trick is to use egrep to colorize and match your pattern or the end of line.

while :
	ipvsadm -L -n | grep 2099 | egrep --color "|$"
	sleep 10

sudo via LDAP on RHEL6

Tuesday, June 14th, 2011

I couldn’t get sudo to work via LDAP on RHEL6 (actually Scientific Linux 6) until I renamed /etc/ldap.conf.sudo to /etc/nss_ldap.conf as suggested on this thread: