I’m using a desktop with all hardware working except for my USB WiFi. Thanks to this forum. I’m piggybacking my neighbor’s wireless for Internet connection. Since that’s is my main connectivity to Internet, I can’t afford not to get my USB WiFi. And since I’m such a cheapskate, I don’t want to buy a new supported USB WiFi.
Why I choose this setup?
I’ve post a tutorial on using Parallels and Windows XP to achieve this. See it here. But XP consumed my memory like crazy. Plus for some reason it crashed quite a lot too. So I went and install Backtrack Linux but Parallel won’t play nice with USB on Linux. Keep getting IRQ 9 disable. Parallels forum said Parallels still lacking in USB support. I don’t know the exact details but I’m sure enough I can’t get any USB to work properly.
So here goes.
1) OS X up and with Built-In Ethernet running
2) VMware Fusion http://www.vmware.com/beta/fusion/
3) BackTrack http://www.remote-ex.../backtrack.html
4) Unsupported USB WiFi
5) Windows Driver for your USB WiFi (if you want to use ndiswrapper to get it working)
6) A Switch
7) A UTP Cable (yeah…)
Install VMware Fusion.
Create new VM. In setting add second virtual cd-rom. Set first cd-rom to Backtrack’s iso, set second cdrom to physical cdrom. Then set network to Bridge
Note: It’s important to use bridge instead on Host-Only as previous setup with Parallels. VMware virtual Ethernet is really VIRTUAL. It won’t shows in Network Preferences Panes. Of course you could still use Host-Only and then user this command in terminal to change the gateway “gateway add default VMware_IP” but then you’ll have problem with DNS. In 10.4 you can’t edit /etc/resolv.conf directly. scutil command won’t do any good since it’ll set DNS only for physical Ethernet.
Plug in UTP cable to you Ethernet socket and to switch (okay, you could also plug it into another computer). This is important to simulate an active Built-In Ethernet. If Built-In Ethernet not active, VMware will start with network disconnected.
Go to System Preferences > Network. Then configure Built-In Ethernet. Use this setting
Configure IPv4 : Manually
IP Address : 10.0.0.2
Netmask : 255.255.255.0
Gateway : 10.0.0.1 (this is VMware‘s IP)
DNS : Depends on your ISP. Mine is 126.96.36.199 and 188.8.131.52
Click on Apply Now.
Now start your VMware. Backtrack will load. Then login with username:root and password:toor.
Insert your USB WiFi. If not automatically connected to VMware. Click on USB logo at bottom right of VMware window and enable you USB WiFi. Open terminal in Backtrack and type
lsusbYour USB WiFi should listed there.
Only follow this if your USB need ndiswrapper to work on linux. I’m using Aztech WL230USB.
Insert driver’s disk and mount it. Locate your .inf file. For me it’ll be in /mnt/hdc_cdrom/INF/
Then in terminal run this
ndiswrapper –i /mnt/hdc_cdrom/INF/filename.infndiswrapper –l (check if driver installed correctly)ndiswrapper –m modprobe ndiswrapperRead more at http://ndiswrapper.sourceforge.net
In Backtrack, open WiFi Manager and connect to your favorite AP.
In Backtrack, open Set IP, then set ip to 10.0.0.1, net mask 255.255.255.0 for eth0. Ignore gateway and DNS.
Run this command in Backtrack.
echo 1 > /proc/sys/net/ipv4/ip_forwardiptables -A POSTROUTING -t nat -o wlan0 -j MASQUERADEthese lines will basically make your Backtrack an internet gateway.
That’s it! As you can see.. weird setup. But it works!! And when I read again, I realized it’s seems hard for beginner to understand. So if you need help, just let me know.
Btw, you might want to do a real install for Backtrack to conserve memory and so your setting will be saved. Follow this instruction - http://garrett.reid.org/backtrack
And again, if you want to do this in XP and Parallels, read it here.