Difference between revisions of "Status/USB Peripheral"

From Maemo Leste Wiki
Jump to navigationJump to search
(Created page with "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 an...")
 
Line 6: Line 6:


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


<pre>
<pre>
Line 13: Line 12:
</pre>
</pre>


And then add the following route:
And then add the following route on the device:


<pre>
<pre>
ip route add default via 192.168.42.1
ip route add default via 192.168.42.1
# if this fails, first run ip route del default
</pre>
</pre>



Revision as of 16:27, 30 November 2018

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 192.168.42.1
ssh root@192.168.42.2

And then add the following route on the device:

ip route add default via 192.168.42.1
# 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 192.168.42.2/32 -j MASQUERADE

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