<?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>Syntactic sugar &#187; Tethering</title>
	<atom:link href="http://syntacticsugar.nl/tag/tethering/feed/" rel="self" type="application/rss+xml" />
	<link>http://syntacticsugar.nl</link>
	<description>Random ramblings of another web-techy</description>
	<lastBuildDate>Sat, 09 Jan 2010 21:24:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>HOWTO : Bluetooth Tethering with Nokia N900</title>
		<link>http://syntacticsugar.nl/2009/12/03/bluetooth-tethering-with-nokia-n900/</link>
		<comments>http://syntacticsugar.nl/2009/12/03/bluetooth-tethering-with-nokia-n900/#comments</comments>
		<pubDate>Thu, 03 Dec 2009 10:40:07 +0000</pubDate>
		<dc:creator>buTTon</dc:creator>
				<category><![CDATA[Nokia N900]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Bluetooth]]></category>
		<category><![CDATA[Internet Sharing]]></category>
		<category><![CDATA[Tethering]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://syntacticsugar.nl/?p=310</guid>
		<description><![CDATA[Tethering (using you&#8217;re mobile phone to get your laptop/notebook online) is a quite important feature for me, when I&#8217;m at a meeting I do not wish to rely on wireless connections from my customers or the hotel/cafe where I&#8217;m at. With my Nokia E90 I used JoikuSpot, which turns the E90 into a wireless accesspoint, [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Tethering" target="_blank">Tethering</a> (using you&#8217;re mobile phone to get your laptop/notebook online) is a quite important feature for me, when I&#8217;m at a meeting I do not wish to rely on wireless connections from my customers or the hotel/cafe where I&#8217;m at. With my Nokia E90 I used <a href="http://www.joikushop.com/" target="_blank">JoikuSpot</a>, which turns the E90 into a wireless accesspoint, worked like a charm but drains the batteries extremely fast. One very big advantage of creating a Wifi-accesspoint is speed; I have 7.2 mbit 3.5G subscription (the E90 only got to 3.2 mbit though), which is too fast for bluetooth, you usually get about 1 mbit from bluetooth.. With wifi I was able to use the full 3.2 mbit my E90 was able to provide.</p>
<p><span id="more-310"></span></p>
<p>With the new Nokia N900 I&#8217;ve been looking for a way to get my Ubuntu Karminc netbook &amp; Ubuntu Jaunty laptop online, preferably with Wifi, but at least using Bluetooth. Wifi is unfortunately not yet supported because the some kernel-modules  (iptables, iptables_nat) are not available for Maemo (<a href="http://talk.maemo.org/showthread.php?t=30916&amp;highlight=tethering&amp;page=2" target="_blank">they are working on it</a>). Bluetooth is possible, and quite easy to archive with Ubuntu Karmic. I&#8217;ll explain how to get your Ubuntu Karmic laptop online with a N900 using the DUN-service (DailUpNetworking)</p>
<p><em>You need to be comfortable with the commandline/terminal and have <a href="http://talk.maemo.org/showthread.php?t=33911" target="_blank">rootsh </a>installed </em><em>on your N900</em><em> to do this! If you&#8217;re NOT comfortable with the Terminal : do not proceed, you will need to be root, and that enables you to brick your N900!</em></p>
<p><strong>On the N900</strong></p>
<p>You&#8217;ll need the following script (taken from <a href="http://wiki.maemo.org/index.php?title=Fremantle_Unsupported_Bluetooth_profiles#DUN_server" target="_blank">Maemo Wiki</a>):</p>
<pre>sdptool add --channel 1 DUN
while true; do
        rfcomm -S -- listen -1 1 /usr/bin/pnatd '{}'
        sleep 1
done</pre>
<p>I copied the script,  pasted it into a new text-file on my laptop (called it dun.sh) and sent it to my N900 with bluetooth. Your N900 will ask where to store the script, I stored into Documents. Now fire up the terminal application on the N900 and become root:</p>
<pre>~ $ sudo gainroot</pre>
<p>Move the uploaded file to /usr/bin :</p>
<pre>/home/user # mv /home/user/MyDocs/.documents/dun.sh /usr/bin/</pre>
<p>Make the file dun.sh executable;</p>
<pre>/home/user # chmod +x /usr/bin/dun.sh</pre>
<p>Start the DUN-service:</p>
<pre>/home/user # dun.sh</pre>
<p>You should see something like this:</p>
<pre>Dial-Up Networking Service Registered
Waiting for connection on channel 1</pre>
<p>Configuring the N900 is finished, next;</p>
<p><strong>configuring Ubuntu (Karmic)<br />
</strong></p>
<p><em>Be sure you have paired the N900 with your laptop</em></p>
<p><span style="text-decoration: underline;">Configuring the network-connection</span><em><br />
</em></p>
<ul>
<li>Left click on the network-manager from the notification area of the gnome-panel, select &#8220;Edit connections&#8221;</li>
<li>Select the &#8220;Mobile Broadband&#8221;-tab and press &#8220;Add&#8221;<br />
<a href="http://syntacticsugar.nl/wp-content/uploads/2009/12/Screenshot-Network-Connections.png"><img class="alignnone size-medium wp-image-311" title="Network Connections" src="http://syntacticsugar.nl/wp-content/uploads/2009/12/Screenshot-Network-Connections-300x219.png" alt="Network Connections" width="300" height="219" /></a></li>
<li>Click &#8220;forward&#8221; (leaving the selection to &#8220;any device&#8221;)</li>
<li>Select the country, click &#8220;forward&#8221; and select your mobile operator.</li>
<li>If you have the option to select a plan, do so (I needed to select Vodafone Business to get the correct APN), else click &#8220;forward&#8221;</li>
<li>Click &#8220;Apply&#8221; to save the new Mobile Broadband-service</li>
<li>A new window will appear to configure the Service, <em>be sure to enable &#8220;Connect automatically&#8221; </em>and click<em> </em>&#8220;apply&#8221;<em><br />
</em></li>
<li>Close the window &#8220;Network connections&#8221;<em><br />
</em></li>
</ul>
<p><span style="text-decoration: underline;">Next: connecting to your N900 with DUN</span></p>
<p>First; be sure you have <a href="http://blueman-project.org/">Blueman</a> Installed, you&#8217;ll need this to configure the connections.  If you do not have Blueman running install it following the instructions <a href="http://blueman-project.org/downloads.html">found here</a><br />
<em></p>
<blockquote><p>
In Ubuntu Karmic you can add blueman repositories by issuing this command:<br />
sudo add-apt-repository ppa:blueman/ppa</p>
<p>And to install it run:<br />
sudo apt-get update<br />
sudo apt-get install blueman
</p></blockquote>
<p></em></p>
<ul>
<li>Check if you have enabled the correct plugin;</li>
<li>Right-click on the bluetooth-icon in the notification area in the panel and select &#8220;plugins&#8221;<br />
<a href="http://syntacticsugar.nl/wp-content/uploads/2009/12/screenshot_0041.png"><img class="alignnone size-full wp-image-314" title="screenshot_004" src="http://syntacticsugar.nl/wp-content/uploads/2009/12/screenshot_0041.png" alt="screenshot_004" width="273" height="33" /></a></li>
<li>Enable &#8220;NMDUNSupport&#8221; (optionally you can enable the &#8220;NetUsage&#8221; plugin to monitor data-usage) and close the Plugins window.</li>
<li>Open the bluetooth manager (by  left-clicking on the bluetooth-icon in the notification area in the panel) and look for your N900.<br />
<a href="http://syntacticsugar.nl/wp-content/uploads/2009/12/Screenshot-Bluetooth-Devices.png"><img class="alignnone size-medium wp-image-324" title="Screenshot-Bluetooth Devices" src="http://syntacticsugar.nl/wp-content/uploads/2009/12/Screenshot-Bluetooth-Devices-300x218.png" alt="Screenshot-Bluetooth Devices" width="300" height="218" /></a></li>
<li>Right-click on the N900-icon and select &#8220;Refresh Services&#8221;</li>
<li>Again; right-click on the N900 and click &#8220;Dail-Up Networking&#8221;.. your laptop will try to connect to your N900</li>
<li>If the connection is OK you can establish the network-connection to your Mobile Broadband provider, left-click on the Network-manager in the notification area and select the network connection you created in the previous section (&#8220;Configuring the network-connection&#8221;).</li>
<li><em>If all goes well you should be online now!</em> (if you had a &#8216;normal&#8217; wifi connection, disconnect it to be sure you&#8217;re using the Dail-Up with your N900).</li>
</ul>
<p><strong>Possible Issues</strong></p>
<p>If you disconnect from dail-up networking and try to reconnect you could get an error : &#8220;Connection Failed: Port already in use&#8221;.. To fix this, restart bluetooth on your laptop:</p>
<p>sudo /etc/init.d/bluetooth restart</p>
<p><strong>Loose ends</strong></p>
<p>You could leave the DUN-script running in a terminal on your N900, I&#8217;m not yet sure if this could drain the battery. If it doesn&#8217;t it may be possible to add the script into the /etc/rc2.d directory, this way the script will be started at boot and you can connect to your N900 quickly without manually starting DUN. I&#8217;ll look into this when I&#8217;m sure the script doesn&#8217;t drain the battery (Update: It doesn&#8217;t; it&#8217;s save to autostart the script).</p>
<p>Ubuntu Jaunty doesn&#8217;t have the bluetooth manager which is used in Ubuntu Karmic; I&#8217;ll update this post with instructions for Jaunty later, and if anyone has a step by step howto for Windows, please let me know so I can add a link to your site or add the howto here <img src='http://syntacticsugar.nl/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> </p>
<p>Update : If you&#8217;d like DUN started automatically, check out <a href="http://intr.overt.org/blog/?p=74">this</a> and <a href="http://intr.overt.org/blog/wp-trackback.php?p=88" target="_blank">this</a> helpful post</p>
<p>Update 12-30-09:<br />
The DUN script is now available in the Maemo-repositories; still in testing though.<br />
Also; I forgot to mention <strong>Blueman</strong> . I assumed it was part of Karmic and installed by default; but it&#8217;s not, i&#8217;ve added instructions (Thx to Alex &#038; Alex in the comments).</p>
]]></content:encoded>
			<wfw:commentRss>http://syntacticsugar.nl/2009/12/03/bluetooth-tethering-with-nokia-n900/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
