usb tethering ubuntu server 14.04

I was trying to install ubuntu 14.04 server

then at the step where I needed to install ubuntu-desktop via command line I could not connect to internet

wired connection did not work, wifi does not work. I was going crazy!

then I found this link

but that does not work last step where they added command

dhcpcd usb0 it says command not found and no way to install it without internet 😛

but I could solve it this way:


1. connect your mobile with wifi

2. connect mobile using usb to your laptop where ubuntu server is installed

  • go to your android mobile settings ->wireless & networks -> more ->Tithering & portable hotspot
  • press USB tethering

3. in command line in ur pc:

ifconfig usb0 up

dhcpclient usb0

then thats it!

you should be connected to internet via your phone



Work is fun!

Tagged with: , , , , , , , , , , , , , ,
Posted in important links, Tips And Tricks
5 comments on “usb tethering ubuntu server 14.04
  1. kogi says:

    Thanks! That helped me update my Ubuntu Server! 😀

  2. Anellieme says:

    When I’m doing `ifconfig usb0 up`, I’m getting an error: `SIOCSIFFLAGS: Cannot assign requested address`

  3. it’s not working for me either.. dhcpclient usb0 doesn’t work but dhclient usb0 I can see an ipaddress within the USB0. I get unknown host and I cannot ping. I am sure I am very close of getting to work.

  4. Mohmad Feroz says:

    its dhclient usb0

  5. Jason Froebe says:

    after enabling tethering on the phone, the phone connection may have been renamed on the computer. (dhcpclient may not be on your computer so try dhclient)

    * dmesg|grep usb0
    + it shows up as being renamed from usb0 to enp0s20u3 on my laptop
    * sudo ifconfig enp0s20u3 up
    * sudo dhclient enp0s20u3

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

All content provided on this "" blog is for informational purposes only. The owner of this blog makes no representations as to the accuracy or completeness of any information on this site or found by following any link on this site. The owner of [] will not be liable for any errors or omissions in this information nor for the availability of this information. The owner will not be liable for any losses, injuries, or damages from the display or use of this information.
January 2015
« Dec   Feb »

Enter your email address to follow this blog and receive notifications of new posts by email.

Join 23 other followers

%d bloggers like this: