Pages

Wednesday, December 22, 2010

Cricketing God's Resume (Unofficial Resume of Sachin Ramesh Tendulkar)


Sachin Tendulkar: Curriculum Vitae



OBJECTIVE:
To seek career challenges keeping in view my past achievements and future goals. And to set new industry benchmarks in
everything I endeavour.

PROFESSIONAL EXPERIENCE:
International Cricketer: Indian National Cricket Team [1989 onwards]
First Class Cricketer: Mumbai, West Zone, Yorkshire [1988 onwards]
Junior Cricketer: Shardashram School, Bombay U-15, West Zone U-15 [1985-1988].


LEADERSHIP EXPERIENCE:
Indian Cricket Team: 1996-1997; 1999-2000.
Others: Mumbai, West Zone, Mumbai Indians, etc. [Various Times]

KEY OPERATIONS & MISSIONS UNDERTAKEN:
1. 664* — Enough said. [Mumbai, 1988]
2. 114* — Rescue mission against Spiteful Yellow Men on Green Earth. [Perth, 1991]
3. 523 runs — Mission My World Cup. [India, 1996]
4. 155* — Operation Deflate Warne [Chennai, 1998]
5. 143 & 134 — Operation Desert Storm [Sharjah, 1998]
6. 136 — Rescue Mission against the Vile Green Warriors on Dusty Earth [Chennai, 1999]
7. 98 — Operation Tame Vile Green Warriors [Centurion, 2003]
8. 672 runs — Mission My World Cup II. [South Africa, 2003]
9. 241* and 60* — Mission Avoid Cover Drive [Sydney, 2004]
10. 117* and 93 — Operation Slay Goliath [Sydney & Brisbane, 2008]
11. 103* — Mission Heal Mumbai [Chennai, 2008]
12. 200* — Mt 200 [Gwalior 2010]

OTHER MAJOR INITIATIVES:
1. 122 — Mission Hold The Empire [Edgbaston, 1996]
2. 126 — Operation Protect Final Frontier [Chennai, 2001]
3. 117 — Operation Kings of Queens Park [Port of Spain, 2002]
4. 193 — Mission Conquer Leeds [Leeds, 2002]
5. 194* — Mission Sultan of Multan [Multan, 2004]
6. 111* — Half-centurion in Centurion [Centurion, 2010]

CRISIS MANAGEMENT EXPERTISE:
1. 119* — Operation Bat Till Bedtime [Manchester, 1990]
2. 82 — Mission Find New Opener [Christchurch, 1993]
3. 1-0-3-0 — Operation Hold South Africa [Kolkata, 1993]
4. 169 — Operation Counterattack [Cape Town, 1996]
5. 140* — Operation This Is For You, Father [Bristol, 1999]
6. 175 — Mission Save Series [Hyderabad, 2009]

KEY ACHIEVEMENTS:
1. Hundreds on Ranji Trophy, Duleep Trophy and Irani Trophy debut.
2. India‟s youngest Test and ODI cricketer at age 16 years, 207 days.
3. Most runs in Tests and ODIs (14,513 and 17,598).
4. Most hundreds in Tests and ODIs (50 and 46).
5. Most ODI appearances (442)
6. Most Tests appearances (175).
7. 20 hundreds against Australia, the best team of my era.
8. 1894 runs and 9 hundreds in ODIs in 1998, a record.
9. 7 Test hundreds and 1543 Test runs in 2010, an Indian record.
10. 1796 runs in five World Cups.
11. Only cricketer with the 150 wickets and 15,000 runs „double‟ in ODIs.
12. First cricketer to score 40 and 50 Test hundreds.
13. First cricketer to score 20, 30 and 40 ODI hundreds.

OTHER BUSINESS INTERESTS:
I have interests in the food and beverages industry. I partly own two restaurants in Mumbai:
Tendulkar‟s (Colaba, 2002).
Sachin‟s (Mulund, 2004).
Sachin Tendulkar, Bandra, Mumbai, India. On Twitter: @sachin_rt
Sachin Tendulkar: Curriculum Vitae

EDUCATIONAL QUALIFICATION:
PhD in Cricket.
Secondary School, Shardashram Vidhya Mandir, Mumbai.

PATENTS:
I‟ve mastered nearly every cricket stroke in the book, but have a special reputation for these.
1. The Thunderous Bowler-Decapitating Straight Drive
2. Back-foot Punch Through Cover
3. Acute Paddle Sweep
4. Slog Sweep Against Turning Leg-Break
5. Effortless Wristy Flick Through Square Leg
6. Point-Killing Square Cut

PASSIONS:
Cars & Racing: I love fast driving. I also own a Ferrari 360 Modena.
Food: I am a foodie with a fondness for seafood.
Music: I enjoy collecting music. Some of my favourites are Kishore Kumar, Mark Knopfler, MLTR.

AWARDS:
1. Arjuna Award [1994]
2. Wisden Cricketer of the Year: [1997]
3. Rajiv Gandhi Khel Ratna [1997-98]
4. Padma Shri [1999]
5. Player of the Tournament, World Cup [2003]
6. ICC Gary Sobers Trophy for Cricketer of The Year [2010]
7. ICC World ODI XI: 2004, 2007, 2008
8. ICC World Test XI: 2009, 2010
9. Rajiv Gandhi Award for Sports [2005]
10. Padma Vibhushan [2008]
11. Man of Match Awards: 74
       ODIs: 61 times
       Tests: 14 times
12. Man of the Series Awards: 19
      a. ODIs: 15
      b. Tests: 5

MAJOR CITATIONS:
1. “AB, this little prick will make more runs than you.” — Merv Hughes to Allan Border. [1991]
2. “This kid bats just like I did.” — Donald Bradman, World Greatest Batsman. Ever. [1998]
3. “I'll be going to bed having nightmares of Sachin just running down the wicket and belting me back over the head for six.
He is the best batsman I‟ve ever bowled to.” — Shane Warne, World‟s Greatest Leg Spinner. [1998]
4.“Shit, I‟m sick of this *$#%!” — Michael Kasprowicz, Australia‟s Fast Bowler. [1998]
5. “He will end up with 50 tons in each form of the game.” — Wasim Akram, World‟s Greatest Left-arm Pacer. [2002]
6. “Jaanta hai tooney kiska catch chhoda hai?” — Wasim Akram to Abdul Razzaq. [2003]
7. “All we need is 11 Sachins.” — Paul Strang, Zimbabwe Leg Spinner. [1996]
8. “Cricket is our religion, Sachin is our god.” — [Repeated ad nauseum by millions of fans].
9. “Nothing bad can happen to us if we‟re on a plane in India with Sachin Tendulkar on it.” — Hashim Amla, South Africa
Batsman. [2004]
10. “The archives recall not one single incriminating incident, not one drunken escapade, not one reported affair, not one spat
with a team-mate or reporter. As Matthew Parris wondered of Barack Obama in these pages recently, is he human?” —
Michael Atherton, Former England Captain. [2008]
11. “I have seen God; he bats at No. 4 for India.” — Matthew Hayden, Australia Opener. [2008]
12. “There will never be another Sachin.” — Muttiah Muralitharan, World‟s Most Successful Bowler. [2009]
13. “If I‟ve to bowl to Sachin, I‟ll bowl with my helmet on. He hits the ball so hard.” Dennis Lille, Cricket‟s McEnroe & Fast
Bowling Legend. [Undated]
14. “Tendulkar is the best batsmen in the world ahead of Steve Waugh and Lara.” — Glenn McGrath, Australia‟s Most
Successful Pace Bowler. [Undated]
15. “Sachin is a genius. I‟m a mere mortal.” — Brian Lara, Tendulkar‟s Greatest Frenemy. [Undated]
16. “I haven‟t seen Bradman playing, but I have seen Sachin. To me, he himself is a milestone, and the best cricketer in the
world.” — Sourav Ganguly, India‟s most successful captain
17. “Sachin Tendulkar has been the most complete batsman of his time, and arguably the biggest cricket icon as well.” —
Sambit Bal, Editor, Cricinfo
Sachin Tendulkar, Bandra, Mumbai, India. On Twitter: @sachin_rt
Sachin Tendulkar: Curriculum Vitae

MAJOR BIOGRAPHIES:
1. Sachin: The Story of the World's Greatest Batsman [by Gulu Ezekiel]
2. The A to Z of Sachin Tendulkar [by Gulu Ezekiel]
3. Sachin Tendulkar — A Definitive Biography [by Vaibhav Purandare]
4. Sachin Tendulkar — Masterful [by Peter Murray, Ashish Shukla]
5. Tendulkar Opus [by Opus Media Group]

MEDIA COVERAGE:
Are you kidding me?

LANGUAGE SKILLS:
Fluent in English, Hindi and Marathi.

PERSONAL DETAILS:
Date of birth: April 24, 1973
Hometown: Mumbai
Family: Wife Anjali, daughter Sara, son Arjun.

EARNINGS:
Approximately Rs 60 crore annually (That‟s Rs 600,000,000 or USD 13 million or GBP 7.8 million or Euro 8.7 million).
Sachin Tendulkar
Mumbai, December 21, 2010

Note: This CV hasn’t been authorised by Sachin Tendulkar or his representatives. It was compiled with help from various
cricket news sources by AR Hemant, a journalist with Yahoo! Cricket. [Last updated: December 21, 2010].
Sachin Tendulkar, Bandra, Mumbai, India. On Twitter: @sachin_rt
You can also download pdf format resume of sachin from here bit.ly/sachin_resume


Saturday, December 18, 2010

What all this IIMA grad learnt after his degree(story about Siddharth and Nidhi)




The last thing you know Indian Institute of Management, Ahmedabad for, is its love stories. But there was this love story that made news in 2004-2005, about Siddharth Choudhary, from IIMA (then an undergrad) and Nidhi from a college near-by. Then, people said their love story was  sweet and that it would weather all storms. 
Months later, the couple did weather a huge storm when Nidhi was diagnosed with cancer. The duo came out strong and unscathed from it and this journey is now encompassed in a book titled ‘Eagle Spotted, Message Decoded.’ The book is written by Siddharth and has just about hit the stands.

Siddharth told Pagalguy that much of his learning in life happened after his graduation from IIMA.  “There are lots of things you don’t learn at a management school. Life tests you and you have to learn quickly  without any prior training. But yes, my MBA degree gave me the confidence to bounce back in life,” he said.




Girl met boy
Siddharth first spotted Nidhi at  a small time tea stall just along side the IIM-A campus boundary wall. Ram-bhai’s ketli, (Gujarati name for a tea-stall)  has always been life line for students of the institute for sutta and chaiany time of the day or night. Nidhi was visiting the ketli with some of here college friends. There started the little college romance between the two, Nidhi being a localite and studying in a city college.
After graduation in 2005, Siddharth and Nidhi got married and started living in Mumbai. As part of final placements, Siddharth got placed with Monsanto India Limited in Mumbai in a marketing role. Later he moved to Johnson and Johnson, Mumbai, also in the marketing line.

Life took a U-turn
Life seemed perfect.An IIMA degree to boast about, a plush job and home and a loving wife. But about a year or so after marriage, Nidhi was diagnosed with a rare brain  tumour called  Medulloblastoma. “We were also told it was an aggressive tumour for which there was no cure in allopathy,” said Siddharth.
Nidhi’s case got further complicated because the tumour had spread from origin to spine, making her case even more rare. This was the beginning of a rather tumultuous journey for the couple, where they realised that no degree prepares you for these situations.
Nidhi went through agonising pain and constant black-outs. She was finally operated in Mumbai. Post the operation however, Nidhi was moved to Ahmedabad for chemotherapy and post-operative treatment as her parents were there.  “I travelled every weekend to see her and made it for every doctor’s appointment.  But I realised, she needed me more than just these visits. The doctors were giving up on her  and I decided to take that one big step,” recalls Siddharth.

Good-bye job
The IIMA grad just chucked away his well-paying job and went to Ahmedabad to be with his wife. “Everyone told me I was doing the wrong thing. My parents,  colleagues and all our friends. But I was adamant. My wife needed me more. When and if things turn out well, my degree will get me another job, I justified to myself,” Siddharth told Pagalguy.
In Ahmedabad, Siddharth spent many sleepless nights with Nidhi since the chemotherapy sessions were painful. That was when Siddharth told her stories about IIMA days and the days before IIMA when he was a marine engineer. “After a few such sessions Nidhi told me to pen down my little stories in a book. Since I used to wait for Nidhi to sleep first and then sleep myself, I used that time to jot down my stories in my diary. I thought then that my stories were too simple and only meant for Nidhi to cheer-up,” said Siddharth.
The coming days turned out to be worse. “One after another, the doctors began giving up on Nidhi and at that time I wanted to throw the diary out,” recalls Siddharth.

Hope returned
But hope came again. A doctor in Kolkata took up Nidhi’s case and slowly and surely life came back into her body. Regular doctor visits,  a strict control on diet and proper medicine intake made Nidhi come back on track.  Today after many months, Nidhi is off medicines too.  “Somewhere during Nidhi’s recovery, I came back to Mumbai and almost immediately got a job again. I guess I owe that to my management degree. Today Nidhi is also in Mumbai and our life has started again,” said Siddharth.

MBA degree
“There were many lessons from IIM-A that might have helped me during my crisis. It teaches you to deal and live in pressure, race against time and win most times. But one thing that come to my mind when I look back at my years at IIM-A, I feel my course would have been complete if I was also taught life skills. How to deal with people and their inflated egos, how to lead and make people see the bigger picture as you see it. Education needs to  go beyond careers, placements and packages”.

(Siddharth’s book, ‘Eagle Spotted, Message Decoded’, is the story of a marine engineer who on his  first job on the ship lacks confidence to face life at sea. The book is on how he learns to gather his strengths and overpower his fears – exactly what he did when he learnt  of his wife’s cancer.  Siddharth himself is a trained marine engineer who sailed for over three years before joining IIM-A. The book is dedicated to his wife.)

Friday, December 3, 2010

GOD - General Operations Director (NS 2 Wireless Networks Simulation)



GOD is general operations director who is aware of whole network topology.
Here god sets the dist (# hops) between node 0 and node 4 to be 1.
( but why/where is this information used??-answer awaited from CMU. )

The General Operations Director (GOD) object is used to store global 
information about the state of the environment, network, or nodes that an
omniscent observer would have, but that should not be made known to any 
participant in the simulation. 

Currently, the god object is used only to store an array of the shortest 
number of hops required to reach from one node to an other. The god object 
does not calculate this on the fly during simulation runs, since it can be 
quite time consuming. The information is loaded into the god object from the 
movement pattern file where lines of the form.

$ns_ at 899.642 "$god_ set-dist 23 46 2
are used to load the god object with the knowledge that the shortest path between node 23 and node 46 changed to 2 hops at time 899.642.

The generator for creating node movement files are to be found under "~ns/indep-utils/cmu-scen-gen/setdest/" directory local ns2 installation. Compile the files under setdest to create an executable. run setdest with arguments in the following way:



./setdest -n num_of_nodes -p pausetime -s maxspeed -t simtime -x maxx -y maxy outdir/scenario-file


Note that the index used for nodes now start from 0 instead of 1 as was in the original CMU version, to match with ns’s tradition of assigning node indices from 0.

For details, refer: http://www.isi.edu/nsnam/ns/tutorial/nsscript7.html

Tuesday, November 30, 2010

Emptiness!!(Lonely) Rohan Rathore IIT Guwahati (Lyrics and Chords)[tune mere jana kabhi nahi jana ishq mera dard mera..]












A song sung by ROHAN RATHORE from IIT Guwahati and he was suffering from cancer. He sang this song for Supriya a girl he loved more than anything and anyone in the world. Unfortunately she didn't return his love but this song was something he felt he had to do. He died just 15 days after recording this song. ( awesome song!! ♥ ♥ )





Oh love of mine, with a song and a whine,
You're harsh and divine like truths and a lie.
But the tale ends not here
I have nothing to fear
for my love is a yell of forgiving and hold on.

In the bright emptiness, in a room full of it,
is a cruel mistress - my heart!
I feel this unrest, that nests all hollowness,
for I have nowhere to go and I'm cold.

And I feel so lonely yeah...
There's a better place than this: emptiness.
And I'm so lonely yeah... 
There's a better place than this: emptiness yeah...

Aa.. aa.. aa...

Tune mere jaana.., kabhi nahin jaana..,
Ishq mera, dard mera.. haaye..
Tune mere jaana, kabhi nahin jaana,
Ishq mera, dard mera

Aashiq tera... 
Bheed mein khoya rehta hai...
Jaane jahaan.... 
Poocho toh itna kehta hai - 

That I feel so lonely yeah...
There's a better place than this: emptiness...
And I'm so lonely yeah...
There's a better place than this: emptiness yeah... ya..

Aa.. aa.. aa...

/*English Translation of the Hindi Section of the Song*/

Tune mere jaana, kabhi nahin jaana, (You, my love, have never ever realized)
Ishq mera, dard mera (my love, my pain) 
Tune mere jaana, kabhi nahin jaana, (You, my love, have never ever realized)
Ishq mera, dard mera (my love, my pain)

Aashiq tera... (Your lover)
Bheed mein khoya rehta hai... (remains lost in the crowd)
Jaane jahaan....  (My dear love, wherever ...)
Poocho toh itna kehta hai - (... asked, he just says ...)

That I feel so lonely yeah...
There's a better place than this: emptiness.
And I'm so lonely yeah... 
There's a better place than this: emptiness yeah...

Here is the Download link of the song:http://bit.ly/rohan_rathore







Rohan Rathore - Emptiness Lonely Chords


The intro lead is played with a piano which continues throughout the song.



The guitar tabs are as follows. The tabs are given in a lower octave which
sound equally appealing. To math the original octave, place a capo on the
12th fret and follow the same tabs.
----------------------------------------------------------------------|
-----1-------1---------1-------1--------------------------------------|
---2---2---2---2-----2---2---2-----------3-------3--------------------|
-3-------3---------2-------2-----------3---3---3---3------------------|
-------------------------------------5-------5------------------------|
----------------------------------------------------------------------|

----------------------------|
----------------------------|
-----0-----0-2-0------------|
---2---2---------3----------|
-3--------------------------|
----------------------------|

The song -

F
Ho love of mine..
       Am
with a song and a wine..
       Dm
You're harsh and divine..
            C
like truths and a lie..

F
but the tale end's not here..
     Am
I've nothing to fear..
       Dm                         C
for my love is yell of giving an hold on..

       F
in the bright emptiness..
       Am
in the room full of it..
     Dm                 C
is a cruel mistress ho ho o..

  F
I feel the sunrise..
          Am
that nest all hollowness..
      Dm                         C
for i have nowhere to go and im cold..

              F      Am
And i feel so lonely yea..
Dm                               C
There's a better place from this emptiness..
           F      Am
And i'm so lonely yea..
Dm                               C
There's a better place from this emptiness..

F  Am  Dm  C
yei yei yei ya...
F  Am  Dm  C
Aa.. aa.. aa...

          F
Tune mere jaana..
           Am
Kabhi nahi jana..
Dm               C
Ishq mera dard mera.. haaye...

F
Tune mere jaana..
Am
Kabhi nahi jana..
Dm               C
Ishq mera dard mera...

       F    Am
Aashiq teraaa..
Dm                  C
Bheed mein khoya rehta hai..
      F        Am
Jaane jahaan aaa..
Dm                 C
Puchho toh itna kehta hai..

             F        Am
And i feel so lonely yea..
Dm                               C
There s a better place from  this emptiness..
           F        Am
And i'm so lonely yea..


More about the song and the lyrics:

The track starts with an amazing combination of synthesizer and guitar. The work of the lyricist and singer of this song is simply "awesome". Pain just oozes out through the "alaap" in the reprise.
At last, I would just say that I loved this song, and hope all of you do like this song, I feel sad for the loss of such a promising talent of India, but more than that I feel proud of this guy. Hope the girl realizes the love of Rohan for her, maybe that was what he wished for ........

[NOTE] The authenticity of the story is not confirmed. It is based on what is spread over the internet through various blogs . Other people who claims this song haven't been able to come up with a proof, until then we have decided to stick to this story. 
As per information on some blogs I got to know that the original composer of this song is Gajender Verma, and due to this very reason he is now claiming legal copyrights to this song. Some of the Emptiness videos on YouTube have been removed due this very reason. Aseem Ahmed Abbasee and Moonami Roy have written this song. So the whole story about Rohan Rathore has been cooked up for publicity of the track.
[NOTE] Folks I got to know of it from some blogs and social networking sites.

Now here is the true story behind Rohan Rathore

Some of the people( who wanted to earn by charging people for downloading this song) knew the song was good. But an underground track does not reach a wide audience easily.So they needed some means to publicize this song. Then they thought of attaching a story to it. And they munched up a story that had all the elements that typical Bollywood type movie has. It had all the elements COLLEGE, LOVE and then CANCER. It is more or less Karan Johar type masala movie material. Those people very well knew that they should target the younger generation. So they made up a story to target these people. And India these sort of eye-catcher romantic story spreads virally. And finally those morons who wanted to get share out of profits of this cheap and shameful publicity stunt had with them real good marketing strategy. And also the promotion using social networking sites helped them in their viral marketing campaign. So in short the melodrama around so called IIT-G student "Rohan Rathore" is just a cheap marketing strategy.
I can only suggest that youths nowadays should reason the authenticity of such story like "Rohan Rathore" before believing them as most of the times they are the means adopted by some idiots in-order to reap profits.
BUT STILL IN MY HONEST OPINION I WOULD REQUEST EVERYONE TO KEEP ASIDE THE CONTROVERSY BEHIND THIS SONG, AND JUST ENJOY THE TRACK.

Sunday, August 8, 2010

How to install ns-allinone-2.34 in Lucid Lynx

I am listing down the steps to install ns-allione-2.34 in lucid lynx


1. Download ns-allinone-2.34.tar from here.


2. Place it in somewhere, e.g. /home/simulator, then extract it.
$ cd //simulator
$ tar -xvf ns-allinone-2.34.tar



3. Download & install some packages from repository
$ apt-get install build-essential autoconf automake libxmu-dev


4. Install the ns2
$ cd ns-allinone-2.34


5. You might face problem with the installation of otcl-1.13, the problem can be due to the gcc-4.4.1 / g++-4.4.1 compilers. But please try this :
apt-get install g++-4.3
CC=gcc-4.3 CXX=g++-4.3 ./install

try to edit the Makefile.in too
From :
CC= @CC@
to :
CC= gcc-4.3


6. Edit some paths in .bashrc file
$ gedit ~/.bashrc

Put these lines on that file. Off course, you might change /home/simulator for it depends on where you extract ns-allinone-2.34.tar.


# LD_LIBRARY_PATH
OTCL_LIB=/home/simulator/ns-allinone-2.34/otcl-1.13
NS2_LIB=/home/simulator/ns-allinone-2.34/lib
X11_LIB=/usr/X11R6/lib
USR_LOCAL_LIB=/usr/local/lib
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$OTCL_LIB:$NS2_LIB:$X11_LIB:$USR_LOCAL_LIB

# TCL_LIBRARY
TCL_LIB=/home/simulator/ns-allinone-2.34/tcl8.4.18/library
USR_LIB=/usr/lib
export TCL_LIBRARY=$TCL_LIB:$USR_LIB

# PATH
XGRAPH=/home/simulator/ns-allinone-2.34/bin:/home/simulator/ns-allinone-2.34/tcl8.4.18/unix:/home/simulator/ns-allinone-2.34/tk8.4.18/unix
NS=/home/simulator/ns-allinone-2.34/ns-2.34/
NAM=/home/simulator/ns-allinone-2.34/nam-1.13/
export PATH=$PATH:$XGRAPH:$NS:$NAM


7. Validate it

$ cd ns-2.34
$ ./validate

(Optionally) You can create a symlink, so that ns can be called from everywhere

$ sudo ln -s /home/simulator/ns-allinone-2.34/ns-2.34/ns /usr/bin/ns

8. Try to run it.
$ ns



external link:http://www.linuxquestions.org/questions/linux-networking-3/ns-installation-wont-let-me-do-it-on-ubuntu-9-10-a-766193/
And here after you can develop and simulate codes using ns :D

Wednesday, April 7, 2010

Mapbender Installation Instructions fo Ubuntu 9.10(Karmic Koala)




Mapbender (2.6+) is shipped with an install script, located at
/mapbender_2.6/resources/db/install_2.6.sh 
(currently for unix-like and windows OS). You will be asked to input several bits of information, after that the installation will proceed automatically. Some of the things mentioned on this page, still apply. Especially all the prerequisites need to be fulfilled, the webserver configuration is not done automatically [Apache configuration, php configuration]. Installation of gettext. And also a final customization of the mapbender.conf has to be done.


Contents

Prerequisites: To be able to install and operate your own copy of Mapbender you need:
  • Webserver (sudo apt-get install apache2)
  • an installation of PHP (sudo apt-get install php5 ; sudo apt-get install php5-pgsql)
    • php-mbstring
    • php-gettext
    • php-gd2
    • php5-imagick
  • Database :Postgresql (sudo apt-get install postgresql-client-8.4 ; sudo apt-get install postgresql-server-dev-8.4)
  • Installation of gettext (sudo apt-get install gettext)

Directories

  • conf - directory for configuration files.
  • http - directory for the application.
  • license - licensing information files
  • log - logfiles will be saved here.
  • resource/db - directory for the SQL-Dump to build up the Mapbender database or update the database.
  • resources/locales - directory contains translation files for different languages (Mapbender.po files, they are basically object files).

Run the install-Script

Database required by Mapbender needs administrative privileges. There is an install-script that creates the database and creates tables and content
  • install_2.6.sh.
./mapbender/resources/db/install_2.6.sh



Apache virtual directory

After installation create a virtual directory. Edit  /etc/apache2/sites-available/default:


Alias /mapbender /var/www/apache2-default/mapbender_2.4.3/http/

       
          Options MultiViews
          DirectoryIndex index.php
          Order allow,deny
          Allow from all
       


You must reload (or stop and restart) the Apache program after making changes to the configuration file to make them take effect.


sudo /etc/init.d/apache2 stop
sudo /etc/init.d/apache2 restart


If you want to enable directory browsing, e.g. for debugging purposes add Indexes to the Options line. 



Make sure you have loaded the required modules (for example, Ubuntu and Apache2)
a2enmod deflate
a2enmod headers
a2enmod setenvif (for BrowserMatch)

PHP Configuration

You might have to make some adjustments to the file php.ini. Changes in the php.ini also become operative only after restarting the Apache web server !


sudo /etc/init.d/apache2 restart


1. During the test and installation phase of Mapbender it can be helpful log php-errors. Configure the file php.ini as follows:


error_reporting  =  E_ALL & ~E_NOTICE
log_errors = On
error_log = "/var/log/php.log"
 
2. Check the following details in php.ini allow_url_fopen parameter:
extension_dir = (path to extensions-directory)
allow_url_fopen = On
 
3. Mapbender manages access authorization in SESSIONS. Check the following details:
session.save_handler = files
session.save_path = (Path to SESSIONS-Directory). (Check authorisation!)

4. Further details of session management should be customized according to server load (see 'garbage collection' in php.ini)

5. With regard to other modules the extension gd2 should be included in the installation and configuration process.
extension=gd.so              (Linux)



# sudo apt-get install lbgd2-dev 

6. For some Mapbender modules access to a PostgreSQL database is required. If these modules should be used, you have to check the availability of the required extension in the php.ini file:
 
extension=pgsql.so           (Linux)


7. short_open_tag
short_open_tag = OFF


8. Mapbender requires simplexml and dom for XML parsing. If not installed, this will lead to some hard-to-find bugs, because PHP fails to throw exceptions! These modules should be already installed if you are using a Linux distribution, but if you compile PHP yourself you need to include these as well

Mapbender Database

Mapbender offers an install-script (install.sh) that sets up the database for you. The following descriptions shows what is happening.
Mapbender offers an update script (update.sh) that keeps your database upoto-date

PostgreSql Database

The user under which you load the database must have Postgres superuser rights during inserting the psql_*.sql files below so it can temporarily disable constraint triggers during insert.

You have to decide to either use UTF-8 or ISO-8859-1 character encoding.
  • database with UTF-8 encoding
createdb -E UTF8 mapbender
  • database with ISO-8859-1 encoding
createdb -E Latin1 mapbender
First load the empty Mapbender table definiton (schema)
psql -f pgsql_schema.sql 
Then load the data in mapbender/resources/db/postgresql/ - be sure to use the dump with the correct enconding!
  • UTF-8
psql -f pgsql_data.sql  (in subfolder utf8/)
  • ISO-8859-1
psql -f pgsql_data.sql  (in subfolder iso/)
At the end set the constraints and sequences. Here you have to check which PostgreSQL version you are using:
  • pgsql_serial_set_sequences.sql (for 8.x)
psql -f pgsql_serial_set_sequences.sql  
You can install PostGIS as follows (as User postgres (su postgres)):
  • createlang plpgsql (already installed in Mapbender >= 2.5)
  • psql -f lwpostgis.sql -d (change into the PostGIS directory!)
  • psql -f spatial_ref_sys.sql -d (change into the PostGIS directory!)


How to load the sqls in PostgreSQL: You find the SQL: /mapbender/resources/db/postgresql/
Notice: There is a difference between the ISO-8859-1 or UTF-8 data-files. Make sure you choose the right folder (iso or utf8)
psql -f pgsql_schema.sql mapbender
psql -f pgsql_data.sql mapbender
psql -f pgsql_serial_set_sequences.sql mapbender
Check the PostgreSQL log file for any errors during insert.
If you want to update from Mapbender Version 2.2.2 to Mapbender Version 2.2.3 load the sqls in the folder update
  • one column var_name in table gui_element_vars has changed
  • new table mb_user_wmc
  • update of the mapbender guis (admin1, admin2_de, admin2_en, gui and gui1. Notice, that gui_de und gui1_de are not longer part of the standard guis. We want to solve the multilanguage problem with element vars in the following versions)



Mapbender Configuration File mapbender.conf

You find the Mapbender Configuration File in the directory "conf". Here you find the file mapbender.conf-dist. Rename the file to mapbender.conf.
Choose the database you want to use (from Mapbender 2.7 on only PostgreSQL is supported):
define("SYS_DBTYPE", "pgsql"); 
If you use PostgreSQL type your database information here (here is an example):
else {
   define("DBSERVER", "localhost");
   define("PORT", "5432");
   define("DB", "mapbender");
   define("OWNER", "mb");
   define("PW", "mb");
}


perpared statements (PHP > 5.1.x, PostgreSQL > 7.4) define("PREPAREDSTATEMENTS",true);
encoding - default characterset UTF-8 / ISO-8859-1
define("CHARSET","UTF-8");




Define a directory for temporary files, this directory must have write access
define("TMPDIR", "../tmp");
URL for login (test this link to know if your mapbender software is running )
define("LOGIN", "http://localhost/mapbender/frames/login.php");
 define("MAXLOGIN", 3);
 $login = LOGIN;


URL to owsproxy (no terminating slash)
define("OWSPROXY", "http://localhost/owsproxy");


type of server-connection curl, socket, http
#define("CONNECTION", "curl");
 define("CONNECTION", "http");
 #define("CONNECTION", "socket");
define("CONNECTION_PROXY", "");
 define("CONNECTION_PORT", "");
 define("CONNECTION_USER", "");
 define("CONNECTION_PASSWORD", "");


security: path to modules
define("CHECK", false);


mail settings for internal mapbender mails Mapbender can communicate with its users by email. For example, when a user lost his/her password, Mapbender can send an email to this person with a new password.


define("USE_PHP_MAILING", "false");
define("MAILHOST", "");
define("MAILUSERNAME", "");
define("MAILPASSWORD", "");
define("MAILADMIN", "");
define("MAILADMINNAME", "");
$mailHost = MAILHOST;
$mailUsername =  MAILUSERNAME;
$mailPassword =  MAILPASSWORD;


Mapbender error logging
  • Set Mapbender error logging (see possible options below)
define("LOG_LEVEL", "error"); //"off","error","warning","notice" or "all"
define("LOG_JS", "on"); // "on", "alert", "console" or "off"
Internationalisation
define("USE_I18N", true);
  • Define default language
define("LANGUAGE", "de");   // "en", "de", "bg", "gr", "nl", "it", es" 
  • you can change the translations in the Mapbender.po (mapbender/resources/locale/de_DE/Mapbender.po files if you prefer a different translation.
    • You can edit the Mapbender.po files with an editor
    • or with poedit
    • after changing Mapbender.po you have to compile the Mapbender.mo files again, see gettext (make sure that gettext is installed).
Example - How to compile the Mapbender.mo files
msgfmt resources/locale/de_DE/LC_MESSAGES/Mapbender.po -o resources/locale/de_DE/LC_MESSAGES/Mapbender.mo


Change the Permission of log Folder

  • Linux : change the permission of log folder to 777 so that php script can write logs in it.
chmod -R 777 log


Check the Setup

You can check your setup with the script mapbender_setup.php. The script mapbender_setup.php moved to the directory:
/mapbender/tools/mapbender_setup.php
To access the script you have to move it temporary to /mapbender/http/tools/mapbender_setup.php. 

Please notice that for security reasons the directory tools should not be available for external users, as e.g. the mapbender_setup.php displays internal information about your system (PHP version, databasename, database user...). You can protect the directory by htaccess or just remove the tools-directory again after testing.
Run the mapbender_setup.php:
http://localhost/mapbender/tools/mapbender_setup.php
The mapbender_setup.php checks wether all configurations of the mapbender.conf are right and checks some system settings.



After the installation - first Login
After the installtion you can login with the user account root and the inital password root. Make sure to change this password asap in order to secure your Mapbender installation. Go to admin2_en Create and edit user to change the password.
You should not delete the user root. To administrate your applications you should create a new user f.e. admin which you use instead if user root.



If you feel any installation instruction that is causing trouble to you, then feel free to comment on this post. I will surely try to answer them when I get some time :)