Nemo/USBNetworking

Here is script that is tested on Fedora 15/16 and OpenSUSE 12.1 with Nokia N900/N950/N9.

Connect the device with usb cable to your host pc and run following commands

sudo /sbin/ifconfig usb0 up 192.168.2.14 sudo /usr/sbin/iptables -A POSTROUTING -t nat -s 192.168.2.15/32 -j MASQUERADE sudo /usr/sbin/iptables -P FORWARD ACCEPT echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward

NAME_SERVER=`cat /etc/resolv.conf | grep "nameserver" | head -1` echo "echo $NAME_SERVER > /etc/resolv.conf" echo "route add default gw 192.168.2.14"
 * 1) Rest of these are here just to print something that is needed for the device to get routing work.