<?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>phaq &#187; Hacks</title>
	<atom:link href="http://phaq.phunsites.net/category/hacks/feed/" rel="self" type="application/rss+xml" />
	<link>http://phaq.phunsites.net</link>
	<description>my daily IT madness</description>
	<lastBuildDate>Mon, 30 Jan 2012 10:07:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.3</generator>
		<item>
		<title>Swisscom Centro Grande aufbohren</title>
		<link>http://phaq.phunsites.net/2011/12/03/swisscom-centro-grande-aufbohren/</link>
		<comments>http://phaq.phunsites.net/2011/12/03/swisscom-centro-grande-aufbohren/#comments</comments>
		<pubDate>Fri, 02 Dec 2011 23:51:25 +0000</pubDate>
		<dc:creator>gdelmatto</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Networking]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/?p=799</guid>
		<description><![CDATA[Wer einen Swisscom Centro Grande sein Eigen nennt, mag da vielleicht gelegentlich an die Grenzen stossen, die einem Swisscom hier angedeihen lässt. Angesichts der Komplexität der vielen Funktionen mag es für die breite Masse durchaus Sinn machen, hier den vielfältigen Funktionen, die das von Pirelli Broadband Solutions stammende Gerät eigentlich mitbringt, einen Riegel vorzuschieben &#8211; [...]]]></description>
			<content:encoded><![CDATA[<p>Wer einen Swisscom Centro Grande sein Eigen nennt, mag da vielleicht gelegentlich an die Grenzen stossen, die einem Swisscom hier angedeihen lässt.</p>
<p>Angesichts der Komplexität der vielen Funktionen mag es für die breite Masse durchaus Sinn machen, hier den vielfältigen Funktionen, die das von Pirelli Broadband Solutions stammende Gerät eigentlich mitbringt, einen Riegel vorzuschieben &#8211; schliesslich werden dann weniger versierte Anwender auch nicht dazu verleitet, etwas zu verkonfigurieren.<br />
Wer allerdings etwas tiefergehende Konfigurationswünsche hat, wird es zu schätzen wissen, dass man über die Hintertür dennoch an die erweiteren Funktionen des Geräts rankommt.<br />
<span id="more-799"></span><br />
<strong>Ich möchte an dieser Stelle noch darauf hinweisen, dass das nachfolgend beschriebene Vorgehen von Swisscom NICHT unterstützt wird, und dass man bei allfälligen Problemen auf sich alleine gestellt ist. Wer auf dem Centro Grande die versteckten Funktionen freischaltet, tut dies also auf eigene Verantwortung.</p>
<p>Also nochmal zum Mitschreiben: Keine Garantie, kein Support, keine Hilfe (und auch kein Retter) in der Not.</p>
<p>Bitte beachten: Die Anleitung gilt für die Pirelli-Router und nicht für die Motorola-Geräte!<br />
</strong><br />
Darum sollten die an dieser Stelle nur die Hartgesottenen weitermachen, die wissen was sie tun.</p>
<hr size="1">
<p>Wie kommt man nun also an diese &#8220;Magic Features&#8221; ran? Sehr simpel, einfach über die Befehlszeile eine Telnetverbindung auf die IP-Adresse des Centro Grande aufbauen:</p>
<p><code><br />
telnet 192.168.2.1<br />
</code></p>
<p>Ach ja, wer Windows Vista/7 einsetzt, hat standardmässig kein Telnet mehr installiert. Dies kann über die Systemsteuerung nachinstalliert werden. Alternativ kann ich auch <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">PuTTY</a> empfehlen.</p>
<p>Nach erfolgten Login mit dem admin-Konto (das Passwort dazu kann man bei Bedarf im <a href="https://sam.sso.bluewin.ch/my/data/MyData?mode=home&amp;lang=de" target="_blank">Swisscom Kundencenter</a> abfragen), muss man folgenden Befehl eingeben:</p>
<p><code><br />
conf set wbm/admin_wbm a25B06c81<br />
</code></p>
<p>Dies aktiviert die originale Pirelli Management Console, allerdigs erst nach einem Neustart, der mit folgendem Befehl ausgelöst wird:</p>
<p><code><br />
system reboot<br />
</code></p>
<p>Und hier das ganze am Stück:</p>
<pre>
mbp:~ Gianpaolo$ telnet 192.168.2.1
Trying 192.168.2.1...
Connected to 192.168.2.1.
Escape character is '^]'.
Username: admin
Password: ***********
OpenRG&gt; conf set wbm/admin_wbm a25B06c81

Returned 0
OpenRG&gt; system reboot
Connection closed by foreign host.
mbp:~ Gianpaolo$
</pre>
<p>Nach dem Neustart verfügt der Router über zwei Web-Interfaces, einmal das Bekannte von Swisscom unter http://router-ip/ und ein zweites unter http://router-ip/admin.html.</p>
<p>Zugang erhält man mit dem bereits zuvor verwendeten admin-Konto. Gut, es sieht zwar nicht so hübsch aus, wie das Swisscom-eigene GUI, aber dafür kommt man an all die schönen Funktionen ran <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><a href="http://phaq.phunsites.net/files/2011/12/cg_pirelli.png" rel="lightbox[799]"><img src="http://phaq.phunsites.net/files/2011/12/cg_pirelli-300x145.png" alt="" width="300" height="145" class="aligncenter size-medium wp-image-801" /></a></p>
<p>Und was kann das Ding nun so alles?</p>
<p>Neben den USB-Ports, an die man beispielsweise USB-Festplatten oder -Drucker anschliessen kann, sind vor allem die VPN-Funktionen oder der Zugang zum lokalen DNS-Server häufig genutzte Power-Features. Ebenso kommt man an die erweiteren Einstellungen fürs WLAN heran, kann manuelles Routing oder Bridging konfigurieren. Auch lässt sich Remote Management konfigurieren und &#8211; auch bisweilen hilfreich &#8211; die DHCP Lease Time heraufsetzen.<br />
Dazu kommt noch jede Menge weiterer Brimborium, aber das findet ihr am besten selber raus.</p>
<p>Kleiner Tipp am Rande: Von den TR069-Einstellungen unterhalb der Fernverwaltung sollte man tunlichst die Finger lassen &#8211; ebenso wie vom händischen Editieren der Konfigurationsdatei <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
Diese sind für das Remote Management und Upgrade durch Swisscom erforderlich. Im dümmsten aller Fälle könnte eine Fehlkonfiguration dazu führen, dass man kein neues Firmware-Upgrade bekommt, was einen unter Umständen plötzlich Offline und mit abgesägten Hosenbeinen dastehen lässt.</p>
<p>Viel Spass mit dem aufgebohrten Centro Grande <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2011/12/03/swisscom-centro-grande-aufbohren/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Tricking Squeezebox Server into downloading firmware files from local server</title>
		<link>http://phaq.phunsites.net/2011/07/13/tricking-squeezebox-server-into-downloading-firmware-files-from-local-server/</link>
		<comments>http://phaq.phunsites.net/2011/07/13/tricking-squeezebox-server-into-downloading-firmware-files-from-local-server/#comments</comments>
		<pubDate>Wed, 13 Jul 2011 19:41:41 +0000</pubDate>
		<dc:creator>gdelmatto</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[HowTo's]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/?p=678</guid>
		<description><![CDATA[Gosh &#8230; I&#8217;ll never (as in _never_) cease my home internet again before moving out of the flat. Here&#8217;s another workaround to trick my Squeezebox Server into downloading firmware files from a local server &#8211; just because of lack of internet connection. Dooooh! After connecting my new SqueezeBox Radio, I had to take already some [...]]]></description>
			<content:encoded><![CDATA[<p>Gosh &#8230; I&#8217;ll never (as in _never_) cease my home internet again before moving out of the flat. Here&#8217;s another workaround to trick my Squeezebox Server into downloading firmware files from a local server &#8211; just because of lack of internet connection. Dooooh!<br />
<span id="more-678"></span><br />
After connecting my new SqueezeBox Radio, I had to <a href="/2011/07/12/setting-up-logitech-squeezebox-radio-without-internet-connection/">take already some efforts</a> to get it up and running because of no internet.<br />
But for some obscure reason, the firmware installed (an ancient 7.4 series) didn&#8217;t work to well with my Squeezebox Server running on version 7.5.1.<br />
Obviously the Squeezebox Server tried hard to download current firmware as seen in the logfile:</p>
<p><code><br />
[11-07-12 22:21:22.9387] Slim::Utils::Firmware::downloadAsyncError (557) Warning: Firmware: Failed to download http://update.mysqueezebox.com/update/firmware/7.5.1/baby.version (Couldn't resolve IP address for: update.mysqueezebox.com), will try again in 10 minutes.<br />
</code></p>
<p>Looking for the obvious at the <a href="http://forums.slimdevices.com/" target="_blank">Squeezebox Community Forums </a>I came around a hint to just download the firmware and copy it to the &#8216;Firmware&#8217; folder manually.<br />
Still, the server kept trying to download the firmware, even after restarting the service, completely ignoring the files I just dropped in there <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /><br />
(note: we&#8217;ll take about this again a bit later &#8230;)</p>
<p>Well, I&#8217;m not giving in that easy, so I tried another way: I created the proper directory structure in the &#8216;~/Downloads&#8217; folder on my Mac:</p>
<p><code><br />
$ cd ~/Downloads<br />
$ mkdir -p update/firmware/7.5.1<br />
</code></p>
<p>Then I downloaded the <a href="http://update.slimdevices.com/update/firmware/7.5.1/" target="_blank">firmware files</a> (actually the files &#8216;baby.version&#8217;, &#8216;baby.version.sha&#8217;, &#8216;baby_7.5.1_r9218.bin&#8217; and &#8216;baby_7.5.1_r9218.bin.sha&#8217;) in my local &#8216;~/Downloads/update/firmware/7.5.1&#8242; folder.</p>
<p>Afterwars I started the <a href="2011/07/13/serve-files-quickly-using-built-in-python-web-server-in-os-x/">built-in python web-server of OS X</a> from the &#8216;~/Downloads&#8217; folder:</p>
<p><code><br />
$ cd ~/Downloads<br />
$ sudo python -m SimpleHTTPServer 80<br />
Password:<br />
Serving HTTP on 0.0.0.0 port 80 ...<br />
</code></p>
<p>Since my Squeezebox Server runs from a QNAP NAS, I logged into it through SSH.<br />
QNAP, as many other vendors, use Linux as operating system. As I don&#8217;t have a local DNS server in my network, my intention was to override the IP address of &#8216;update.mysqueezebox.com&#8217; through a manual entry in the /etc/hosts file on the NAS server, so I added this new line to it:</p>
<p><code><br />
192.168.100.54 update.mysqueezebox.com<br />
</code></p>
<p>A quick check using &#8216;ping&#8217; reveals that it works properly.</p>
<p><code><br />
[/] # ping update.mysqueezebox.com<br />
PING update.mysqueezebox.com (192.168.100.54): 56 data bytes<br />
64 bytes from 192.168.100.54: icmp_seq=0 ttl=64 time=1.0 ms<br />
64 bytes from 192.168.100.54: icmp_seq=1 ttl=64 time=1.0 ms<br />
</code></p>
<p>Inspecting the logfile after restarting Squeezebox Server revealed however that this didn&#8217;t work as expected. It seemed like the application prefers DNS and ingores the local /etc/hosts on the NAS.<br />
I checked in /etc/nsswitch.conf as well to see if we may have a different-than-default lookup order there:</p>
<p><code><br />
$ grep -e hosts /etc/nsswitch.conf<br />
#hosts:     db files nisplus nis dns<br />
hosts:      files dns wins<br />
</code></p>
<p>Oh well, exactly what I expected to see. After all I didn&#8217;t want to dig into this too much (at least not more as I did already).<br />
So I just searched the code to see where the Firmware download is being handled. I ended up with the file at /share/MD0_DATA/.qpkg/SqueezeBoxServer/var/home/SqueezeboxServer/Slim/Utils/Firmware.pm.</p>
<p>I located the line where the download URL is constructed on line 432:</p>
<p><code><br />
      my $url = BASE() . '/' . $::VERSION . '/' . basename($file);<br />
</code></p>
<p>So I changed it temporarily to read like this:</p>
<p><code><br />
        #my $url = BASE() . '/' . $::VERSION . '/' . basename($file);<br />
        my $url = 'http://192.168.100.54/update/firmware/' . $::VERSION . '/' . basename($file);<br />
</code></p>
<p>After restarting Squeezebox Server it finally downloaded the firmware from my Mac&#8217;s folder.</p>
<p>Checking back where the files had been actually stored, I saw that the new firmware ended up in &#8216;/share/MD0_DATA/.qpkg/SqueezeBoxServer/var/home/SqueezeboxServer/Cache/updates&#8217; and not &#8216;/share/MD0_DATA/.qpkg/SqueezeBoxServer/var/home/SqueezeboxServer/Firmware&#8217; as supposed.<br />
Well, at least I tricked the whole thing into doing what I wanted and my Squeezebox Radio finally accepted to download the new firmware from the Squeezebox Server thereafter.</p>
<p><a href="http://phaq.phunsites.net/files/2011/07/IMG_1871.jpg" rel="lightbox[678]"><img src="http://phaq.phunsites.net/files/2011/07/IMG_1871.jpg" alt="" width="209" height="142" class="alignnone size-full wp-image-679" /></a></p>
<p>And yes, this whole trickery would have been obsolete if I had an internet connection. Of course, I could have enabled interconnection sharing on my Mac, which was hooked up to my iPhone. Now don&#8217;t ask me why, but somehow that was not working. After setting the network default gateway on the NAS to point to the Mac I&#8217;d still have no connection, so I suppose I either had one (or two) NAT sessions to much or some other thing on the Mac went terribly wrong. After all my approach worked out, that counts too <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2011/07/13/tricking-squeezebox-server-into-downloading-firmware-files-from-local-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Baking Recipe to fix broken MacBook LogicBoard</title>
		<link>http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/</link>
		<comments>http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/#comments</comments>
		<pubDate>Tue, 08 Mar 2011 22:36:57 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/?p=561</guid>
		<description><![CDATA[What a shame: After four years of service my 3rd generation MacBook Pro broke last wednesday &#8211; obviously a well-known issue with the Nvidia GPU. Strangely enough, this really is easily to be fixed with your kitchen&#8217;s baking oven&#8230; The most painful experience in this situation was that I suddenly sat there without working computer [...]]]></description>
			<content:encoded><![CDATA[<p>What a shame: After four years of service my 3rd generation MacBook Pro broke last wednesday &#8211; obviously a well-known issue with the Nvidia GPU. Strangely enough, this really is easily to be fixed with your kitchen&#8217;s baking oven&#8230;</p>
<p><span id="more-561"></span></p>
<p>The most painful experience in this situation was that I suddenly sat there without working computer around. More dramatically was the fact that my TimeMachine backup was from the evening before, so I had some real nightmares about having partially lost my essay I was writing at that time.<br />
Well, for a fast (and final) fix, I just got myself one of these fancy new MacBook Pro modells, so I could just go on with my work.</p>
<p>Albeit having a new computer, I just wondered about possible reasons for my MacBook failure. While digging around I found that there was well-known issue with 3rd generation MacBook pro with Nvidia graphics adapter, wich was even <a href="http://support.apple.com/kb/TS2377" target="_blank">officially aknowledged by Apple</a>. Actually, Apple even offered free repair of such defective MacBook Pro within four years of purchase (according to their support article).</p>
<p>Defective MacBooks affected by this issue are typically considered having a &#8220;blank screen&#8221; or distorted video. In case of &#8220;blank screen&#8221;, affected systems are still playing the &#8220;Mac chime&#8221; upon power-on and the CAPS-LOCK LED being lit when pressing the key. You could even boot the system and at least &#8220;hear&#8221; audible feedback to several keystrokes (e.g. the volume up/down keys, etc).</p>
<p>So that qualifies clearly for a MacBook Pro being affected by the Nvidia chip issue.</p>
<p>There&#8217;s the problem, however: You need to prove your purchase. If you don&#8217;t have an original receipt, Apple gently refuses to repair the broken MacBook Pro, as I was assured after talking to the helpline. Oh well &#8230; out of warranty, no proof of purchase &#8230; absolute failure! (BAD RANT at Apple for this!!!)</p>
<p>Oh, well, so no fix for me as I don&#8217;t have the prove of purchase. Baaah &#8230;</p>
<p>To fix the MacBook, I would have needed to exchange the LogicBoard. These do cost however several hundred Swiss Francs, definitely way beyond what&#8217;s worthwile to invest into a 4-year-old device.</p>
<p>During my research on the web I came along other sites covering this topic. Some of these sites did even propose fixing the LogicBoard by butting it into your oven and baking it for 5-10 mins at around 200°-220° (392 &#8211; 448 F). The idea behind this is simple: By exposing the board to heat in the oven, the reflow soldering assembling conditions are reproduced, which can eventually fix broken soldering points.</p>
<p>I found the best instructions on <a href="http://eniak.posterous.com/macbook-pro-grafikkarte-kaputt-einfach-im-ofe" target="_blank">Philip May&#8217;s blog (in german language)</a>.<br />
Instruction to <a href="http://www.ifixit.com/Guide/Repair/MacBook-Pro-15-Inch-Core-2-Duo-Models-A1226-and-A1260-Logic-Board-Replacement/681/1" target="_blank">disassemble the MacBook Pro</a> were found on ifixit.com.</p>
<p>So tonight I took on the challenge to put my MacBook into the oven &#8230; ok, ok, just the plain LogicBoard <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /><br />
Below you&#8217;ll find some pictures of the process. And guess what? It really worked. My &#8220;broken&#8221; 3rd gen is now up and running again.<br />
That leaves me only to this question: I&#8217;ve bought a new one already, what would I do with the old one now? <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>

<a href='http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/img_1432/' title='IMG_1432'><img width="150" height="150" src="http://phaq.phunsites.net/files/2011/03/IMG_1432-150x150.jpg" class="attachment-thumbnail" alt="IMG_1432" title="IMG_1432" /></a>
<a href='http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/img_1442/' title='IMG_1442'><img width="150" height="150" src="http://phaq.phunsites.net/files/2011/03/IMG_1442-150x150.jpg" class="attachment-thumbnail" alt="IMG_1442" title="IMG_1442" /></a>
<a href='http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/img_1445/' title='IMG_1445'><img width="150" height="150" src="http://phaq.phunsites.net/files/2011/03/IMG_1445-150x150.jpg" class="attachment-thumbnail" alt="IMG_1445" title="IMG_1445" /></a>
<a href='http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/img_1446/' title='IMG_1446'><img width="150" height="150" src="http://phaq.phunsites.net/files/2011/03/IMG_1446-150x150.jpg" class="attachment-thumbnail" alt="IMG_1446" title="IMG_1446" /></a>
<a href='http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/img_1447/' title='IMG_1447'><img width="150" height="150" src="http://phaq.phunsites.net/files/2011/03/IMG_1447-150x150.jpg" class="attachment-thumbnail" alt="IMG_1447" title="IMG_1447" /></a>
<a href='http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/img_1452/' title='IMG_1452'><img width="150" height="150" src="http://phaq.phunsites.net/files/2011/03/IMG_1452-150x150.jpg" class="attachment-thumbnail" alt="IMG_1452" title="IMG_1452" /></a>
<a href='http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/img_1453/' title='IMG_1453'><img width="150" height="150" src="http://phaq.phunsites.net/files/2011/03/IMG_1453-150x150.jpg" class="attachment-thumbnail" alt="IMG_1453" title="IMG_1453" /></a>
<a href='http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/img_1454/' title='IMG_1454'><img width="150" height="150" src="http://phaq.phunsites.net/files/2011/03/IMG_1454-150x150.jpg" class="attachment-thumbnail" alt="IMG_1454" title="IMG_1454" /></a>

]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2011/03/08/baking-recipe-to-fix-broken-macbook-logicboard/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Replacing stock mini PCIe WiFi by DW1390 WiFi on eeePC 1000H</title>
		<link>http://phaq.phunsites.net/2009/08/15/replacing-stock-mini-pcie-wifi-by-dw1390-wifi-on-eeepc-1000h/</link>
		<comments>http://phaq.phunsites.net/2009/08/15/replacing-stock-mini-pcie-wifi-by-dw1390-wifi-on-eeepc-1000h/#comments</comments>
		<pubDate>Sat, 15 Aug 2009 15:20:09 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[Hardware]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/?p=135</guid>
		<description><![CDATA[This february I had my 30th birthday. My boss surprised me with an eeePC 1000H as an unexpected as well as also a very cool gift Ok, I must admit, that I took a glimpse at the tiny netbooks more than once. My dream was to actually run it with OS X instead of Windows [...]]]></description>
			<content:encoded><![CDATA[<p>This february I had my 30th birthday. My boss surprised me with an eeePC 1000H as an unexpected as well as also a very cool gift <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>Ok, I must admit, that I took a glimpse at the tiny netbooks more than once. My dream was to actually run it with OS X instead of Windows or Linux.</p>
<p>So, just the next-day my netbook was OS X-ified (a topic, which I&#8217;ll cover later on), only to notice some more or less annoying issues.<br />
<span id="more-135"></span><br />
One of the most annoying issues was the stock WiFi, which required a very ugly 3rd party tool for configuration and was so absoluty not OS X-alike.<br />
<!--more--><br />
Two weeks ago I finally ordered a DW1390 mini PCIe WiFi card. It arrived today, so I went for immediate installation to see if it seamlessly works with my eeePC (or should it be called eeeBook instead?).</p>
<p>Here&#8217;s some pictures about the &#8220;unboxing experience&#8221;, though it&#8217;s not served up Apple-style <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </p>
<p><img class="alignnone size-medium wp-image-123" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0268-300x225.jpg" alt="IMG_0268" width="300" height="225" /><img class="alignnone size-medium wp-image-124" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0269-300x225.jpg" alt="IMG_0269" width="300" height="225" /><br />
<img class="alignnone size-medium wp-image-125" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0270-225x300.jpg" alt="IMG_0270" width="225" height="300" /></p>
<p>It&#8217;s almost as tiny as a standard USB stick:</p>
<p><img class="alignnone size-medium wp-image-126" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0272-300x225.jpg" alt="IMG_0272" width="300" height="225" /></p>
<p>Ready to open up the back-cover:</p>
<p><img class="alignnone size-medium wp-image-127" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0274-300x225.jpg" alt="IMG_0274" width="300" height="225" /><br />
<img class="alignnone size-medium wp-image-128" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0275-300x225.jpg" alt="IMG_0275" width="300" height="225" /></p>
<p>Disconnecting both antenna wires &#8230;</p>
<p><img class="alignnone size-medium wp-image-129" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0276-300x225.jpg" alt="IMG_0276" width="300" height="225" /></p>
<p>This is the empty socket after having the original card removed:</p>
<p><img class="alignnone size-medium wp-image-130" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0277-300x225.jpg" alt="IMG_0277" width="300" height="225" /></p>
<p>And here&#8217;s the new card plugged-in:</p>
<p><img class="alignnone size-medium wp-image-131" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0278-300x225.jpg" alt="IMG_0278" width="300" height="225" /></p>
<p>After re-assembly I booted into OS X to configure the new WiFi the real OS X-style.</p>
<p><img class="alignnone size-medium wp-image-134" src="http://phaq2.phunsites.net/wp-content/uploads/2009/08/IMG_0282-300x225.jpg" alt="IMG_0282" width="300" height="225" /></p>
<p>Finally, one of the most annoying things on the eeeBook is gone now <img src='http://phaq.phunsites.net/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2009/08/15/replacing-stock-mini-pcie-wifi-by-dw1390-wifi-on-eeepc-1000h/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ras_init.vbs: Override And Restore Routes With Windows RAS</title>
		<link>http://phaq.phunsites.net/2007/06/06/ras_initvbs-override-and-restore-routes-with-windows-ras/</link>
		<comments>http://phaq.phunsites.net/2007/06/06/ras_initvbs-override-and-restore-routes-with-windows-ras/#comments</comments>
		<pubDate>Wed, 06 Jun 2007 00:18:43 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/2006/06/14/ras_initvbs-override-and-restore-routes-with-windows-ras/</guid>
		<description><![CDATA[When initiating a PPP/PPTP connection through Windows RAS you will usually end up with an altered network default route which will redirect all and every traffic through PPP/PPTP. There are many cases however where such a behaviour is simply not desired, considering Windows RAS providing you with no way to circumvent this, you&#8217;re on your [...]]]></description>
			<content:encoded><![CDATA[<p>When initiating a PPP/PPTP connection through Windows RAS you will usually end up with an altered network default route which will redirect all and every traffic through PPP/PPTP.</p>
<p>There are many cases however where such a behaviour is simply not desired, considering Windows RAS providing you with no way to circumvent this, you&#8217;re on your own for once more.</p>
<p>I wrote this script, ras_init.vbs, out of the requirement to restore my default route for normal connections and route only specific hosts and networks through PPP/PPTP.</p>
<p>ras_init.vbs is released under the terms of the GNU GPL, version 2. Any feedback  is appreciated.</p>
<hr />
Note: Some time in the past the code of release 0.3 has been lost. As this script is not actively maintained any more, I will not invest time to redo the bugfixes.<br />
The script would need to undergo a major rewrite, maybe in PowerShell, to work on Vista/Windows 7/Server 2008 anyway.</p>
<hr />
<p><a href="http://phaq.phunsites.net/files/2007/06/ras_init-0.2.zip" title="ras_init-0.2.zip">ras_init-0.2.zip</a></p>
<p>Change Log:</p>
<p><strike><br />
r0.3 2007/06/06</p>
<ul>
<li>fixed a bug with wrong RAS_Routes array enumeration</li>
<li>changed script to figure out language settings on its own</li>
<li>addedd support for RAS_Name, RAS_User and RAS_Pass attributes to include whitespace characters</li>
<li>added support for Windows Vista (requires administrative privileges though)</li>
</ul>
<p></strike><br />
r0.2 2006/06/16</p>
<ul>
<li>add support for interactive/non-interactive mode</li>
</ul>
<p>r0.1 2006/06/13</p>
<ul>
<li>initial release</li>
<li>tested on Windows 2000/XP</li>
<li>searches through all interfaces and looks for the expected RAS subnet address</li>
<li>removes RAS default route and replace it by your local default route</li>
<li>optionally set up host/network routes for routing through RAS</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2007/06/06/ras_initvbs-override-and-restore-routes-with-windows-ras/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>FreeBSD patch: enable fsck in mdmfs</title>
		<link>http://phaq.phunsites.net/2006/07/26/freebsd-patch-enable-fsck-in-mdmfs/</link>
		<comments>http://phaq.phunsites.net/2006/07/26/freebsd-patch-enable-fsck-in-mdmfs/#comments</comments>
		<pubDate>Wed, 26 Jul 2006 06:01:42 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>
		<category><![CDATA[jails]]></category>

		<guid isPermaLink="false">http://www.phunsites.net/wp/2006/07/26/freebsd-patch-enable-fsck-in-mdmfs/</guid>
		<description><![CDATA[This patch is actually a follow-up development to my article on implementing filesystem allocation limits on FreeBSD jails. My previous article basically lined out how to place jails inside a vnode-backed memory device to enforce filesystem allocation limits. This became possible through a new flag introduced to mdmfs in FreeBSD-CURRENT which allowed to skip 'newfs' [...]]]></description>
			<content:encoded><![CDATA[<p>This patch is actually a follow-up development to my article on <a href="/wp/2006/06/22/implementing-filesystem-allocation-limits-on-freebsd-jails/">implementing filesystem allocation limits on FreeBSD jails</a>.<br />
<code><br />
My previous article basically lined out how to place jails inside a vnode-backed memory device to enforce filesystem allocation limits. This became possible through a new flag introduced to mdmfs in FreeBSD-CURRENT which allowed to skip 'newfs' (which requires mdmfs actually to be called mount_md to work properly).</p>
<p>This solution is quiet handy as it will automagically mount the container volumes as required. But since we do not live in a perfect world - and computers ain't perfect either - crashes do happen. File system corruption on volumes will prevent jails to startup as their (virtual) root device will fail to mount.<br />
This is where this patch comes in. It will enable mdmfs to optionally run an fsck on given volumes.</p>
<p>To apply the patch, create a new temporary build directory first:</p>
<p>#mkdir /root/mount_md<br />
#cd /root/mount_md</p>
<p>Then get the original source code from CVS. Maybe itâ€™s easiest to get this particular release through WebCSV at <a href="http://www.freebsd.org/cgi/cvsweb.cgi/%7Echeckout%7E/src/sbin/mdmfs/mdmfs.c?rev=1.27">http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sbin/mdmfs/mdmfs.c?rev=1.27</a>.</p>
<p>Save this file to your previously created build directory.</p>
<p>If you have wget at hands you can also download it directly.</p>
<p>#wget -user-agent='Mozilla/5.0' 'http://www.freebsd.org/cgi/cvsweb.cgi/~checkout~/src/sbin/mdmfs/mdmfs.c?rev=1.27' -output-document=/root/mount_md/mount_md.c</p>
<p>Download and apply the patch: <a href="http://phaq.phunsites.net/files/2006/07/mount_md.c.diff_.txt" title="mount_md.c.diff">mount_md.c.diff</a></p>
<p>#wget -user-agent='Mozilla/5.0' 'http://www.phunsites.net/wp/wp-content/uploads/2006/07/mount_md.c.diff.txt' -output-document=/root/mount_md/mount_md.c.diff</p>
<p>#patch &lt; /root/mount_md/mount_md.c.diff</p>
<p>Compile the source:</p>
<p>#gcc /root/mount_md/mount_md.c -o /root/mount_md/mount_md</p>
<p>Then copy the file to some location you like, eg. /usr/sbin.</p>
<p>#cp /root/mount_md/mount_md /usr/sbin/mount_md<br />
Make sure you call the file as given in the example. It wonâ€™t work otherwise.</p>
<p>Special care must be taken that you DO NOT replace your existing mdmfs binary file by this new version. DO NOT overwrite it. Do not rename this patch to mdmfs. Use the names provided in this example instead.</p>
<p><strong>Setup Jailâ€™s fstab</strong></p>
<p>Now check out your jail's fstab and look for this line:</p>
<p>md /var/jails/192.168.0.1 md rw,-P,-F/mnt/r5_vol1/jails/192.168.0.1/rootfs.volume</p>
<p>Change it as follows:</p>
<p>md /var/jails/192.168.0.1 md rw,-P,-F/mnt/r5_vol1/jails/192.168.0.1/rootfs.volume,-Tufs</p>
<p>or</p>
<p>md /var/jails/192.168.0.1 md rw,-P,-F/mnt/r5_vol1/jails/192.168.0.1/rootfs.volume,-tufs</p>
<p>The difference in the two lies in the '-T' or '-t' argument. Both enable fsck before mounting the volume, hence '-T' runs 'fsck -y' while '-t' does not.</p>
<p>You need also to provide the filesystem type with either option for fsck to work properly.</p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2006/07/26/freebsd-patch-enable-fsck-in-mdmfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Policy Filter for ClamSMTP (pf-clamsmtp)</title>
		<link>http://phaq.phunsites.net/2006/05/01/pf-clamsmtp/</link>
		<comments>http://phaq.phunsites.net/2006/05/01/pf-clamsmtp/#comments</comments>
		<pubDate>Mon, 01 May 2006 17:32:11 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/2006/05/01/pf-clamsmtp/</guid>
		<description><![CDATA[pf-clamsmtp is a perl-written policy filter for use with Postfix and clamsmtp primarily written for one purpose: pass messages to the clamsmtp virus filter only if they don&#8217;t exceed a given size. The reason for doing so was simple: traditional tools like MailScanner or AMaViS put to much of a burden on systems when simple [...]]]></description>
			<content:encoded><![CDATA[<p>pf-clamsmtp is a perl-written policy filter for use with Postfix and clamsmtp primarily written for one purpose: pass messages to the clamsmtp virus filter only if they don&#8217;t exceed a given size.<br />
<span id="more-21"></span><br />
The reason for doing so was simple: traditional tools like MailScanner or AMaViS put to much of a burden on systems when simple virus filtering is desired. Also it doesn&#8217;t make sense to scan today&#8217;s huge megabyte-sized messages: first, most mail viruses rarely exceed a few kilobytes in size, second, scanning huge messages has a big payload and may expose a system to certain race conditions (eg. out of memory, disk space, etc).</p>
<p>pf-clamsmtp is based on a sample policy daemon included with <a href="http://www.postfix.org" target="_blank">Postfix</a> and developped to work together with <a href="http://memberwebs.com/nielsen/software/clamsmtp/" target="_blank">ClamSMTP</a>. Sample configurations are included with the release tarball. pf-clamsmtp is released under the terms of the GNU GPL, version 2.</p>
<p><a href="/files/2006/05/pf-clamsmtp-0.1.tar.gz" title="Policy Filter for ClamSMTP (pf-clamsmtp)">Policy Filter for ClamSMTP (pf-clamsmtp)</a></p>
<p>Any feedback is appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2006/05/01/pf-clamsmtp/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Courier IMAP Login Exec (cile)</title>
		<link>http://phaq.phunsites.net/2006/03/24/cile/</link>
		<comments>http://phaq.phunsites.net/2006/03/24/cile/#comments</comments>
		<pubDate>Fri, 24 Mar 2006 00:29:30 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Hacks]]></category>

		<guid isPermaLink="false">http://phaq.phunsites.net/2006/03/24/cile/</guid>
		<description><![CDATA[cile (Courier IMAP Login Exec) is a small patch against the popular Courier IMAP server to allow automatic task execution upon user login.]]></description>
			<content:encoded><![CDATA[<p>Courier IMAP Login Exec (abbreviated &#8216;cile&#8217;) is a small patch against the popular Courier IMAP server.</p>
<p>It basically adds a &#8216;execute script on login&#8217; feature to both pop3d and imapd.<br />
<span id="more-13"></span><br />
The idea behind this is to allow automatic server side tasks to be run upon user login, eg. to check (and fix) the Maildir structure, create usage reports, expunge old mail, etc.</p>
<p>I have therefore created a patch which adds this functionality to Courier IMAP, which you may download and use free of charge. The patch is licensed unter the terms of the GNU GPL, version 2.</p>
<p>There are two releases available:</p>
<p><a href="/files/2006/03/cile-generic-0.1.tar.gz" title="cile-generic 0.1">cile-generic 0.1</a></p>
<p>Take the &#8216;cile-generic&#8217; package if you plan to apply this patch against the original source tarball.</p>
<p><a href="/files/2006/03/cile-ports-0.1.tar.gz" title="cile-ports 0.1">cile-ports 0.1</a></p>
<p>Take the &#8216;cile-ports&#8217; if you plan to apply this patch against the FreeBSD ports tree.</p>
<p>Both releases contain the same patches, they only differ in packageing and the way they are applied.</p>
<p>Any feedback is appreciated.</p>
]]></content:encoded>
			<wfw:commentRss>http://phaq.phunsites.net/2006/03/24/cile/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

