Showing posts with label Technology. Show all posts
Showing posts with label Technology. Show all posts

D-Link DWR-131 3G Pocket Router Firmware

Hello,

Writing after a long time. Had a trip to Cambridge and then one survey trip to Gujarat. Also have finished almost all formalities for my Masters.

We recently bought the pocket router or Mi-Fi or mobile 3G access point from Dlink -DWR-131 3G Pocket Router. It's a nice little thing with the only disadvantage being the limited 4 hours battery life. But the review will have to wait. We also bought the DWM-156 HSUPA 3.75G Data Card to go with it. Out of the box they both didn't seem to talk to each other. So I called up Dlink's technical support and they sent over the firmware upgrade that fixed that.

Since I can't seem to download firmwares from the Dlink's site and I assume many others can't, I have uploaded the firmware on my dropbox and the link is - http://db.tt/Pafm1Jks

I hope this helps someone.

Cheers

Key

OSX86 Lion on DX58SO

Hey,

A new love, a long night and some more time to write...

After many attempts to settle on using a hakintosh at home, I've finally decided to use Lion on the house's work house (DX58SO, i7 2.98, 4GB, 9800GT). It runs Vista on a different disk along with a very stable but not too pretty install of Snow Leopard (10.6.6).

This is a running-tutorial-cum-experience-log for the setup. The extra/special things I did, I've put in Green. The entire thing would take about 2 hours in total.








OSX86 has come a long way from my first try with is using the iAktos for Leopard (10.5). For my current setup I used UniBeast(you would need to do a free registration for getting UniBeast. Follow the initial process till before Post Installation from here - http://tonymacx86.blogspot.in/2011/10/unibeast-install-mac-os-x-lion-using.html

If you have 10.7 DMG file got from "other" sources. Open it and copy the Install Mac OS X Lion to your Applications Folder.  I would also like to point out here that you would need another OSX machine, Apple or Hakintosh to get UniBeast to a drive and that the USB drive required is equal to or more than 8GB. I used a 32GB Sandisk SD, placed in a Transcend card-reader.


After Lion boots, download MultiBeast, or copy from another machine, if you internet is not working on the new Lion setup. 


The options to select from Multibeast can be got from here : http://www.tonymacx86.com/viewtopic.php?t=41190&p=264790
These are specific to Intel's DX58SO motherboard. Also at the time of writing 10.7.3 is available, but I've only updated to 10.7.2.


You should have almost everything essential working : Graphics (you may need to work on your own if it's not detected till now, mine was detected), LAN and Audio.


For getting sleep to work get this SleepEnabler.  http://www.osx86.net/view/1948-sleepenabler.kext_10.7.2.html and then use Kext Utility from Applications to install it after copying SleepEnabler.kext to the /System/Library/Extensions folder.


I did try DSDT patching, but got no further benefits, you may try at your will and kindly report if you hit anything. People have reported that sleep works without SleepEnabler for them after DSDT patching, but that was not the case with me.


I surely suggest downloading CCC (CarbonCopyCloner) and use it to keep a static or incremental backups of the entire disk, as and when you progress.







Next was to map the PC keyboard to the Mac keyboard. Windows Key becomes Command Key. I'm using a Microsoft Wireless 700 keyboard, which has only one Windows Key, but I'm used to two command keys (for CMD+I, CMD+,) so I got KeyRemap4Macbook from here : http://pqrs.org/macosx/keyremap4macbook/ 
Enabled Application Key to Command_R (under the PC users section), Volume, media and Mission Control & Launchpad keys to F1..F9 keys.




 
I also added one of my own in the private.xml file to allow sleep from one button press. You may add more using the help from http://pqrs.org/macosx/keyremap4macbook/document.html
 




If you have a NTFS partitions for Windows, I also suggest getting NTFS-3G. Lion uses only a x64 kernel and hence the tutorial here has to be followed (Do as per the comment by Juan):
http://www.offthehill.org/articles/2010/12/31/macfuse-for-64-bit-snow-leopard/


I've turned on Screen Sharing, File Sharing in OSX sharing preferences.


Installed some of my favourite applications - Evernote, Skitch, LibreOffice, Handbrake (some from the AppStore).




Enjoying the setup, with Natural Scrolling enabled. ;)


Please feel free to ask any related questions in the comments.
Thanks
Key


Update 1: Bought a bluetooth USB dongle - make Atek. Works out the box on 10.7.2. No wake from sleep though.
Update 2: Bought the Apple Wireless Keyboard. And now it's almost a complete Mac :)

Snow Leopard Internet Sharing WEP

Hey,

After a long time, I've found something really nice to write about and it's technical and it's about my MBP.


We often go out for field work and for internet we have a CDMA EVDO USB Dongle and we have about 4-5 laptops, so sharing the internet is a issue.

OS X comes with internet sharing which allows any network interface to be shared over Firewire, Bluetooth PAN, ethernet and even Airport(WiFi). When I tried to set it up, I faced issues and the other laptops (Ubuntu machines) were not able to connect. This is contrary to the "Just Works" of Apple.




After some fiddling around, I was able to get to setup a Airport network, using "Internet Sharing" in "Sharing" under "System Preferences", but WITHOUT WEP security. Select the interface to share, in my case the "Huawei Modem" and tick Airport.
If you fail at this step. Try to create a ad-hoc network in OS X, connect to it from another machine. Then disconnect the ad-hoc network and try again from the Internet Sharing. It should now be able to share the internet over Airport and see this icon in the menu bar:



You should now be able to connect from other machines.

This setup worked well for us, because the place were we go for field work is rather remote and nobody around would be hacking into an open network.

But it was still not possible to use this thing in a more "public" place, like during the journey in the train. So I tried many things to make the WEP work and finally was able to isolate the problem.

The main problem is that the WEP authentication implemented by Internet Sharing in OS X ( and I'm only talking about 10.6.8 here, because I've only one Mac), is SHARED KEY. The default for all other operating systems is OPEN KEY, so as soon as you try to connect with another machine, it fails. 


The trick to do it in Ubuntu is:


  1. Try connect to the network, it'll keep trying, but never succeed. 
  2. Then diconnect that. 
  3. Right click on network manager on the top panel, select "Edit Connection...". Goto Wireless, you'll see "Auto ". Select that and click Edit.
  4. Goto to "Wireless Security",  put the key and change the Authentication to "Shared Key".
  5. Save and close
  6. Now connect from network manager in the top panel and connect to OS X shared network.
  7. This should do it, you'll be able to get internet on the other laptops too!
  8. There is no step 8. :)
Now we have a working shared internet. 



You can do a similar thing with Windows also.

Cheers

Key

P.S.:  One Ubuntu laptop has some problem, staying connected to the wireless network, to which I share the internet over a ethernet patch cable.

OpenWRT on TL-MR3420

Open WRT LOG


Personal computers are great. You can save all your data in one place and search it out with ease. Though cloud computing would be the next big things, we are still waiting for that kind of bandwidth.


I was showing off to dad how OSX indexes everything on my MBP and CMD+Space, is all I need to do to find whatever I want to find. I found some scanned documents and dad was excited - ‘ It would be very convenient to be able to search all movies, documents, music this way, siting on any networked device in the house.’ So I implemented Wake-On-Lan on the desktop and since it runs Hakintosh, Bonjour allows easy access to the shared space. But the desktop is a Core i7 monster, and eats power like a hungry Snow Leopard ;-) .


So NAS with print-server is the next obvious solution. For now, it’s an expensive deal.


We own a TL-MR3420 3.5G router, which has a USB port to connect a 3G USB MODEM, and share it over WiFi a/b/n. But the firmware from the company allows only and only a few 3G MODEMs to connect to the USB port. I have one and it works well, but I want to use that USB port for other things - namely a USB-SATA HDD.


I found Open-WRT https://openwrt.org/ and it supports my router. It allows using the USB port anyway one wants to use the port. I was excited. Simply put, OpenWRT is like the jailbreak for the router. It’s an operating system, which supports a hell lot of routers http://wiki.openwrt.org/toh/start in the market. It’s basically a small footprint Linux, which is nothing out of the blue, since most routers run Linux.


I dusted my old WiFi router, TL-WR642, and made it active, so that the internet in the house is not disturbed.


Next was the easy step, I downloaded the X-wrt version of the firmware from http://wiki.openwrt.org/toh/tp-link/tl-mr3420 , for my router and uploaded it using the Web-GUI of the router. In a minute I was in the free land of OpenWRT!!!


It was tough to start with. X-WRT is fairly complicated, and iptables has forever freaked me out, even during my grad courses!


I managed to change the router’s LAN(eth0) IP from 192.168.1.1 to 10.64.1.1 by going to Network - > Networks and changing the IP in the lan section.

*The important thing is to press the Save button at the bottom left and then PRESS THE “APPLY CHANGES” link. If you don’t press apply changes, the changes are not committed, a mistake I made too many times initially. Also it takes a fair amount of time to commit changes, so be patient.


Similarly WiFi (wlan0) is easy to turn on - goto Network->Wifi and enable the radio and set the preferences like SSID, password, etc. The ‘range in meters’, was an odd looking settings, so I left it. You also have to enable the lan-bridge, by going to Network->Networks and set lan network type to bridged. This starts the DHCP on the WiFi also.


Next setup the wlan interface (eth1) to connect the router to another router+modem (in my case) or just a DSL Modem, as the case may be. The settings are under Network->Networks-> wlan. It you want NAT between lan and wlan (which you obviously do), you need to setup a static IP for the WAN and give the DNS also manually, as the Open-WRT would need to connect to the internet to get packages.


Next was to get the internet over the LAN. Or in simple words, getting NAT to work. I thought this should have worked by default, I even tried a few things in the webUI, but no internet on the LAN/Wifi. So I had to get my hands dirty using iptables!


Here are the two commands I used, which I found here - http://wiki.openwrt.org/doc/howto/access.modem.through.nat


iptables -t nat -I postrouting_rule -s 192.168.1.0/24 -d 169.254.1.8 -j SNAT --to 169.254.1.1

iptables -I zone_lan_forward -s 192.168.1.0/24 -d 169.254.1.1 -j ACCEPT


Where:

192.168.1.0/24 is the LAN subnet/mask.

169.254.1.8 is the IP of the Modem+router

169.254.1.1 is the static IP you setup for the wan interface

(Please change the IP address according to your networks)

These have to put inside /etc/firewall.user


So everything was up.


Next was to do that for which I had put up OpenWRT primarily for, i.e. USB port for Mass Storage Device. It’s fairly simple to do, as explained in - http://wiki.openwrt.org/doc/howto/usb.essentials and then http://wiki.openwrt.org/doc/howto/usb.storage

But, this was where I got stuck, I just could not install packages. I figured out that the problem was that the package list was meant for a more recent kernel than I was using. I also pin-pointed the problem to having installed the X-WRT version of the firmware, which had the older kernel. The obvious next step was to use the other firmware, without the webUI. I installed it, without much problems. The packages started to come. Thank God I saved the settings at the time of updating the firmware, otherwise, it would have been very difficult setting up the WiFi and some other things again, without the webUI.


I got the USB pen-drive and my SD card (via a Transend card reader) to be available as sda1 on the router. I mounted them, wrote a file to it and was more than happy! Then came the fact that I had to share this over the LAN, for which i needed a network share, and a server to host that. The choices in OpenWRT are Samba (http://wiki.openwrt.org/doc/howto/cifs.server) or NFS (http://wiki.openwrt.org/doc/howto/nfs.server). This was the finishing punch to my efforts. I RAN OUT OF SPACE. Yes, the router has a mere 4MB and Samba or NFS cannot be installed in that space along with the USB storage system. I tried to remove some other nonessential things, but I could not get any of them. I could have installed sshfs (http://wiki.openwrt.org/doc/howto/sshfs.server) and I think it would have worked, but that would not be the best thing, as I would need a lot of extra software on the PCs to allow them to see that share. So I left that, there.


Now since I didn’t have the webUI and the only way I knew of changing the firmware was the webUI, I was scared dead, wondering how to restore the OEM firmware. I came to this(http://wiki.openwrt.org/doc/howto/generic.uninstall) and used the MTD method and it worked flawlessly.


I was back to square one, but having ventured into a new space. It was 3:30 in the night and I went to bed.


In the morning I did some more reading. One can install packages into external drives, like the USB drive I mounted. That means I need the device plugged into the router, forever. Moreover, since the router cannot give more than 100mA from the USB port, I can’t run a portable HDD off it directly, I need a powered hub, which costs roughly $20. At $100 to $150 I can get a NAS with a 1TB HDD inside and print server option. So it’s not really cost effective. If I had a externally powered USB HDD, maybe, I would have made it work.


I hope this helps someone setup OpenWRT quickly, at least with the TL-MR3420 and the configuration, which I aimed for and almost did.



Cheers


key


P.S. it’s a lot technical and no screenshots, as I aim it for people knowing what they are doing and a fair knowledge of linux.

Mobile Number Portability


Ah long time and finally I'm free to write....

I recently used the new power given to mobile phone users in the country, viz. Mobile Number Portability. I shifted from my old operator -Idea Celluar to Vodafone. My reasons were many.

Idea has a very poor network in terms of voice quality in Delhi. I had been a Idea customer from last 3-4 years, but a major part of that time was in Pune, where Idea seems to have a strong hold, and where problems with Idea were minimum. But in Delhi, the network is weak and at a place where I was residing for sometime there was no signal at all. Then there was 3G. Idea has not won the 3G spectrum in Delhi, or rather in any big cities. Idea has concentrated on Maharashtra in that terms too, so I was not sure if they would ever launch 3G here in partnership. Having a 3G phone and being a regular internet user, i wanted 3G madly. The final decision that made me shift was a non-refunded recharge. Even after my MNP request, Idea failed to process my refund.

Why Vodafone? Well there was choice between Airtel, Reliance, Vodafone and MTNL(only they have 3G in Delhi.) MTNL as everyone knows, has a far poorer network in terms of voice. With Reliance and Airtel, my family has had horrifying experiences. So I was left with Vodafone. So I called up few of my friends who are Vodafone users and they seemed content, if not happy.

It's been about a week with Vodafone and my experience is mostly OK-ish. Had called the customer care once, but they were pretty rude and un-helpful and funny too( I had called up "111" and they guy on the other side told me -"Please call 111 for this information". I told him I had called 111 only, to which he said "No sir, you have called 198".) It was a pretty stupid thing, but could be a technical glitch, so I'm looking forward to my next time to talk to them, before I build a strong opinion. The network seems better, the "H" from HSDPA shines on my phone. :D Voice quality is better too.

Ah yes, it took them 5 days to transfer the connection, including a Saturday and Sunday. I had given the request on a Friday and shifted on Wednesday. Had got a Vodafone message on Tuesday night saying- "Your porting request has been accepted by your service provider. Vodafone will shortly tell you the porting time and date". I never got that message with time and date, which made me lose the remaining balance on Idea. But never mind, I was happy to leave.

That's my story on MNP. Still with my old number, in case anybody wants to call in for a chat. ;)



key!