I have moved the guide and discussion over to talk.maemo.org. See you there, or drop by at #maemo-alternatives on Freenode.
See http://talk.maemo.org/showthread.php?t=81892.
Yet another personal blog most likely focusing on technology oriented topics. May contain traces of random thoughts.
2011/12/25
2011/12/10
Nokia N900 as USB WiFi router
Update:
If you want to use just 3G then you might be better with Mobile Hotspot.
Here's how to share your N900 WLAN connection through USB-port.
First, you'll need kernel-power, usb-networking-modules, rootsh and udhcpd packages installed to make this work. Once installed, open up terminal and create file routerup.sh with the following content:
Next, make routerup.sh executable
Now, create file /etc/udhcpd.conf with following content:
Create routerdown.sh
and make it executable too.
You can use these scripts manually by plugging USB-cord (choose PC Suite mode) and then executing routerup.sh (and routerdown.sh when you're done) as root. Scripts wont work as normal user. Any modern linux system should now be able to get ip from N900 dhcp-server and have network.
If you need this connectivity often, you can put routerup.sh into N900's /usr/sbin/pcsuite-enable.sh before last line which reads exit 0, and routerdown.sh to /usr/sbin/pcsuite-disable.sh to use scripts automatically on PC Suite connection.
Windows users need http://tablets-dev.nokia.com/MADDE.php to make this work, can't write more specific instructions because the lack of windows ;)
If you want to use just 3G then you might be better with Mobile Hotspot.
Here's how to share your N900 WLAN connection through USB-port.
First, you'll need kernel-power, usb-networking-modules, rootsh and udhcpd packages installed to make this work. Once installed, open up terminal and create file routerup.sh with the following content:
#!/bin/sh
ifup usb0
echo 1 > /proc/sys/net/ipv4/ip_forward
iptables -A POSTROUTING -t nat -s 192.168.2.0/24 -j MASQUERADE
iptables -I INPUT -s 192.168.2.0/24 -j ACCEPT
iptables -P FORWARD ACCEPT
udhcpd
Next, make routerup.sh executable
chmod ugo+x routerup.shNow, create file /etc/udhcpd.conf with following content:
start 192.168.2.20
end 192.168.2.30
interface usb0
opt router 192.168.2.15
opt dns 8.8.8.8 8.8.4.4
Create routerdown.sh
#!/bin/sh
killall udhcpd
ifdown usb0
echo 0 > /proc/sys/net/ipv4/ip_forward
iptables -F
iptables -t nat -F
and make it executable too.
You can use these scripts manually by plugging USB-cord (choose PC Suite mode) and then executing routerup.sh (and routerdown.sh when you're done) as root. Scripts wont work as normal user. Any modern linux system should now be able to get ip from N900 dhcp-server and have network.
If you need this connectivity often, you can put routerup.sh into N900's /usr/sbin/pcsuite-enable.sh before last line which reads exit 0, and routerdown.sh to /usr/sbin/pcsuite-disable.sh to use scripts automatically on PC Suite connection.
Windows users need http://tablets-dev.nokia.com/MADDE.php to make this work, can't write more specific instructions because the lack of windows ;)
2009/01/23
Microscopic PAL NES / SNES power adapter mini-FAQ
Seems like there's alot of confusion dealing with NES and SNES power adapter (AC adapters, power supplies, whatever you call them) so here's (uh, almost) all you need to know of 'em. This is about european PAL models only. I'm not responsible if you break your console, yourself or anything else. Always doublecheck and if you're unsure of something, don't do it.
Q: So, what are the specs regarding power for my european PAL NES/SNES?
A: Officially, both take 9 volts AC. NES PSU is rated 9v or 9.8v 1.3A. Same applies to SNES.
Unofficially, you can plug in just about any 9V AC or DC adapter with any polarity into both NES and SNES and it will work (at least if the plug fits nicely in ;) and NES has been reported to work with as little as 410mA.
I personally use 9V DC 1A with my SNES without any problems, and actually, American SNES wich takes DC directly in (NEVER try to use those with AC adapter. NEVER!) is rated 10V DC 850mA which most likely is a bit overkill too and snes will work with less. In the innards of NES, that 9 volts is regulated to 5 volts, so it will work with up to 12 volts, with the side effect of regulator heating up more than usual, but it should not be an issue as the regulator is rated up to 18 volts. In theory, everything from 6V to 18V should work, but I'd stick with that 9V if possible. I have no information if this applies to SNES, and i advice you not to try anything than 9V or less, as SNES may have different power regulator (can anyone confirm or check it out perhaps?). There's also some talk of UK models having different specs but i cant confirm that and it sounds kinda silly to me, that there would be different PAL models. So, use your common sense.
Q: Should I buy overly priced (possibly used) official nintendo parts?
A: If you want to and can find one. I personally would recommend third party adapters, as both NES and SNES have somewhat rare sized plug. If you're buying international, check input voltage and wall plug so that it will work in your country. Other option is to buy those cheap adapters which have multiple plugs (most have right sized plug, some don't) and adjustable voltage. Or if you have broken adapter gathering dust, cut the plug from it and change it into any otherwise suitable adapter. You can even make your own 2-in-1 adapter that way, by getting proper plugs and wiring them to one power adapter.
That's it.
Q: So, what are the specs regarding power for my european PAL NES/SNES?
A: Officially, both take 9 volts AC. NES PSU is rated 9v or 9.8v 1.3A. Same applies to SNES.
Unofficially, you can plug in just about any 9V AC or DC adapter with any polarity into both NES and SNES and it will work (at least if the plug fits nicely in ;) and NES has been reported to work with as little as 410mA.
I personally use 9V DC 1A with my SNES without any problems, and actually, American SNES wich takes DC directly in (NEVER try to use those with AC adapter. NEVER!) is rated 10V DC 850mA which most likely is a bit overkill too and snes will work with less. In the innards of NES, that 9 volts is regulated to 5 volts, so it will work with up to 12 volts, with the side effect of regulator heating up more than usual, but it should not be an issue as the regulator is rated up to 18 volts. In theory, everything from 6V to 18V should work, but I'd stick with that 9V if possible. I have no information if this applies to SNES, and i advice you not to try anything than 9V or less, as SNES may have different power regulator (can anyone confirm or check it out perhaps?). There's also some talk of UK models having different specs but i cant confirm that and it sounds kinda silly to me, that there would be different PAL models. So, use your common sense.
Q: Should I buy overly priced (possibly used) official nintendo parts?
A: If you want to and can find one. I personally would recommend third party adapters, as both NES and SNES have somewhat rare sized plug. If you're buying international, check input voltage and wall plug so that it will work in your country. Other option is to buy those cheap adapters which have multiple plugs (most have right sized plug, some don't) and adjustable voltage. Or if you have broken adapter gathering dust, cut the plug from it and change it into any otherwise suitable adapter. You can even make your own 2-in-1 adapter that way, by getting proper plugs and wiring them to one power adapter.
That's it.
Subscribe to:
Posts (Atom)