Ubuntu: Use USB Tether from brand new Galaxy S7



Question:

My Nexus 5X died on Tuesday night. I bought a brand new Galaxy S7; it arrived today. The USB tethering does not work. Tethering from my N5X worked flawlessly. I have not made any changes to my computer.

After connecting the cable and activating the USB tether on the S7 I see the SAMSUNG ethernet connection in my list of networks. It is disconnected and stays greyed out. Ifconfig doesn't show the connection.

Does anyone have any ideas of what the problem could be? Thank you for your time.


Solution:1

Your service provider may have disabled tethering on the device.

You can see if this is the case by downloading one of the tethering apps from the Google Play store and attempting to enable tethering with it.

If you can enable tethering with an "App" but not with the built-in native Android or Samsung software then tethering is disabled by the phone company.


Solution:2

I got tethering to work on a different Linux distro, but I believe the same method I used will apply to Ubuntu because it's all done through the command line.

First, install macchanger. It should be in your repositories. It allows you to change the MAC address of an interface. I found out my problem was coming from the phone giving a MAC address of 00:00:00:00:00:00 when tethering was enabled and the computer couldn't work with that. After installing macchanger, type the following commands, substituting eth1 with what your computer calls the interface from the phone:

macchanger -r eth1  ifconfig eth1 up  dhclient eth1  

You may need to use sudo for the commands to work. If you don't have dhclient on your computer, typing dhcpcd eth1 should work.

You should now be able to access the internet through the tethered connection. You will have to do these steps every time you want to connect.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »