iPhone USB tether for Ubuntu
iPhone as a wireless device on Ubuntu, using pdanet on jailbroken iPhone
How to Use:
- Make sure only one iPhone is connected to your computer.
 - iPhone: Lauch PDA.net on your iPhone. Start USB tether on PDA net.
 - Ubuntu terminal: Do NOT forget to type Ctrl-C.
  
$ sudo umux2007.py 
  [sudo] password for doctor: 
  2020-09-10 17:25:52+0200 [-] Log opened.
  2020-09-10 17:25:53+0200 [-] usbmux connected (fd 6, pid 2450)
  ^C
  
 
 - Ubuntu terminal: 
  
$ sudo pon umux2007
$ ifconfig
eth15     Link encap:Ethernet  HWaddr fc:61:98:93:6b:d5  
          UP BROADCAST MULTICAST  MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000 
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)
ppp0      Link encap:Point-to-Point Protocol  
          inet addr:68.245.171.115  P-t-P:68.245.171.115  Mask:255.255.255.255
          UP POINTOPOINT RUNNING NOARP MULTICAST  MTU:1500  Metric:1
          RX packets:6 errors:1 dropped:0 overruns:0 frame:0
          TX packets:7 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:3 
          RX bytes:284 (284.0 B)  TX bytes:265 (265.0 B)
  
 - Enjoy your Internet Connection!
Note: The Internet connection Icon does NOT show it is connected.
 
It is useful when 
- Your Ubuntu (14.04 in my case) does not recognize WiFi chip on your PC.
 - My Ubuntu is installed on a USB HDD and I used it on various PCs.
 
How to Install:
  - /usr/local/bin/umux2007.py
 
  - /etc/ppp/peers/umux2007
  
  Note: If you use Ubuntu 18.04, you need to install two packages. 18.04 has python3 installed as default, but not python iteself.
  - sudo apt-get install python
 
  - sudo apt-get install python-twisted.
 
How to Use:
- Install and Set up (see below)
 - iPhone: Lauch PDA.net on your iPhone. Start USB tether on PDA net.
 - Ubuntu terminal: $sudo umux2007.py     for creating /dev/umux2007
 - Ubuntu terminal: $sudo pon umux2007.
 
My Environment: 
- Ubuntu 14.04. 
 - iPhone(4)
 
  - jailbroken
  
 - pdanet 8.04 (cracked) installed. 
 
  It will expired in a month or so. but just register these two.
   
    - Email: pdanet1@pdanet1.com
    
 - Serial: PDANETAPPL-1CA0-1C58-165B-27E1-2BD8.
   
 
   (see details in cydia. sinful iphone repository)
 
 - Rough Procedure: http://ubuntuforums.org/showthread.php?t=1351548
 
Ubuntu 14.04 seems to have python-twisted. (I did not need to install it.)
libusbmuxd2 is also installed.
It is libusbmuxd2, which is installed, thus you have to modify umux2007.py.
it is programmed to call a library libusbmuxd.1.so, which should be
changed to libusbmuxd.2.so. 
Now pdanet and umux2007.py works perfectly! 
Note: 
- $umux2007.py to test (or create /etc/ppp/peers/umux2007)
 - $sudo pon umux2007 (without .py)
 
Command I used for this bug fix.
- dpkg -l: list installed package and their version: to see
  libusbmux is installed or not.
 - dpkg -L libusbmuxd2. list all the files in a package and where
  they are installed. to find what files are installed by libusbmux.dpkg.
 
Go back to Mobile
20180802