Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Draft: Usb tethering setting #616

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 5 additions & 5 deletions userguide/advanceduse/reverse-tethering.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,19 @@ This is useful if there is no available Wi-Fi connection or you don't have a dat
Steps to Set Up Reverse Tethering
---------------------------------

#. Prepare your device (Ubuntu Touch) and your computer:
#. Prepare your *device* (Ubuntu Touch) and your *computer* (Linux):

- Connect your *computer* to the internet.
- Attach your *device* to your *computer* via USB.
- Turn off Wifi and Data on your *device*
- Set your device :doc:`usb in tethering mode </userguide/dailyuse/tethering>`

#. Run the following commands on your *device*:

- Set your device usb in tethering mode: ``gdbus call --system --dest com.meego.usb_moded --object-path /com/meego/usb_moded --method com.meego.usb_moded.set_mode rndis_adb``
- Bring your tethering connection down: ``sudo nmcli connection down tethering``
- Modify your tethering connection: ``sudo nmcli connection modify tethering ipv4.method auto``

#. Run the following commands on your *computer*:
#. Run the following commands on your *computer*:

- Get your interface name: ``ip route show to default via 10.42.0.1``
::
Expand All @@ -46,10 +46,10 @@ You should now have a working internet connection on your *device*!
Troubleshooting
---------------

If the above steps don't give you working internet connection on your *device* the try these steps on your *computer*:
If the above steps don't give you working internet connection on your *device* then try these steps on your *computer*:

- Turn on IP forwarding: ``echo 1 | sudo tee /proc/sys/net/ipv4/ip_forward``
- Apply Forwarding iptables Rule: ``sudo iptables -P FORWARD ACCEPT``
- Apply forwarding iptables Rule: ``sudo iptables -P FORWARD ACCEPT``

References
----------
Expand Down
1 change: 1 addition & 0 deletions userguide/dailyuse/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,5 @@ This section of the documentation details common tasks users may want to do on t

location
libertine
tethering
waydroid
18 changes: 18 additions & 0 deletions userguide/dailyuse/tethering.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
Tethering
=========

This tutorial explains how to enable USB Tethering on your Ubuntu Touch device to share it's internet connection over a USB cable with a computer.

Go to the settings app and look for the usb icon

.. figure:: /_static/images/userguide/tethering/settings-app-usb-item.png

The USB Setting in the settings app.

On the USB page you can then choose for the USB tethering option

.. figure:: /_static/images/userguide/tethering/settings-app-usb-page.png

The USB Setting page.

And that's it, you are now sharing the internet from your Ubuntu Touch device to your computer