Tag Archives: linux


In this post I outline a very easy setup process to add a web GUI to your linux server. There is really 2 easy steps:

Install the dependencies:


$ sudo aptitude -y install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl apt-show-versions libapt-pkg-perl


Install Webmin


$ wget http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=cdnetworks-us-1
–2010-05-22 19:53:44– http://downloads.sourceforge.net/project/webadmin/webmin/1.510/webmin_1.510-2_all.deb?use_mirror=cdnetworks-us-1

$ sudo dpkg -i webmin_1.510-2_all.deb


Accessing the Web GUI

Just put this in your favorite flavor of web browser:

https://<IP ADDRESS>:10000/


Enjoy and if you have any questions comment or send me a message on the contact me page


Cacti Server

This is a simple “how to” to install and monitor a Cisco device.


Install dependencies:

sudo apt-get install php5 php5-gd php5-mysql

Install Cacti:

sudo apt-get install cacti-spine


Configuring Cacti:

Browse to http://<IP ADDRESS>/cacti

Hit next throughout the next few screens and your configuration is complete.

Here you need to enter username and password as admin/admin and click login


Configuring Cisco Routers:

On the Cisco Devices:

cisco(config)# snmp-server community Cacti ro

Optional Commands:

snmp-server location Kansas City, KS
snmp-server contact John Doe
snmp-server chassis-id Cisco Router


Adding Devices:

Under Management select Devices on the left, then “Create devices”.

1st Step

On the right side select Add across from Devices.

2nd Step

Under General Host Options fill in a Description and the fully qualified Hostname or IP address. Then under SNMP Options, in the SNMP Version choose Version 2 or Version 3 of SNMP (more secure). In SNMP Community type what you configured earlier on the router, again mine is “TEST”. Now click Create.

3rd Step

Once you have created this device it will now pull in your SNMP information such as device uptime, location, and contact info. Now in the top right click “Create Graphs for this Host”. Under Data Query a list of interfaces with statistics available via SNMP is shown. Select an interface that you wish to monitor and check the box next to it on the right. Then click Create.

To add the source to a graph, click Default Tree in the center under Graph Trees.

4th Step

Click Add all the way on the right from Tree Items.

5th Step

Under the Tree Items section, for Tree Item Type select Host in the dropdown list. For the Host item select the descriptive name you previously chose for your router. Graphic Template should be the default option for Graph Grouping Style, but just confirm it. Then click Create.

6th Step

When new host is successfully added it should be listed with tree items above. Click on the Graphs Tab and then the descriptive host name on the left bar and you should see your graphs.  The data may take a while to populate and this may take up to 10 to 15 minutes for you to see actual data.  To analyze the data you can click anywhere on the graph to get a better insight as to the information shown.

7th Step

Enjoy and if you have any questions comment or send me a message on the contact me page

Sources & Thanks to these sites:



NTP Server

Setting up this NTP server on a linux box is one of the simplest services to install. Here is the walkthrough:

On a linux server:

apt-get install ntp
nano /etc/ntp.conf
Restart ntpd with /etc/init.d/ntp-server restart

On a cisco device:

ntp server <IP OF SERVER>

This is how to setup the cisco device to the right timezone and recalculate for daylight savings time (this is for the America/Central TZ):

clock timezone CST -6 0
clock summer-time CDT recurring last Sun Mar 2:00 last Sun Oct 2:00

Enjoy and if you have any questions comment or send me a message on the contact me page


Updating Splunk (version 4.2.4)

To update your Splunk server the process takes no more than 15 minutes. Here is the process:

Back up the server as always and if you did the installation as I described in my previous post this setup will work perfectly:

wget -O splunk-4.2.4-110225-Linux-x86_64.tgz 'http://www.splunk.com/index.php/download_track?file=4.2.4/splunk/linux/splunk-4.2.4-110225-Linux-x86_64.tgz&ac=&wget=true&name=wget&typed=releases'

/opt/splunk/bin/splunk stop

cd /home/user

mv splunk-4.1.7-95063-Linux-x86_64.tgz /opt/

tar zxfp splunk-4.1.7-95063-Linux-x86_64.tgz

/opt/splunk/bin/splunk start

After that just agree to the terms and test out the new functions and features of 4.2.4. Enjoy!

X-box Media Center (XBMC)

I recently have developed a server to just stream my videos to my XBox 360. Using the help of some forums and crazy tinkering this is the results.

Installing on Ubuntu 11.04

Using the newest version of Ubuntu (11.04) I installed the XBMC with ease with some helpful instructions and commands (XBMC is also available in Windows OS and a few others). Here are the commands:

sudo apt-get install python-software-properties pkg-config
sudo add-apt-repository ppa:team-xbmc

Then go to the Package Manager. Click Settings -> Repositories. Under Other Software, highlight the XBMC PPA and click Edit. For the distribution, change it to maverick.

sudo apt-get update
sudo apt-get install xbmc xbmc-standalone
sudo apt-get update

Setting up Video Sources

Following this you have installed XBMC, now it’s time to tweak it slightly. First you need to go to the Video section and add a source. You need to keep your sources clean and have one source be your Movies and one your TV shows and such. Once you add a source through either SMB or FTP or many many other settings you can then tell XBMC to scan and add internet content to it such as the trailers and actors to organize your collection better.

Making Content Able to Be Streamed

Following the setting up of the sources you need to make it streamable to the XBox. This is KEY. In Settings -> Network -> Share video and music libraries through UPnP. Once you check this box all your content will be magically seen from your X-Box 360 under the Video Libraries application.

Auto Updating Your Sources

Finally you need to make sure this server doesn’t need to be touched in years. There is an add-on that will make it so that if you change your content in one of your video sources your XBMC will recognize the change and add it to your media collection on your X-Box. You need to go to Settings -> Add-Ons ->XBMC Library Auto Update. In here you install the add-on then click on it again to configure it to auto-update by intervals of hours. After you do these steps you will almost never need to touch your server again.

Note: If this is a VM you are making this server into, it will be SLOOOW. I have installed the VMware tools and updated all video drivers, but the hardware acceleration needed to display the XBMC’s GUI is too intensive for the VMs display quality. Another note, I attempted to use a Win 7 VM first. That did not work at all as running the XBMC doesn’t even work because it replies with an error caused by displaying XBMC through a remote desktop program, which is unavoidable through a VM program.

Thank for your attention and I am always up for comments.