Tuesday, May 18, 2010

Converting ASUS WL-520GU into a Standalone Bitorrent Client, NAS/FTP Server.

A powerful pc + an unlimited broadband internet connection = ultimate recipe for shocking power bills. This is the perfect solution for this nightmare. Consider this: an average pc will consume 150W of power on idle/downloading. The below described download rig solution requires just 3W of power & will double up as a wifi router also. The total cost of setting this up is around 1900rs (price of the router) + 800rs (price of a 8gb pen drive). Plus you need to have a lot of time & patience also.

Before starting, someone would be wondering why i selected the ASUS W-520GU?? Its just a 'G' router, only one USB port & pretty basic hardware specs. The reason is simple: its cheap, easily available & will get the job done pretty easily. Ofcourse you can opt for any other DD-WRT compatible router. Select one according to your budget & purpose. Better routers with more ram & faster memory will allow more simultaneous downloads & better speeds.

I've seen a lot of tutorials available on the internet regarding installing DD-WRT onto the ASUS WL520GU & installing optware to make it a Standalone Bitorrent Client & NAS/FTP Server. But in none of them i've found a detailed step by step instruction of how to get it done. Me being a complete n00b in Linux made things a little more worse for me. After a lot of reading, researching, trial-error, banging ma head on the wall i've finally done it & the initial impresson was "OMG this was so simple if i'd have done it in the proper way the fist time itself". Ofcourse there were a lot of tutorials available on the net to how to get this done, but no single guide to get the job done from the ground up. So iam writing this for all those people who wants to convert the router into a standalone torrent downloader with NAS & FTP using Optware on DD-WRT.

Iam assuming the reader to be having an intermediate computer knowledge & zero linux knowledge..

Before getting started, you need require these:
1) ASUS Firmware Restoration Utility (Can be found on the supplied Utilities disk or downloaded from the internet.
2) DD-WRT Firmware File.
3) Hiren's Boot CD or a Live Linux CD. I prefer Hiren's Boot CD.
4) A thumb drive or external hard disk.
5) A telnet client like putty.
6) FTP Client like FileZilla.

Step1: Installing DD-WRT onto the router.
This is pretty much striaght forward. First of all the "ASUS Firmware Restoration Tool" is required to be installed. I find this method much more easy than using the web interface for flashing. I'd recommend connecting the PC/Laptop via a LAN cable for this.
Follow these steps:
1) Manually set the address of the PC/Laptop's LAN card to 192.168.1.10 and subnet mask 255.255.255.0.
2) Remove the power connector from the back of the router.
3) Using a pointed object press & hold the reset button. Connect the power connector back while holding the reset button.
4) Wait till you see the flashing power light & now release the reset button. The router is now in recovery mode.
5) Open Asus Firmware Resoration tool from Start -> All Programs -> ASUS Utility -> WL-520GU Wireless Router -> Firmware Restoration.
6) Browse for the already downloaded firmware file & click upload.
7) Wait till the process get over. The router will automatically restart.
8) Wait for some 5 minutes & power cycle the router.
9) Change the LAN card's setting to obtain IP address automatically.
10) You should be able to login the to the web interface in the address htpp://192.168.1.1 with username & password as admin.

You will be greeted with a screen asking you to change the username & password to a more secure one. I'd suggest to keep both of those as admin/admin as i will be using those as the username/password for the rest of this guide.

Step2: Preparing the USB Drive.
This step can done either by using a Linux Live CD or Hiren's Boot CD. My personal preference would be Hiren's Boot CD. Run Hiren's Boot CD & launch Acronis Disk Director Suite. Delete the partition(s) on your pen drive/hard disk & create four new partitions with the following specifications:

Partition no: -- Type -- Size -- File System -- Label
  1 Primary --  320MB -- EXT3 -- Optware
  2 Primary -- 256MB -- Swap -- Swapfile
  3 Primary -- 256MB -- EXT3 -- JFFS
  4 Primary -- (rest available space) -- EXT3 -- Data

Apply the changes & close Acronis Disk Director Suite. Reboot the system.

Step3: Initial Configurations to the router before installing Optware.

1) Goto the Services tab -> Services sub tab -> Enable Secure Shell & Telnet.
2) Goto the Services tab -> Usb sub tab -> Under USB Support enable everything except USB 2.0 support & FAT File Syatem Support.
3) Select the Disk Mount Point as /opt
4) Goto the Services tab -> NAS -> ProFTPD -> Enable. Files directory: /mnt. Allow Write: Enable. User password list: admin admin.
5) Goto Administration tab -> Management sub tab -> JFFS2 Support: Enable.

Step4: Installing Optware.

1) Open putty & in the host name files type in 192.168.1.1. Port: 22. Connection type: SSH. Click open.
2) Since connecting for the first time, a putty Security Alert window will pop up. Click on Yes.
3) On the putty login screen, login as: root & password: admin.
4) In the root prompt type: wget -O /tmp/prep_optware http://wd.mirmana.com/prep_optware. press enter.
5) Once the previous instruction finishes & returns back to the root@DD-WRT:~# prompt, type: sh /tmp/prep_optware. Press enter.
6) Downloading & installation of Optware packages will commence. This is a very time consuming process & stresses the router very much. Close the web interface to free up some system resources.

Have a break. Have a coffe, take a quick nap or anything. No user intervention is required till the process get over. It'll sure take some 20min+ to get everything downloaded, insalled & configured.

7) Once everything gets finished & the root prompt is returned, wait for some 2 minutes & reboot the router. This can be done either via the web interface or typing in "reboot" at the root prompt.
8) Once the router reboots, wait for some 2 minutes more & login using putty.
9) Mount the last of the 4 partitions onto /mnt. This can be done by issuing the following command to the root prompt. mount /dev/discs/disc0/part4 /mnt.
10) Check that all partitions are mounted using the command "mount". Check for the available free space using the "df -h" command at the root prompt.
11) Enter the command "service" at the root prompt. It'll show all the installed services. The running ones are shown in green & disabled ones are shown in red.

Any service can be started using the command: service start
Services can be stopped using the command: service stop
Before any service can be started, it whould be on first. Services can be switched on using the command: service on
After stopping the service it should be switched off if not required to be loaded everytime the router reboots. This can be done using the command: service off.

12) Twonky service is enabled by default which is a massive resouce hog & is not required for our purpose of BT downloads. To recommend it enter the following two commands in the root prompt:
service twonky stop
service twonky off
13) The automount service will already be started, if not start it by issuing the following command in the root prompt: service automount start

Optware is sucessfully installed. But we still need to start the transmission service & configure it which is described in the next step.

Step5: Starting & Configuring Transmission

1) Start the transmission service by issuing following commands in the root prompt:
service transmission on
service transmission start
2) Configure the folders for transmission using the command:
/opt/bin/transmission-daemon -g /mnt/data/torrents/.config/transmission-daemon
killall transmission-daemon
This will create all the required folders for the Transmission client to use. Just to double check, check wether the transmission service is running or not once more. If the service is just started, wait for some 1 minute before proceeding to the next step.
3) Starting Transmission Client web interface for the first time. Type in "http://192.168.1.1:9091/" in the browser address bar. This will open up the transmission web interface.
4) Open preferences by clicking the gear icon on the lower left corner. Change the download to field to "/mnt/data/torrents/downloads" if not already the same folder. Change any other required settings & click save.
5) Try adding a test file to the download list by clicking on the open button on the top left & browse for a .torrent file. Tick the start when added option & click upload. The file download will start.

Setp6: Accesing the downloaded files.
Since we already started the FTP service, all we need to do is open FileZilla enter the required details. Hostname: 192.168.1.1 , Username: admin , Password: admin & click quick connect.
The downloaded files can be accessed in the "/mnt/data/torrents/downloads" folder. Once the file is coped to the PC, the file can be removed from the downlaod list by right clicking the particular dowload & selecting the "Trash Data & Remove from List" option.

Notes:
I've noticed the router taking some more time to boot up. May be due to the extra services.
While switching on the PC, the wireless connection seems to be taking some more time to get connected. may be some 5-10 seconds more.
Apert from these everything seems to be normal.

Tips:
Always keep a check on the free space available on the disk by using the command "df -h"
Initally I've got file errors after i try to ftp the file to the PC. This issue is resolved by not logging using the FTP client while the download is on progress. Don't know wether this was the reason, but it fixed up the problem for me.

Happy Downloading!!!

Thursday, March 4, 2010

Graphics Card's Memory: Does the size only matter or Are there other things to consider also?

I've seen a lot of bragging "My PC has got a 1GB graphics card". But is the VRAM size only the yardstick of a graphics card's performance?? Most people think so. "If my card has more memory, it will perform more". This is the common notion. This is true to a certain extent. More VRAM means more memory space to hold textures & more resolutions and detailed textures are possible.

There are three major factors that people usually skip or ignore while choosing a graphics card. Those are:

1) The Graphics Processor (GPU): This is the brain of the graphics card. All graphics processing is done on this chip. When we say "Geforce 9600GT", we are actually referring tho the graphics processor. The faster the GPU, the faster would be the performance. This is the first point: There is no point having a graphics card with 1GB memory & a slow GPU. Its like having a PII with 1GB RAM. The ram will be able to hold a lot of data, but with a slow processor there is no use having such amounts RAM as the processor is not fast enough to process all those data in an efficient manner. Unprocessed data is of no use, to process all those information fed by the ram, a really fast processor is required. Saying which GPU is fast, faster & fastest is not easy. Do your bit of homework before selecting one..

2) VRAM Type: Currently there are three types of VRAM being used in graphics card. DDR2, GDDR3 & GDDR5 (in the ascending order of performance).  The difference being the speeds at which they operate. Why the VRAM needs to be speedy when the primary purpose of it is to hold data??. If the VRAM is faster it can pump in data much faster into the GPU & the GPU will be able to write data more quickly. This will increase the efficiency of the GPU & will help it do more operations per unit time. Also this makes sure that the GPU is not starved of data & is not running at its full potential.

3) Bus Width: Bus width means the number of bus lines that connect the GPU & VRAM. Its number determine the amount of data the gpu will be able to access simultaneously. A 64-bit wide bus means the gpu can access 64-bits of data in one ram access cycle. Bus Width along with the VRAM speed determine the memory bandwith (the amount of data that the GPU can access from the VRAM, usually expressed in GB/s). This is one important performance criteria.

So beware when you argue the next time with someone that your 9400GS 1GB DDR2 is really faster than his 9800GT 512MB DRR3 since it has twice the VRAM..

Price of XBOX 360 Elite = PS3 Slim 120GB.. But are they really equals??

This is not one of the XBOX 360 vs PS3 topic. Both XBOX 360 Elite & PS3 Slim 120GB retails for almost 19K INR. They seems to be almost equals, as most people compare the hard disk capacity only. Since both have 120GB HDD's most people think they are almost equals. But are they really equals?? Read on if you want to find out..

1) A wireless adapter: Not any version XBOX 360 (not even the highe end Elite version) comes with a builtin WiFi. So a Microsoft XBOX 360 Wireless Networking Adapter is required which will cost some 5K INR. Its a real pity that Microsoft haven't bundled something as basic as WiFi. PS3 & Wii have it inbuilt, even the little PSP has it inbuilt!!!

2) The controller does not come with a rechargeable battery. If you don't want to buy a lot of disposable batteries (& of course pay a lot for them), a Xbox 360 Play & Charge Kit which cost around 1.2K INR. The PS3 don't need this as a rechargeable battery is builtin the controller!!

(Of course there are a lot of other features missing in the 360 like the BlueRay drive & so, but those can't be added to the 360. So excluding them out of the comparison)

So if you want the XBOX 360 to have all the features (atleast some) to match the PS3, you will have to shell out 6K INR more, so the total price becomes 25K!!.. Plus you'll have to shell out some 3.2K INR per year if you want to play online, whereas PSN is completly free.. One more thing the PS3 hardware is far superior to the XBOX hardware in terms reliability, build quality & performance.

So is the 360 Elite & PS3 Slim 120GB still seems to be equals to you?? Everyone making a buying decision between the XBOX 360 Elite & PS3 Slim 120GB, don't be fooled by equal price of both. Consider the above facts while making a decision.

For all those who think why iam i slamming the 360 in all my posts & iam a PS3 fanboy.. I own both the consoles.. But all those i've posted are facts & are completely true.. Iam not a fanboy of any console..

Monday, March 1, 2010

The XBOX 360 vs PS3 saga.

     There are a lot of articles available on the net regarding the console war between the XBOX 360 & PS3. Most of those makes out the difference between the hardware & other technical details that don't matter much to the end user. I've also been into a buying decision between the two & these are the inferences i got from hours of research into the topic. So lets begin..

     The XBOX 360 currently comes in two flavours. The Arcade version & the Elite version & the PS3 comes in the 120GB & 250GB versions. Iam exluding the XBOX 360 Arcade & PS3 250GB from the comparison to make this a fair competition between the XBOX 360 Elite (120GB HDD) & the PS3 120GB.

    Iam using a special rating system here. The total rating is for 10pts & the two will share the 10pts (XBOX 360 : PS3) according to their success in each round. For example if the XBOX 360 has a  complete win over the other, the point would be (10:0), if its a draw then (5:5) & so..

1) The price point: The Elite retails for Rs.19,000 & the PS3 retails for Rs.18,500 (both cost $299 internationally). So its almost a draw, but there is a catch here. The XBOX 360 don't have a built-in WiFi, you'll have to purchase a separate WiFi adapter which cost around Rs.4500. This don't really matter to some but those who want to reduce cable clutter, who have a WiFi network or who have to make extensive cabling to for connection, the lack of WiFi is a real letdown. The over the top pricing of the WiFi dongle (ordinary PC wifi dongles cost less than Rs.1000/-) makes the matters worse for the 360.

Verdict: Its a draw here (5:5), but if WiFi really matters: PS3 wins (2:8).


2) The "modability" issue: There are a lot who don't want to pay for the games they play & want to "mod" their console to play pirated discs. Here there is not much of a competition as the PS3 is unmoddable & the XBOX 360 cleanly wins.

Verdict: XBOX 360 wins hands down (10:0).


3) Game Library: Both consoles have their own exlusives & the library is more or less balanced.

Verdict: Draw (5:5).


4) Online play "XBL vx PSN": Though XBL is slightly better than PSN, XBL is paid. Whereas PSN is completly free. You've pay only for the games.

Verdict: PS3 pwns 360 (3:7)


5) Reliability: The first word that comes to mind speaking of reliability of the 360 is the dreaded RROD, earlier versions had a failure rate of more than 33% which is unacceptable by any standards. Though the initial PS3's had YLOD's & SOD's, they were limited to a few initial version & even then the failure rate is just .5%. The jasper versions of the 360 has said to have addressed the RROD issue

Verdict: PS3 edges over the XBOX 360 (2:8).


6) Media Center Part: Both consoles can double up as your Media Center. But here also PS3 has a clearcut advantage over the XBOX 360. The advantages of PS3 over the 360: The PS3 have BlueRay drive, builtin WiFi, easily upgradeable hard disk (since its a common SATA laptop hard disk, its less costlier than the expensive proprietary 360 drive & more flexible in terms of size also).

Verdict: PS3 maintains its superiaority over the 360 (3:7)


7) Backward Compatability: Both versions are big letdowns when comes to backward game compatability. Nobody wins here.

Verdict: No winner here (0:0).


8) Future proofness: Going by sony's & microsoft's track record, the PS3 would have a better support in the future. Games may still be released for the PS3 even after the PS4 is released (like the PS2 now). But going by microsoft's past of stopping production of games for the original xbox as soon as the 360 is released, we still can't be 100% sure that they'll stop releasing games for the 360 after the next gen console is released. The verdict is based on speculation alone considering past performance.

Verdict: PS3 edges over 360 (3:7).


9) The PAL/NTSC Question: Its plain simple here. PS3 games are not region locked (but BR movies are) & 360 games are region locked. This should hardly be a factor in a buying decision.

Verdict: Almost level (4:6).


10) The better Controller: Here there is a bit of tight competition. PS3 controller has builtin rechargeable battery (means you've to dump the controller if the battery goes bad) & is motion sensitive (though not as good as in the Wii & not much of use in games). The 360 controller is a bit more ergonomic & need to buy batteries (unless you buy the play n charge kit which'll again cost more).

Verdict: Draw (5:5)


11) Noise & heat levels: This may matter to only some. The PS3 is a cooler n quieter console compared to the 360. Since this is not a high priority issue, iam not rating the PS3 very much over the 360 for its advantage. Only Media Center enthusiasts consider his one.

Verdict: 360 falls behind (3:7)


12) Webcams n Headsets: You can use almost any webcam & bluetooth headset with the PS3. But the 360's choice is limited to Microsoft's offerings (which are costly also)..

Verdict: PS3 maintains lead (3:7).


13) Looks: Pure personal preference. Though i like the looks of the 360 more.

Verdict: Draw (5:5).


14) Game Prices: PS3 games are costlier compared to their 360 counterparts. Though buying a PS3 game means you can play online also without paying anything extra.

Verdict: PS3 loses its edge (6:4).


Here's the overall result in my opinion:

XBOX 360 : Gaming is the only preference.

PS3 : The Jack of All Trades. 


If you are not satisfied with the above, select what all matters to you from the above given comparison criterias  & see which one scores better..


Do post in your valuable comments..