<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>khax.net &#187; NetworkManager</title>
	<atom:link href="http://blog.khax.net/tag/networkmanager/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.khax.net</link>
	<description>Adventures in Ubuntu systems administration</description>
	<lastBuildDate>Thu, 08 Jul 2010 02:01:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='blog.khax.net' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://0.gravatar.com/blavatar/6ccca40b5ab19d33d91882e4d8f9a9c4?s=96&#038;d=http://s2.wp.com/i/buttonw-com.png</url>
		<title>khax.net &#187; NetworkManager</title>
		<link>http://blog.khax.net</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://blog.khax.net/osd.xml" title="khax.net" />
	<atom:link rel='hub' href='http://blog.khax.net/?pushpress=hub'/>
		<item>
		<title>Virgin wireless broadband with Ubuntu notes</title>
		<link>http://blog.khax.net/2009/02/14/virgin-wireless-broadband-with-ubuntu-notes/</link>
		<comments>http://blog.khax.net/2009/02/14/virgin-wireless-broadband-with-ubuntu-notes/#comments</comments>
		<pubDate>Fri, 13 Feb 2009 23:18:35 +0000</pubDate>
		<dc:creator>agentk</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[chap]]></category>
		<category><![CDATA[NetworkManager]]></category>
		<category><![CDATA[pap]]></category>
		<category><![CDATA[ppp]]></category>
		<category><![CDATA[ubuntu-8.10]]></category>
		<category><![CDATA[virgin broadband]]></category>
		<category><![CDATA[wireless broadband]]></category>

		<guid isPermaLink="false">http://blog.khax.net/?p=72</guid>
		<description><![CDATA[Under Ubuntu-8.10 two changes are needed for Virgin wireless broadband USB adaptors to work with NetworkManager. First is that NetworkManager does not save chap/pap settings. This is a NetworkManager bug. But it can be fixed in /etc/ppp/options: sudo sed -i 's/#-chap/-chap/' /etc/ppp/options This will disable chap authentication globally for all connections that do not override [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.khax.net&amp;blog=6484387&amp;post=72&amp;subd=khax&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Under Ubuntu-8.10 two changes are needed for Virgin wireless broadband USB adaptors to work with NetworkManager.</p>
<p>First is that NetworkManager does not save chap/pap settings. This is a NetworkManager bug. But it can be fixed in /etc/ppp/options:</p>
<pre>sudo sed -i 's/#-chap/-chap/' /etc/ppp/options</pre>
<p>This will disable chap authentication globally for all connections that do not override the option (such as NetworkManager).</p>
<p>Second thing is that the APN is wrong. I don&#8217;t know if this is only for pre-paid, as that is all I have tried.</p>
<p>After plugging in the USB adaptor and selecting your internet provider:</p>
<ul>
<li>Right click the NetworkManager icon in the system try</li>
<li>Select the Mobile Broadband tab</li>
<li>Click on your connection then click Edit</li>
<li>Change the APN from VirginInternet to VirginBroadband</li>
<li>Click Ok, then Close</li>
</ul>
<p>To start and stop data sessions now, left click the NetworkManager icon.</p>
<p>If your are asked for a password to connect, anything can be entered.</p>
<p>(<a href="http://ubuntuforums.org/showthread.php?t=1014221" target="_blank">ref</a>)</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/khax.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/khax.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/khax.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/khax.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/khax.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/khax.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/khax.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/khax.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/khax.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/khax.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/khax.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/khax.wordpress.com/72/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/khax.wordpress.com/72/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/khax.wordpress.com/72/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.khax.net&amp;blog=6484387&amp;post=72&amp;subd=khax&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.khax.net/2009/02/14/virgin-wireless-broadband-with-ubuntu-notes/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">agentk</media:title>
		</media:content>
	</item>
		<item>
		<title>Mobile Internet via Bluetooth on Ubuntu-7.10</title>
		<link>http://blog.khax.net/2009/02/08/mobile-internet-via-bluetooth-on-ubuntu-710/</link>
		<comments>http://blog.khax.net/2009/02/08/mobile-internet-via-bluetooth-on-ubuntu-710/#comments</comments>
		<pubDate>Sat, 07 Feb 2009 22:39:34 +0000</pubDate>
		<dc:creator>agentk</dc:creator>
				<category><![CDATA[Desktop]]></category>
		<category><![CDATA[bluetooth]]></category>
		<category><![CDATA[dun]]></category>
		<category><![CDATA[NetworkManager]]></category>
		<category><![CDATA[optus]]></category>
		<category><![CDATA[ppp]]></category>
		<category><![CDATA[telstra]]></category>
		<category><![CDATA[ubuntu-7.10]]></category>

		<guid isPermaLink="false">http://blog.khax.net/?p=48</guid>
		<description><![CDATA[My old instructions on setting up internet access from Ubuntu-7.10 via a mobile phone from Telstra or Optus on Ubuntu Linux. Connecting to wireless internet plans via bluetooth. Tested with Next G, (HSDPA) and GPRS. Tested phone hardware: iMate JasJam Nokia 6110 Navigator Nokia 6120 Classic (ref) Drop me a note if you have successfully [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.khax.net&amp;blog=6484387&amp;post=48&amp;subd=khax&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>My old instructions on setting up internet access from Ubuntu-7.10 via a mobile phone from Telstra or Optus on Ubuntu Linux. Connecting to wireless internet plans via bluetooth. Tested with Next G, (HSDPA) and GPRS.</p>
<h3>Tested phone hardware:</h3>
<ul>
<li>iMate JasJam</li>
<li>Nokia 6110 Navigator</li>
<li>Nokia 6120 Classic (<a href="https://lists.ubuntu.com/archives/ubuntu-au/2007-November/002512.html" target="_blank">ref</a>)</li>
</ul>
<p>Drop me a note if you have successfully (or not) tested this guide with other phones<span id="more-48"></span></p>
<h3>Step 1: Creating an rfcomm dun connection via bluetooth</h3>
<p>Computer &lt;-bluetooth-&gt; Mobile Phone &lt;-gprs-&gt; Internet</p>
<p>I will not run through setting up bluetooth devices here. Using Ubuntu 7.10 no real configuration was necessary for my laptop to be able to see my phone.</p>
<p>First pair the phone with the computer. I initiated this from my phone, and a passkey popup appeared in my systray and after entering the same password on both devices pairing was successful. You then need to find the mac (hardware) address of you phone and the channel it advertises it&#8217;s dun service on. On my Nokia 6110 it&#8217;s always been channel 4, but on my iMate, sometimes it&#8217;s 3, sometimes it&#8217;s 4. I should write a python script to automate this soon, to supply you with a list of dun channels and devices and let you connect to one.</p>
<pre>~# hcitool scan
Scanning ...
        00:17:E3:6D:58:73       PocketPC
        00:1B:AF:DB:29:3D       Nokia6110</pre>
<p>Here for example, the mac address of my Nokia is 00:1B:AF:DB:29:3D.</p>
<p>Now lets find the dun ports availavable</p>
<pre>~# sdptool search dun
Inquiring ...
Searching for dun on 00:17:E3:6D:58:73 ...
Service Name: Dial-up Networking
Service RecHandle: 0x10004
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 3
Language Base Attr List:
  code_ISO639: 0x656e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100

Searching for dun on 00:1B:AF:DB:29:3D ...
Service Name: Dial-Up Networking
Service RecHandle: 0x10018
Service Class ID List:
  "Dialup Networking" (0x1103)
Protocol Descriptor List:
  "L2CAP" (0x0100)
  "RFCOMM" (0x0003)
    Channel: 4
Language Base Attr List:
  code_ISO639: 0x454e
  encoding:    0x6a
  base_offset: 0x100
Profile Descriptor List:
  "Dialup Networking" (0x1103)
    Version: 0x0100</pre>
<p>From that output you can see the dun channel for the iMate if 3 and the Nokia is 4</p>
<p>Now we need to bind to one of those channels. This takes the form of:</p>
<p>sudo rfcomm bind &lt;rfcomm_port&gt; &lt;mac&gt; &lt;dun_channel&gt;</p>
<p>And using the example of the the iMate, I would use:</p>
<pre>~# sudo rfcomm bind 0 00:17:E3:6D:58:73 3</pre>
<p>Other handy commands are:</p>
<pre>~# rfcomm
rfcomm0: 00:1B:AF:DB:29:3D channel 4 closed
~# sudo rfcomm release 0
~# rfcomm</pre>
<p>rfcommlists all connected channels and their status</p>
<p>rfcomm release &lt;rfcomm_port&gt;closes that channel again.</p>
<p>I have found it fairly safe to leave the rfcomm channel connected across sessions as well and phone reboots, but it will need to be reconnected on each reboot unless the connection is put into /etc/bluetooth/rfcomm.conf</p>
<p>I have not put mine into rfcomm.conf because the iMate changes channel on me and it depends on which phone I use. I know I could make an rfcomm.conf entry for each one, but I just havnt got round to it yet.</p>
<h3>Step 2: Creating config files</h3>
<p>I will run through the files that need to be created for bigpond. There is actually one line that has to be changed for Optus, and I will note that on the way. If you are a neat freak (or are setting up both interfaces like me) then also change the names of the files to optus, optus-connect, and optus-disconnect and change the connect and disconnect lines to match.</p>
<h4>/etc/ppp/peers/bigpond</h4>
<pre>connect "/usr/sbin/chat -v -f /etc/ppp/peers/bigpond-connect"
disconnect "/usr/sbin/chat -v -f /etc/ppp/peers/bigpond-disconnect"
debug
/dev/rfcomm0
defaultroute
usepeerdns
user "guest"</pre>
<h4>/etc/ppp/peers/bigpond-connect</h4>
<pre>TIMEOUT         5
ECHO            ON
ABORT           '\nBUSY\r'
ABORT           '\nERROR\r'
ABORT           '\nNO ANSWER\r'
ABORT           '\nNO CARRIER\r'
ABORT           '\nNO DIALTONE\r'
ABORT           '\nRINGING\r\n\r\nRINGING\r'
''              \rAT
TIMEOUT         12
SAY             "Press CTRL-C to close the connection at any stage!"
SAY             "\ndefining PDP context...\n"
OK              ATH
OK              ATE1
OK              'AT+CGDCONT=1,"IP","telstra.internet"'
OK              ATM1L3DT*99#
TIMEOUT         10
SAY             "\nwaiting for connect...\n"
CONNECT         ""
SAY             "\nConnected."
SAY             "\nIf the following ppp negotiations fail,\n"
SAY             "try restarting the phone.\n"</pre>
<p>(Change &#8220;telstra.internet&#8221; to &#8220;internet&#8221; if you are using Optus)</p>
<h4>/etc/ppp/peers/bigpond-disconnect</h4>
<pre>ABORT           "BUSY"
ABORT           "ERROR"
ABORT           "NO DIALTONE"
SAY             "\nSending break to the modem\n"
""              "\K"
""              "\K"
""              "\K"
""              "+++ATH"
""              "+++ATH"
""              "+++ATH"
SAY             "\nPDP context detached\n"</pre>
<h3>Step 3: File changes needed</h3>
<h4>Append to /etc/ppp/chap-secrets</h4>
<pre>"guest" * "guest" *</pre>
<h4>Append to /etc/ppp/pap-secrects</h4>
<pre>"guest" * "guest" *</pre>
<h4>Append to /etc/network/interfaces</h4>
<pre>iface bigpond inet ppp
    provider bigpond</pre>
<p>(bigpond references will become optus if you changed the names of the files earlier to match)</p>
<h3>Step 4: Testing</h3>
<p>The easiest way to monitor the connection is tail -f /var/log/messagesin a second terminal while activating the connection in the first terminal.</p>
<p>To start the connection:</p>
<pre>~# pon bigpond</pre>
<p>To stop the connection</p>
<pre>~# poff bigpond</pre>
<p>A transcript of my log file of a successfull connection and disconnection via telstra.</p>
<pre>Nov  2 23:11:46 narwhal pppd[8200]: pppd 2.4.4 started by kbowden, uid 1000
Nov  2 23:11:49 narwhal chat[8206]: timeout set to 5 seconds
Nov  2 23:11:49 narwhal chat[8206]: abort on (\nBUSY\r)
Nov  2 23:11:49 narwhal chat[8206]: abort on (\nERROR\r)
Nov  2 23:11:49 narwhal chat[8206]: abort on (\nNO ANSWER\r)
Nov  2 23:11:49 narwhal chat[8206]: abort on (\nNO CARRIER\r)
Nov  2 23:11:49 narwhal chat[8206]: abort on (\nNO DIALTONE\r)
Nov  2 23:11:49 narwhal chat[8206]: abort on (\nRINGING\r\n\r\nRINGING\r)
Nov  2 23:11:49 narwhal chat[8206]: send (^MAT^M)
Nov  2 23:11:49 narwhal chat[8206]: timeout set to 12 seconds
Nov  2 23:11:49 narwhal chat[8206]: expect (OK)
Nov  2 23:11:49 narwhal chat[8206]: ^MAT^M^M
Nov  2 23:11:49 narwhal chat[8206]: OK
Nov  2 23:11:49 narwhal chat[8206]:  -- got it
Nov  2 23:11:49 narwhal chat[8206]: send (ATH^M)
Nov  2 23:11:49 narwhal chat[8206]: expect (OK)
Nov  2 23:11:49 narwhal chat[8206]: ^M
Nov  2 23:11:49 narwhal chat[8206]: ATH^M^M
Nov  2 23:11:49 narwhal chat[8206]: OK
Nov  2 23:11:49 narwhal chat[8206]:  -- got it
Nov  2 23:11:49 narwhal chat[8206]: send (ATE1^M)
Nov  2 23:11:49 narwhal chat[8206]: expect (OK)
Nov  2 23:11:49 narwhal chat[8206]: ^M
Nov  2 23:11:49 narwhal chat[8206]: ATE1^M^M
Nov  2 23:11:49 narwhal chat[8206]: OK
Nov  2 23:11:49 narwhal chat[8206]:  -- got it
Nov  2 23:11:49 narwhal chat[8206]: send (AT+CGDCONT=1,"IP","internet"^M)
Nov  2 23:11:49 narwhal chat[8206]: expect (OK)
Nov  2 23:11:49 narwhal chat[8206]: ^M
Nov  2 23:11:49 narwhal chat[8206]: AT+CGDCONT=1,"IP","internet"^M^M
Nov  2 23:11:49 narwhal chat[8206]: OK
Nov  2 23:11:49 narwhal chat[8206]:  -- got it
Nov  2 23:11:49 narwhal chat[8206]: send (ATM1L3DT*99#^M)
Nov  2 23:11:49 narwhal chat[8206]: timeout set to 10 seconds
Nov  2 23:11:49 narwhal chat[8206]: expect (CONNECT)
Nov  2 23:11:49 narwhal chat[8206]: ^M
Nov  2 23:11:50 narwhal chat[8206]: ATM1L3DT*99#^M^M
Nov  2 23:11:50 narwhal chat[8206]: CONNECT
Nov  2 23:11:50 narwhal chat[8206]:  -- got it
Nov  2 23:11:50 narwhal chat[8206]: send (^M)
Nov  2 23:11:50 narwhal pppd[8200]: Serial connection established.
Nov  2 23:11:50 narwhal pppd[8200]: Using interface ppp0
Nov  2 23:11:50 narwhal pppd[8200]: Connect: ppp0 &lt;--&gt; /dev/rfcomm0
Nov  2 23:11:51 narwhal pppd[8200]: PAP authentication succeeded
Nov  2 23:11:52 narwhal pppd[8200]: local  IP address 58.109.227.207
Nov  2 23:11:52 narwhal pppd[8200]: remote IP address 10.6.6.6
Nov  2 23:11:52 narwhal pppd[8200]: primary   DNS address 61.88.88.88
Nov  2 23:11:52 narwhal pppd[8200]: secondary DNS address 61.88.88.88
Nov  2 23:12:13 narwhal pppd[8200]: Terminating on signal 2
Nov  2 23:12:13 narwhal pppd[8200]: Connect time 0.4 minutes.
Nov  2 23:12:13 narwhal pppd[8200]: Sent 2538 bytes, received 1582 bytes.
Nov  2 23:12:13 narwhal pppd[8200]: Connection terminated.
Nov  2 23:12:13 narwhal chat[8302]: abort on (BUSY)
Nov  2 23:12:13 narwhal chat[8302]: abort on (ERROR)
Nov  2 23:12:13 narwhal chat[8302]: abort on (NO DIALTONE)
Nov  2 23:12:13 narwhal chat[8302]: send (\K^M)
Nov  2 23:12:13 narwhal last message repeated 2 times
Nov  2 23:12:13 narwhal chat[8302]: send (+++ATH^M)
Nov  2 23:12:13 narwhal last message repeated 2 times
Nov  2 23:12:13 narwhal pppd[8200]: Serial link disconnected.
Nov  2 23:12:14 narwhal pppd[8200]: Exit.</pre>
<p align="left">If that was successful you should now be able to start and stop the connection via NetworkManager.</p>
<p align="center"><img class="alignnone size-full wp-image-49" title="nm-applet-bluetooth" src="http://khax.files.wordpress.com/2009/02/nm-applet-bluetooth.png?w=500&#038;h=199" alt="nm-applet-bluetooth" width="500" height="199" /></p>
<h3>Closing Notes</h3>
<ul>
<li>I know internet via phone is not supplied by bigpond, but it&#8217;s easier for me to remember</li>
<li>I found the iMate JASJAM to need a lot of resetting due to either the phone crashing, or no longer responding to dialup requests</li>
<li>It does not matter what the username and password are. I just could not get pppd to connect without one.</li>
<li>You do NOT need to start the Wireless Modem application on the iMate for this to work.</li>
<li>I have seen people put quite a lot of options into /etc/ppp/peers/bigpond type files. I have put the minimum in I need for it to work reliably for me. Your mileage may vary.</li>
<li>NetworkManager does not show any connection status for dial up sessions, I should check to see if there is a bug filed yet.</li>
</ul>
<h3>Credits</h3>
<p><a href="http://www.hingston.demon.co.uk/mike/nokia6680.html" target="_blank">http://www.hingston.demon.co.uk/mike/nokia6680.html</a></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/khax.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/khax.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/khax.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/khax.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/khax.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/khax.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/khax.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/khax.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/khax.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/khax.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/khax.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/khax.wordpress.com/48/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/khax.wordpress.com/48/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/khax.wordpress.com/48/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=blog.khax.net&amp;blog=6484387&amp;post=48&amp;subd=khax&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://blog.khax.net/2009/02/08/mobile-internet-via-bluetooth-on-ubuntu-710/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">agentk</media:title>
		</media:content>

		<media:content url="http://khax.files.wordpress.com/2009/02/nm-applet-bluetooth.png" medium="image">
			<media:title type="html">nm-applet-bluetooth</media:title>
		</media:content>
	</item>
	</channel>
</rss>