View Single Post
Old 01-22-2014, 09:04 AM   #26
Ken Maltby
Wizard
Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.Ken Maltby ought to be getting tired of karma fortunes by now.
 
Ken Maltby's Avatar
 
Posts: 4,466
Karma: 6900052
Join Date: Dec 2009
Location: The Heart of Texas
Device: Boox Note2, AuraHD, PDA,
Quote:
Originally Posted by dewoller View Post
TonyV mentions that, to enable automatic usb networking, you have to put this at end of /usr/local/Kobo/udev/ac and /usr/local/Kobo/udev/plug:

ifconfig usb0 192.168.2.2

I found that I needed to add the line:

/sbin/route add default gw 192.168.2.1 usb0

to enable networking from the Kobo mini out to the open internet.

On the pc side, in /etc/networking, the usb0 stanza reads as follows:

allow-hotplug usb0
iface usb0 inet static
address 192.168.2.1
netmask 255.255.255.0
network 192.168.2.0
broadcast 192.168.2.255
up iptables -A POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
up sysctl -w net.ipv4.ip_forward=1
up route add -host 192.168.2.2 usb0
down iptables -D POSTROUTING -t nat -j MASQUERADE -s 192.168.2.0/24
I take it you have a Linux PC?

Luck;
Ken
Ken Maltby is offline   Reply With Quote