Friday, 24 May 2013

Converting OVA file to VMX file


Ever downloaded OVA files and found that your virtualization player refuses to open it , then you should use this simple utility called OVF Tool.

for example , if u want convert ova type file to vmware file , 
u can use a command like this

Step 1:
download ovftool from here

http://communities.vmware.com/community/vmtn/automationtools/ovf


step 2:
Since this is a command line tool , after installation , go to the
installation directory and type ovftool

if command is recognized , then ovftool works



step 3: conversion

u can use the ovftool like this as shown below

assuming
srcfile.ova - is source file , which is in ova format
destfile_name.vmx - is destination file , which should be in vmx format


usage :

ovftool srcfile.ova destfile_name.vmx




Tuesday, 19 June 2012

My Old Garage Stuff!!

Just found my old web site , where i posted my earlier hobby projects... going to compile them all.


1.http://harisoft.net.tf/index_files/Page597.htm

 this website contains old C programs , some games written by me in C are also there.
Also basic Java , RMI are there..-- All old stuff though!
Winrouter restarter software is also there!!


2. http://hartella.sourceforge.net/

HarTella is a Gnutella V0.6 Client  that i have created , it has around 20K lines and is created from scratches, it works well and users can use it connect to Gnutella network and download/share files.


Saturday, 10 December 2011

How to upgrade Huawei WA1003A to a Feature Rich Firmware


I am one of those guys who still have the Huaweii WA1003a Router provided by BSNL and its still working perfectly (guess a solid build) , but its nearly 7 years passed and  no new firmware update was provided , on asking for newer version of firmware in huawei forums... the reply was shocking as one of Huawei staff replied "Sorry , Quidway 1003A is a terminal product not a DATACOM router."(Source: http://forum.huawei.com/jive4/thread.jspa?threadID=319714&tstart=1&orderStr=9).

Ok, Finally i decided to put Third party Feature Rich firmware called  RouterTech Firmware

The upgrade process is a little difficult , but people who have knowledge of linux commands should handle this fairly easily. THIS UPGRADE PROCESS IS NOT FOR NOVICES AND ANY MISTAKES MAY BRICK THE ROUTER AND MAKE IT USELESS.

ALSO , MAKE SURE YOU HAVE ACCESS TO OTHER  MEANS OF INTERNET CONNECTION LIKE MOBILE GPRS / 3G AVAILABLE  IN THE EVENT OF YOU BRICKING THE ROUTER... YOU CAN USE  READ THE UNBRICKING PROCEDURE IN INTERNET AGAIN.




AN SMALL INTROduction TO BEGIN:
Most of the routers today have  hardware like RAM , ROM , Processor and a Boot loader, and so can run OS like Linux on it. This applies to my old Router Huawei WA1003a which on Inspection has the following configuration.

My inspection of Huawei WA1003a reveals the following:

Cpu model               : MIPS 4KEc V4.8 / 149.91 MHZ
OS : Linux version 2.4.17_mvl21-malta-mips_fp_le / MontaVista Linux
RAM : 16 MB ( please verify anyone)
Boot Loader : Adam 2


UPGRADATION PROCESS:
I Have divided the process into 4 phases and explanations are also  provided in each phase :
Phase1: Install necessary softwares
Phase2:Pre-Update configuration
Phase3: Upgrade
Phase4:Post-Update configuration


CAUTION:
·         I have done this step-by-step many times and worked fine for me,
·         However , it is your risk to proceed or not as it may sometimes brick the router.
·         Initially I too bricked my router many times but  finally I determined a way to restore it.
·         You can also restore the old Huawei firmware if you don’t like this firmware.
·         And finally , If you are novice and new  to Linux , then please don’t use this as any wrong  step may brick your router.


NOTE :

TRY THIS PROCEDURE IN A WINDOWS XP 32 BIT OS
WITH NO ANTI VIRUS SOFTWARE OR FIREWALL INSTALLED
ALSO DISABLE WINDOWS FIREWALL



Phase1: Install necessary softwares
·         I tried this in Windows XP Professional 32 Bit edition and it works fine
·         THIS PROCEDURE WONT WORK  in Win7 or Ubuntu

·         ALSO MAKE A NOTE OF BSNL (ISP) PROVIDED USER NAME AND PASSWORD FOR YOUR ROUTER SEPERATELY.
You need following software installed
·         Dot net framework (version 2 or greater) è required by  SolarWinds TFTP Server
·         SolarWinds TFTP Server 8.2  è required for backup of data from router to pc
·         Download http://www.neolics.com/getfile.php?id=196

·         After installing SolarWinds TFTP Server , create a folder in C drive called as router (C:\Router).

·         Start SolarWinds TFTP Server,  goto file-> configure  and select  Tftp root directory as c:\router and select transmit and receive in secutrity tab.

·          Now close the SolarWinds TFTP Server.

·         Download Router Repair Tool v1.0.8 from  http://www.neolics.com/getfile.php?id=196  and extract to C:\router\rrt directory

·         Download  Download PCTool  v2.1  from http://www.routertech.org/downloads/firmwares/class2/ar7_upg_tools.zip

And extract to C:\router\pctool

·         Keep pctool 2.1 folder and delete other folders…
·         Download  firmware  file routertech-ar7wrd-adam2-firmware-1port-20110502.zip  from http://www.routertech.org/download/file.php?id=2003 and extract it to c:\router\fw folder
·          

Phase2: Pre-Update configuration:
·         Configure the system to have static ip address and have following setting:
·         Static ip as 192.168.1.10
·         Subnet mask 255.255.255.0
·         Default gateway as 192.168.1.1
·         Dns as 208.67.220.220 and 208.67.222.222
You can see this tutorial on how to do this : http://portforward.com/networking/static-xp.htm

Now to back up router environment…
·         Now open Router Repair Tool v1.0.8 to back up environment
·         Set router ip as 192.168.1.1 and user name=root and password=admin
·         Rom size=4 
·         Boot loader =adam2
·         And then select environment->backup (env)


Phase3: Upgrade
·         Start SolarWinds TFTP Server,

·         Open a telnet session to your router ip 192.168.1.1 as follows:

goto Start -> Run -> and type Telnet
you will find a Telnet Window as shown
type “o 192.168.1.1 ” , of course without Quotes
Note: The Default Router IP Address is 192.168.1.1 , if you have changed the default router IP address , then you have to enter that value
Now if you are successful , your telnet window will prompt for User name and password
The Default user name is “root”  (FOR HUAWEI WA1003A)
The Default password is “admin”  (FOR HUAWEI WA1003A)

Once , you login successfully, you can enter commands to the router.

·         enter the following commands
1.cd /var/tmp/
2.cat /dev/mtdblock/0 > mtd0
3. ifconfig  br0 mtu 500
      4. tftp -p -l /var/tmp/mtd0 192.168.1.10 -r mtd0
 
And then delete mtd0 to make some free space…
 
5. rm mtd0
6. cat /dev/mtdblock/1 > mtd1
 
Actually you will get an read i/o error here.. but continue
 
      7. tftp -p -l /var/tmp/mtd1 192.168.1.10 -r mtd1
8. rm mtd1
9. cat /dev/mtdblock/2 > mtd2
      10. tftp -p -l /var/tmp/mtd2 192.168.1.10 -r mtd2
11. rm mtd2
12. cat /dev/mtdblock/3 > mtd3
       13. tftp -p -l /var/tmp/mtd3 192.168.1.10 -r mtd3
14. rm mtd3
15. cat /dev/mtdblock/4 > mtd4
      16. tftp -p -l /var/tmp/mtd4 192.168.1.10 -r mtd4
 
And finally delete mtd4 from temp
 
17. rm mtd4
 
 
 
To check the process is correct , you will have the following as output 
In explorer
 

 
 
 
 
Setting environment values manually
·          Switch off the router
Open command prompt and type ftp 192.168.1.199 and keep it ready (don’t press enter yet)
 
·          Switch on  the router and exactly after 6 to 12 seconds , press enter
 
Note :  once you see network icon as connected ... then immediately press enter

You will get output like this:
 
·         Now type the following commans sequentially,
 
quote SETENV mtd0,0x9008f000,0x903f0000
quote SETENV mtd1,0x90010090,0x9008f000
quote SETENV mtd2,0x90000000,0x90010000
quote SETENV mtd3,0x903f0000,0x90400000
quote SETENV mtd4,0x90010000,0x903f0000
 
 
after wards check whether values are passed ok by running following commands
 
quote GETENV mtd0
quote GETENV mtd1
quote GETENV mtd2
quote GETENV mtd3
quote GETENV mtd4
type ‘quit; and exit ftp
 
 
 
Now run pctool 2.1
·          
·         Now run pctool 2.1
·         press retrieve IP address
·         Select file type as binary
·         Select media type as flash
·         Select  "Firmware - Kernel/FS" in download to T1 bootloader and click download
·         Now select C:\router\fw\RouterTech_3.6.0D_20110502_2.96_AR7WRD_Adam2_1-Port_firmware.upgrade.img file.
·         You will get a message that says something like “ successfully loaded to the flash”
·         After you get this message, switch off the router immediately
·         Switch on after  some seconds and wait for 1 minute 
·         You will see ADSL led trying to blink ,
·          Open your browser and type 192.168.1.1
·         Now enter user name as “Admin” [ note the Initial capital letter ]
·         Password as “Admin”  
·         First , thing to do is to reset router to default config
Goto system->restore defaults (router will get rebooted)
 
Now you have installed firmware , congrats! But wait its not over yet…
 
 
The Post-Update configuration step is very important


Phase4:Post-Update configuration:

·         Open your browser and type 192.168.1.1
·         Now enter user name as “Admin” [ note the Initial capital letter ]
·         Password as “Admin”  
·         Goto system->tools->update gateway -> choose file and select the C:\router\fw\RTech_AR7WRD_config.img file
·         And click update gateway 
·         When you get status as “Upgrade Successful” 
·         Click on restart gateway…
 
·         Now , to configure the LEDS to work properly , do the

Following steps:
1)Log into the router again, 
2)Goto System->RT Configurations
3) Add a check to "Choose LED file" 
4)type “wa1003a” in  text box
5)Click "Save changes" button 
6)Finally, click restart router
 
 
 
And now finally , you need to configure your BSNL user name and pass word as follows:
 
1.goto setup->WAN setup->new connection
2.enter connection name like bsnl or whatever you like
3.choose connection type as PPPOE
4.BSNL (isp) provided user name and password
5.GOTO TOOLS->SYSTEM COMMANDS -> SAVE ALL
6.AND FINALLY , .GOTO TOOLS->SYSTEM COMMANDS -> REBOOT ROUTER
CLICK YES AND REBOOT….
 
Hurray,! you should now be connected , enjoy your new Router…
 



Issues :


* only Status LED will not blink.. i will give try to figure out the configuration later..
* note Telnet user name="root" and password="Admin" for router tech firmware


Restore process to get by original Huawei firmware:

* If your router does not respond.. dont worry... you could unbrick your router if you have backed up earlier..

To restore the original firmware , you need the back up files mtd3 and  mtd4 , you would have backed up earlie...


Restoration Process:

1.goto command mode,

2. change directory to the folder that has mtd3 and mtd4 , in my case i have those files in C:\router....


cd C:\router

3.Now , Switch off the router
 
In  command prompt and type ftp 192.168.1.199 and keep it ready (don’t press enter yet)
 
·          Switch on  the router and exactly after 2 to 3 seconds , press enter


once loggged in to ftp service ...
NOTE : USER NAME AND PASSWORD ARE BOTH "adam2"

enter following commands sequentially.

quote SETENV mtd0,0x90091000,0x903f0000
quote SETENV mtd1,0x90010090,0x90091000
quote SETENV mtd2,0x90000000,0x90010000
quote SETENV mtd3,0x903f0000,0x90400000
quote SETENV mtd4,0x90010000,0x903f0000

quote GETENV mtd0
quote GETENV mtd1
quote GETENV mtd2
quote GETENV mtd3
quote GETENV mtd4

quote "MEDIA FLSH"
bin
 
put mtd4 "fs mtd4"
put mtd3 "fs mtd3"

quote REBOOT

* now your router should be restored to old firmware....


* first thing you have to do is to reset your Router to defaults and enter a fresh configuration of user name and password ... and Enjoy!


Do post your queries here itself and dont PM me... Thanks

References:
I found very helpful resources from these sites...
1.http://www.linuxsmiths.com/blog/?p=427
2.http://www.routertech.org/viewtopic.php?f=16&t=4512



Update : guys i restored back to original huawei firmware as i found / random delays in getting internet connection..... currently i am in huawei orgiginal firmware only... will try rr firmware after a new version comes..

Friday, 9 December 2011

HP WebOS is being made Open Source

WebOS is based on linux and is used HP Built mobiles like palm pixi , HP Veer etc.. the pros of it are really good UI (gesture control) and now HP decided to make it Open source , i think it sure will become a good competitor to Android OS as more and more hackers and developers collobrate for development of this solid mobile OS.

Friday, 24 June 2011

a Trick to download up to 120 GB per month in Bsnl BBG FN Combo 500 plan

This trick will only be applicable for BSNL  BBG FN Combo 500 plan which has unlimited downloading from 2 AM to 8 AM




Here is a quick summary of this plan .

Monthly charge : Rs. 500
Speed: 256 Kbps to 2Mbps
Limits: 2.5 GB free usage
Night Unlimited: from 2 am to 8 am
Extra charge if traffic exceeds imposed limits: 20 paise per MB
Minimum hire period: 1 month



How much can i download per month using this trick ?


Free usage Time :  2 am ~ 8 am  ==>  6 hours of free download time.


speed = 2 Mbps 


 How much can i download in a day using free download = 2 Mbps * 6 hours


= 2 * 1048576  * 6 * 60 * 60 bits
= 45298483200 bits
=5662310400 bytes
=5529600 KB
=5400 MB
=5.2 GB



but 5.2 GB seems only theoritical , i have friends who have reported up to 4-4.5 GB / day using this technique.




How much can one download in a month ?


 Assumming  daily download  to be 4 GB /day and 30 days / month


 it will come to 4 GB * 30 = 120 GB ( ghosh! , better get a new hard disk! )



IS THIS TRICK LEGAL?


   It is perfectly legal and you are only downloading during free download hours as much you could... whats wrong in that ?


WILL THIS TRICK WORK


It works for me and my friends too... it should work for any one... who should setup this Trick carefully.




REQUIREMENTS FOR THIS TRICK:


1.System Time should be correct and should be Synchronized to latest servers in windows.
2. Your System should support Auto Powerup feature in BIOS.
3. Win XP / Win 7

4. DOT NET FRAMEWORK 3.5 ( or greater)
4. WinRouter Restarter.




TRICK TO DOWNLOAD 120 GB/MONTH USING BSNL BROADBAND




The Trick will have 4 Important Steps


Step 1: Setup Automatic BOOT Every day in BIOS


The purpose of this step is to let your BIOS automatically start your cpu and 2 AM in the morning , so that you need not wake up , almost all new CPU support Automatic powerup feature in BIOS.


* Restart your PC and go to BIOS.


* For going to BIOS you have to press a key while system is starting , 

   The key for this is different for every PC and is usually displayed in the top right 
   hand corner, on my PC the key was F2 or DEL.

*  Come to a page called " Power Management " if you do not have a page called this, 

    Look on each page for two things saying " Auto on mode " and " auto on time ".

* turn " Auto On Mode " to Everyday, Then Turn " Auto On Time " to the time you 

 would like ( It's in 24 Hours Time ) , in our case its 2 AM

*  Press ESC or the exit key you have, And if it prompts you to save your 
     changes, Hit save.

* Restart your computer and it will now automatically boot if your PC is off 
    at that exact time.


IMPORTANT NOTE:

  •  Start your system either at 10 pm or at any time at night  and shutdown it
  •  again and leave the power as it is (you may turn off monitor only) 

  •  Make sure you have your router on 

  •  Your system should automatically start at 2 AM. 

Very Important 

Do some trials to  Check whether your PC is doing auto power up by changing 
the current time  to 1.55 AM and then shut down the system , check whether 
system is auto powering up at 2 AM, several trials may be needed 
for this , and solutions may vary based on your bios version and make.


NOTE
If you are unable to setup this , then dont worry , but you have to start your pc at 2 AM manually.
or just turn off monitor and  leave you PC running continuosly and dont shutdown at night. 
and if you have Laptop , then i think laptop BIOS would usually not support auto power up feature...




Step 2 :  Setup Automatic Login for Windows 


* If there are multiple users for your system ,then your system wont login automatically

* You have to setup Automatic Login for any one of the users because during the

 night the system has to start automatically and login automatically!

you can use softwares like Tuneup utilities for change settings for Auto Login , its 

 much easy with that!

 Now Restart your PC and check whether you are logged in automatically!

Very Important
Make sure your pc is able to do Auto login


Step 3 :  Install WinRouter Restarter 
WinRouter Restarter  is a software for restarting the router at a specific time , it also shutdown system at specific time.


Here is a list of what it does :



  •  Restart the Router before free downloading hours
  •  Shutdown your PC after Free downloading hours.
  •  Automatically  starts your PC,  Restarts Router, starts download
  •   and shutdown your PC
  •  No Need to setup Windows Scheduler , It Itself has in built Scheduler , just                                            configure it by selecting  which downloading programs to run
  •  No need to install Telnet Software , has inbuilt support
  •  Nice User Interface   
  •  Low Resource Usage 
  •  And Best of All its Free!   



 Install WinRouter Restarter to and configure it  for :

   1. Your Router user name and password 

    2. What downloading software you want to start after 2 AM

   3. Time for Auto Shutdown!


you may download  WinRouter Restarter here


or 

mirror here  

RISKS INVOLVED IN THIS STEP

 TO ENJOY FREE DOWNLOAD , THE CONNECTION  SHOULD BE RESET AND STARTED AFRESH DURING THE FREE DOWNLOADING HOURS, A CONNECTION MADE AFTER 2 AM WILL ONLY BE NOT CHARGED , SO YOU NEED TO RESET THE ROUTER AFTER 2 AM. WHICH IS DONE BY WINROUTER RESTARTER.


IF YOU DID NOT CONFIGURE WINROUTER RESTARTER PROPERLY , IT WONT RESTART THE ROUTER AT 2.05 AM AND YOUR ROUTER WILL STILL BE USING THE OLD CONNECTION AND YOU WILL BE CHARGED FOR EVERY BIT YOU DOWNLOADED ,
SO BE AWARE OF THE RISKS , IF YOU DID NOT CONFIGURE WINROUTER RESTARTER AUTOMATICALLY.



Step 4 :CONFIGURE WINROUTER RESTARTER

Make sure Steps 1,2 , 3 are working properly then proceed here.

1.Configure Winrouter Restarter to restart router at 2.05 AM ( your system 
will auto power up at 2 AM and will take atleast 1 or 2 min to boot up 
 and auto login, so better restart at 2.05 AM)

2.Enter Router user name and password , and try router restart, Sometimes
 router user name and password will be different for different makes , try with 
the following combinations.


 user name : root
password : root



 user name : admin
password : admin


user name : root
password : admin


user name : admin
password : root


if your router does not restart , using these , check out the router user name and password for router make from google search.





Finally , schedule programs like downloaders to start at 2.10 AM. and configure Auto Shutdown module in winrouter restarter to shurdown at 7.55 AM.




One final word , Setting up every thing will take time and several trials are needed to setup every thing..... but once setup , every thing works like a charm....



Thursday, 23 June 2011

How to search for a file, without using windows search


Here is a way to search for a file in windows without using windows search


Step 1 : Goto command line (Windows key + R ) and type CMD

Step 2: goto root directory by typing cd \

Step 3: To search a file, type

dir /s <file name>

Eg : dir /s winrouter*.*

you can see that it can accept wildcards