iPhone Stuff (including USB tether on Slackware Linux)


Updates:

20090316 - Initial version posted

My current cell phone is the first generation Apple iPhone, jailbroken and unlocked for use with t-mobile. Below I've listed (mostly for my own reference) what to do to for the unlock process

How to USB Tether on Slackware Linux

For tethering, you have several options: you can use the PDANet application (from Cydia) to tether over wireless lan, but I've found this to be especially slow and unreliable. If you're running Windows, you can use the "PDANet Desktop" client to tether via the USB cable. This seems somewhat faster and more reliable, but PDAnet costs $$ if you want to use anything other than basic port 80 http access, and it is windows/mac only. For USB tethering on linux, you can follow the instructions here: USB iphone Tether on Linux.

I have compiled the necessary packages for doing this on slackware. Download the files in this directory, install the .tgz files with installpkg. Make sure you set up your desktop and iphone for SSH Public Key Authentication, such that you can run itunnel and then get into your iphone with "ssh root@127.0.0.1 -p 3023" without entering a password. SSH into the iphone and run "apt-get install slirp". When this is all done, run the script below (name it itether.sh) as root after disabling any other active network interfaces. You should theoretically get a ppp0 interface with full internet access.

#!/bin/sh
IP="10.0.2.15:10.0.2.2"
NETMASK="255.255.255.0"
BAUD="115200"
DEBUG="debug logfile /tmp/ppp.log"
COMPRESS=""
PTY="env SSH_AUTH_SOCK=/tmp/SSHKeychain.socket ssh -t root@127.0.0.1 -p 3023 /usr/bin/slirp -P -b $BAUD"

pppd $IP netmask $NETMASK $BAUD noauth defaultroute $DEBUG usepeerdns pty "$PTY"

If you have any comments or additions, I'd appreciate an email at <contact@mydomain> (change "mydomain" to "mdek.net"). If you would like me to add information, please be as detailed as possible in your email.


return to:
mdek.net
mdek.net - Computing
Copyright © 2009 Mhair Dekmezian. All Rights Reserved.