Status/USB Peripheral

From Maemo Leste Wiki
Jump to: navigation, search

Currently, devices that are supported by Maemo Leste will automatically set up USB networking if you plug them into a PC. Mass Storage may show as an option, but doesn't do anything useful yet.

Share PC network with Leste device

To also have the devices use your PC network, log into the devices:

ifconfig usb0 up
ssh root@

The default password is toor.

And then add the following route on the device:

ip route add default via
# if this fails, first run ip route del default

On your PC, issue:

# (Maybe only one of these two echos is necessary)
echo 1 > /proc/sys/net/ipv4/conf/usb0/forwarding
echo 1 > /proc/sys/net/ipv4/ip_forward

iptables -A POSTROUTING -t nat -s -j MASQUERADE

Make sure that forwarding is also allowed within iptables itself, enable it with iptables --policy FORWARD ACCEPT

Now your Leste device should be able to use your PC network


  • The default IP address is configured in /usr/sbin/