Fun at work!

Archive for the ‘Repost’ Category


Repost: IPMI on CentOS/RHEL

Repost: IPMI on CentOS/RHEL

The Intelligent Platform Management Interface (IPMI) is a standardized computer system interface used by system administrators for out-of-band management of computer systems and monitoring of their operation. It is a way to manage a computer that may be powered off or otherwise unresponsive by using a network connection to the hardware rather than to an operating system or login shell. –


Repost: 30 Cool Open Source Software I Discovered in 2013

Repost: 30 Cool Open Source Software I Discovered in 2013

From the 30 cool open source software discovered by NixCraft in 2013, I plan to try out several of them in the early part of 2014. Here are my picks:

  • Miro video converter

This is an open source, cross-platform application to convert videos from and to various formats, including formats suitable for devices such as Android/iOS phones. It is simple and easy to use software to convert almost any video to MP4, WebM (vp8), Ogg Theora format. Miro Video Converter is based on FFMPEG and act as a front end to FFMPEG command line tools.

  • OwnCloud – Dropbox alternative for cloud storage service

It is an alternative to Dropbox to run cloud on your own server at home and office. This software is open source software, and it is self hosted. I don’t have to trust third party with my data. I found this software easy to install and quite useful. I started to use it for syncing files and other data. I have been using for couple of months and it has been proven reliable alternative to Dropbox. There are clients available for MS-Windows, OS X, Linux, and mobile apps for iOS and Android devices (or simply access data using the ownCloud web frontend).

  • RackTables – Manage your data center assets like a pro

It is is a datacenter asset management system. With this software one can document hardware assets (such as server, workstations, routers, switches and more), network addresses, space in racks, networks configuration and more:

  1. List of all devices, racks, and enclosures you’ve got
  2. Mount the devices into the racks
  3. Maintain physical ports of the devices and links between them
  4. Manage IP addresses, assign them to the devices and group them into networks
  5. Document your NAT rules, describe your loadbalancing policy and store loadbalancing configuration
  6. Attach files to various objects in the system
  7. Create users, assign permissions and allow or deny any actions they can do
  • Observium – Network observation and monitoring system

Observium is free and open source software written in PHP/MySQL. It collects data from devices using SNMP and presents it via a web interface. It includes support for a wide range of network hardware and operating systems including Cisco, Windows, Linux, HP, Dell, FreeBSD, Juniper, Brocade, Netscaler, NetApp and many more. I use this software along with Nagios to get better understanding of certain devices and technologies. It provides historical and current performance statistics, configuration visualization and syslog capture.

  • luckyBackup data back-up and synchronization tool

luckyBackup is an application for data back-up and synchronization powered by the rsync tool. It is simple to use, fast, safe, reliable and fully customizable backup software. I often set and recommend this too for new Ubuntu/Fedora desktop users to backup their own files.



Repost: RedHat / CentOS Install and Configure Cacti Network Graphing Tool

Repost: RedHat / CentOS Install and Configure Cacti Network Graphing Tool

From the official project site:

Cacti is a complete frontend to RRDTool, it stores all of the necessary information to create graphs and populate them with data in a MySQL database. The frontend is completely PHP driven. Along with being able to maintain Graphs, Data Sources, and Round Robin Archives in a database, cacti handles the data gathering. There is also SNMP support for those used to creating traffic graphs with MRTG.


Repost: FFMpeg Installation on CentOS and RedHat

Repost: FFMpeg Installation on CentOS and RedHat

Install FFmpeg on CentOS or RedHat EL 6.x

The following install steps have been proven to work on RedHat Enterprise Linux 6.2. You can check which version you are running with

# cat /etc/redhat-release

Additionally, we assume that you are connected and registered with the Red Hat network and/or updated the system with the latest updates from the repositories.

Follow this guide step by step!

Install the additional repo

# rpm -Uhv

Update repository

# yum -y update

Install all necessary packages

# yum install SDL-devel a52dec a52dec-devel alsa-lib-devel faac faac-devel faad2 faad2-devel
# yum install freetype-devel giflib gsm gsm-devel imlib2 imlib2-devel lame lame-devel libICE-devel libSM-devel libX11-devel
# yum install libXau-devel libXdmcp-devel libXext-devel libXrandr-devel libXrender-devel libXt-devel
# yum install id3tag-devel libogg libvorbis vorbis-tools mesa-libGL-devel mesa-libGLU-devel xorg-x11-proto-devel xvidcore xvidcore-devel zlib-devel
# yum install amrnb-devel amrwb-devel
# yum install libtheora theora-tools
# yum install glibc gcc gcc-c++ autoconf automake libtool
# yum install ncurses-devel
# yum install libdc1394 libdc1394-devel
# yum install yasm nasm
# yum install libvpx*
# yum install git-core
# yum install opencore-amr-devel

Install the essential codecs

# wget
# bunzip2 all-20110131.tar.bz2
# tar xvf all-20110131.tar
# mkdir /usr/local/lib/codecs/
# mkdir /usr/local/lib64/codecs/
# cp all-20110131/* /usr/local/lib/codecs/
# cp all-20110131/* /usr/local/lib64/codecs/
# chmod -R 755 /usr/local/lib/codecs/
# chmod -R 755 /usr/local/lib64/codecs/

Install LibOgg

# wget
# tar xzvf libogg-1.3.0.tar.gz
# cd libogg-1.3.0
# ./configure
# make
# make install

Install Libvorbis

# wget
# tar xzvf libvorbis-1.3.3.tar.gz
# cd libvorbis-1.3.3
# ./configure
# make
# make install

Install Libtheora

# wget
# tar xzvf libtheora-1.1.1.tar.gz
# cd libtheora-1.1.1
# ./configure
# make
# make install

Install Libvpx

# git clone
# cd libvpx
# ./configure --enable-shared --extra-cflags=-fPIC
# make
# make install

Install Aacenc

# wget
# tar xzvf vo-aacenc-0.1.2.tar.gz
# cd vo-aacenc-0.1.2
# ./configure --enable-shared
# make
# make install

Install X264

# git clone git://
# cd x264
# ./configure --enable-shared --extra-cflags=-fPIC --extra-asflags=-D__PIC__
# make
# make install

Note: (Sometimes the network might be down. Then you can also grab it via wget at

Configure Libraries

# export LD_LIBRARY_PATH=/usr/local/lib/
# echo /usr/local/lib > /etc/
# ldconfig

Compile FFmpeg (the configure options have to be on one line)

# git clone git://
# cd ffmpeg
# git checkout n1.2
# ./configure --enable-version3 --enable-libopencore-amrnb --enable-libopencore-amrwb --enable-libvpx --enable-libfaac
--enable-libmp3lame --enable-libtheora --enable-libvorbis --enable-libx264 --enable-libvo-aacenc --enable-libxvid --disable-ffplay --enable-shared --enable-gpl --enable-postproc --enable-nonfree --enable-avfilter --enable-pthreads --extra-cflags=-fPIC
# make
# make install

(The –arch=x86_64 option should only be used if you are on a 64Bit System!)

You can also use their Github repository at

That’s it. This should give you a full functional FFMpeg installation for Razuna. Test it now with;

# ffmpeg

This should give you the following back (yours might vary a bit);

FFmpeg version SVN-r20525, Copyright (c) 2000-2009 Fabrice Bellard, et al.
configuration: --enable-gpl --enable-nonfree --enable-postproc --enable-libfaad --enable-avfilter
--enable-pthreads --enable-libxvid --enable-libx264 --enable-libmp3lame --enable-libfaac
--disable-ffserver --disable-ffplay --enable-libamr-nb --enable-libamr-wb --enable-libtheora
--enable-libvorbis --disable-ffplay --enable-shared
libavutil     50. 4. 0 / 50. 4. 0
libavcodec    52.39. 0 / 52.39. 0
libavformat   52.39. 2 / 52.39. 2
libavdevice   52. 2. 0 / 52. 2. 0
libavfilter    1. 8. 0 1. 8. 0
libswscale     0. 7. 1 0. 7. 1
libpostproc   51. 2. 0 / 51. 2. 0

Repost: ffmpeg: error while loading shared libraries: cannot open shared object file

Repost: ffmpeg: error while loading shared libraries: cannot open shared object file

The “loading shared libraries” error message is received when ffmpeg is not able to locate the file This happens when either the file is missing from the server OR ffmpeg is not looking at the path the file is in. You see the following error while executing the ‘ffmpeg’ command:

[root@server ~]# ffmpeg
ffmpeg: error while loading shared libraries: cannot open shared object file: No such file or directory

Search the file on the server using the ‘find’ command

# find / -name

You need to add the path to the directory the file is in, in the ‘’ file. If for example the file is located under “/usr/local/lib” directory, execute

# vi /etc/

and add the following at the bottom of the file


Save the file and for the new changes to take effect, execute

# ldconfig

Repost: NetHogs – Monitor Per Process Network Bandwidth Usage in Real Time

NetHogs Command Line Options

Following are the nethogs command line options. Using ‘-d‘ to add a refresh rate and ‘device name‘ to monitor specific given device or devices bandwidth (default is eth0). For example, to set 5 seconds as your refresh rate, then type the command as.

# nethogs -d 5
$ sudo nethogs -d 5

To monitor specific device (eth0) network bandwidth only, use the command as.

# nethogs eth0
$ sudo nethogs eth0

To monitor network bandwidth of both eth0 and eth1 interfaces, type the following command.

# nethogs eth0 eth1
$ sudo nethogs eth0 eth1
Other Options and Usage
-d : delay for refresh rate.
-h : display available commands usage.
-p : sniff in promiscious mode (not recommended).
-t : tracemode.
-V : prints Version info.

NetHogs Interactive Controls

Following are some useful interactive controls (Keyboard Shortcuts) of nethogs program.

-m : Change the units displayed for the bandwidth in units like KB/sec -> KB -> B-> MB.
-r : Sort by magnitude of respectively traffic.
-s : Sort by magnitude of sent traffic.
-q : Hit quit to the shell prompt.

Learn More

Repost: RHEL / CentOS 6.x KVM Virtualization Installation and Configuration Guide

How do I setup and manage a virtualized environment with Kernel based Virtual Machine (KVM) in CentOS or Red Hat Enterpise Linux version 6 server on IBM server? Can you provide step-by-step commands of how to install and manage Virtual Machines (VMs) on a physical server using KVM for RHEL/CentOS version 6.4?

Read More…

Repost from: nixCraft LINUX / UNIX

Tag Cloud