On Thu, Oct 15, 2009 at 12:29:10AM +0300, Marius Gedminas wrote: > You have: > > * 1 (one) Nokia N900 > * 1 (one) USB cable for the N900 > * 1 (one) laptop running Linux > * 1 (one) USB 3g dongle with a SIM slot for the laptop > * 1 (one) SIM card > > Your goal: get both the laptop and the N900 online. > > So far I've achieved partial success: > > * insert SIM card into the N900 > * get online > * connect the N900 to the laptop with a USB cable > * on the N900 open a root shell and run > ifconfig usb0 10.20.10.1 netmask 255.255.255.0 up > dnsmasq -i usb0 -a 10.20.10.1 -I lo -z -d -x /var/run/dnsmasq.usb0.pid > * on the laptop run > ifconfig usb0 10.20.10.2 netmask 255.255.255.0 up > echo 'nameserver 10.20.10.1' > /etc/resolv.conf > > So far so good, but without iptables I cannot make the N900 do network > address translation. I've also installed openssh-server on the N900 and used > ssh -D 1080 root@xxxxxxxxxx from the laptop to get a SOCKS5 proxy on > localhost, so I can get online from my laptop, but that's a rather > inconvenient partial solution. > > Also, I'd be happier if I could do this without cables (i.e. over wifi > or usb). This was supposed to say "or Bluetooth". I wish I hadn't missed the unsupported Bluetooth profiles talk at the summit... I've had partial success with wifi, after installing wireless-tools from the fremantle tools repository (it's also in downloads.maemo.nokia.com): ifconfig wlan0 down # otherwise iwconfig mode says device busy iwconfig wlan0 mode ad-hoc ifconfig wlan0 up # otherwise iwconfig essid times out iwconfig wlan0 essid n900 ifconfig wlan0 10.20.30.1 netmask 255.255.255.0 up dnsmasq -i wlan0 -a 10.20.30.1 -I lo -z -d -x /var/run/dnsmasq.wlan0.pid Trouble is, every 10 minutes the device does a wifi scan or something and shuts down the hardware. I have to walk over to the n900 and wake it up manually by doing ifconfig wlan0 up iwconfig wlan0 essid n900 which is a big pain. Any way to temporarily tell icd that it shouldn't touch wlan0 for a while? A much more troubling thing is that after you do this wake-up call twice, the n900 ups and reboots. Exactly 11 seconds after the second wake-up call, I've got ping logs to prove it. Also, I want iptables. Trying to build iptable_nat.ko kinda failed: ~ $ sudo insmod iptable_nat.ko insmod: error inserting 'iptable_nat.ko': -1 Invalid module format ~ $ dmesg | tail ... [90600.794433] iptable_nat: no symbol version for struct_module Clearly, I'm doing something wrong. -- Some performers on television appear to be horrible people, but when you finally get to know them in person, they turn out to be even worse. -- Avery
Attachment:
signature.asc
Description: Digital signature
_______________________________________________ maemo-users mailing list maemo-users@xxxxxxxxx https://lists.maemo.org/mailman/listinfo/maemo-users