new blog

Posted in general on July 25, 2008 by deadwait

Im going to try out adsense for some time now before i actually, maybe , setup my own website. This blog will remain as it is but from now on all new content also iso’s will be available from now on at

http://deadwait.blog.co.in

If anyone feels this is a bad idea please tell me so, already the above blog has so many ads which are not mine, that i dont like the look of it, but then i, have to try this.
NOTE: i myself think now this is a bad idea, if needed ill setup my own website than go on to another blog,
and now im going back to my work on dynamips on live cds,
im working getting the live cd down to 50mb or lesser so wont be updating much till im successful on that.

All right i’ve got my own website up now which is http://www.in2dwok.com

everything will be shifted there from now on , all updates new iso everything.

Just thoughts

Posted in general on July 25, 2008 by deadwait

I used to be a regular reader of http://www.stevepavlina.com back when i was in muscat and to tell you the truth his website is awesome and can many times be the slap in the face you need to get up and take charge, reading his posts got me the strength to leave the security of my job in Oman and come back to my hometown mumbai and start all over again and its been going great, absolutely great.

But now i really want to branch out on my own, try out new stuff and most of all not work for other people atleast for some part of my life. After getting to where i am today i miss the energy of 2 and a half years back, when i everyday i was literally doing something new, now the job has become routine and i dont know what to do, the only fun i have is when i am working on anything linux, but i cant understand how to learn and use it effectively to upgrade my resume , i just keep work on things which i feel are cool.

Aww forget it, better shut my trap and just march on slowly, but i feel things are headed for a change good or bad , i dont know.

kerrighed cluster

Posted in general with tags , , , on July 21, 2008 by deadwait

So , its feels like a real long time since im writing anything, i was totally busy for almost the whole last month just trying to install Kerrighed ( http://www.kerrighed.org ) , which is a SSI –> single system image cluster. Now all i wanted was dynamips to run on two or more machine’s, Ok so i know that i can start the hypervisor separately on other machines and use the combined processing power anyways, but my idea was to allow it to be accessible remotely, so i thought i would build a cluster on which dynamips would run and use all the cpu power of the entire cluster.

Now  i have never worked on any clustering software before now new much about it, turns out there are so many different types of clustering software available, the best in terms of popularity, ease, support, documentation  ”seemed” to be openmosix, but as of March 2008 the project is dead, closed by its founder, Moshe Bar. Now reading about openmosix gave me little knowledge about SSI cluster’s, meaning suppose i put up 4 machine’s each with 4 processors and 4 gb ram and i set them up in a SSI cluster, what i get is something looking like one machine with 16 processors and 16gb ram, its true, i was able to do half the size of that cluster ( because that’s how many machines i had in my hand to test ), now there might be many out there who have seen this before, but for me, after a really long time  I saw magic! . When i actually finally managed to get the cluster up and top command showed 8 cpus and 4gb ram, ( cluster of two pc’s quadcore with 2gb ram each) , i just kept staring at it in awe, I swear it was so sexy i left it like that for one and a half day before i actually started testing dynamips on it.

The clustering software i finally ended up using was kerrighed, which  supports one of the newer kernels that is 2.6.20 the next in line would be openssi, which i think supports 2.6.9 or 2.6.12 im not sure right now. installing it took me 3 weeks that too after i gave up installing it on the quadcore machines and tried it on some p3 machines with realtek rtl8139 drivers. the next post will be an entire document on how to install kerrighed on the debian lenny system. The guys on the mailing list of Kerrighed as well as the developers of kerrighed are very helpful and were not irritated at all by my newbie questions, in fact i came out of it knowing a little more about linux, eg: i had never recompiled a kernel before. 

Well did dynamips work? NO! , that hurt, but then it’s ok doing the entire exercise was fun, oh and the reason dynamips did’nt work was kerrighed does’nt support migration of multithreaded processes yet, i did check the migration with a program called cpuburn and it worked fine.  

Well hopefully  i might get some test machine’s again and i could work out something , i also wanted to test cacti on it and see if that’s a feasible option. hmm lets’s see.

dynaflux

Posted in general with tags , , on July 2, 2008 by deadwait

ok this is a very light version of slax with only fluxbox as a manager and dynagen and dynamips added, download it here Dynaflux

if you want to use it on your usb , extract the same iso to your USB drive, go to the boot directory and double-click on bootinst.bat , that will make your usb bootable. to extract the iso you can use 7zip.

the size is only 124 mb as of yet and i havent yet added a tftp server and pdfreader.

Just a few pointers,  when your right click on the desktop you get the menu

click on runthisfirst first .

to give a ip address to your ethernet card open terminal and type in ” ifconfig eth0 xx.xx.xx.xx netmask xx.xx.xx.xx gw xx.xx.xx.xx up” without the quotes

the filemanager is like your windows explorer

you will find your windows harddisks in /mnt

GNS3 on live cd

Posted in Cisco, Linux with tags , on June 21, 2008 by deadwait

IMPORTANT : the downloads are also available on http://www.gns3-labs.com  for a stable connection you can download the ISO and tar from there itself.  thanx a ton, lenny.

USB users having a problem with dynamips crashing — > change the working directory to somewhere on your USB , most probably your usb will be like this /mnt/sdb1 and so you can specify the working directory in your .net file like this  workingdir = /mnt/sdb1  .  thanx suhail and rajan for pointing out the issue.

Also would anyone like a live cd based on puppylinux, i think the entire cd should come around 140 mb with gns3 and 110 mb with only dynamips and dynagen.

 

OK, i finally got the gns3 slax live cd uploaded on 4shared, i have had to split the files in three , the total download comes to around 250 mb approx. you will need to use a program like 7-zip to extract the iso as well as the usb versions. to download the same headover to the newly createad downloads page on the right.

Dynagen Dynamips on Live CD or usb

Posted in Cisco, general, Linux with tags , , , , , , on June 18, 2008 by deadwait

moved to www.in2dwok.com

ShoeFU

Posted in general with tags , , , , on June 16, 2008 by deadwait

So my sis actually paint’s on canvas shoe’s and today i setup a wordpress site for here, so if anyone is interested go ahead to http://shoefu.wordpress.com

By the way, isn’t wordpress just great.? 

Asterisk Flash Operator Panel Config

Posted in general with tags , , , , , on June 2, 2008 by deadwait

 

I have just set Flash operator panel for our asterisk box, i tested the same on virtualbox and shifted it on to a spare linux box which acts as a proxy, im using abyss webserver for serving purposes. Foll configs might be useful .

OPSERVER CONFIG

[general]

use_amportal_conf=0;

manager_host=44.44.44.44

manager_port=5038

; user and secret for connecting to * manager

manager_user=deadwait

manager_secret=waitdead

event_mask=call, on, off, 

auth_md5=1

flash_dir=/home/deadwait/abyssws/htdocs/panel

security_code=passw0rd

 

 

OPBUTTON 

 

#[SIP/2220]

#Position=17            ; Position ‘n’ will be the next available

#Label=”khairulla”  ; %0a is the new line character

#Extension=2220

#Context=fromiax

#Icon=1

#Server=0              ; If you omit the Server, it will default to 1

 

[SIP/2213]

Position=3            ; Position ‘n’ will be the next available

Label=”Team 4″  ; %0a is the new line character

Extension=2213

Context=fromiax

Icon=1

Server=0              

 

[SIP/2203]

Position=5            ; Position ‘n’ will be the next available

Label=”Team 3″  ; %0a is the new line character

Extension=2203

Context=fromiax

Icon=1

Server=0  

 

#and so and so forth just notice the position numbers ”   

 

[IMAGE]

src=logo.jpg

x=30

y=30

 

OPSTYLE 

 

[general]

dimm_noregister_by=20

dimm_lagged_by=60

 

enable_animation=1

shake_pixels=2

show_borders=0

enable_label_background=0

enable_crypto=0

use_embed_fonts=1

 

; colors for led states

ledcolor_ready=0x00A000

ledcolor_busy=0xA01020

ledcolor_agent=0xD0d020

ledcolor_paused=0×000000

 

; Settings for the button (rectangle)

btn_width=90

btn_height=50

btn_padding=4

btn_line_width=2

btn_line_color=0×000000

btn_fadecolor_1=ccccff

btn_fadecolor_2=ffffff

btn_round_border=8

btn_highlight_color=ff0000

 

; Settings affecting the button label

label_font_size=8

label_font_family=Verdana  ; only valid when use_embed_fonts is disabled

label_font_color=000000

label_shadow_color=dddddd

label_margin_top=30

label_margin_left=40

label_shadow=1

label_extent_x=15  ; If the label does not fit horizontally, increase this number

label_extent_y=0

 

 

; Settings affecting the button clid

clid_font_color=00dd00

clid_font_size=9

clid_centered=1

clid_font_family=Verdana

clid_margin_top=15

clid_margin_left=25

 

; Settings for the timer

timer_font_color=4000ff

timer_font_size=9

timer_font_family=Courier

timer_margin_top=48

timer_margin_left=4

 

; Settings for the oval led

led_scale=30

led_margin_top=35

led_margin_left=10

 

; Settings for the arrow

arrow_scale=40

arrow_margin_top=8

arrow_margin_left=8

 

; Settings for icons

icon1_margin_top=10

icon1_margin_left=-7

icon1_scale=14

 

; Settings for Status Bar at the top

show_security_code=1

show_clid_info=0

show_btn_help=3

show_btn_debug=0

show_btn_reload=2

show_status=4

 

 

Lambda Tube

Posted in general with tags , , , , , , , , , , on May 26, 2008 by deadwait

As you know i have just started learning programming ( i mean really learning “programming” ) to the best of my abilities, i was searching for some real world programs made with scheme, coz as i was reading the net you get lot of very smart people telling that learng lisp/scheme will open your mind but then its like generally learn this and then use the techniques or methodology to program in some other language.

Now why would i want to do that?

Anyways i found this program Lambda-tube at http://code.google.com/p/lambda-tube/

a youtube browser which is written in PLTScheme, it actually browses youtube for you and then downloads the songs you choose, when i first downloaded and checked it a week back, it had no proxy support, hence i could not check it at work, i raised a issue on the website and the author Abhishek Mishra reverted back stating that he would add the feature in a few days, today i got the mail that the proxy feature is added, i downloaded it once again and reinstalled on top of the earlier version itself, added the proxy server and port and tried but it didnt work , in the sense i could browse but couldnt download , just restarted the program and it started and i have already downloaded around 20 videos — the only bad point about this program now is that it is too easy hence very addictive , i just couldnt stop browsing and downloading.

Anyways once i complete concrete abstractions by Max Hailperin , i hope to browse through the code of Lambda-tude for better understanding.

Learning Scheme Programming

Posted in general with tags , , , , on May 21, 2008 by deadwait

I am finally taking the plunge and learning programming, i am using the book Concrete Abstractions by Max Hailperin , which is available online here —> http://gustavus.edu/+max/concrete-abstractions.html

I had begun with practical common lisp but then diverted to this book.

The reason i want to learn is that i want to sit down and make my own Network Monitoring System,

nothing groundbreaking , just something i would have total control of but i want to add intelligent troubleshooting integrated into it, i can already do a lot of this using Ruby’s Net/telnet library, but then things just work in it, I dont know how and i need to know , im tired of being so kludgy and just copy pasting scripts from here and there to get my work done.

why am i not learning ruby itself ?

well i did start of from there with some online tutorials but it leaves many questions unanswered to me,

now i am not from a computer science background at all, and it is just the last two years that i have been working as a network engineer so maybe it is that’s why , that i just dont ” get ” things, it’s very frustrating especially when even kids find it so easy nowadays .

Im touching 29 now , does anybody even start learning programming at this age ? oh , why oh why, did i waste my youth ? stupid snooker parlours robbed me of a education . oh fuck it , i did enjoy those years though.

whatever, i hope to learn scheme now and then use only scheme , not try it with ruby or something like that.

i want to learn programming now , not learn it just to make a program i think is useful for me.

lets see what happens, will i give it up like everything i give up before ? i hope not .

ill try and post everyday where i stand.

IP MTU

Posted in Cisco on March 25, 2008 by deadwait

Well, this is something i have never really understood but the route-map clear-df did solve a lot of my client issues.

keep this link is mind as it could answer many of your client application issues .

http://www.cisco.com/en/US/tech/tk827/tk369/technologies_white_paper09186a00800d6979.shtml 

nice little rumba piece – hersoveela

Posted in general on February 7, 2008 by deadwait

Take Five – Paul desmond of the Dave brubeck quartet

Posted in general on February 7, 2008 by deadwait

argus network monitor

Posted in general on December 18, 2007 by deadwait

Man, i got tired of trying to install nagios or opennms or zenoss or zabbix or hyperic or groundwork i mean like wtf can installs just be simple for poor idiots like me. But then i found argus available at http://argus.tcp4me.com

Im still going through configuring but its such a relief, all i wanted was s simple ping monitoring software and finally i got it. Im sure i’ll be writing more about it in the days to come.

12 days to my marriage

Posted in general on December 18, 2007 by deadwait

I am to be married in 12 days, dec 29th, i’ll finally marry the love of my life, This last year has been a happy one for me, i don’t remember ever being so happy, preparations are hectic, i have still haven’t finished invitations nor is my suit or y best man’s suit ready, by the way my best man is Glen. 12 days more …..

bgp + mpls (ccip)

Posted in general on October 17, 2007 by deadwait

So surprise , surprise with all *ucking around on linux  im giving the 642-691 on saturday, lets see what happens, i swear if i pass i complete my ccip by the end of this month and give the ccie R&S next month.

No traffic on my website

Posted in general on October 5, 2007 by deadwait

A search in Google for cacti xampp ubuntu get’s two pages pointing to either the howtoforge article or the forum, hmmm , how does this search business work ???? i wonder…..

http://www.google.co.in/search?hl=en&q=cacti+xampp+ubuntu&btnG=Google+Search&meta= 

Cacti Doc in docs.cacti.net

Posted in Linux with tags , , , on October 3, 2007 by deadwait

Man, this is really cool, first of all my submissions of the cacti-xampp-ubuntu tutorial got accepted in howtoforge.com here http://www.howtoforge.com/cacti_xampp_ubuntu and best of all gandalf from cacti has asked to include it, in http://docs.cacti.net , ofcourse i said yes.

im happy today.

Update :Gandalf has put up the How-to at the foll. site http://docs.cacti.net/node/434 you can the see the details of the forum here

Cacti with Xampp on Ubuntu

Posted in Linux with tags , , on October 1, 2007 by deadwait

Cacti Setup Guide:

This is a simple setup of Cacti, so that you don’t really need a “linux” expert to maintain it. please note cacti can also be installed on windows and guides for both these installations are available on the net this guide is just a repeat of how cacti was setup here in mumbai.

what is Cacti? You can check out that here http://cacti.net

What is cacti being used for?

Cacti was primarily setup to monitor backhauls and have ready graphs whenever we need, but currently we are also using it to monitor cpu usage, memory usage, see traffic pattern’s, get alerts etc.

So now we go on to the basic setup,

Requirement:

One linux machine – ( can be any depending on your choice try and keep atleast 256mb ram , i have tested cacti on a 1.4ghz processor and 256 mb ram, with centos as the operating system and with around 350 monitored devices, and it has run without a hitch for more than a month, currently cacti resides on a 1.8ghz machine with 512 mb ram, which is also running a proxy server – squid, plus a intranet web ftp server )

the cacti package – we will need to download this from http://cacti.net

RRDtool – This is the defacto package used by 95% of all NMS tools out on the net for graphing, details can be found at http://oss.oetiker.ch/rrdtool/

Xampp – now the reason i am going in for Xampp is because it lets maintain a lot of things very easily, ( the apache webserver – mysql database , php programming language and all needed dependencies ) of course we can do it without xampp but you can search for those doc’s on the net.

Ubuntu installation :-

1: The First step now would be to install Linux on our machine, for this example we will download ubuntu ios from the following site http://cdimage.ubuntu.com/releases/gutsy/tribe-5/gutsy-desktop-i386.iso this is the current latest version of ubuntu.

note: there is a server version of ubuntu which is also available but we will not be going in for that due to lack of gui.

2: once downloaded burn it on to a cd and then boot the machine you have decided to make as your server with the same CD

3: once the machine boots up, you will notice that is running in live cd mode, i.e the hard disk is not being used, you will find a Install icon on the top left of your screen, double click on it and go ahead with the install, the only problem you might have is during partitioning as we are going in for a separate machine its best that we go in for auto partitioning ( a detailed ubuntu install guide is not really possible right now but it can found here https://help.ubuntu.com/6.10/ubuntu/installation-guide/i386/index.html.

Also remember to type in your username to be used as deadwait ( im taking deadwait just for this example )

4: Once ubuntu is installed – all further steps will now occur from within ubuntu itself, the next thing to do is see to it that it is updated, for that we have to have access to the internet hence you network card will have to configured, i hope you remember the root password you had supplied during the installation.

4.1 : click on

    system --> administration --> network

and in the wired connection tab supply your needed ip address/ subnet mask and gateway

4.2 :if your internet access is through a proxy then click on

   system --> preferences --> network proxy

and supply your proxy server’s ip address and port.

4.3 : open up a terminal window ( Applications –> accessories –> terminal ) and type in the foll. commands

     sudo aptitude update

and then

     sudo aptitude install build-essential

4.4 : Once the build essential is over you are set to install Xampp , RRDtool and Cacti

5: We will begin with Xampp – to know in detail what xampp is check out their website http://www.apachefriends.org/en/xampp.html , Now we need to download Xampp for linux directly clicking on this link http://jaist.dl.sourceforge.net/sourceforge/xampp/xampp-linux-1.6.3b.tar.gz . This is the current latest version of Xampp. remember to download it to /opt . ( the reason im going in for /opt is because the same is mentioned in the website, but remember you can have it downloaded and installed anywhere .)

5.1: Now assuming you have downloaded the file in /opt you need to do the foll next. ( im going to be guiding you in command line mode – but it can be done in GUI, the reason i haven’t mentioned the GUI method is because i get confused in GUI mode, as these DOCS will be open for editing later anyone who wishes to update the GUI mode can do so )

as usual click on

   Application --> accessories --> terminal

type in

   cd /opt

this will bring you in the /opt directory, type in

   sudo tar -xvzf xampp-linux-1.6.3b.tar.gz

what this does is unzip/unpack the file into its own directory, if you type int the command dir you will now see that a new directory (lampp) has been created, if you want to delete the xampp-linux-1.6.3b.tar.gz file or not is upto you, if you want to delete it the command is

   sudo rm -rf xampp-linux-1.6.3b.tar.gz

what i do is usually move these files in to my home folder, assuming my login name is tulip then my home folder becomes /tulip, the command to move the file is as follows

   sudo mv xampp-linux-1.6.3b.tar.gz /tulip

Now for the cool part –> int the same terminal type in

  cd lampp

then type in

  sudo ./lampp start

and your webserver along with mysql and ftp will have started, to check the same, open up firefox and type in http://localhost, you should get the Xampp screen.

5.2: Now lets clear some basic stuff we need to do – you see Cacti needs a database which we have already installed using xampp, now what we need to do is create cacti’s own database. now since you have opened up http://localhost in firefox, xampp will ask you its language preference, click on english, then on the left pane you will see a link for phpmyadmin, click on it, what you see now is an web based administration tool for MySql, on the first page itself you will see an option named Create Database in the field below type in cacti since this is the name we will use for our database ( ofcourse you could name it whatever you want ). then go on to the next step.

6: So then, one part of our work is done next thing to do is to install rrdtool. your going to love this, in a terminal box type in the magic commands

  sudo aptitude install rrdtool

and thats it rrdtool is installed ( Now for a bit of history, we can install entire cacti along with webserver php and mysql by doing sudo aptitude install cacti, but we havent done that because if you are not comfortable with linux it could lead to a lot of confusion as to where the files are installed, also the package could break if an upgrade takes place)

At the same time lets install one more tool needed which snmp with the same command

  sudo aptitude install snmp

and then

  sudo aptitude install snmpd

what is important to remember is rrdtool gets installed in /usr/bin/rrdtool, we will need this path later.

7: Now the cream – cacti installation.

first we need to download the cacti package which we can do so from this link http://www.cacti.net/downloads/cacti-0.8.6j.tar.gz

save the link on your eg: Desktop then open up a terminal and navigate to your deskto, the commands are (assuming your user login is tulip)

  cd /home/deadwait/Desktop

remember linux is case-sensitive so desktop wont work it will be Desktop, once we are in Desktop type in the foll commands

  sudo tar -xvzf cacti-0.8.6j.tar.gz

which will extract the foll in a directory named cacti-0.8.6j for purposes of our ease lets rename it to just cacti with the foll command

  sudo mv cacti-0.8.6j cacti

now that the directory is renamed lets move it in our lampp directory so that we can access it via our webserver, to do so run the foll command

  sudo mv cacti /opt/lampp/htdocs

now our cacti directory is copied on to lampp’s webroot directory, remember we had created a database in mysql named cacti, now we need to populate tis database, which you should not worry about if you dont understand, just follow the foll steps

7.2 :o pen up firefox and again go to phpmyadmin, http://localhost/phpmyadmin

on the left pane select the database which we have created, in our case its cacti.

then on the right pane select import –> then click on browse –> navigate to the directory /opt/lampp/htdocs/cacti in which you have to select the file cacti.sql and then click on go.

7.3: Again in a terminal type in

cd /opt/lampp/htdocs/cacti/include

then type in

sudo nano config.php

nano is an editor which will open up the file config.php, in the beginning you will see these options

 $database_type = "mysql";
 $database_default = "cacti";
 $database_hostname = "localhost";
 $database_username = "cactiuser";
 $database_password = "cactiuser";
 $database_port = "3306";

you need to change the username and password so that it looks like this

  $database_type = "mysql";
 $database_default = "cacti";
 $database_hostname = "localhost";
 $database_username = "root";
 $database_password = "";
 $database_port = "3306";

then press ctrl-x and come out.

7.4: Now open up firefox and type int the address bar the following http://localhost/cacti

you will be greeted with a screen which will be the beginning of the installation , just click on next

on the next screen you will asked if its a new install, which of course it is,confirm whether the database user and the database name mentioned are correct, go back to step 7.3 and check, click on next

7.5 : when we click it shows us the base paths of all needed files we will notice that the path for php is marked in red because the path is wrong the path shown in the installer is

  /usr/bin/php

we have to change that to

 /opt/lampp/bin/php

and then click finish.

Cacti is now installed.

It will open up to the cacti homepage and ask you a username and password type in

 admin

and password as

 admin

it will then force you to change the password , type in the new password that you decide on and log in using the new password.

We need to do a bit more stuff, you see cacti works by polling the devices which we set it up for, so lets set the poller for every 5 minutes, open up terminal and type in the foll command

 sudo nano /etc/crontab

this will open up the crontab file, now at the end type in the foll.

  • /5 * * * * deadwait /opt/lampp/bin/php /opt/lampp/htdocs/cacti/poller.php > /dev/null 2>&1

then press ctrl x and come out now all along we have assumed the username to login to your machine is tulip, hence the tulip is added above, now we need to do one last thing type in the following command in a terminal

 sudo chown -R 777 /opt/lampp/htdocs/cacti

thats its you are done!!! phew!

The Grave’s open

Posted in general on September 22, 2007 by deadwait

Well, this is not really the first blog that i have, but it is the first blog where im going to write about my studies and career.

Follow

Get every new post delivered to your Inbox.