<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Matt Ventura&#039;s blog &#187; Linux iPhone tether</title>
	<atom:link href="http://mattventura.net/tag/linux-iphone-tether/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattventura.net</link>
	<description>Matt Ventura&#039;s blog about various stuff.</description>
	<lastBuildDate>Fri, 26 Aug 2011 08:40:21 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=3.0-alpha</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux iPhone Tethering over Bluetooth</title>
		<link>http://mattventura.net/2009/08/27/linux-iphone-tethering-over-bluetooth/</link>
		<comments>http://mattventura.net/2009/08/27/linux-iphone-tethering-over-bluetooth/#comments</comments>
		<pubDate>Thu, 27 Aug 2009 21:54:01 +0000</pubDate>
		<dc:creator>Matt Ventura</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[iphone]]></category>
		<category><![CDATA[Linux iPhone tether]]></category>
		<category><![CDATA[tether]]></category>

		<guid isPermaLink="false">https://blog.mattventura.net/?p=218</guid>
		<description><![CDATA[A while ago I wrote about how to do a wifi iPhone tether with a SOCKS proxy. Now, I&#8217;ll be writing about a Bluetooth tether on 3.0/3.0.1 with a 3G/3GS. To make this work on 3.1, you will need to enable tethering separately, which can usually be done by installing the &#8220;Internet Tethering&#8221; package in [...]]]></description>
			<content:encoded><![CDATA[<p>A while ago I wrote about how to do a wifi iPhone tether with a SOCKS proxy. Now, I&#8217;ll be writing about a Bluetooth tether on 3.0/3.0.1 with a 3G/3GS. To make this work on 3.1, you will need to enable tethering separately, which can usually be done by installing the &#8220;Internet Tethering&#8221; package in Cydia. This does NOT rely on that uit.sh script floating around, and will work on any Linux system with bluetooth. I used my Fedora 10 laptop for this.</p>
<p><span id="more-218"></span></p>
<h2>Enable PAND</h2>
<p>First, check /etc/sysconfig/bluetooth, and add this to the file if it is not already there:<br />
<code><br />
PAND_ENABLED=1<br />
PAND_OPTIONS="--role=PAN"</code></p>
<p>Restart the bluetooth service, or your computer if you can&#8217;t find the init.d script for it.</p>
<h2>Install Blueman</h2>
<p>First, install the &#8220;Blueman&#8221; program. It will put a bluetooth icon in your notification area. If you already have one, click both to check which is the blueman icon and which is provided by another bluetooth service. First of all, right click the blueman icon and go to local services. Click on network and select the &#8220;integrate with NetworkManager&#8221; option. Close this window.</p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/shot0.png"><img class="alignnone size-full wp-image-222" title="shot0" src="https://blog.mattventura.net/wp-content/uploads/shot0.png" alt="shot0" width="608" height="448" /></a></p>
<h2>Prepare the Phone</h2>
<p>Browse to <a href="http://help.benm.at/help.php" target="_blank">help.benm.at</a> on your phone and select your country and carrier. After installing the carrier settings, reboot your phone. In Settings&gt;General&gt;Network, you should see an internet tethering option. If you don&#8217;t, reinstall the carrier settings and reboot again. When you get a notice about tethering not being activated and that you need to contact AT&amp;T, close it and the menu should be activated. Go into the tethering menu and turn tethering on. Tethering has not been reported to add to your phone bill, so it is safe to ignore the warning if you get one. Now, go to your bluetooth menu (settings&gt;general&gt;bluetooth) turn bluetooth on and stay in the menu.</p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/IMG_0251.PNG"><img class="alignnone size-full wp-image-226" title="IMG_0251" src="https://blog.mattventura.net/wp-content/uploads/IMG_0251.PNG" alt="IMG_0251" width="320" height="480" /></a></p>
<p>Back on the computer, click the blueman icon and click the search button.</p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/shot1.png"><img class="alignnone size-full wp-image-223" title="shot1" src="https://blog.mattventura.net/wp-content/uploads/shot1.png" alt="shot1" width="661" height="378" /></a></p>
<p>You should see the phone. Select the phone then click the bond button. Make a passcode consisting of numbers, then when the phone asks you to input a passcode, enter the same code. Your phone and computer should now be paired.</p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/shot2.png"><img class="alignnone size-full wp-image-224" title="shot2" src="https://blog.mattventura.net/wp-content/uploads/shot2.png" alt="shot2" width="392" height="237" /></a></p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/IMG_0252.PNG"><img class="alignnone size-full wp-image-225" title="IMG_0252" src="https://blog.mattventura.net/wp-content/uploads/IMG_0252.PNG" alt="IMG_0252" width="320" height="480" /></a></p>
<h2>Connect</h2>
<p>Now that the phone and computer are paired, you can follow these steps whenever you want to connect to the phone.</p>
<p>Go to the bluetooth menu on the phone. Tap on the computer&#8217;s name. The first time you connect, you might get a notice about incoming authorization, as shown below, click &#8220;Check Authorization&#8221; and be sure to always grant access. This might not appear on subsequent connections.</p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/IMG_0253.PNG"><img class="alignnone size-full wp-image-227" title="IMG_0253" src="https://blog.mattventura.net/wp-content/uploads/IMG_0253.PNG" alt="IMG_0253" width="320" height="480" /></a></p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/shot3.png"><img class="alignnone size-full wp-image-228" title="shot3" src="https://blog.mattventura.net/wp-content/uploads/shot3.png" alt="shot3" width="461" height="156" /></a></p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/shot3.5.png"><img class="alignnone size-full wp-image-229" title="shot3.5" src="https://blog.mattventura.net/wp-content/uploads/shot3.5.png" alt="shot3.5" width="587" height="225" /></a></p>
<p>Now, open blueman on the computer and right click the phone. Connect to network&gt;network access. Wait a minute for network-manager to pick up on the connection, and you should be connected.</p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/shot4.png"><img class="alignnone size-full wp-image-230" title="shot4" src="https://blog.mattventura.net/wp-content/uploads/shot4.png" alt="shot4" width="661" height="378" /></a></p>
<p><a href="https://blog.mattventura.net/wp-content/uploads/IMG_0254.PNG"><img class="alignnone size-full wp-image-231" title="IMG_0254" src="https://blog.mattventura.net/wp-content/uploads/IMG_0254.PNG" alt="IMG_0254" width="320" height="480" /></a></p>
<p>You can do other things with your phone while tethering is active. To stop tethering, you can just disconnect in blueman or turn bluetooth off on the phone. For your information, the network interface that is created will typically be bnep0, not the pan0 network interface that is already present in some systems.</p>
<p>If it doesn&#8217;t work, make sure your bluetooth is functioning correctly. If all else fails, unpair the iPhone on the computer and remove the computer from the iPhone&#8217;s list of bluetooth devices.</p>
<p>I&#8217;ll be writing some more OpenWRT stuff later, so you can subscribe to my RSS feed or follow me on twitter (@Mattventura) to hear more.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattventura.net/2009/08/27/linux-iphone-tethering-over-bluetooth/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux iPhone Tethering scripts</title>
		<link>http://mattventura.net/2008/10/02/linux-iphone-scripts/</link>
		<comments>http://mattventura.net/2008/10/02/linux-iphone-scripts/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 23:22:20 +0000</pubDate>
		<dc:creator>Matt Ventura</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux iPhone tether]]></category>

		<guid isPermaLink="false">http://www.mattventura.net/blog/?p=18</guid>
		<description><![CDATA[Seeing how inconvenient the whole tethering process is, I decided to simplify it with these scripts. You will probably want to keep the SUID bit on these, or use sudo and set it up to not ask for a password for this command. Be sure to replace wlan0 with your wifi interface.

In order for these [...]]]></description>
			<content:encoded><![CDATA[<p>Seeing how inconvenient the whole tethering process is, I decided to simplify it with these scripts. You will probably want to keep the SUID bit on these, or use sudo and set it up to not ask for a password for this command. Be sure to replace wlan0 with your wifi interface.<br />
<span id="more-18"></span><br />
In order for these to work properly, you must not have your card set in &#8220;roaming mode&#8221; by network-admin.</p>
<p>The scripts:</p>
<p>adhoc (switches wlan card into adhoc mode)</p>
<p><code><br />
#!/bin/bash<br />
#switches card into adhoc mode and sets up adhoc network<br />
iwconfig wlan0 key off #this disables WEP. If you want WEP, read the iwconfig man page and change this line.<br />
iwconfig wlan0 mode ad-hoc<br />
iwconfig wlan0 essid ubuntu #replace this with your preferred ssid<br />
ifconfig wlan0 192.168.1.112 #replace this with your preferred IP address. Be sure to give the phone an address that is in the same /24 subnet.<br />
</code></p>
<p>Second script, for switching back to your preferred wireless network (set by <code>network-admin</code>).<br />
<code><br />
#!/bin/bash<br />
iwconfig wlan0 mode managed<br />
sudo ifup --force wlan0<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://mattventura.net/2008/10/02/linux-iphone-scripts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tethering the iPhone in Linux</title>
		<link>http://mattventura.net/2008/10/01/tethering-the-iphone-in-linux/</link>
		<comments>http://mattventura.net/2008/10/01/tethering-the-iphone-in-linux/#comments</comments>
		<pubDate>Thu, 02 Oct 2008 06:03:47 +0000</pubDate>
		<dc:creator>Matt Ventura</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Linux iPhone tether]]></category>

		<guid isPermaLink="false">http://www.mattventura.net/blog/?p=15</guid>
		<description><![CDATA[Since I want to be able to use my Linux laptop on the go without paying for a &#8220;tethering plan&#8221; or paying for a separate plan, I decided to try tethering my iPhone. Doing this with network-manager is simple.

Note: If you are comfortable with using iwconfig, you can use that instead of steps 1 and [...]]]></description>
			<content:encoded><![CDATA[<p>Since I want to be able to use my Linux laptop on the go without paying for a &#8220;tethering plan&#8221; or paying for a separate plan, I decided to try tethering my iPhone. Doing this with network-manager is simple.</p>
<p><span id="more-15"></span></p>
<p>Note: If you are comfortable with using iwconfig, you can use that instead of steps 1 and 2.<br />
The steps:</p>
<ol>
<li>Switch your wlan card to roaming mode</li>
<li>In the wifi menu on the menu bar, create a new wireless network and secure it if you wish.</li>
<li>Connect the phone to the network.</li>
<li>Note the phone&#8217;s IP address.</li>
<li>Use ifconfig to give the computer a similar IP address</li>
<li>Install and run 3Proxy on the phone (I recommend stopping 3Proxy when not in use to save battery life)</li>
<li>Set Firefox to use the phone&#8217;s IP as a SOCKSv5 proxy.</li>
<li>In about:config, set network.proxy.socks_remote_dns to true if you want DNS queries to go through 3Proxy</li>
<li>Browse the web.</li>
</ol>
<p>If you plan on doing this a lot, I recommend doing a few things:</p>
<ul>
<li>Give the phone a static IP for your ad-hoc network</li>
<li>Make a separate Firefox profile for proxy use</li>
<li>At the beginning of each month, reset your usage statistics. This way, you will be able to monitor your bandwidth so you don&#8217;t go over your carrier&#8217;s cap.</li>
</ul>
<p>If things don&#8217;t work, try these steps in order:</p>
<ol>
<li>Try pinging the phone. If you can&#8217;t, ensure the computer has an IP address, and try ifup &#8211;force wlan0 (or whatever your wlan interface is.)</li>
<li>Make sure the phone&#8217;s SOCKS server is still running. Try running it from a terminal or ssh session to check for errors</li>
<li>Make sure you set the option to forward DNS queries through SOCKS.</li>
</ol>
<p>Sometimes, it just helps to start completely over on this one if all else fails.</p>
<p>If I can figure out how, I might write a script or something to do this, so please check my blog again soon.</p>
]]></content:encoded>
			<wfw:commentRss>http://mattventura.net/2008/10/01/tethering-the-iphone-in-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

