[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: pb to connect the zaurus under debian to the PC



-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 11.05.2003 20:16, TotoEtLiTiti wrote:
| But I can't connect my zaurus to the PC (my PC doesn't see the zaurus...
| arrrrgh...).

There is a good HowTo on
http://www.ruault.com/Zaurus/ethernet-over-usb-howto.html.

Basicly you must patch the kernel and add the following lines to your
/etc/network/interfaces:

iface usb0 inet static
~    address 192.168.129.1
~    pointopoint 192.168.129.201
~    netmask 255.255.255.255

If you don't want to recompile your Kernel: I have a prepackaged 2.4.20
Kernel on http://debian.newswriter.org.

And don't forget to install the hotplug package.

If you want to connect to the Internet from your Zaurus I have an
additional tipp for you I found somewhere on the Sharp's developer pages:

Just create a file "50zaurus" in the directory "/etc/network/if-up" with
the following content:

case $IFACE in
~  usb0)
~    echo 1 > /proc/sys/net/ipv4/ip_forward

~    iptables -t filter -F FORWARD
~    iptables -t filter -P FORWARD DROP
~    iptables -t filter -A FORWARD -s $IF_POINTOPOINT/$IF_NETMASK -j ACCEPT
~    iptables -t filter -A FORWARD -d $IF_POINTOPOINT/$IF_NETMASK -j ACCEPT

~    iptables -t nat -F PREROUTING
~    iptables -t nat -P PREROUTING ACCEPT

~    iptables -t nat -F POSTROUTING
~    iptables -t nat -P POSTROUTING ACCEPT

~    iptables -t nat -F OUTPUT
~    iptables -t nat -P OUTPUT ACCEPT
~    iptables -t nat -A POSTROUTING -s $IF_POINTOPOINT/$IF_NETMASK -o
eth0 -j MASQUERADE
~    ;;
esac

Make the file executable. Now IP masquerading will be setup correctly
every time you connect your Zaurus. Please note that you will have to
change eth0 to whatever device you use to connect to the internet.


- --
Philipp Wolfer <ph.wolfer@newswriter.org>
- --

Diese E-Mail wurde digital mit GnuPG (http://www.gnupg.org) signiert.
Mein zugehöriger öffentlicher Schlüssel zur Verifizierung der
Unterschrift ist unter
http://www.newswriter.org/private/pubkey-ph.wolfer.html verfügbar.

This e-mail was digitaly signed with GnuPG (http://www.gnupg.org).
My public key for verifying the signature is available on
http://www.newswriter.org/private/pubkey-ph.wolfer.html
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE+vrTrXBTpEMolX1URAnZpAJ9zI26d9UwYBDxaGSGg2diVSstJWQCg7YPG
RFsPPNPkdRwbNQxSOApgOik=
=4TY/
-----END PGP SIGNATURE-----



Reply to: