<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" version="2.0">

<channel>
	<title>Roy Sindre Norangshol</title>
	
	<link>http://www.roysindre.no</link>
	<description>Attracted to computers since I was two..</description>
	<lastBuildDate>Thu, 18 Aug 2011 23:05:24 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/roysindre" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="roysindre" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><item>
		<title>Play! Framework – How to fix log4j to send logs by smtps</title>
		<link>http://www.roysindre.no/a/2011/06/08/play-log4j-smtps/</link>
		<comments>http://www.roysindre.no/a/2011/06/08/play-log4j-smtps/#comments</comments>
		<pubDate>Tue, 07 Jun 2011 23:02:10 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[development]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[log4j]]></category>
		<category><![CDATA[log4j.properties]]></category>
		<category><![CDATA[play]]></category>
		<category><![CDATA[play! framework]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[smtps]]></category>
		<category><![CDATA[web]]></category>

		<guid isPermaLink="false">https://www.roysindre.no/?p=226</guid>
		<description><![CDATA[Last days I&#8217;ve been playing with Play! Framework, which really is a breeze to work with when it comes to rapid web development for Java. If you haven&#8217;t checked it out yet, you really should over at http://www.playframework.org/ . Anyway, lets bump into how to fix log4j to send error logs by email to my &#8220;maintainer&#8221; [...]]]></description>
			<content:encoded><![CDATA[<p>Last days I&#8217;ve been playing with Play! Framework, which really is a breeze to work with when it comes to rapid web development for Java. If you haven&#8217;t checked it out yet, you really should over at <a href="http://www.playframework.org/">http://www.playframework.org/</a> .</p>
<p>Anyway, lets bump into how to fix log4j to send error logs by email to my &#8220;maintainer&#8221; email address by a SMTPS (SMTP SSL) server. In this example I&#8217;ll show you how to configure it using the log4j.properties file.</p>
<p><span id="more-226"></span>My instructions are based on <a href="http://www.playframework.org/code">http://www.playframework.org/code</a> with a few adjustments to get the correct version of log4j.</p>
<p>First of all, we&#8217;ll check out the latest version of Play! framework by using git:</p>
<blockquote><p>git clone git://github.com/playframework/play.git</p>
<p>or git clone git://github.com/playframework/play.git &#8211;depth 10     (as the project&#8217;s history is pretty big &gt;115MB at least)</p></blockquote>
<p>Iv&#8217;e checked out my Play!&#8217;s installation over at /opt/play .</p>
<blockquote><p>Delete log4j-1.2.15.jar from /opt/play/framework/lib/</p>
<p>Download log4j 1.2.16 or newer from <a href="http://logging.apache.org/log4j/1.2/download.html">http://logging.apache.org/log4j/1.2/download.html</a></p></blockquote>
<p>This is required since log4j version 1.2.16 supports setting SMTPTransport to SMTPS by using a properties file/config file. Earlier versions requires some nasty extending of the SMTPAppender class and do stuff you shouldn&#8217;t be required to do! Finally this is fixed in 1.2.16 <img src='http://www.roysindre.no/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<blockquote><p>Place log4j-1.2.16.jar into /opt/play/framework/lib/</p>
<p>cd /opt/play/framework</p>
<p>ant</p></blockquote>
<p>Now it will build Play! Framework while using the latest log4j library.</p>
<p>&nbsp;</p>
<p>For projects already setup, make sure you do:</p>
<blockquote><p>play dependencies</p>
<p>(if your using play maven module, you&#8217;ll also make sure you reimport the libs defined in your pom.xml by:)</p>
<p>( play mvn:re )</p></blockquote>
<p>&nbsp;</p>
<p>That should have updated all your project dependencies. The only last important part is to configure up log4j to send email. I&#8217;ve used Google SMTPS server as an example here:<br />
You place the log4j.properties file in $PlayApp/conf/</p>
<blockquote><p>log4j.rootLogger=INFO, Console, gmail</p>
<p>log4j.logger.play=INFO<br />
log4j.logger.org.quartz=WARN<br />
log4j.logger.org.hibernate=WARN<br />
log4j.logger.DataNucleus=WARN<br />
log4j.logger.org.apache.commons.httpclient=ERROR<br />
log4j.logger.net.sf.oval.internal=ERROR<br />
log4j.logger.org.springframework=WARN</p>
<p># Console<br />
log4j.appender.Console=org.apache.log4j.ConsoleAppender<br />
log4j.appender.Console.layout=org.apache.log4j.PatternLayout<br />
log4j.appender.Console.layout.ConversionPattern=%d{ABSOLUTE} %-5p ~ %m%n</p>
<p>log4j.appender.gmail=org.apache.log4j.net.SMTPAppender<br />
log4j.appender.gmail.SMTPProtocol=smtps<br />
log4j.appender.gmail.SMTPHost=smtp.gmail.com<br />
log4j.appender.gmail.SMTPPort=465<br />
log4j.appender.gmail.SMTPUsername=your@gmail.com<br />
log4j.appender.gmail.SMTPPassword=XXX<br />
log4j.appender.gmail.From=your@gmail.com<br />
log4j.appender.gmail.To=whatever@example.com<br />
log4j.appender.gmail.Subject=Application Error &#8211; ${application.path}<br />
log4j.appender.gmail.BufferSize=1<br />
log4j.appender.gmail.layout=org.apache.log4j.PatternLayout<br />
log4j.appender.gmail.layout.ConversionPattern=%m<br />
log4j.appender.gmail.threshold=ERROR</p>
<p># Rolling files<br />
# log4j.appender.Rolling=org.apache.log4j.RollingFileAppender<br />
# log4j.appender.Rolling.File=${application.path}/logs/application.log<br />
# log4j.appender.Rolling.MaxFileSize=1MB<br />
# log4j.appender.Rolling.MaxBackupIndex=100<br />
# log4j.appender.Rolling.layout=org.apache.log4j.PatternLayout<br />
# log4j.appender.Rolling.layout.ConversionPattern=%d{DATE} %-5p ~ %m%n</p>
<p>&nbsp;</p></blockquote>
<p>Thats it! Hopefully it shouldn&#8217;t be required to get the right log4j library yourself in the future, I&#8217;ll submit a ticket to the developers at Play! to ask them to bump to the latest version of log4j, so people don&#8217;t need to do this hassle <img src='http://www.roysindre.no/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2011/06/08/play-log4j-smtps/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hacking on BusBuddy API</title>
		<link>http://www.roysindre.no/a/2011/05/26/hacking-on-busbuddy-api/</link>
		<comments>http://www.roysindre.no/a/2011/05/26/hacking-on-busbuddy-api/#comments</comments>
		<pubDate>Thu, 26 May 2011 10:33:05 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[api]]></category>
		<category><![CDATA[atb]]></category>
		<category><![CDATA[bus]]></category>
		<category><![CDATA[buss]]></category>
		<category><![CDATA[trondheim]]></category>

		<guid isPermaLink="false">https://www.roysindre.no/?p=211</guid>
		<description><![CDATA[We&#8217;ve all waited quite some time for some data access to AtB&#8217;s real time data for public bus transportation. AtB themselves promised an Internet service not long after their release of their real time data service over SMS. We&#8217;re now in late May and still not a word about it, and I know several people [...]]]></description>
			<content:encoded><![CDATA[<p>We&#8217;ve all waited quite some time for some data access to AtB&#8217;s real time data for public bus transportation. AtB themselves promised an Internet service not long after their release of their real time data service over SMS. We&#8217;re now in late May and still not a word about it, and I know several people who have tried to get in touch with em to get access, but it&#8217;s all been a silent answer from em..</p>
<p>Sad thought is what I&#8217;m thinking, public transportation data should be open to the public &#8211; it&#8217;s for AtB&#8217;s own benefit that the data should be open and easy accessible  for nerdy geeks to create cool applications. <span id="more-211"></span>&#8220;Somehow&#8221; we managed to get access, 14 days later we released our API and 3 applications. Go try our webapplication at <a href="http://busbuddy.norrs.no" target="_blank">http://busbuddy.norrs.no</a> , or my BusBuddy Android application over at <a href="https://market.android.com/details?id=no.norrs.busbuddy">https://market.android.com/details?id=no.norrs.busbuddy</a> or Magnus&#8217;s Busstider application for iOS (read Apple iPhone etc) you&#8217;ll see good applications made in rather a short time, and as cheap as 1 dollar. And there is even more application alternatives on it&#8217;s way from other hobby developers! We&#8217;ve spent like approx 1 week hacking together these applications and API, plus another week for internal testing. 14 days you had to wait before our release and access to an easy accessible API. I&#8217;d have to say splendid, most people already who have tested our applications &#8211; praises and loves it! The people already know the data might not be stable or reliable since it&#8217;s under developement at AtB.</p>
<p>Why AtB are afraid of releasing their data/services before it is &#8220;stable&#8221; is unknown for me, since they seem to be already using this data in their SMS service which has been active for quite some while, and the data so far looks pretty decent and amazing in my opinion.</p>
<p>There&#8217;s some loop holes in their &#8220;public&#8221; (read hidden and protected against anonymous access) data, for example all the exported data has Italian identifiers in their SOAP-encapsulated JSON. Their data also has rather an weird format for an external API in my opinion, but I guess shouldn&#8217;t judge em too hard since we don&#8217;t know all the inner workings of their systems. This might also be one of the reasons why it isn&#8217;t public yet? Still it took us only a nerdy night of debugging to hack together some sample code to extract data from their SOAP service..</p>
<p>Other glitches you&#8217;ll notice when using the API is fetching departures for a bus stop right before midnight, as it probably gives you no departures in return until it turns after midnight&#8230; as you clearly see &#8211; they still have things to fix which we cannot solve on our end.</p>
<p>You might also be interested in that their actually working on providing the community a WWW-service, but it seems rather unpolished and &#8220;far from done&#8221; if I may say so. I&#8217;ll be looking forward for their final product and what they come up with when it its done. Anyhow, I&#8217;ll at least say we beat em fairly well with the release of our applications and the usability we provide. Clean and simple if I may say so <img src='http://www.roysindre.no/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p>&nbsp;</p>
<p>Let&#8217;s just praise that AtB won&#8217;t be knocking on our doors, deciding to kill our service for you users. Stats on <a href="http://api.busbuddy.norrs.no/api/stats" target="_blank">http://api.busbuddy.norrs.no/api/stats</a> tells us you already appreciate our applications.</p>
<p>And keep in mind, the data is open and freely open for everyone. If you want to dig in, just email me for an api key request at busbuddy &#8216;at&#8217; norrs.no. FYI, the api key is only used for tracking a requests counter for each api key. In the next release of our API we will be adding support for UUID which the applications can generate with an UUID.generator and send along. This way we&#8217;ll be able to track how many users each application have, and of course you&#8217;ll stay anonymous as there is no IP recording in the log towards api keys or the future feature of UUID.</p>
<p>Example on our data:</p>
<p>* Bus stops .. (we&#8217;re still mining data, such as their abbreviations name and bus stop maintainer. Also the locationId plays a special part of their data.)</p>
<pre class="brush: javascript; ">

{&quot;busStops&quot;:[
{&quot;busStopId&quot;:100034,
&quot;name&quot;:&quot;Hangran&quot;,
&quot;nameWithAbbreviations&quot;:null,
&quot;busStopMaintainer&quot;:null,
&quot;locationId&quot;:&quot;16010732&quot;,
&quot;longitude&quot;:10.074741,
&quot;latitude&quot;:63.38196},
{&quot;busStopId&quot;:100078,
&quot;name&quot;:&quot;Klefstadbekken&quot;,
&quot;nameWithAbbreviations&quot;:null,
&quot;busStopMaintainer&quot;:null,
&quot;locationId&quot;:&quot;16011728&quot;,
&quot;longitude&quot;:10.155953,
&quot;latitude&quot;:63.43434},
{&quot;busStopId&quot;:100162,
&quot;name&quot;:&quot;Flatjord&quot;,
&quot;nameWithAbbreviations&quot;:null,
&quot;busStopMaintainer&quot;:null,
&quot;locationId&quot;:&quot;16010765&quot;,
&quot;longitude&quot;:10.509505,
&quot;latitude&quot;:63.34741}]}
</pre>
<p>* Departures for a bus stop. Use registeredDepartureTime for real time data, or scheduled departure time for no real time data. The tricky part is to not use the datestamp (only timestamp!) from schedule departure time when isRealtimeData is false. The datestamp we represents when the data got inserted to AtB&#8217;s system&#8230; we guess.. (ignore the blunty error of using &#8220;isGoinTowardsCentrum&#8221; which will be updated in the next version of the API to be &#8220;isGoingTowardsCity&#8221; <img src='http://www.roysindre.no/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</p>
<pre class="brush: javascript; ">

{&quot;isGoingTowardsCentrum&quot;:false,
&quot;departures&quot;:[
{&quot;line&quot;:&quot;36&quot;,
&quot;destination&quot;:&quot;Stokkhaugen&quot;,
&quot;registeredDepartureTime&quot;:&quot;2011-05-18T05:38:00.000&quot;,
&quot;scheduledDepartureTime&quot;:&quot;2011-05-18T05:38:00.000&quot;,
&quot;isRealtimeData&quot;:false},
{&quot;line&quot;:&quot;7&quot;,
&quot;destination&quot;:&quot;Reppe&quot;,
&quot;registeredDepartureTime&quot;:&quot;2011-05-18T05:38:00.000&quot;,
&quot;scheduledDepartureTime&quot;:&quot;2011-05-18T05:38:00.000&quot;,
&quot;isRealtimeData&quot;:false},
{&quot;line&quot;:&quot;11&quot;,
&quot;destination&quot;:&quot;Brandhaugen&quot;,
&quot;registeredDepartureTime&quot;:&quot;2011-05-18T05:58:00.000&quot;,
&quot;scheduledDepartureTime&quot;:&quot;2011-05-18T05:58:00.000&quot;,
&quot;isRealtimeData&quot;:false},
{&quot;line&quot;:&quot;36&quot;,
&quot;destination&quot;:&quot;Stokkhaugen&quot;,
&quot;registeredDepartureTime&quot;:&quot;2011-05-18T06:03:00.000&quot;,
&quot;scheduledDepartureTime&quot;:&quot;2011-05-18T06:03:00.000&quot;,
&quot;isRealtimeData&quot;:false},
{&quot;line&quot;:&quot;20&quot;,
&quot;destination&quot;:&quot;Valentinlyst&quot;,
&quot;registeredDepartureTime&quot;:&quot;2011-05-18T06:08:00.000&quot;,
&quot;scheduledDepartureTime&quot;:&quot;2011-05-18T06:08:00.000&quot;,
&quot;isRealtimeData&quot;:false}]}
</pre>
<p>&nbsp;</p>
<p>That&#8217;s how you wanted the data in the first place isn&#8217;t it?</p>
<p>The data mining about bus stops isn&#8217;t complete, and we still got some job left to do. We couldn&#8217;t extract the whole bus stop lists from their web service call as the longitude and latitude coordinates was way off, at least we didn&#8217;t make any sense out of it, so we&#8217;ve been mining bus stops by storings important values from every &#8220;departures&#8221; call that is done on our API, since AtB original API delivers some &#8220;bloated&#8221; data towards the query of fetching departures. Another funny thing is all their bus stops is saved/exported in their abbreviation of the street name. As of writing this post, we basically saved all those names in the &#8220;name&#8221; attribute for busstop and we manually fixed em. We&#8217;ve also added code for the next departures requests our  API does to fill out the missing fields such as bus stop maintainer, and the abbreviated name once again in it&#8217;s correct place. (why we didn&#8217;t do this in the first place is rather stupid, but I guess we were tired minds .. hehe).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2011/05/26/hacking-on-busbuddy-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>BusBuddy for Android</title>
		<link>http://www.roysindre.no/a/2011/05/26/busbuddy-for-android/</link>
		<comments>http://www.roysindre.no/a/2011/05/26/busbuddy-for-android/#comments</comments>
		<pubDate>Thu, 26 May 2011 10:32:50 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[atb]]></category>
		<category><![CDATA[bus]]></category>
		<category><![CDATA[busbuddy]]></category>
		<category><![CDATA[buss]]></category>
		<category><![CDATA[trondheim]]></category>

		<guid isPermaLink="false">https://www.roysindre.no/?p=207</guid>
		<description><![CDATA[https://market.android.com/details?id=no.norrs.busbuddy After my release of BusBuddy API, I finally got the code pieced together and finally released as an early beta. I&#8217;ve decided to take 6NOK (ca 1 USD) for my application, due to the effort I&#8217;ve put into making the API and this application. My users are able to use Get Satisfaction ( http://getsatisfaction.com/norrs ) [...]]]></description>
			<content:encoded><![CDATA[<p><a href="https://market.android.com/details?id=no.norrs.busbuddy">https://market.android.com/details?id=no.norrs.busbuddy</a></p>
<p>After my release of BusBuddy API, I finally got the code pieced together and finally released as an early beta. I&#8217;ve decided to take 6NOK (ca 1 USD) for my application, due to the effort I&#8217;ve put into making the API and this application. My users are able to use Get Satisfaction ( <a href="http://getsatisfaction.com/norrs">http://getsatisfaction.com/norrs</a> ) for questions/share an idea/report a problem or simple give me some praise for the application I&#8217;ve made. This will hopefully keep me on the toes to make an application my users want and keep the API under maintenance for everyone else. I&#8217;ve also have a Ads-version scheduled to be released in the nearest future for those who are not willing to pay those lousy 6 norwegian bucks for the poor student I&#8217;am. *hint hint*</p>
<p>I have some other features that will arrive soon(tm):</p>
<p>* Oracle support (Use natural language for asking about bus schedules)<br />
* Your favorite bus stops (also with support of naming/put a nickname on em) (favorites tab?)<br />
* Reverse map look up by street name<br />
* Reverse look up by bus stop name<br />
* Long press support on both real time tab, map tab for special context menu&#8217;s. (automagically generate an oracle phrase? etc)<br />
* More settings for adjusting more details in my application (start up tab, local cache refresh (default is 20 seconds))<br />
* Research for support on Oslo? Other cities? (I&#8217;ve gotto dig into more yummy data)</p>
<p>You got any other ideas? Share em with me on <a href=" http://getsatisfaction.com/norrs" target="_blank">GetSatisfaction</a>!</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2011/05/26/busbuddy-for-android/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up Thomson SpeedTouch 546v6 in bridge</title>
		<link>http://www.roysindre.no/a/2010/11/30/speedtouch-bridge/</link>
		<comments>http://www.roysindre.no/a/2010/11/30/speedtouch-bridge/#comments</comments>
		<pubDate>Mon, 29 Nov 2010 23:59:33 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[546v6]]></category>
		<category><![CDATA[bridge]]></category>
		<category><![CDATA[dd-wrt]]></category>
		<category><![CDATA[DSL]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[LAN]]></category>
		<category><![CDATA[Linksys]]></category>
		<category><![CDATA[local network]]></category>
		<category><![CDATA[networking]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[speedtouch]]></category>
		<category><![CDATA[tomato]]></category>
		<category><![CDATA[WAN]]></category>
		<category><![CDATA[wrtg54g]]></category>

		<guid isPermaLink="false">https://www.roysindre.no/?p=182</guid>
		<description><![CDATA[Why would I bridge my SpeedTouch modem you say? Personally it&#8217;s due to the annoying fact that the network gets unstable if I don&#8217;t do it. The device(s) (I&#8217;ve had multiple modems, different vendors) simply can&#8217;t hold the network stress on my network. Bridging my SpeedTouch modem lets it only having to deal with communicating [...]]]></description>
			<content:encoded><![CDATA[<p>Why would I bridge my SpeedTouch modem you say? Personally it&#8217;s due to the annoying fact that the network gets unstable if I don&#8217;t do it. The device(s) (I&#8217;ve had multiple modems, different vendors) simply can&#8217;t hold the network stress on my network. Bridging my SpeedTouch modem lets it only having to deal with communicating towards the DSLAM and forwarding packets as a dummy device to my other router which is capable of dealing with routing traffic on my local network. For this purpose, I got a Linksys WRT54G router running with <a href="http://www.polarcloud.com/tomato">Tomato firmware</a> which gives me a handful of nice features. Read more to see how I did it&#8230;</p>
<p><span style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial;"><span style="line-height: 18px;"><span id="more-182"></span></span></span></p>
<p>I found a good post on the <a href="http://ngtforum.net/index.php?topic=2">ngtforum.net</a> by the user Dyneslott which tells you which commands you have to enter at the SpeedTouch&#8217;s console to setup a bridge between your router and SpeedTouch modem.</p>
<p>Connect your computer to the SpeedTouch&#8217;s LAN switch. I recommend reseting your device before you start, as this resets any weird settings you might have enabled on the device and reverts its settings back to either ISP&#8217;s or SpeedTouch default settings for the modem. You do this with pushing and holding down the reset button while you power-on the device and wait until the device enters &#8220;kernel mode&#8221;. (indicated with normally 1 green and 1 red light (blinking if I remember correctly) after approximate 10-15 seconds after you powered on the device).</p>
<p style="text-align: center;"><a href="http://www.roysindre.no/files/2010/11/thomsonspeedtouch-546.jpg"><img class="aligncenter size-full wp-image-184" title="thomsonspeedtouch-546" src="http://www.roysindre.no/files/2010/11/thomsonspeedtouch-546.jpg" alt="SpeedTouch 546, behind." width="400" height="238" /></a></p>
<h3><strong>Do a simple</strong></h3>
<blockquote>
<pre>route (linux)
ipconfig /all (windows)</pre>
</blockquote>
<p>Fetch your device&#8217;s IP address by looking at the default gateway. (this should be your device as long as you are directly connected to your device. If you go thru another switch or something, make sure you don&#8217;t have any other DHCP servers running from other routers which might give you other networking details and points you to another device instead <img src='http://www.roysindre.no/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> )</p>
<p>In my situation with Nextgentel, the default IP address is 10.0.0.1 for my SpeedTouch modem. SpeedTouch&#8217;s default IP address is normally 192.168.1.1.</p>
<h3><strong>Telnet into your SpeedTouch:</strong></h3>
<blockquote>
<pre>telnet 10.0.0.1</pre>
<pre>Username: Administrator
Password: &lt;blank&gt; (nothing)</pre>
</blockquote>
<div>(should be the default password on the device if you haven&#8217;t changed it.  Resetting the device should get you back to the default password if it doesn&#8217;t work.</div>
<div><span style="text-decoration: underline;">NB: Regarding changing user password, keep this in mind:</span></div>
<div>&#8220;<span style="border-collapse: collapse; font-family: Verdana, Arial, Helvetica, sans-serif; line-height: normal;">I was advised by a tech that there&#8217;s a problem in the Wizard setup built into the new modems firmware. During the setup when you get to the Admin name / password area, for the administrator username and password put &#8220;Administrator&#8221; as the user name and leave the password blank. He said that no matter what password you put in it, it gets screwed up and saved as something different.&#8221; (<a href="http://www.dslreports.com/forum/r18853547-Speedtouch-516-lost-admin-password">source</a>)</span> .</div>
<div>My advise is to create a new user and simply change it&#8217;s password over the telnet interface and delete the default Administrator account.</div>
<h3><strong>After we&#8217;re in, we want to run these commands</strong>:</h3>
<blockquote>
<div style="padding-left: 30px;"><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;">ppp relay flush<br />
</span><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;">eth flush<br />
</span><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;">atm flush<br />
</span><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;">ppp flush<br />
</span><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;">atm phonebook flush<br />
</span><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; font-size: 12px; line-height: 18px; white-space: pre;">saveall</span></div>
</blockquote>
<ul>
<li>Flushes/Removes any configuration about any PPP interface (used to &#8220;dial up&#8221; to your provider)</li>
<li>Flushes/Removes any ethernet (LAN-switch), atm (DSL/WAN), PPP (&#8220;dial up&#8221; configurations) on your device.</li>
<li>Saves the state to the config, so it survives a reboot of the modem.</li>
</ul>
<blockquote>
<pre style="text-align: left; padding-left: 30px;">atm phonebook add name=BrPPPoE_ph addr=1.33</pre>
</blockquote>
<pre style="text-align: left; padding-left: 30px;"><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif; line-height: 19px; white-space: normal; font-size: 13px;">In Norway, the default VPI/VCI is normally 1.33 etc. Nextgentel table is:</span></pre>
<ul>
<li>VPI=0, VCI=100, PPPoA VC MUX</li>
<li>VPI=1, VCI=32, PPPoA VC MUX</li>
<li>VPI=8, VCI=35, PPPoA VC MUX</li>
<li>VPI=1, VCI=33, PPPoE VC MUX</li>
<li>VPI=8, VCI=35, PPPoE VC MUX</li>
</ul>
<p style="padding-left: 30px;">In short VPI/VCI simply is routing information for your ISP on how to forward packages between their ATM switches. Read more about VPI/VCI on Wikipedia. If you don&#8217;t know your VPI/VCI settings, you could find this either by contacting your ISP,  maybe find it in this list or by setting up your router according to your ISP&#8217;s instructions and then fetch the details from the modem. (protip: atm phonebook list in SpeedTouch&#8217;s console).</p>
<ul>
<li>Setting up a WAN/ATM&#8217;s configuration towards your <a href="http://en.wikipedia.org/wiki/Digital_Subscriber_Line_Access_Multiplexer">DSLAM</a> with the name &#8220;BrPPPoE_ph&#8221;.</li>
<li>You might be required to setup the ATM  configuration with more details, like which protocol encapsulation it  should use on the ATM interface etc. See  &#8220;help ifconfig&#8221; for all the  properties.</li>
</ul>
<blockquote>
<pre style="text-align: left; padding-left: 30px;">atm ifadd intf=BrPPPoE_atm</pre>
</blockquote>
<ul>
<li>Adding an ATM interface with the name &#8220;BrPPPoE_atm&#8221;.</li>
</ul>
<blockquote>
<p style="padding-left: 30px;"><span style="font-family: Consolas, Monaco, 'Courier New', Courier, monospace; line-height: 18px; font-size: 12px; white-space: pre;">atm ifconfig intf=BrPPPoE_atm dest=BrPPPoE_ph ulp=mac</span></p>
</blockquote>
<ul>
<li>Configuring up the ATM interface to use the configuration you just setup under &#8220;BrPPPoE_ph&#8221; (atm phonebook configuration, contains the configuration for your VPI/VCI, etc)</li>
</ul>
<blockquote>
<pre style="text-align: left; padding-left: 30px;">atm ifattach intf=BrPPPoE_atm</pre>
</blockquote>
<ul>
<li>Attaching/Enabling the interface &#8220;BrPPPoE_atm&#8221;</li>
</ul>
<blockquote>
<pre style="text-align: left; padding-left: 30px;">eth bridge ifadd intf=BrPPPoE_br</pre>
</blockquote>
<ul>
<li>Adding an ETH(ernet) interface under the name &#8220;BrPPPoE_br&#8221;</li>
</ul>
<blockquote>
<pre style="text-align: left; padding-left: 30px;">eth bridge ifconfig intf=BrPPPoE_br dest=BrPPPoE_atm</pre>
</blockquote>
<ul>
<li>Configuring Ethernet interface &#8220;BrPPPoE_br&#8221; to forward packages between itself and BrPPPoE_atm interface.</li>
</ul>
<blockquote>
<pre style="text-align: left; padding-left: 30px;">eth bridge ifattach intf=BrPPPoE_br</pre>
</blockquote>
<ul>
<li>Attaching/Enabling the interface &#8220;BrPPPoE_br&#8221;  - Bridge should now be enabled.</li>
</ul>
<blockquote>
<pre style="text-align: left; padding-left: 30px;">saveall</pre>
</blockquote>
<p>&nbsp;</p>
<ul>
<li>Saves the configuration to the device, so it survives a cold reboot of the modem.</li>
</ul>
<p><span style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; font-size: 12px; line-height: 18px;"><br />
</span></p>
<h3><strong><span style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial;"><span style="line-height: 18px;">Here&#8217;s a quick copy/paste friendly version:</span></span></strong></h3>
<blockquote>
<pre>ppp relay flush
eth flush
atm flush
ppp flush
atm phonebook flush</pre>
<pre>saveall
atm phonebook add name=BrPPPoE_ph addr=1.33
atm ifadd intf=BrPPPoE_atm
atm ifconfig intf=BrPPPoE_atm dest=BrPPPoE_ph ulp=mac
atm ifattach intf=BrPPPoE_atm
eth bridge ifadd intf=BrPPPoE_br
eth bridge ifconfig intf=BrPPPoE_br dest=BrPPPoE_atm
eth bridge ifattach intf=BrPPPoE_br
saveall</pre>
</blockquote>
<p>SpeedTouch modem should now be up and running in bridge mode, connect your DSL-line into the DSL/WAN-port (red port in the image above in the article) . Connect port 1 on the LAN switch to your router(in my case, Linksys WRT54G)&#8217;s WAN port.</p>
<p>My network topology now looks like this (ugly picture, but hey, it hopefully explains how I wired it all together):</p>
<p style="text-align: center;"><a href="http://www.roysindre.no/files/2010/11/norrs-topology1.png"><img class="aligncenter size-full wp-image-196" style="display: block; margin-left: auto; margin-right: auto; border: 0px initial initial;" title="norrs-topology" src="http://www.roysindre.no/files/2010/11/norrs-topology1.png" alt="" width="500" height="500" /></a></p>
<h3>Pro tip for Tomato users (Linksys WRT54G) to access your SpeedTouch device in another subnet then your local network:</h3>
<h3><strong>Administration -&gt; Scripts -&gt; Init:</strong></h3>
<blockquote><p>sleep 10</p>
<div id="_mcePaste">ip addr add 10.0.0.2/30 dev $(nvram get wan_ifname) brd +</div>
</blockquote>
<div><strong>Administration -&gt; Scripts -&gt; Firewall:</strong></div>
<div><strong><br />
</strong></div>
<blockquote>
<div>/usr/sbin/iptables -I POSTROUTING -t nat -o $(nvram get wan_ifname) -d 10.0.0.0/30 -j MASQUERADE</div>
</blockquote>
<p>I&#8217;m now able to reach my modem which is set in bridge thru my WRTG54G router. In other words,<span style="font-family: 'Trebuchet MS', 'Lucida Grande', Verdana, Tahoma, Arial; line-height: 18px; font-size: small;"> I can now ping from 192.168.X.0/24 towards 10.0.01 <img src='http://www.roysindre.no/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </span></p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2010/11/30/speedtouch-bridge/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Ubuntu 10.10 – My personal notes</title>
		<link>http://www.roysindre.no/a/2010/10/16/ubuntu-10-10-personal-notes/</link>
		<comments>http://www.roysindre.no/a/2010/10/16/ubuntu-10-10-personal-notes/#comments</comments>
		<pubDate>Sat, 16 Oct 2010 13:48:25 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[emerald]]></category>
		<category><![CDATA[font]]></category>
		<category><![CDATA[personal notes]]></category>
		<category><![CDATA[RockjMinimal]]></category>
		<category><![CDATA[settings]]></category>
		<category><![CDATA[ubuntu 10.10]]></category>

		<guid isPermaLink="false">https://www.roysindre.no/?p=152</guid>
		<description><![CDATA[Ubuntu 2010.10 is out, this time I did a clean install and had to reapply my customized settings. So here goes&#8230; A proper browser is indeed needed, so lets go fetch Chrome (Chromium): Add the chromium daily ppa repository (more detailed info at: &#8220;how do I use software from a PPA&#8220;): # ﻿sudo add-apt-repository ppa:chromium-daily/ppa [...]]]></description>
			<content:encoded><![CDATA[<p>Ubuntu 2010.10 is out, this time I did a clean install and had to reapply my customized settings. So here goes&#8230;</p>
<div id="attachment_160" class="wp-caption aligncenter" style="width: 442px"><a href="http://www.roysindre.no/files/2010/10/rockjminimalistictheme.jpg"><img class="size-full wp-image-160    " title="Rockj's Emerald Minimalistic theme" src="http://www.roysindre.no/files/2010/10/rockjminimalistictheme.jpg" alt="" width="432" height="253" /></a><p class="wp-caption-text">Rockj&#39;s Emerald Minimalistic theme</p></div>
<p><span id="more-152"></span>A proper browser is indeed needed, so lets go fetch Chrome (<a href="https://launchpad.net/~chromium-daily/+archive/ppa">Chromium</a>):</p>
<p>Add the chromium daily ppa repository (more detailed info at: &#8220;<a href="https://launchpad.net/+help/soyuz/ppa-sources-list.html">how do I use software from a PPA</a>&#8220;):</p>
<p><strong># ﻿sudo add-apt-repository ppa:chromium-daily/ppa</strong></p>
<p>Install Chromium:</p>
<p><strong># sudo apt-get install ﻿﻿﻿﻿﻿chromium-browser chromium-codecs-ffmpeg-nonfree chromium-codecs-ffmpeg-extra ﻿chromium-browser-inspector</strong></p>
<p>Installing my SSL root certificate, <a href="http://ssl.geekrevolution.net">gEEkRevolution Root Certificate Authority</a>:</p>
<p><strong># sudo apt-get install libnss3&#8211;tools</strong></p>
<p><strong># ﻿﻿﻿certutil -d sql:~/.pki/nssdb -A -t TC -n &#8220;gEEkRevolution CA&#8221; -i Downloads/geekrevolution-cacert.pem</strong></p>
<p>I would also suggest you to try out <a href="http://www.opera.com/browser/download/">Opera</a>.</p>
<p>Then we would like to fetch emerald, which makes us able to decorate/theme compiz-fusion. In the same go we would like to fetch a compiz-config manager and some extra plugins which you might like.</p>
<p><strong># sudo apt-get install emerald compizconfig-settings-manager compiz-fusion-plugins-extra</strong></p>
<p>And here&#8217;s my following important settings I find helpful:</p>
<div id="attachment_154" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.roysindre.no/files/2010/10/compiz1.png"><img class="size-full wp-image-154   " title="Compiz-Fusion Settings 1" src="http://www.roysindre.no/files/2010/10/compiz1.png" alt="" width="480" height="155" /></a><p class="wp-caption-text">3x3 Workspace</p></div>
<div id="attachment_155" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.roysindre.no/files/2010/10/compiz2.png"><img class="size-full wp-image-155   " title="Compiz-Fusion Settings 2" src="http://www.roysindre.no/files/2010/10/compiz2.png" alt="" width="480" height="121" /></a><p class="wp-caption-text">No raise on click or auto-raise. I&#39;d rather hold down ALT to raise the window. Mouse focus ftw. </p></div>
<p style="text-align: center;">
<div id="attachment_157" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.roysindre.no/files/2010/10/compiz3.png"><img class="size-full wp-image-157    " title="Compiz-Fusion Settings 3" src="http://www.roysindre.no/files/2010/10/compiz3.png" alt="" width="480" height="167" /></a><p class="wp-caption-text">Sticky (show item on all workspaces) and Always on top key bindings, important! (NB: I really use Super&lt;r&gt; for always on top, too lazy to make a new screenshot)</p></div>
<p style="text-align: center;">
<p>Look over rest of the settings available in CompizConfig, you might want to configure up more settings like spawning a terminal with &lt;Super&gt;t. The default Super&lt;w&gt; is also handy for getting a quick overview over all your windows you have open at your current workspace, just like you can do in OS X. Try it!</p>
<div id="attachment_160" class="wp-caption aligncenter" style="width: 490px"><a href="http://www.roysindre.no/files/2010/10/rockjminimalistictheme.jpg"><img class="size-full wp-image-160   " title="Rockj's Emerald Minimalistic theme" src="http://www.roysindre.no/files/2010/10/rockjminimalistictheme.jpg" alt="" width="480" height="281" /></a><p class="wp-caption-text">Rockj&#39;s Emerald Minimalistic theme</p></div>
<p>Emerald theme: Fetch <a href="http://www.roysindre.no/s/storage/RockjMinimal.emerald"><strong>my minimalistic theme here</strong></a> . (Some quick modifications from this original theme available <a href="http://beryl-themes.org/content/show.php/deviantminimal?content=73738&amp;phpsessid=e7f8171030ad3289ab9d4479d9456272">here</a>). Since I select active window with my mouse without &#8220;clicking&#8221;, a red border around the window indicates the active focused window. Also note I&#8217;ve removed those annoying and no-needed window-borders.. I just love how easily you move windows in X with simply holding down ALT and drag your window <img src='http://www.roysindre.no/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Make sure to add emerald to start up at boot time under <strong>System -&gt; Preferences -&gt; Startup Applications. Add name: emerald and command: emerald &#8211;replace</strong></p>
<p>As a programmer, I suggest you getting a good programming <strong>font</strong>, which I also enable in my terminal: <a href="http://www.levien.com/type/myfonts/inconsolata.html"><strong>Inconsolata</strong></a>. If you don&#8217;t like the font, try one of the other from a top 10 list by <a href="http://hivelogic.com/articles/top-10-programming-fonts">Hivelogic (Dan Benjamin)</a></p>
<p><strong><br />
</strong></p>
<p>Google Picasa is my preferred software for managing my photos, due to easily being able to sync my pictures into the &#8220;cloud&#8221; and to &#8220;any&#8221; operating system (read windows, linux and os x).</p>
<p><strong>Install instructions for Google Picasa over at here:</strong> <a href="http://picasa.google.com/linux/download.html#picasa30">http://picasa.google.com/linux/download.html#picasa30</a> (and pick the correct .deb for your architecture, or go safe with i386)</p>
<p>Gnome-Do, Gnome&#8217;s version of OS X&#8217;s quick launcher <a href="http://www.alfredapp.com/">AlfredApp</a></p>
<p># <strong>sudo apt-get install gnome-do</strong></p>
<p># <strong>sudo apt-get install gnome-do-plugins </strong></p>
<p><strong>Of course get your favorite editor &lt;insert vim or emacs whatever here&gt;. </strong></p>
<p>This is at least a good start in my opinion, of course you install all the other application you need on the go (ettercap,wireshark , skype , mumble, spotify&#8230;) .</p>
<p><strong>Background note:</strong></p>
<p>I would also suggest you to set a blackish background instead of the splashy &#8221;red&#8221; background which is the new Ubuntu 10.10 background-theme. I&#8217;ll see if I have time and go over the gconf&#8217;s to set the default background color and fix those defaults and make it available as a gtk/gnome? theme. This will have to do for now, and you have to do those background changes yourself.. ;-p</p>
<p><strong><br />
</strong><strong> </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2010/10/16/ubuntu-10-10-personal-notes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HTC Hero breaks my booting process</title>
		<link>http://www.roysindre.no/a/2010/05/10/htc-hero-breaks-my-booting-process/</link>
		<comments>http://www.roysindre.no/a/2010/05/10/htc-hero-breaks-my-booting-process/#comments</comments>
		<pubDate>Mon, 10 May 2010 16:40:09 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[BIOS]]></category>
		<category><![CDATA[cpu]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[gigabyte]]></category>
		<category><![CDATA[htc hero]]></category>
		<category><![CDATA[memory]]></category>
		<category><![CDATA[not found]]></category>
		<category><![CDATA[p35c-ds3r]]></category>
		<category><![CDATA[POST]]></category>
		<category><![CDATA[ram]]></category>
		<category><![CDATA[stuck]]></category>

		<guid isPermaLink="false">https://www.roysindre.no/?p=138</guid>
		<description><![CDATA[After I got myself a HTC Hero for Christmas, I&#8217;ve noticed (the few times) when I&#8217;m rebooting my computer it often won&#8217;t go past POST. I thought this could be related to my computer&#8217;s PSU which got fried some months ago due to a power failure and thought it might have damaged my motherboard or [...]]]></description>
			<content:encoded><![CDATA[<div id="attachment_141" class="wp-caption alignright" style="width: 310px"><a href="http://www.roysindre.no/files/2010/05/CameraZOOM-20100510175307.jpg"><img class="size-medium wp-image-141  " title="Stuck in POST, memory not found" src="http://www.roysindre.no/files/2010/05/CameraZOOM-20100510175307-300x225.jpg" alt="" width="300" height="225" /></a><p class="wp-caption-text">Stuck in POST, memory not found</p></div>
<p>After I got myself a HTC Hero for Christmas, I&#8217;ve noticed (the few    times) when I&#8217;m rebooting my computer it often won&#8217;t go past POST. I    thought this could be related to my computer&#8217;s PSU which got fried some    months ago due to a power failure and thought it might have damaged my    motherboard or any other  components in my computer.</p>
<p>I&#8217;ve tried various things as reset CMOS, letting computer cool off etc (with random results), until I one day just unplugged the USB cable to my HTC Hero as I had to take a call, and tried rebooting it right after I unplugged my phone &#8211; <strong>to my surprise &#8211; it worked</strong>. I finally got past POST and BIOS booted up successfully and found both my CPU and my memory. I have no clue why HTC Hero affects my current hardware, so I find it worth to create a tiny blog post about it, if anyone else have experienced the same weird stalling at POST, due to not  finding the processor or memory which might be <strong>your HTC Hero&#8217;s fault.</strong></p>
<p>My current hardware is a Q6600 processor from Intel on a Gigabyte motherboard model P35C-DS3R and memory from Kingston.</p>
<p>I knew that USB pen drives can cause some motherboards to not get past the POST, but I&#8217;ve never had this issue as my USB pen drive is always plugged in.  To my surprise, it seems like HTC Hero actually affects my motherboard somehow.</p>
<p>Definitive learned something new today..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2010/05/10/htc-hero-breaks-my-booting-process/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>dhclient: classless static route, bug?</title>
		<link>http://www.roysindre.no/a/2009/11/05/dhclient-classless-static-route-bug/</link>
		<comments>http://www.roysindre.no/a/2009/11/05/dhclient-classless-static-route-bug/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 00:53:32 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[121]]></category>
		<category><![CDATA[249]]></category>
		<category><![CDATA[516]]></category>
		<category><![CDATA[5x6]]></category>
		<category><![CDATA[classless static route]]></category>
		<category><![CDATA[csr]]></category>
		<category><![CDATA[dhclient]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[nerdrage]]></category>
		<category><![CDATA[Q&A]]></category>
		<category><![CDATA[question]]></category>
		<category><![CDATA[routing]]></category>
		<category><![CDATA[solved]]></category>
		<category><![CDATA[speedtouch]]></category>
		<category><![CDATA[standard gateway]]></category>
		<category><![CDATA[ubuntu 8.10]]></category>

		<guid isPermaLink="false">https://www.roysindre.no/?p=115</guid>
		<description><![CDATA[Lately (since Ubuntu 9.x) I&#8217;ve had issues with DHCP on my network, not really understanding why my DHCP client never assigned my standard gateway that I&#8217;ve configured my router to give out. Since I&#8217;ve just upgraded my system to Ubuntu 9.10 and problems were still there, I couldn&#8217;t continue to ignore this annoying problem. I [...]]]></description>
			<content:encoded><![CDATA[<p>Lately (since Ubuntu 9.x) I&#8217;ve had issues with DHCP on my network, not really understanding why my DHCP client never assigned my standard gateway that I&#8217;ve configured my router to give out. Since I&#8217;ve just upgraded my system to Ubuntu 9.10 and problems were still there, I couldn&#8217;t continue to ignore this annoying problem. I tried to fire up Google and other search engines to see if I were able to find a solution to the problem, but I couldn&#8217;t find any solution to it, without setting a static network configuration which is NOT a solution. I had to get my hands dirty, and I fired up Wireshark and started digging..<br />
<strong>EDIT: This problem is now solved! <img src='http://www.roysindre.no/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </strong></p>
<p><span id="more-115"></span></p>
<p style="text-align: left">After analyzing the DHCP Offer packet, I notice it hands out a &#8220;Classless Static Route <strong>(Microsoft)</strong>&#8221; (249) which is not defined in the bootp dhcp parameters[1], could this be the cause?</p>
<p style="text-align: center">
<div id="attachment_118" class="wp-caption aligncenter" style="width: 490px"><img class="size-full wp-image-124" src="https://www.roysindre.no/files/2009/11/dhclient-2491.jpg" alt="dhclient-249" width="480" height="374" /><p class="wp-caption-text">CSR 249</p></div>
<p style="text-align: left">I quickly fired up telnet and reconfigured my DHCP pool and flushed all leases on my SpeedTouch 516[2] series modem/router.<br />
Ready for a new Wireshark capture:</p>
<div id="attachment_125" class="wp-caption aligncenter" style="width: 376px"><img class="size-full wp-image-125    " src="https://www.roysindre.no/files/2009/11/dhclient-1211.jpg" alt="dhclient-121" width="366" height="366" /><p class="wp-caption-text">CSR 121</p></div>
<p style="text-align: left">Finally it seems to send the correct DHCP parameters [1], with &#8220;Classless Static Route&#8221; (121)  so my dhclient picks up the standard gateway. I tested renewing my lease a few times together with flushing the dhcp pool table, and <strong>it was working like a charm!</strong></p>
<p style="text-align: center"><strong><br />
</strong></p>
<p style="text-align: left"><strong>Why</strong> would my <span style="text-decoration: underline">SpeedTouch modem/router</span> give out some kind of <strong>Microsoft propiertary</strong>[3] routing configuration, and how did  this happen in the first time? Anyway, I did a quick reboot to Windows 7 to make sure it was still working just fine there, and back to Ubuntu. <strong>Guess what?</strong> I&#8217;m back to the<strong> non-working </strong>dhclient not picking up the gateway information for my network. Wireshark tells me that it started serving out CSR (249) again.</p>
<h2 style="text-align: center"><strong>Conclution:</strong></h2>
<p style="text-align: left">SpeedTouch 516 modem/router seems to have some annoying feature of figuring out which hosts are running Microsoft&#8217;s operating system (assuming Vista and 7, since this never was a problem in XP), and then suddenly switches on how it gives out the &#8220;Classless Static Route&#8221; information. Now why would the router change on using CSR 121 and CSR 249 is out of my league, wireshark shows the same data is sent anyway so I don&#8217;t really get why it switches to a proprietary CSR before it requires some functionality from it. Wouldn&#8217;t it be better that the client requested it in the DHCP Discover/Request?</p>
<h2 style="text-align: center"><strong>Questions, What to do?:</strong></h2>
<p style="text-align: left">Complain to ISP and be allowed to firmware upgrade my modem/router and hope it works?</p>
<p style="text-align: left">If Microsoft proprietary CSR (249) [3]  is used, as far as I understand it shouldn&#8217;t serve CSR 121 information if it is duplicated information, so should dhclient add support for reading &#8220;normal&#8221; CSR (249)&#8217;s from Microsoft? If not, more and more Linux users will fall in the same pitfall that I am now&#8230;</p>
<p style="text-align: left">Configure a low lease time, which will generate a lot of broadcast packages on my network for a dirty solution?</p>
<p style="text-align: left"><strong>I can&#8217;t be the only one which is having this problem</strong>, since most Norwegian ISP&#8217;s hands out these types of modem/routers. <strong><br />
</strong></p>
<h2><strong><span style="color: #ff0000"> Any input anyone?!</span></strong></h2>
<h2 style="text-align: center"><strong><span style="color: #ff0000"><span style="color: #000000">Update &#8211; 11 November 2009 &#8211; I got it working!</span></span></strong></h2>
<p><span style="color: #000000">After some more digging, I figured out that editing dhclient.conf in /etc/dhcp3 (Ubuntu 9.10) and removing &#8220;rfc3442-classless-static-routes&#8221; from the request line, it works as it should and the router uses the default route option in the protocol (option 3). So my request line is now:</span></p>
<pre>request subnet-mask, broadcast-address, time-offset, routers,
 domain-name, domain-name-servers, domain-search, host-name,
 netbios-name-servers, netbios-scope, interface-mtu,
 ntp-servers;</pre>
<h3><strong><strong><span style="color: #ff0000"><span style="color: #000000">If you still have any issues, don&#8217;t hesitate with leaving a comment!<br />
</span></span></strong></strong></h3>
<p>[1] http://www.iana.org/assignments/bootp-dhcp-parameters/<br />
[2] SpeedTouch 516, Flash image : 5.3.1.5.0, Build name  : ZZTVAU5.315<br />
[3] http://social.technet.microsoft.com/Forums/en-US/itprovistanetworking/thread/bfe43ccb-ec6e-4540-ab17-f76b20b715b8/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2009/11/05/dhclient-classless-static-route-bug/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>JavaZone 2009 Talks</title>
		<link>http://www.roysindre.no/a/2009/09/21/javazone-2009-talks/</link>
		<comments>http://www.roysindre.no/a/2009/09/21/javazone-2009-talks/#comments</comments>
		<pubDate>Mon, 21 Sep 2009 07:07:24 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[JavaZone]]></category>
		<category><![CDATA[JavaZone 2009]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[talks]]></category>

		<guid isPermaLink="false">https://www.roysindre.no/?p=110</guid>
		<description><![CDATA[If you were as unlucky as me, and couldn&#8217;t attend JavaZone 2009, take a trip over at http://tcs.java.no &#8211; here you have access to stream &#38; download talks from JavaZone 2009 thanks to Tandberg. NB: If you have issues streaming the talks in Ubuntu (linux), make sure you use Firefox 3.5, and disable the Windows [...]]]></description>
			<content:encoded><![CDATA[<p>If you were as unlucky as me, and couldn&#8217;t attend JavaZone 2009, take a trip over at <a href="http://tcs.java.no">http://tcs.java.no</a> &#8211; here you have access to stream &amp; download talks from JavaZone 2009 thanks to Tandberg.</p>
<p>NB: If you have issues streaming the  talks in Ubuntu (linux), make sure you use Firefox 3.5, and disable the Windows Media Player addon in Firefox (even thought you might not be able to stream all the talks, you will be able to stream the talks which supports Adobe Flash). At least here at my computer,  totem-plugin-view really wouldn&#8217;t play along and was fighting..</p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2009/09/21/javazone-2009-talks/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Debian Lenny (5.0) gone stable!</title>
		<link>http://www.roysindre.no/a/2009/02/15/debian-lenny-gone-stable/</link>
		<comments>http://www.roysindre.no/a/2009/02/15/debian-lenny-gone-stable/#comments</comments>
		<pubDate>Sun, 15 Feb 2009 15:55:29 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[4D270D06F42584E6]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[debian lenny]]></category>
		<category><![CDATA[lenny]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[release]]></category>
		<category><![CDATA[stable]]></category>

		<guid isPermaLink="false">http://www.roysindre.no/?p=97</guid>
		<description><![CDATA[Congratulations for finally releasing Debian Lenny as stable! This sunday will be a great day indeed. If you encounter this: W: There is no public key available for the following key IDs: 4D270D06F42584E6 W: You may want to run apt-get update to correct these problems You can safly ignore it and continune doing a dist-upgrade. [...]]]></description>
			<content:encoded><![CDATA[<p><strong>Congratulations</strong> for finally releasing <strong>Debian Lenny as stable!</strong> This sunday will be a great day indeed.</p>
<p>If you encounter this:</p>
<blockquote><p>W: There is no public key available for the following key IDs:<br />
<em>4D270D06F42584E6</em><br />
W: You may want to run apt-get update to correct these problems</p></blockquote>
<p><strong>You can safly ignore it and continune doing a dist-upgrade.</strong> This warning should go away after the upgrade, since the following key ID is Lenny&#8217;s stable public key which is not yet in use. As for now the etch key is still valid and release is signed with both Etch and Lenny keys and the package debian-archive-keyring is yet to be updated in the etch tree as far as I understand it, so that&#8217;s probably why we get the warning. This has todo with this post on the mailing list:<br />
<a href="http://lists.debian.org/debian-devel-announce/2009/01/msg00008.html">http://lists.debian.org/debian-devel-announce/2009/01/msg00008.html</a></p>
<p>We could import the Lenny key  even if Debian is not officially using it before Etch&#8217;s key has expired or Debian Lenny R1 is released. This is atleast how you fetch the fingerprint of the key ID:</p>
<blockquote><p>gpg &#8211;keyserver wwwkeys.eu.pgp.net &#8211;fingerprint 4D270D06F42584E6<br />
pub   1024D/F42584E6 2008-04-06 [expires: 2012-05-15]<br />
Key fingerprint = 7F5A 4445 4C72 4A65 CBCD  4FB1 4D27 0D06 F425 84E6<br />
uid                  Lenny Stable Release Key &lt;debian-release@lists.debian.org&gt;</p></blockquote>
<p><strong>Verify</strong> the fingerprint towards this page: <a href="http://ftp-master.debian.org/keys.html">http://ftp-master.debian.org/keys.html</a></p>
<p><strong>If they match</strong>, go on and import it:</p>
<blockquote><p>gpg &#8211;keyserver wwwkeys.eu.pgp.net &#8211;recv-keys 4D270D06F42584E6</p></blockquote>
<blockquote><p>gpg &#8211;keyserver wwwkeys.eu.pgp.net &#8211;recv-keys 4D270D06F42584E6<br />
gpg: directory `/root/.gnupg&#8217; created<br />
gpg: can&#8217;t open `/gnupg/options.skel&#8217;: No such file or directory<br />
gpg: keyring `/root/.gnupg/secring.gpg&#8217; created<br />
gpg: keyring `/root/.gnupg/pubring.gpg&#8217; created<br />
gpg: requesting key F42584E6 from hkp server wwwkeys.eu.pgp.net<br />
gpg: /root/.gnupg/trustdb.gpg: trustdb created<br />
gpg: key F42584E6: public key &#8220;Lenny Stable Release Key &lt;debian-release@lists.debian.org&gt;&#8221; imported<br />
gpg: no ultimately trusted keys found<br />
gpg: Total number processed: 1<br />
gpg:               imported: 1</p>
<p>gpg &#8211;armor &#8211;export 4D270D06F42584E6 | apt-key add -</p></blockquote>
<p><strong>Have a nice sunday upgrading! </strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2009/02/15/debian-lenny-gone-stable/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fix: Can’t connect to MSN with Pidgin or Adium</title>
		<link>http://www.roysindre.no/a/2009/01/12/fix-cant-connect-to-msn-with-pidgin-or-adium/</link>
		<comments>http://www.roysindre.no/a/2009/01/12/fix-cant-connect-to-msn-with-pidgin-or-adium/#comments</comments>
		<pubDate>Mon, 12 Jan 2009 17:23:05 +0000</pubDate>
		<dc:creator>norrs</dc:creator>
				<category><![CDATA[/dev/random]]></category>
		<category><![CDATA[adium]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[msn]]></category>
		<category><![CDATA[msn broken]]></category>
		<category><![CDATA[pidgin]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[ubuntu 8.10]]></category>
		<category><![CDATA[Unable to retrieve MSN Address Book]]></category>

		<guid isPermaLink="false">https://www.roysindre.no/?p=91</guid>
		<description><![CDATA[It seems like Microsoft has upgraded their MSN Messenger servers, and this seems to have caused that all 3rd party clients are broken. You probably receive the error message &#8220;Unable to retrieve MSN Address Book&#8221; in Pidgin. The solution for Ubuntu 8.10 people is to: apt-get install msn-pecan Restart pidgin, create a new account and [...]]]></description>
			<content:encoded><![CDATA[<p>It seems like Microsoft has upgraded their MSN Messenger servers, and this seems to have caused that all 3rd party clients are broken.</p>
<p>You probably receive the error message &#8220;<strong>Unable to retrieve MSN Address Book</strong>&#8221; in Pidgin.</p>
<p>The solution for Ubuntu 8.10 people is to:</p>
<blockquote><p>apt-get install msn-pecan</p>
<p>Restart pidgin, create a new account and in the drop down list of protocols, choose &#8220;wlm&#8221; for Windows Live Messanger, and plugin in your default/normal MSN account info.</p></blockquote>
<p>This should put you online again..</p>
<p>Sighs, why doesn&#8217;t we all migrate to open standards and use XMPP?</p>
<p><strong>EDIT:</strong> This fix seems to work for most of us, but sadly not everyone. (after what I have observed from comments online at IRC and so on..). <em>It&#8217;s at least worth a try!</em></p>
<p><strong>Adium/Mac users:</strong> Try visit <a href="http://adiumx.com/blog/2009/01/msn-rejecting-adium-132-connections/">http://adiumx.com/blog/2009/01/msn-rejecting-adium-132-connections/</a> for updated information. Solution for now is either to use <a href="http://microsoft.com/mac/products/messenger/">Microsoft&#8217;s Official Messanger Client for Mac</a>, or to use <a href="http://adiumx.cachefly.net/Adium_1.3.1.dmg">Adium 1.31</a>. Anyway, make sure you visit adium&#8217;s own blog to keep updated on the issue!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.roysindre.no/a/2009/01/12/fix-cant-connect-to-msn-with-pidgin-or-adium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

