Project

General

Profile

DeprecatedReplicant60USBNetworking » History » Revision 4

Revision 3 (Wolfgang Wiedmeyer, 03/07/2017 12:33 AM) → Revision 4/10 (Wolfgang Wiedmeyer, 03/07/2017 10:41 PM)

h1. Replicant USB Networking 

 This page explains how to connect your Replicant device to the Internet via an USB connection to a computer connected to the Internet. 

 h2. Replicant 6.0 

 Replicant USB Networking requires a one script: "usb_networking_device.sh":https://git.replicant.us/replicant/user-scripts/raw/replicant-6.0/networking/usb/usb_networking_device.sh 
 "usb_networking.sh":https://git.replicant.us/replicant/user-scripts/raw/replicant-6.0/networking/usb/device.sh 

 Make sure to have [[ADB]] installed and to have the host daemon running as root. 

 Push the device script part on the device, device and make it executable and run the first part of the script: executable: 

 <pre> 
 adb push usb_networking_device.sh replicant_usb_networking_device.sh /data/ 
 adb shell chmod a+x /data/usb_networking_device.sh /data/replicant_usb_networking_device.sh 
 adb shell /data/usb_networking_device.sh start1 
 </pre> 

 h3. Using a network manager shared connection 

 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.) 
 2. Disconnect any other network connections (Wifi, 3G data) on the device. 
 3. Run the first part of the device-side script: 

 <pre> 
 adb shell /data/replicant_usb_networking_device.sh start1 
 </pre> 

 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). 
 5. Now run the second part of the script on the device: 

 <pre> 
 adb shell /data/usb_networking_device.sh /data/replicant_usb_networking_device.sh start2 
 </pre> 

 The connection should now work. To disconnect the device, run: 

 <pre> 
 adb shell /data/usb_networking_device.sh /data/replicant_usb_networking_device.sh stop 
 </pre> 

 h3. Known issues 

 Note about cellular data