rubygem-sysinfo provides all your system-independent informations in one handy class. WWW: https://github.com/delano/sysinfo