You are not logged in.
Hi
I am trying to tether through usb from a stock Android 4.2.2 device (xperia z).
I do manage to tether trough wifi but not trough usb.
On the phone the usb debugging is on.
after #netctl list
usbTether
...
the file usbTether is in /etc/netctl and it looks like this:
Description='A basic dhcp Android tethering'
Interface=usb0
Connection=ethernet
IP=dhcp
after #ip link (if it is relevant)
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: enp7s0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN mode DEFAULT group default qlen 1000
link/ether e0:db:55:d0:87:41 brd ff:ff:ff:ff:ff:ff
3: wlp8s0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP mode DORMANT group default qlen 1000
link/ether 84:a6:c8:e1:9a:ce brd ff:ff:ff:ff:ff:ff
5: enp0s20u3: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
link/ether 72:8b:d6:a8:50:c2 brd ff:ff:ff:ff:ff:ff
after #ip link set usb0 up && dhcpcd usb0 it say
Cannot find device "usb0"
when I try #netctl switch-to usbTether after few minuts of waiting it is fail to connect, becouse:
A dependency job for netctl@usbTether.service failed. See 'journalctl -xn' for details.
and after #journalctl -xn
-- Logs begin at Thu 2014-01-23 10:35:31 IST, end at Wed 2014-02-12 20:18:56 IST. --
Feb 12 20:01:22 ghost gnome-session[652]: Could not check applicable rules for about:blank
Feb 12 20:02:35 ghost gnome-session[652]: no loadgroup notificationCallbacks for http://sync.xmarks.com/sync/bookmarks/getchanges
Feb 12 20:02:37 ghost gnome-session[652]: no loadgroup notificationCallbacks for http://sync.xmarks.com/sync/bookmarks/getchanges
Feb 12 20:17:26 ghost systemd[1]: Stopped A basic dhcp Android tethering.
-- Subject: Unit netctl@usbTether.service has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/9d1aaa27d60140bd96365438aad20286
--
-- Unit netctl@usbTether.service has finished shutting down.
Feb 12 20:17:26 ghost systemd[1]: Expecting device sys-subsystem-net-devices-usb0.device...
-- Subject: Unit sys-subsystem-net-devices-usb0.device has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit sys-subsystem-net-devices-usb0.device has begun starting up.
Feb 12 20:18:56 ghost systemd[1]: Job sys-subsystem-net-devices-usb0.device/start timed out.
Feb 12 20:18:56 ghost systemd[1]: Timed out waiting for device sys-subsystem-net-devices-usb0.device.
-- Subject: Unit sys-subsystem-net-devices-usb0.device has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit sys-subsystem-net-devices-usb0.device has failed.
--
-- The result is timeout.
Feb 12 20:18:56 ghost systemd[1]: Dependency failed for A basic dhcp Android tethering.
-- Subject: Unit netctl@usbTether.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
-- Documentation: http://www.freedesktop.org/wiki/Software/systemd/catalog/be02cf6855d2428ba40df7e9d022f03d
--
-- Unit netctl@usbTether.service has failed.
--
-- The result is dependency.
after #netctl status usbTether
netctl@usbTether.service - A basic dhcp Android tethering
Loaded: loaded (/etc/systemd/system/netctl@usbTether.service; enabled)
Active: inactive (dead)
Docs: man:netctl.profile(5)
Feb 12 19:48:50 ghost systemd[1]: Stopped A basic dhcp Android tethering.
Feb 12 19:50:20 ghost systemd[1]: Dependency failed for A basic dhcp Android tethering.
Feb 12 19:51:40 ghost systemd[1]: Stopped A basic dhcp Android tethering.
Feb 12 19:53:10 ghost systemd[1]: Dependency failed for A basic dhcp Android tethering.
Feb 12 20:17:26 ghost systemd[1]: Stopped A basic dhcp Android tethering.
Feb 12 20:18:56 ghost systemd[1]: Dependency failed for A basic dhcp Android tethering.
I dont know what to do or how to fix this.
Thank you for reading this.
Last edited by Yashka (2014-02-12 21:44:24)
You do not need to leave your room. Remain sitting at your table and listen.
Do not even listen, simply wait, be quiet, still and solitary.
The world will freely offer itself to you to be unmasked, it has no choice, it will roll in ecstasy at your feet.
Franz Kafka
Offline
You probably need android-sdk, android-sdk-platform-tools.
What does dmesg say about the device?
I may have to CONSOLE you about your usage of ridiculously easy graphical interfaces...
Look ma, no mouse.
Offline
You may be over complicating this. When I USB tether my phone, all I I have to do is run dhcpcd as root -- without any parameters.
As to your specific problem, the device is not called usb0, it is called enp0s20u3. My point is that you don't need to know the name, and you really don't need netctl. Just connect the phone, turn on USB tethering, and just run sudo dhcpcd
Nothing is too wonderful to be true, if it be consistent with the laws of nature -- Michael Faraday
Sometimes it is the people no one can imagine anything of who do the things no one can imagine. -- Alan Turing
---
How to Ask Questions the Smart Way
Offline
@nomorewindows - thank you for you replay.
... you don't need to know the name, and you really don't need netctl. Just connect the phone, turn on USB tethering, and just run sudo dhcpcd
thank you very much, running sudo dhcpcd has solved it.
also maybe it is a good idea to add what you sad to this Android Tethering wiki.
Last edited by Yashka (2014-02-12 21:46:50)
You do not need to leave your room. Remain sitting at your table and listen.
Do not even listen, simply wait, be quiet, still and solitary.
The world will freely offer itself to you to be unmasked, it has no choice, it will roll in ecstasy at your feet.
Franz Kafka
Offline
Arch has udev set to rename network interfaces, so your usb interface is enp0s20u3 which you need for netctl.
Last edited by progandy (2014-02-12 21:51:14)
| alias CUTF='LANG=en_XX.UTF-8@POSIX ' |
Offline
Arch has udev set to rename network interfaces, so your usb interface is enp0s20u3 which you need for netctl.
thank you very much also, I think it is also should be included in the Android Tethering wiki, to say that the interface name will be changed from usb0 to some thing that the user need to check with the ip link.
Last edited by Yashka (2014-02-12 22:08:18)
You do not need to leave your room. Remain sitting at your table and listen.
Do not even listen, simply wait, be quiet, still and solitary.
The world will freely offer itself to you to be unmasked, it has no choice, it will roll in ecstasy at your feet.
Franz Kafka
Offline