Shell script for an up-to-date Ad-Free /etc/hosts

This is just another way to do it: an adware/spyware free /etc/hosts for your laptop or home network.
Read more →

Serving Disk Usage Graphs with Bash and PHP

Lately I was asked to develop and integrate a realtime server disk usage graph to the dashboard of our monitoring application (OpenNMS). The bar graph color should also change when disk usage exceeds a defined  percentage threshold.
Read more →

Jail SSH users to SFTP only

… or “confine untrusted users to their home directory (and give them no shell access as well)”
Read more →

Deny shell access to clients on a SSH Debian APT Repository.

So you’ve setup your company secured internal Debian APT repository server by allowing apt operations only via SSH with prior public key exchange. Great.
Read more →

Show active network interface and current IP address at TTY console login prompt

I have several virtual linux guests running on VirtualBox: a bunch of test machines to which I connect exclusively via ssh from my host terminal.
Read more →

Randomly create strong passwords

If you have to assign strong passwords and you are in a lack of creativity, you may try to accomplish the task in many ways (for example by doing some rude redirect of /dev/urandom)
Read more →

FreeBSD History makeup

On last post I showed how to setup a long list timestamped bash history. In the last two months I had the opportunity to work on a set of FreeBSD (version 8) servers that come with CSH as default shell.
Read more →

Quick History makeup

One of the first thing I do after installing Linux on a server is setting up the bash history to show the timestamp along with the command issued.
Read more →

Bash shell prompt with full path and colors

Today I’d like to put into my notes the config I use in order to customize the bash shell prompt. This is with no doubt an extra, probably you’ll never need this.. until the day you realize that working on several remote systems at the same time can be confusing, and confusion leads to mistakes.
Read more →