On Wednesday 13 August 2008, Dimitri wrote: > I've installed the latest version of Qtopia on my Freerunner, and > configured it to auto-connect to my wifi network, on startup. > > I can ssh into it. No problem. But, I can't connect out to the internet. > > In the phone's terminal, if I type: ping google.com > I get the error: ping: bad address 'google.com' > > But, if I connect the usb cable, run the script below, in Ubuntu, and then > DISCONNECT the cable, my outbound wifi connectivity suddenly works!: > ----------------------- > #!/bin/bash > > sudo ifconfig usb0 192.168.0.200 > if (( `cat /proc/sys/net/ipv4/ip_forward` == 0 )); then > echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward > sudo iptables -t nat -A POSTROUTING -s 192.168.0.0/24 -j MASQUERADE > fi > scp /etc/resolv.conf [EMAIL PROTECTED]:/etc/ > ----------------------- > > What could be the problem? Any suggestions would be appreciated. > > Dimitri
By default the /etc/resolv.conf on 2008.8 is empty so the Freerunner can't resolve names. This is why you can't access the internet. The last line of your script copies the /etc/resolv.conf from your ubuntu box to the Freerunner, so internet connections start working. _______________________________________________ support mailing list support@lists.openmoko.org https://lists.openmoko.org/mailman/listinfo/support