DeprecatedReplicant60USBNetworking » History » Version 4
Wolfgang Wiedmeyer, 03/07/2017 10:41 PM
Replicant 6.0 update second part
| 1 | 1 | Wolfgang Wiedmeyer | h1. Replicant USB Networking |
|---|---|---|---|
| 2 | |||
| 3 | 2 | Wolfgang Wiedmeyer | This page explains how to connect your Replicant device to the Internet via an USB connection to a computer connected to the Internet. |
| 4 | 1 | Wolfgang Wiedmeyer | |
| 5 | 4 | Wolfgang Wiedmeyer | h2. Replicant 6.0 |
| 6 | 1 | Wolfgang Wiedmeyer | |
| 7 | 4 | Wolfgang Wiedmeyer | Replicant USB Networking requires a script: "usb_networking_device.sh":https://git.replicant.us/replicant/user-scripts/raw/replicant-6.0/networking/usb/usb_networking_device.sh |
| 8 | 1 | Wolfgang Wiedmeyer | Make sure to have [[ADB]] installed and to have the host daemon running as root. |
| 9 | |||
| 10 | 4 | Wolfgang Wiedmeyer | Push the device script on the device, make it executable and run the first part of the script: |
| 11 | 1 | Wolfgang Wiedmeyer | |
| 12 | <pre> |
||
| 13 | 4 | Wolfgang Wiedmeyer | adb push usb_networking_device.sh /data/ |
| 14 | adb shell chmod a+x /data/usb_networking_device.sh |
||
| 15 | adb shell /data/usb_networking_device.sh start1 |
||
| 16 | 1 | Wolfgang Wiedmeyer | </pre> |
| 17 | 3 | Wolfgang Wiedmeyer | |
| 18 | 1 | Wolfgang Wiedmeyer | 1. On your Linux PC, in the network manager applet (where you normally set up wired or wireless network connections), create a new "Shared" "Wired" connection, with default settings (connection type = Shared). (This is independent of the device, and only needs to be created once.) |
| 19 | 2. Disconnect any other network connections (Wifi, 3G data) on the device. |
||
| 20 | |||
| 21 | 4. The device should appear in the host's network manager applet as a new "wired" network connection. Connect this to the "Shared" connection that you created above (it should be in the list of choices given by the applet). |
||
| 22 | 5. Now run the second part of the script on the device: |
||
| 23 | |||
| 24 | 3 | Wolfgang Wiedmeyer | <pre> |
| 25 | 4 | Wolfgang Wiedmeyer | adb shell /data/usb_networking_device.sh start2 |
| 26 | 1 | Wolfgang Wiedmeyer | </pre> |
| 27 | 3 | Wolfgang Wiedmeyer | |
| 28 | 1 | Wolfgang Wiedmeyer | The connection should now work. To disconnect the device, run: |
| 29 | 3 | Wolfgang Wiedmeyer | |
| 30 | 1 | Wolfgang Wiedmeyer | <pre> |
| 31 | 4 | Wolfgang Wiedmeyer | adb shell /data/usb_networking_device.sh stop |
| 32 | 1 | Wolfgang Wiedmeyer | </pre> |
| 33 | 4 | Wolfgang Wiedmeyer | |
| 34 | h3. Known issues |
||
| 35 | |||
| 36 | Note about cellular data |