[SOLVED] tethering from android phone to slackware
SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I've just got a nice HTC Desire (ie almost the same model as the Nexus One), and it can work as a modem for accessing the internet. After googling this, I've found out that on debian it works straight without adding any package, just as the pjone is connected. This is not the case on slackware 13... Has anyone got this to work already? What am I missing?
If you're using the "Wired Tether for Root Users" android app, then upon activation and plugging it in, slackware should automagically create a network interface named usb0. You can "activate" it with 'dhclient usb0' and it should work. If you're using Wireless tether, then you need to connect to the phone AP. I'm not sure how Pdanet works as I haven't needed to use it on android.
I have received a HTC Desire yesterday and have had a lot of fun with it already.
When I connect it through the USB cable with my Slackware laptop, the HTC pops up a dialog what I want with that USB connection: power the phone over USB, or make the CF card available as USB storage, or provide USB tethering (they call it "network sharing" - acting as a modem to the Slackware box).
Indeed, a usb0 network device will become available if I choose network sharing and "dhcpcd usb0" was enough to type this message using the phone as a gateway to the internet :-)
As a side note, I assume that theless liberal telephony market in the US will prevent HTC from offering this easy way to use the phone as a USB network device. There aren't even tethering apps available in the Android Market in US/Canada I heard. So, YMMV.
Indeed, a usb0 network device will become available if I choose network sharing and "dhcpcd usb0" was enough to type this message using the phone as a gateway to the internet :-)
Eric
Ok, I've tried this also (my plan is with vodafone uk) but no luck with a usb0 network device. I have a custom kernel so most likely I have some crucial option missing. Will look into this and report here.
I'm loving the HTC desire, except the battery life that is not great...
Ok, so I checked with hugesmp kernel and found out which modules are needed so that I could add them to my customized kernel (2.6.32). These are the options needed:
Code:
-> Device Drivers
-> Network device support (NETDEVICES [=y])
-> USB Network Adapters
<M> Multi-purpose USB Networking Framework
-M- CDC Ethernet support (smart devices such as cable modems)
<M> CDC EEM support
<M> Host for RNDIS and ActiveSync devices (EXPERIMENTAL)
<M> Simple USB Network Links (CDC Ethernet subset) (NEW)
-> Device Drivers
-> Network device support (NETDEVICES [=y])
-> Wireless LAN (WLAN [=y])
-> Wireless LAN (IEEE 802.11) (WLAN_80211 [=y])
<M> Wireless RNDIS USB support
with these modules the usb0 network device is added automatically as I select the option for Internet sharing when I plug in the phone. Now I just need to create some rules for udev (or hal) to automatically do a dhcpcd usb0 when this is connected, and it will work fully automatically.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.