"केल्याने देशाटन, येतसे शहाणपण..." (Travelling makes a man wiser - Marathi proverb)
I am a traveller, set onto the journey of life. I like to watch people and machines, know them, see their life, see how they think and what they experience.
This is not a travelog. It is random, philosophical, technical - like I am at times :) This blog is my space to note down my memories, feelings, experiments and experiences that I accumulate, as I tread the Globe...
Monday, August 17, 2009
Why Indians worship many Gods?
Their Christian housemaid was amused to see her worship photos of different Gods.
maid: There is only one God. Why do you worship so many Gods?
She: We could just boil rice and eat. But still we make steamed rice, jeera rice, pulav, khichadi and so on....Its about different forms. God is just one!
Tuesday, August 11, 2009
Installing VMware ESXi 4 on Intel Atom D945GCLF2 using USB Flash drive
You can get trial version of ESXi 4 on VMWare website. This is good for 60 days. You can extract the downloaded ISO image and extract a boot image from it. This boot image can be directly flashed to a USB pen drive (larger than 1GB) and boot off directly without setting up entire stuff.
More info can be found on net for this process.
I am not sure what you would miss if you pop the ISO image on a DVD and boot using it.
You will have to enable USB boot support in BIOS setup and move USB higher up in boot order. Also make sure that USB boot emulation is set to Hard Disk. On Intel D945GCLF2, setting USB boot emulation to AUTO did not work for me.
To my dismay...the boot fails with following two errors...
Failed to load tpm
Failed to load lvmdriver
This had worked on Intel Laptop so I was quiet hopeful that it runs on D945GCLF2, being an Intel motherboard.
Quick googling reveals that the Realtek NIC in Intel Atom motherboards is not supported. The installation error is not specific i.e. "Unsupported Network Adaptor" or something like that...Apparently, the boot code uses NIC MAC address to generate unique identifier for some kind and that code fails.
Temp solution is to install a supported Network adaptor and install. My system cabinet does not have slot to add any card, even though the motherboard supports one PCI slot. This should have been checked while buying soI cant complain now. The Zebronics Chotu cabinet is quiet compact. But this lack of slot makes it bad buy for D945GCLF2 boards. The SMPS provided is also not fully enclosed. The heat generated by SMPS shares is not barred by entering cabinet. This causes the system temperature to rise by few degrees when covered up.
No plans to test ESX further on Atom now :(
Wednesday, August 05, 2009
अज्ज दिन चढेया ...(Ajj Din Chadeya)
बघायला गेलं तर टिपीकल मेलोड्रामॅटिक, व्यावसायिक चित्रपटातील अजून एक गाणं; पण सुरेख!
नेहमीचा एक सीन...तो लांबचा प्रवास करुन तिला पहायला येतो. ती भेटेल की नाही, त्याला पाहेल की नाही, त्याच्याशी बोलेल की नाही, याचा काही विचार न करता, फक्त येतो. त्याच्याकडे असतो फक्त तिचा पत्ता आणि तिला भेटायची आस. सकाळ होण्याची वाट बघत घरासमोरील एका बाकावर तो रात्र काढतो...
(सकाळ किती प्रतिकात्मक असते आपल्यासाठी. आजचा दिवस जर मनासारखा नसेल, तर रात्री झोपताना नाही का वाटत कि उद्या काही मनासारखं घडू दे. सुर्य तोच असतो, दिवस तोच असतो. पण किती वेगळा वाटतो!)
हळुहळू दिवस वर येतो. त्याचा डोळा उघडतो आणि एक चमक दिसते त्यात...तो क्षण जवळ आल्याची चाहूल लागते...तो दिवस नवीन असतो..अगदी रात्री मनात आणला तसा...अलगद सुरू झालेल्या गाण्यात ते आपल्याला जाणवून देउ लागतो...मनातली घालमेल जेव्हा वाढते, तेव्हा मग देवाला साद घातली जाते आणि त्याला या गाण्यात साकडं घातलं जातं.
अज्ज दिन चढेया तेरे रंग वरगा,
फूल सा खिला है आज दिन...
रब्बा मेरे दिन ये ना ढले, वो जो मुझे ख्वाब मे मिले,
उसे तू लगा दे अब गले, तैनू दिल दा वास्ता...
रब्बा आया दर दिगार के, सारा जहान छोड के,
मेरे सपने सवार दे, तैनू दिल दा वास्ता...
बक्षा गुनाहो को, सुन के दुवाओको
रब्बा प्यार है तुने सब को ही दे दिया
मेरी भी आहोंको, सुन ले दुवाओंको
मुझको वह दिला मैने जिसको है दिल दिया
आसमां पे आसमां उसके दे इतना बता
वो जो मुझे देखके हसे, पाना चाहू रात-दिन उसे
रब्बा मेरे नाम कर उसे, तैनू दिल दा वास्ता...
मांगा जो मेरा है, जाता क्या तेरा है
मैने कौनसी तुझसे जन्नत है मांग ली
कैसा खुदा है तू, बस नाम का है तू
रब्बा जो तेरी इतनी सी भी ना चली
चाहिये जो मुझे, कर दे तू मुझको अता
जिती रहे सल्तनत तेरी, जिती रहे आशिकी मेरी
देदे मुझे जिंदगी मेरी, तैनू दिल दा वास्ता...
रब्बा मेरे दिन ये ना ढले, वो जो मुझे ख्वाब मे मिले,
उसे तू लगा दे अब गले, तैनू दिल दा वास्ता...
रब्बा आया दर दिगार के, सारा जहान छोड के,
मेरे सपने सवार दे, तैनू दिल दा वास्ता...
अज्ज दिन चढेया तेरे रंग वरगा,
फूल सा खिला है आज दिन...
शेवटी ती येते आणि त्यांची नजरानजर होते. तिच्या नजरेतल्या आश्चर्याने त्याला जाणवतं की त्याचं येणं सार्थकी लागलय... हवं ते मिळाल्याचा आनंद त्याला भारुन टाकतो.
काहीतरी हवं असणं आणि ते मिळणं यालाच तर सुख म्हणतात ना? काय हवं असतं याच्या व्याख्या प्रत्येक जण वेगळ्या बनवतो मात्र. संन्यास घेणारा योगी म्हणतो की त्याला कसलाही मोह नाही, काही नकोय त्याला. पण काही नको असणं हे देखील काही हवं असणं नाही का?
वरचं गाणं जेव्हा सुरु झालं, तेव्हा मला एक प्रकारचा "Deja Vu" झाला होता. असं वाटत होतं की पुढचं गाणं मनात वाजतय आधी. का ते कळेना. घरी आल्यावर मी ते चक्क विसरलो होतो. पण सकाळी उठलो तेव्हा मनात कुठेतरी ते घुटमळत होतं पण. मनात घुटमळणारं गाणं नक्की कोणतं हे कळत नव्हतं पण. नुकतंच TV वर येणाय्रा "दिन है सुहाना आज पहली तारिख है" च्या ओळी आणि चाल मध्ये येत होती.
थोडयावेळाने सवयीप्रमाणे लॉगीन केलं आणि Love Aaj Kal ची गाणी डाउनलोड केली. जितकी मिळाली ती सगळी. रांगेने लावली तेव्हा हे अचानक लागलं. डोक्यात फिरणारं आणि प्ले होणारं गाणं मॅच झालं आणि एक शोध पुर्ण झाल्याचा आनंद झाला...अंगावर काटा आला.
त्या क्षणाला हवं असलेलं काहीतरी गवसलं आणि एक वर्तुळ पुर्ण झालं.
Sunday, August 02, 2009
Home Server Project - Installing and testing Windows Home Server inside VMware on Windows
There are still few little little things like bluetooth streaming, web based media player and remote video monitoring etc are pending...little things? well could be not so little :)
I decided to give WHS (Windows Home Server) a try and only way to do it without worrying about connecting DVD drive was to go back to Windows XP. VMware can run on Linux but remember that its a headless machine :)
So changed boot preference in grub.conf and rebooted. Windows was quickly up.
Follow these tips for installing WHS inside VMware
- Create ISO image of the installation DVD. And assign this image as DVD image in VMware
- Choose Windows 2003 Server as VM type
- WHS failed to recognize default SCSI virtual hard disk so create a virtual IDE drive of 70GB or more. (See addendum below)
- My system has 2GB RAM and dual core-dual cpu Atom processor. I allocated 1GB RAM and two processors to the VM
- Do not choose to allocate all the space at once. WHS expects a drive more than 70GB in capacity to be there and preallocates 20GB partition for itself. And does not 20GB at once during setup so its better to do thin-provisioning for the drive.
- When the virtual machine first boots, enter BIOS setup make sure that the boot order is set to Hard disk first and then DVD drive. Else you will end up entering setup every time you reboot.
Remaining installation is straightforward. WHS is built on Windows 2003 engine so you will see that branding during setup and bootups. This may have changed in final revisions.
I was quiet skeptical about running Linux and WHS inside VMware on Windows XP. However Intel Atom330 was quiet tolerant to the load. CPU utilisation was under 20 when both guest OSes were up and running. During installation the utilisation went up and stayed between 60-70 for most of the time, but never peaked to 100%.
All was well till I installed bluetooth dongle driver and logitech webcam driver. After rebooting XP is into rolling reboots, even if safe mode is chosen.
Finally gave up and back to good old Linux now :)
Addendum:
VMware has provided a SCSI driver if you want to use its SCSI drives for Windows 2003 or XP virtual machines. This is a floppy image so download it and edit VM properties to connect the image to VM (3.5" 1.44MB drive). This should detect virtual VMware SCSI drives during installation.
You can download the image from here - http://download3.vmware.com/software/vmscsi-1.2.0.4.flp
Friday, June 26, 2009
Michael Jackson is no more!
Just came to know that Michael Jackson is no more, thanks to a video comment on youtube! This news confirms it.
He was definitely controversial :) I dont know much about his career/life/songs or dance so better not make any statement. So just enjoy the video...
And here is an interesting link about his face :D
http://www.anomalies-unlimited.com/Jackson.html
Friday, June 19, 2009
Home Server Project - Remote management and configuring alets about system/hdd temperature
This rack is 8 feet above the ground hence turning the machine on is a challenge. WOL came to rescue. The onboard NIC supports wake on lan so I got one wol utility from internet. There are plenty available. I tried with two and both worked well.
Sendmail for google apps has been already configured for this box. The box is able to mail whenever apache has been started or stopped. To extend this further, I am trying to schedule cron jobs to mail me temperature status of various components. A quick tutorial and hddtemp package is now able to send me HDD temperature over mail, every 15 mins. Following command has been scheduled for it
mail -s `hddtemp /dev/sda | awk '{print $2$3}'` test@example.com < /dev/null
I am still trying to get sensor temperature but not able to get HTML mail out. It looks like a permission issue. The script works fine when ran as root, but not when through crontab.
Monday, June 15, 2009
Home Server Project - Configuring PHPMyAdmin
I was able to install php and php-mysql correctly. phpMyAdmin is needed to manage databases using browser. I could otherwise login to CLI and manage things well. Decided to configure phpMyAdmin and it ate up whole day.
First I was stopped by SELinux...
Jun 14 12:16:16 atom setroubleshoot: SELinux is preventing the /usr/sbin/httpd from using potentially mislabeled files (/var/www/phpMyAdmin-3.1.5-english). For complete SELinux messages. run sealert -l b25683a9-e1ea-429d-aa13-4130012ee64d
Tried renaming folders but no luck. One option was to disable SELinux but it was not straightforward either. after a lot of searches and reads, found the simple solution. The error itself asks to run sealert command. Ran it and it tells what to do to stop this from happening!
Next was the Apache authentication prompt. It turned out to be lack of configuration for authusers and authgroups, well not easily again, took another hour I think :)
Now page would just indicate on top corner - PHP 5.2+ required. This was a bummer. I thought it was there, but it wasn't. The DVD ISO was on the client laptop, so thought of copying it over to server and see if php 5.2 was there. The copy software indicated 40 mins ETA for copying over 54Mbps WIFI connection. "Why not copy it by 1Gbps crosscable network?", I asked myself.
The copy broke after connecting using crossover link. Apparently the server lost DNS servers by this and sshd broke. grrrrrrrrr....
Another hour worth of fiddling finally got this done. Just to tell me that the default php that came with installation was 5.1.
Next step was to download PHP 5.2 manually and compile. It was done and next problem - PHP would work fine on cli, just wont enable itself with httpd :|
I decided to go back completely on 5.1. I had avoided pointing to CentOS repo since begining. I tried doing it now. I had to manually edit repo files to replace $releaseserver by "5". And it was faily quick.
Finally at night the brain worked. I installed older version of phpMyAdmin and that was all that I needed to do in morning :) :) :)
Hopefully I can start writing php-mysql toy-code tomorrow!