[Script] usbnet.sh: Wired USB networking ("reverse tether") - Epic 4G Themes

Attached is a somewhat-crude shell script that enables wired USB networking ("reverse tethering") on the Epic. Sadly it's not a standalone app, and it doesn't have perfect application compatiblity either. However, some folks may find it useful in order to get Internet where neither cellular nor WiFi service is available.
Requirements:
Rooted Epic with busybox (one-click root satisfies this).
Host PC with Internet sharing capabilities.
ConnectBot or another terminal emulator.
The attached "usbnet.sh" script.
Initial setup:
First, setup the host PC for Internet sharing on the USB network interface:
On Windows, you'll need to install the Samsung USB drivers (if you already did for the one-click root or Wired Tether, you should be OK). The remaining part of the ICS setup on Windows has to be done the first time the script is ran on the phone, so it's covered below.
On Linux, you'll need to setup netfilter (for NAT), install & configure dnsmasq or another DHCP server, and enable IP forwarding. Details on those are outside the scope of this thread, but it's essentially the same as setting up network sharing for an Ethernet connection.
On the phone, install ConnectBot or an alternate terminal emulator. Unfortunately USB ADB and RNDIS can't be used simultaneously, so the script can't be run via "adb shell".
Next, copy usbnet.sh to the phone. It can go anywhere, although it can't be run from /sdcard directly. Good places are /data/local or /data/local/tmp. For example:
Code:
adb push usbnet.sh /data/local
adb shell chmod 755 /data/local/usbnet.sh
If you're using ConnectBot (recommended), create a "host" for the usbnet script. Enter "usbnet" in the bottom-of-the-screen input box, select "local" from the drop-down menu to the left, and press enter. At the "$" prompt, enter "exit", and close the session. Now "usbnet" will appear in the host list, long-press it, and select "Edit host". Select "Post-login automation" and enter:
Code:
exec su -c /data/local/usbnet.sh
substituting the appropriate path for "/data/local/usbnet.sh". Also, make sure to press Return to create a newline, otherwise the script won't execute automatically. Alternatively, if you're not using ConnectBot, you can run the script manually after su-ing to root.
Directions for use:
Before using, make sure "USB debugging" is disabled on the phone (unless you're running a patched custom kernel). Also make sure the USB cable is disconnected.
Next, disable WiFi, 4G, and the cellular data connection (long-press power and select either "Data network mode", which lets you still receive calls and SMSes, or "Airplane mode", which doesn't) as these interfere with the wired connection.
Open ConnectBot, and select the "usbnet" entry. Press "Allow" at the su prompt if it comes up. Now, connect the USB cable to the host PC, and select "Charging" from the "Select USB mode" menu.
If the host PC is running Windows, and this is the first time using the wired connection, you'll have to finish the inital setup. On Windows 7, go to Control Panel -> Network and Internet -> Network and Sharing Center -> Change adapter settings. Once the USB cable is plugged in a new "Local Area Connection" should appear (e.g, "Local Area Connection 3") for the phone. You can unplug and replug the USB cable to verify which is the phone's connection, it will disappear and reappear.
Now, right-click the other network adapter that's providing the Internet connection for the host PC. It's likely "Local Area Connection" for Ethernet, and "Wireless Network Connection" if wireless. Select Properties, and click on the Sharing tab. Check "Allow other network users to connect through this computer's Internet connection", and if it asks to select a "Home networking connection" (which it should if you have three or more adapters, including the phone, in total), select the phone's adapter (e.g., "Local Area Connection 3"). Then click OK.
Note that, on Windows, to setup sharing the phone's network adapter must be present, which is why it must be done after first running the usbnet script. The sharing setting does persist across disconnects, so the previous setup only needs to be done once unless sharing is manually disabled.
No additional setup should be required if the host PC is running Linux, although you may have to manually assign an IP address to the USB network interface (host side) and manually start dnsmasq/dhpd depending on your configuration.
At this point, the phone should report "netcfg usb0 dhcp ... wait ..." while it attempts to acquire an IP address from the host PC. On Windows, this may take a minute or longer. If for some reason it's unable to get an IP address (may happen during first time setup on Windows) it will report "action 'dhcp' failed (Timer expired)". If it does, unplug the USB cable, select the "usbnet" entry again, and replug the USB cable.
Once the phone acquires an IP address, the usbnet script will print out a table of network adapters and IP addresses (one of which includes the address for usb0) and exit. The connection should be working now.
To disconnect, run "usbnet" from ConnectBot again, which will bring down the connection, reset the USB mode, and exit. Now you can unplug the USB cable, and reenable the cellular ("Data network mode"), WiFi, or 4G connections.
Known issues:
Since the usbnet script operates below the Android framework, it can't tie into the connectivity service and notify waiters than a network connection is available. This doesn't matter for most apps, and they should work just fine. Others won't "believe" a network connection is available and refuse to work. In testing I found that ConnectBot, Maps, Market, and Opera Mobile all work, but that the Amazon Appstore does not. I'm uncertain, but I think sync services (e.g., Calendar) may not work either. To my knowledge, there's no obvious place to tie into the framework to increase application compatibility. Hopefully this is still useful for most of the purposes of folks wanting wired connectivity.
The Linux rndis_host driver is rather finicky, even more so then when using Wired Tether. In testing, I found between half to 2/3rds of connection attempts to a Linux host would fail, but once connected, it seems to work fine.
Again, on Windows, getting an IP address is very slow, I'm not sure if anything can be done about that.
Also, I've only been able to test on EC05 (Froyo). I'm unlikely to be able to test this on Gingerbread before the official release hits.
Mirror link (does not require forum login):
usbnet.sh

Wait, nobody has posted anything here yet? I recall a couple of people looking for this so it gets a....BUMP..
Sent from my SPH-D700 using XDA Premium App

i have followed your method step by step...
but
when i connect usb cable to the host pc, select charging... and nothing happened
there is no new "Local Area Connection" appeared in Network and Sharing Center -> Change adapter settings....and so connect bot cannot acquired an IP addres.
any solution?
many thanks before

taufancandra said:
there is no new "Local Area Connection" appeared in Network and Sharing Center
Click to expand...
Click to collapse
Does Wired Tether work, or have you tried using it before?
When you connect the USB cable, what USB devices show up in Device Manager on the host?

Whether this works or no I'm glad you atleast tried.
Sent from my SPH-D700 using XDA Premium App

This seems to be just what I was looking for. Going to try it soon and report back.
Results:
Everything goes according to instructions (taking into account WinXP ILO Win7) until-
I get the LAC3.
Per Windows help menu instructions I run the Network set-up wizard to configure for ICS.
ERROR occurs during configuration, suggests to set up network manually.
Connectbot times out with a fail.
Ideas?

Related

HTC USB Modem Driver for XP or 2000

I have been working on setting up Internet Sharing on my laptop(s) for a few days now and have searched and read through the forums to no avail. I need the USB Modem Driver for Win2K and XP (SP2 if it matters). I put the set up CD in and searched it, but it list drivers only for Vista (32 and 64 bit).
Does anyone know a solution for this or know how to get hold of these drivers?
Thanks for your help.
Bobby
Can you not use Internet Connection Sharing?
If I knew how....
I could most likely use ICS if I knew how. When I plug the phone into the laptop it displays the found new hardware wizard, but no compatible driver for it to use. I have done a search on google, here on the forums and the MS website and am not able to locate the HTC USB Driver that is called for in the wireless modem section of the users guide.
I have seen some information about using ICS, but nothing to tell me how it works or what I need to do to get it to work. Is it a matter of installing Active Sync onto the laptops I want to use, then kick off ICS to access the web from the laptop?
Thanks,
Bobby
i too have been desperately searching for this. I can't seem to find anything. This laptop is my primary computer so it already has ActiveSync and the Tilt setup, but it won't recognize it once I switch the phone into "wireless modem" mode (where it deactivates the activesync functions)
Is this what your looking for?
Internet Sharing
2001bmw330xi said:
i too have been desperately searching for this. I can't seem to find anything. This laptop is my primary computer so it already has ActiveSync and the Tilt setup, but it won't recognize it once I switch the phone into "wireless modem" mode (where it deactivates the activesync functions)
Click to expand...
Click to collapse
I'm sure this has already been covered somewhere... but, did you search for the standard Internet Sharing app that was supposed to be on WM6 ROMS by default? I bought my Tilt 2 weeks ago, am on the stock ROM, and found the app hidden in \Windows and it works fine here. If you find it there just create a shortcut and place it in \Start\Programs or wherever you want.
ercave1 said:
I'm sure this has already been covered somewhere... but, did you search for the standard Internet Sharing app that was supposed to be on WM6 ROMS by default? I bought my Tilt 2 weeks ago, am on the stock ROM, and found the app hidden in \Windows and it works fine here. If you find it there just create a shortcut and place it in \Start\Programs or wherever you want.
Click to expand...
Click to collapse
i tried to use the internet connection share - but it wouldn't work either. it kept showing me the bubble (starting GPRS, Edge, 3G connection) and then eventually said "the remote party has ended the connection"
EDIT: never mind, got it to work! Had to change "Network Connection:" from "AT&T ISP" to "MEdia Net".
what am I missing
So to get this to work all that needs to be done.
connect phone to laptop (regardless of O/S Version) via USB cable
start ICS and you are off and running?
No driver install is needed on the laptop (including no activesync install needed), is that correct?
Thanks,
Bobby
Instruction for setting up Internet Connection Sharing
I was able to locate instructions on how to set this up on the Tilt (located in the HTC Tytn II users manual). I have included the section referring to this below so others who may want to know how can get it up and going.
Thanks,
Bobby
========================================================
10.9 Using Your Device as a Modem
(Internet Sharing)
Internet Sharing connects your PC or notebook computer to the Internet by using your device’s data connection (GPRS or EDGE, for instance). You can choose to connect via USB or Bluetooth.
Follow the procedure in this section to set up your device as a USB modem. To learn how to set up your device as a Bluetooth modem, see “Use the device as a Bluetooth modem” in this chapter.
Notes • Make sure your device has a SIM card installed, and your device has a GPRS or phone dial-up modem connection. If your device has not been set up with a data connection yet, tap Menu > Connection Settings on the Internet Sharing screen.
• If you want to use a USB cable connection, you must first install Windows Mobile Device Center or Microsoft ActiveSync version 4.5 or later on the computer.
• Before using Internet Sharing, disconnect from Windows Mobile Device Center or ActiveSync on your computer.
• On your computer, run 3gnetopt.exe from the Application Disc to optimize the connection speed between your device and computer.
To set up your device as a USB modem
1. On your device, tap Start > Programs > Internet Sharing.
2. In the PC Connection list, select USB.
3. In the Network Connection list, select the name of the connection that your device uses to connect to the Internet.
4. Plug in the USB cable between your device and the computer.
5. Tap Connect.
To end the Internet connection
On the Internet Sharing screen, tap Disconnect.
hope this helps someone
Hey guys, I usually try and post whenever I finally figure something out...I was getting the error message: Cannot Connect "the remote party has ended the connection" and from some of what I was reading it was because I was trying to use internet sharing with a mediamax $20 plan and I wouldn't be able to do that any longer because of something embedded in WM6 which told AT&T that I was tethering. Well my laptop is connected right now via usb through internet sharing on WM6 on my 8925/tilt and I have the $20 plan. I just checked my speeds and I am at 1485kb/s upload and 339kb/s (is that good?) seems much faster that wireless modem connection I used to use on 8525 w/ wm5. Internet sharing is the way to go. I am not exactly sure what fixed my problem--I did a few things and finally stopped getting the cannot connect: remote party...error. I first erased the user name and password under the connection settings ([email protected]) and left both fields blank. That didn't fix it like it did for some others that I read about so I did a power down and power back up (not sure if this is different than a reset with the stylus in the hole). Still wasn't fixed...On the internet sharing screen the second box under network connection I changed from "AT&T isp GPPRS" to "media net" and then connected and it worked. I don't think I need the username and password for anything because I can still browse on the phone without them--not sure why they were there. I haven't checked to see if I can internet share with the password and username reinserted...Hope that helps someone else out...don't give up it is possible to internet share through mediamax $20 with WM6...
Quick Fix For Those who couldn't figure it out
On your AT&T Tilt or (Possibly any Windows Mobile 6 Device)
Navigate to your "file explorer"
Step 1 (Locate the File Explorer) Not Internet Explorer
Start > Programs > Tools > File Explorer
(Possibly) Start > Programs > File Explorer
(Possibly) Start > File Explorer
Step 2 (Using File Explorer navigate to "My Device")
Then Locate the "Windows" Folder
Scroll all the way down to InternetSharing (Press the letter "I" to get you there faster)
Have your the device plugged into your computer and run that application and make sure these 2 options are selected:
PC Connection: USB
Network Connection: Media Net
Hit Connect
If it doesn't connect for you right away or gives an error message try this:
Unplug your phone from the computer
On the internet sharing application press Connect and immediately connect the USB cable.
Hope this works for others.
Have a data plan with at&t or you might be seeing some rather large charges on your internet bill.
Sane said:
Is this what your looking for?
Click to expand...
Click to collapse
Is that a USB RNDIS driver? As in no need for activesync?
I know it is possible, as I used usb-rndis-lite to use my kaiser as a modem on linux, but I never found anything that allowed me to share the conn via usb without activesync.
FYI, for those who do not have activesync for whatever reason, WMWiFiRouter will let you do it via WiFi.
The easiest way.
Just install the latest activesync.
If you don't want it syncing, no problem. Just right click on the activesync icon in your task bar, go to connection settings and uncheck allow USB connections. You'll still be able to use Internet Sharing but it won't try to sync every time.
After you have activesync on your computer you'll be able to use the Internet Sharing all you want. Just be sure you press connect on your device before you plug the usb cable in. Otherwise sometimes it won't connect.
Don't abuse it, or most likely your provider will slam you with tethering charges if it's very obvious you're using it. Assuming you don't have a tethering plan, of course.
Sometimes (eg on a corp laptop) you are not allowed to install activesync for example, but a driver would be OK - so it's always good to have alternatives.
Not so much of an issue now as WMWifiRouter is a more universal solution, but not all machines have wifi, so an RNDIS driver for USB would still be nice to have handy.
Been on T-Mobile web'n'walk (the basic one, not the tethered one) for over 6 months now, I use tethered mode on a daily basis, not had any complaints or charges yet. Mind you, I don't really hammer it, just web pages, ppc app downloads, a bit of youtube maybe. They could probably tell by looking at the browser IDs, but I doubt I am top of their list.
Even if they do hit me with the charge for the "Pro" version that allows tethering, it's only another £5 a month and I am on the lowest voice tariff anyway as I have an HTC original and not a subsidised phone.
WOW!!!! I can't believe this thread went as long as it did. Grats to DuMnUt101 and Evilc.. I wish I had my usb cable here with me so I could test the active sync part. Did this guy ever get it working?
The driver attached previously is not a ICS driver but a modem driver - you need to supply APN, username and password. Could possibly work, but when I run the EXE, it does not detect the phone as a modem.
bwc302 said:
I have been working on setting up Internet Sharing on my laptop(s) for a few days now and have searched and read through the forums to no avail. I need the USB Modem Driver for Win2K and XP (SP2 if it matters). I put the set up CD in and searched it, but it list drivers only for Vista (32 and 64 bit).
Does anyone know a solution for this or know how to get hold of these drivers?
Thanks for your help.
Bobby
Click to expand...
Click to collapse
Hi,
If you want to use internet sharing from HTC Modem via USB you just have to activate that functionality on the phone and then connect the USB cable to your PC.
Your windows will ask for drivers if you dont have ActiveSync4.5 installed (XP/NT2000/NT2003).
If you have ActiveSync already installed (this will install usb modem drivers you need) then you should have no problem with drivers and will be ready to use your mobile's shared internet.
bwc302 said:
I have been working on setting up Internet Sharing on my laptop(s) for a few days now and have searched and read through the forums to no avail. I need the USB Modem Driver for Win2K and XP (SP2 if it matters). I put the set up CD in and searched it, but it list drivers only for Vista (32 and 64 bit).
Does anyone know a solution for this or know how to get hold of these drivers?
Thanks for your help.
Bobby
Click to expand...
Click to collapse
Hi,
If you just want to use internet shared by your phone on your PC, you just have to install ActiveSync4.5 (this will install the usb modem drivers required).
This will set you ready to use the mobile's internet on your PC.
After this you can always get the drivers using "Device Manager".
Hope this is the answer you wanted!
Double post from out of no where..
Nothing to see here.

[TIP] Set-up Diamond to connect to Internet via PC's wireless

It might be known allready but I thought to share this since I didn't saw it here explained and maybe others are wondering if it's possible. If it's discussed already, please delete/move the thread.
So it's about setting up Diamond (I think it's working well with other WinMo devices, though not tested) to connect to Internet using an Internet connection available on the PC/Laptop and the wireless of that PC/Laptop.
1. First create a wireless network on the PC, using the "setup a connection or network" wizard (tested on Windows Vista).
2. Choose "Set-up a wireless ad-hoc network" and follow the steps. For increased security, choose for ex Open, WEP encryption and a passkey. Give this network a name as you desire
3. Setup your existing Internet connection (on the PC) to be shared
4. Connect (from PC) to the wireless ad-hoc network. After connecting, it should say "Waiting for users to connect"
5. Start wireless connection on your Diamond. The scan will bring up the newly created network.
6. Choose "connect" and provide the pass-key you defined when creating it
7. If 6. is not working, you could define that new wireless network on your Diamond, as you do with a normal network. Don't forget to check "ad-hoc" network in the settings screen
After connecting, you should be able to browse the net using the computer's Internet connection via wireless...that allows you to have the PC/Laptop in one room and with someone working on it (as it is my case), while you are in the vicinity (they say in a 30 m radius) and use the Diamond to browse the net. I found it usefull.
good tip, this will be useful indeed.
Ah thanks, but can you do this in reverse? I.e. Have your phone act as the wifi card and use the PC to browse the internet through a usb connection to your phone, and have your phone connected to the wifi in your house?

Help with tethering

I have followed all the steps that have been posted here. My problem is that when I try to open IE, I get "cannot find server". I am connecting via USB and according to network connections it shows that I am connected to my mobile device.
Any help would be greatly apprecited.
Carrier? OS version?
That is normally a piece of cake to setup. What you might want to do is get connected by finding Internet Connection Sharing. Make sure you can sync up, then run ICS, hit connect. Watch Windows and the phone become best friends.. When it's all connected, (I sure hope you have XP) go to start, then run and type in cmd and click ok.
If it's vista I think you can press control alt delete, open the task manager, go to file and then run or new task.
A DOS window (command line) should come up, type in ipconfig and press enter. It should display the active network connection and I think it should name it something like windows mobile etc etc. At this point you should have an address like 192.168.1.205, if it's . . . . then something is wrong.
If you have an address you will want to type
ping dell.com and press enter..
You should get replies back. If you don't then you have a problem..
It's possible that you have another network connection going at the same time (ie. wireless or ethernet) if so you will want to disable or disconnect them.. You can try using ipconfig /all to see all of them at the command line.
good luck
ChumleyEX said:
snip...
(I sure hope you have XP)
snip...
Click to expand...
Click to collapse
What's wrong with Vista? I use ICS daily on my Vista Ultimate x64 laptop, and have 0 issues.
It doesn't have start and then run ... 8P
I have no problem with Vista except that I don't have a lot of experiance with it. Operating System dont' scur me.
in order to tether make sure that the att isp in connection is setup for wap.cingulafr not isp.cingular. att forces tethering to use this so if you change this u will connect with ease
iceberg1824 said:
in order to tether make sure that the att isp in connection is setup for wap.cingulafr not isp.cingular. att forces tethering to use this so if you change this u will connect with ease
Click to expand...
Click to collapse
sorry i originally posted in wrong spot....
You must disable ActiveSync. On the desktop ActiveSync go to File->Connection Settings and disable Allow USB Connections before connecting.
Or, disconnect USB, activate ICS, and replug USB after it. But if ICS says "connected" that must be OK.

403 Error While Connected to ActiveSync

For some reason I dont seem to be able to browse web via my mobile browser while device is connected to Activesync (USB cable)
I've checked Allow Wireless Connection and disabled high speed syncing in Conenctions USB>PC on my Xperia.
This affects email and internet data connections and apps. In internet explorer and IRIS I get a 403 error.
I have activesync as "Computer connects to Work Network"
When I disconnect from Activesync I can browse as normal.
Having gone through the usual suspects and done a search I can't seem to find anything that addresses this particular iteration of the 403 error so would gratefully accept any suggest
You don't need the "Allow Wireless Connection when connected to the desktop" ticked. (Unless you want to use WiFi on the X1 while plugged in via ActiveSync).
My ActiveSync "This computer connects to" is set to "The internet", not Work Internet.
Allow USB connections.
On the X1,
Got to Settings, Connections Tab, USB to PC.
Make sure ActiveSync (Sync with outlook) is selected, then make sure "Enable advanced network functionality" it ticked.
cheers for your reply Steve. (good collection of apps too)
These are all options I've tried already (think I've tried every combi) and I end up with the same result - as i get not data connection when i connect the USB. If I open IE or IRIS beforehand and then connect as soon as I browse a new page I get the 403.
I'm sure this didnt happen last time I tried to browse this way but have no idea what could have changed. I thought it could be a connection settings thing - IRIS has loads of options for connections and I've tried all of this, all unsuccessfully. IE doesn't appear to have any options.
Anyone know of any tweaks or reg fixes?
duplicate post
one other thing - if I go to conenction amanger and try to activate Data connection while conencted to activesync, I get sent to the Settings > Connections screen. Data connection will not activate.
I can't offer anymore help Don't know what's up with yours.
cheers anyway steve. gonna wager on a reinstall of activesync and also try on my home pc to see if this is any different.
I know GP can block using device as modem/internet sharing, but this would be different so who knows?
interestingly I've just discovered that I'm still receiving emails when this problem occurs. I wonder if something could be preventing http requests?
just to recap, this works when synced with my home PC, but when synced with my works PC I can't access http via 3g/hsdpa, nor through the PC. I can however receive emails.
As the attachment shows, the phone is connected to the HSDPA and Activesync via USB.
I've reinstalled Activesync on this PC, and experienced an intermittent connection following this - however following this short period of activity the connection halted again.

How to connect Kubuntu 9.10 to GPRS Internet

I finally connected my Touch Pro2 to my netbook running Kubuntu 9.10 via Bluetooth for Internet access and thought I would share. (for the two other guys running a Windows phone with a Linux machine, right?) There is a lot of stuff on the net, tried half of it, and eventually just figured it out on my own. Maybe I am just crap with Google. I don't see any reason why this wouldn't work with any other phone with the same Bluetooth stack as the TP2. (HD, etc?)
LAPTOP
Get KBluetooth running if it's not already (bluetooth tray icon)
Right click KBluetooth for the menu, you want Settings -> Bluetooth Adapters
Set the mode to discoverable. If you want to change the name, do so, but then exit and restart KBluetooth. (otherwise the settings don't seem to take effect)
PHONE
Turn Bluetooth on if it's not already, then go into the Bluetooth menus via Comm Manager.
Tap "Add a device" and add the laptop. Enter a PIN.
LAPTOP
Enter the PIN when the box pops up.
Set the discovery mode back to hidden.
Now go into the KBluetooth device manager and set the phone to trusted. (this probably isn't necessary but I did it)
(this part onwards you need to do every time you connect)
PHONE
Go to the 2nd tab in the Bluetooth menus (the list of devices) and tap the laptop. You should now see Bluetooth Networking. Give this a tap.
After a few seconds you will get a drop down box. Set this to "Share Internet connection" then press Continue at the bottom left.
Now you select the GPRS connection you want to use. Again press Continue when done.
You should get a yellow notification at the bottom of the screen saying connecting, then after a few seconds a screen with the laptop's name and MAC address.
LAPTOP
Now open a Konsole and run this command:
Code:
sudo dhclient bnep0
If it worked you will see something like this at the end:
Code:
bound to 192.168.0.102 -- renewal in 120808 seconds.
You should now be connected to the Internet
you can also use wi-fi router to connect.
Code:
iwconfig wlan0 mode ad-hoc essid wificonnection key 1234567890
ifconfig wlan0 up
dhcpcd wlan0
wlan0 is your computers wifi interface your might be different
mode ad-hoc turns the connection into ad-hoc mode
essid wificonnection - is the network name in this example wificonnection
key is whatever 10 digit wep key you assign the connection 1234567890 in this example
*the dhcpcd wlan0 line in the scrip assumes you are using dhcpcd change it to dhclient if you are using dhclient instead.
the above script should work with most distros of linux. make sure wifi-router is running before you run the script on your computer.
to connect using usb tethering you can use
Code:
modprobe cdc_ether
modprobe rndis_host
ifconfig eth1 up
dhcpcd eth1
make sure rndis_host cdc_ether and all required packages and dependencies are installed. i had it set up a long time ago dont remember the the exact packages needed to make this work. again your network interface might differ (eth1,eth2,ethX) and dhclient if your using dhclient instead of dhcpcd.
These are the two scripts i use to tether to my netbook running Arch Linux and Gentoo but should work for most linux distros.

Categories

Resources