Feb
09
2010
As any other firewall, iptables is also able to do network statistics reporting. the -v (–verbose) option makes the list command (-L) show the packet and byte counters. Network stats are available on a per rule basis. Here’s an example on the INPUT chain:
[stats@network_server]$ sudo iptables -nvL INPUT
Chain INPUT (policy DROP 74941 packets, 7900K bytes)
[...]
Tags: firewall, iptables, linux, network, stats, traffic
Dec
31
2009
iLO is a management interface supporting SSH, available on HP Proliant servers. It provides interesting features such as remotely powering the server on and off.
But it is also possible to access the Linux console and reboot in single mode remotely. How handy is that!?
BIOS
While booting up, press F9 to go in the BIOS Setup
Go in [...]
Tags: console, Grub, HP, ilo, linux, serial
Dec
29
2009
From Linux Suse /etc/bash.bashrc:
# Colored root prompt (see bugzilla #144620)
if test “$UID” -eq 0 -a -t && type -p tput > /dev/null 2>&1 ; then
_bred=”$(tput bold 2> /dev/null; tput setaf 1 2> /dev/null)”
_sgr0=”$(tput sgr0 2> /dev/null)”
PS1=”\[$_bred\]$PS1\[$_sgr0\]”
unset _bred _sgr0
fi
Tags: bash, color, linux, prompt