<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-30238143</id><updated>2011-08-21T07:31:05.574-07:00</updated><title type='text'>Confessions of a Hackaholic</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>18</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-30238143.post-7227953568768182324</id><published>2010-05-13T05:26:00.000-07:00</published><updated>2010-05-16T02:09:18.769-07:00</updated><title type='text'>A Guide to Open Source AVCHD .mts Conversion</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_jZ9Wz9tGohQ/S-zbURl3MfI/AAAAAAAAAdw/ErivummRpuk/s1600/DSC_0014.JPG"&gt;&lt;img style="display: block; margin: 0px auto 10px; text-align: center; cursor: pointer; width: 320px; height: 214px;" src="http://3.bp.blogspot.com/_jZ9Wz9tGohQ/S-zbURl3MfI/AAAAAAAAAdw/ErivummRpuk/s320/DSC_0014.JPG" alt="" id="BLOGGER_PHOTO_ID_5470988788714385906" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Having recently bought a Sony Handycam video camera, I was suddenly faced with an unanticipated need to manually convert the recorded movies into a usable format using open source tools available for Linux. Sony assumes that you run their proprietary software (of course available for Windows and OS X only) for copying recorded movies to your hard drive and burning them to DVD or Blu-Ray discs. For burning HD movies, Sony's solution is the &lt;a href="http://en.wikipedia.org/wiki/AVCHD"&gt;AVCHD&lt;/a&gt; format, which is a Blu-Ray-like format for DVDs. A far from optimal solution, considering I do not and do not plan to install Windows or OS X, and that the &lt;a href="http://en.wikipedia.org/wiki/AVCHD"&gt;AVCHD&lt;/a&gt; format seems poorly standardized, so that an &lt;a href="http://en.wikipedia.org/wiki/AVCHD"&gt;AVCHD&lt;/a&gt; disc working on a Sony Blu-Ray player might not work on Blu-Ray players from other manufacturers. My solution to this problem is converting the movies to a more standardized format.&lt;br /&gt;&lt;br /&gt;In many cases, you can convert the &lt;span style="font-family:courier new;"&gt;.mt&lt;/span&gt;s files with &lt;span style="font-family:courier new;"&gt;ffmpeg&lt;/span&gt; directly, so you should try that first. However, with some clips from my camera, &lt;span style="font-family:courier new;"&gt;ffmpeg&lt;/span&gt; has problems interpreting the file. In that case, it seems you have to take the long way home, converting the video to a raw YUV format, before recoding it to your desired output format.&lt;br /&gt;&lt;br /&gt;To begin with, you need to extract the movies stored on the camera. When mounting the camera as a USB mass storage device, a large directory structure is revealed, in parts similar to the &lt;a href="http://en.wikipedia.org/wiki/AVCHD"&gt;AVCHD&lt;/a&gt; directory structure. The recorded movies can be found as &lt;span style="font-family:courier new;"&gt;.mts&lt;/span&gt; files in the  &lt;span style="font-family:courier new;"&gt;AVCHD/BDMV/STREAM&lt;/span&gt; folder. Copy these files to a working directory.&lt;br /&gt;&lt;br /&gt;We will need to compile some tools for the conversion. The first of these is &lt;span style="font-family:courier new;"&gt;xporthdmv&lt;/span&gt;. Download the source package (xport.zip) from the &lt;a href="http://www.w6rz.net/"&gt;developers web page&lt;/a&gt; and unzip it. Then compile it:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;gcc -o xporthdmv xport.c&lt;/span&gt;&lt;br /&gt;Now adjust file permissions and copy the executable to somewhere in  your path as needed.&lt;br /&gt;&lt;br /&gt;The next tool is &lt;span style="font-family:courier new;"&gt;ldecod&lt;/span&gt;.  Download the source package (latest version, which at the time of  writing is jm17.0.zip) from the &lt;a href="http://iphome.hhi.de/suehring/tml/download/"&gt;developers web page&lt;/a&gt;,  and unpack it. The source can be compiled with the following commands,  executed from the &lt;span style="font-family:courier new;"&gt;JM&lt;/span&gt;  folder:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;chmod 755 unixprep.sh&lt;br /&gt;&lt;/span&gt;&lt;span style="font-family:courier new;"&gt;./unixprep.sh&lt;/span&gt;   &lt;span style="font-family:courier new;"&gt;&lt;br /&gt;cd ldecod &lt;/span&gt;   &lt;span style="font-family:courier new;"&gt;&lt;br /&gt;sed -i s/-march=pentium4//g Makefile &lt;/span&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;make&lt;/span&gt;&lt;br /&gt;Now adjust the file permissions of the resulting &lt;span style="font-family:courier new;"&gt;ldecod.exe&lt;/span&gt; executable (located  in the &lt;span style="font-family:courier new;"&gt;JM/bin&lt;/span&gt; directory)  and copy it as &lt;span style="font-family:courier new;"&gt;ldecod&lt;/span&gt; to  somewhere in your path as needed.&lt;br /&gt;&lt;br /&gt;You will also need &lt;a href="http://www.ffmpeg.org/"&gt;&lt;span style="font-family:courier new;"&gt;ffmpeg&lt;/span&gt;&lt;/a&gt;, but since this is probably available through repositories for your Linux distribution, I will leave that installation safely in your hands.&lt;br /&gt;&lt;br /&gt;Now we are ready to start converting. First, the &lt;span style="font-family:courier new;"&gt;.mts&lt;/span&gt; file will need to be demuxed into the corresponding audio and video files:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;xporthdmv -nh movie.mts 1 1 1&lt;/span&gt;&lt;br /&gt;This will result in two files &lt;span style="font-family:courier new;"&gt;bits0001.mpv&lt;/span&gt; (H.264 video) and &lt;span style="font-family:courier new;"&gt;bits0001.mpa&lt;/span&gt; (AC3 audio). The reason why we are using &lt;span style="font-family:courier new;"&gt;xporthdmv&lt;/span&gt; to demux, and not using &lt;span style="font-family:courier new;"&gt;ffmpeg&lt;/span&gt; directly, is that &lt;span style="font-family:courier new;"&gt;ffmpeg&lt;/span&gt; has trouble reading some of the &lt;span style="font-family:courier new;"&gt;.mts&lt;/span&gt; files that the Sony Handycam generates.&lt;br /&gt;&lt;br /&gt;Next, we will use &lt;span style="font-family:courier new;"&gt;ldecod&lt;/span&gt; to convert the video to YUV. It might be possible to use the demuxed video directly with &lt;span style="font-family:courier new;"&gt;ffmpe&lt;/span&gt;g, but in my attempts,&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family:arial;"&gt; &lt;/span&gt;ffmpeg&lt;/span&gt; has been having problems reading the file, presumably since it is interlaced 50 fps video, while the container indicates that it is 25 fps. The resulting file is huge, so make sure you have enough space. This is how to do the conversion:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;ldecod -i bits0001.mpv -o movie.yuv&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;We can now used the demuxed and converted video and audio files as input to ffmpeg. Even if recoding is not generally recommended, I wanted to have the movies in a standard-compliant mp4 container, and get rid of the horrible, horrible interlacing. Here is how to generate a deinterlaced mp4 with H.264 video and AAC audio:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/bin/ffmpeg -r 25 -s 1440x1080 -i movie.yuv -i bits0001.mpa -acodec libfaac -ar 48000 -ab 160k -ac 2 -vcodec libx264 -vpre hq -b 3000k -aspect 16:9 -deinterlace movie.mp4&lt;/span&gt;&lt;br /&gt;The options could need to be adjusted (for example the first and/or second &lt;span style="font-family:courier new;"&gt;-r 25&lt;/span&gt;, the first one indicating that I have a PAL camera, and the second that I want to keep that framerate for the output) if you have a different input, or if you want other bitrates etc, for the output.&lt;br /&gt;&lt;br /&gt;In the next example, we are generating a low resolution AVI file with XViD video and MP3 audio, since this is one of the most widely supported formats for standalone players:&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;/usr/bin/ffmpeg -r 25 -s 1440x1080 -i movie.yuv -i bits0001.mpa -f avi -vcodec libxvid -vtag XVID -s 320x270 -r 25 -aspect 16:9 -b 700k -qmin 3 -qmax 5 -bufsize 4096 -mbd 2 -bf 2 -flags +4mv -trellis -aic -cmp 2 -subcmp 2 -g 300 -acodec libmp3lame -ar 48000 -ab 128k -ac 2 movie.avi&lt;/span&gt;&lt;br /&gt;Again, adust the options if you want higher resolution, higher bitrate, etc.&lt;br /&gt;&lt;br /&gt;References:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;&lt;a href="http://www.dvinfo.net/forum/archive/index.php/t-144636.html"&gt;How  to recover video from AVCHD (using open source software&lt;/a&gt;&lt;/li&gt;&lt;li&gt;&lt;a href="http://juliensimon.blogspot.com/2009/01/howto-ffmpeg-x264-presets.html"&gt;HOWTO: ffmpeg &amp;amp; x264 presets&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-7227953568768182324?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/7227953568768182324/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2010/05/guide-to-open-source-avchd-mts.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/7227953568768182324'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/7227953568768182324'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2010/05/guide-to-open-source-avchd-mts.html' title='A Guide to Open Source AVCHD .mts Conversion'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_jZ9Wz9tGohQ/S-zbURl3MfI/AAAAAAAAAdw/ErivummRpuk/s72-c/DSC_0014.JPG' height='72' width='72'/><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-8283753353682435380</id><published>2009-11-14T04:35:00.000-08:00</published><updated>2009-11-14T05:47:56.897-08:00</updated><title type='text'>Replacing a Faulty Drive in a Software RAID under Linux</title><content type='html'>At the end of summer, one of the hard drives in my &lt;a href="http://jonashagmar.blogspot.com/2009/06/i-previously-blogged-about-qnap-turbo.html"&gt;Intel D945GSEJT server&lt;/a&gt; failed. With the drive under warranty, and being part of an encrypted RAID 1, it was replaced at no expense from my side, and with no data lost or leaked. With the excellent software RAID under Linux, adding the replacement incurred only a few minutes of lost uptime. I followed &lt;a href="http://advosys.ca/viewpoints/2007/04/setting-up-software-raid-in-ubuntu-server/"&gt;a great guide on Linux software RAID management&lt;/a&gt;, and these are the few simple steps needed to replace the failing drive:&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Remove the relevant partitions from the RAID, e.g. if &lt;span style="font-family: courier new;"&gt;/dev/sdb&lt;/span&gt; has failed and the RAID consists of &lt;span style="font-family: courier new;"&gt;/dev/md0&lt;/span&gt; and &lt;span style="font-family: courier new;"&gt;/dev/md1&lt;/span&gt;:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;mdadm /dev/md0 –remove /dev/sdb1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; mdadm /dev/md1 –remove /dev/sdb2&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Power down, replace the drive, and power up&lt;/li&gt;&lt;li&gt;Copy the partition table from the drive still in the RAID to the new drive, being &lt;span style="font-style: italic;"&gt;very&lt;/span&gt; careful to get the commands right, e.g.:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;sfdisk –d /dev/sda | sfdisk /dev/sdb&lt;/span&gt;&lt;/li&gt;&lt;li&gt;Add the new drive to the RAID, e.g.:&lt;br /&gt;&lt;span style="font-family: courier new;"&gt;mdadm –add /dev/md0 /dev/sdb1&lt;/span&gt;&lt;br /&gt;&lt;span style="font-family: courier new;"&gt; mdadm –add /dev/md1 /dev/sdb2&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-8283753353682435380?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/8283753353682435380/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/11/replacing-faulty-drive-in-software-raid.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/8283753353682435380'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/8283753353682435380'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/11/replacing-faulty-drive-in-software-raid.html' title='Replacing a Faulty Drive in a Software RAID under Linux'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-977343213234585503</id><published>2009-07-31T03:25:00.000-07:00</published><updated>2009-07-31T03:59:07.959-07:00</updated><title type='text'>A Test Drive of Moblin 2 Beta</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/_jZ9Wz9tGohQ/SnLOF_JoEAI/AAAAAAAAAc8/dBgotjmWGyM/s1600-h/Screenshot.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 400px; height: 225px;" src="http://4.bp.blogspot.com/_jZ9Wz9tGohQ/SnLOF_JoEAI/AAAAAAAAAc8/dBgotjmWGyM/s400/Screenshot.png" alt="" id="BLOGGER_PHOTO_ID_5364576708398157826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Yesterday I was finally able to test drive &lt;a href="http://moblin.org/"&gt;Moblin&lt;/a&gt;, Intel's Linux distribution for netbooks. Moblin has received acclaim for its &lt;a href="http://www.phoronix.com/scan.php?page=article&amp;amp;item=intel_moblin_2a2&amp;amp;num=1"&gt;fast boot time&lt;/a&gt; and its &lt;a href="http://www.phoronix.com/scan.php?page=article&amp;amp;item=moblin_v2_ui&amp;amp;num=1"&gt;innovative GUI&lt;/a&gt;, and I have been eager to try it out. Since Intel has tailored the distribution to run only on systems with a SSE3-capable Intel processor and an Intel GPU, my only choice was to let my Atom-powered home server double as a desktop system for a while.&lt;br /&gt;&lt;br /&gt;Installing the Moblin Live on a USB stick was a breeze, with clear instructions available on &lt;a href="http://moblin.org/documentation/test-drive-moblin/using-moblin-live-image"&gt;the site&lt;/a&gt;. Booting into the desktop was fast, though not as fast as demonstrated on &lt;a href="http://www.phoronix.com/"&gt;Phoronix&lt;/a&gt;, where Moblin has been tested on a Samsung NC10 with a very fast SSD.&lt;br /&gt;&lt;br /&gt;As for the user interface, I cannnot but agree with the reviewer mentioned, that it is very appealing and easy to navigate. On my system, animations were slightly choppy, which might have been due to my relatively slow USB flash drive, or the high resolution at which I was running the system (1920 x 1080).&lt;br /&gt;&lt;br /&gt;Moblin is a very promising distribution for netbooks. Even during my very brief testing, I found quite some points where improvements could be made, I'm sure in time these minor flaws will be corrected. It seems like quite some OSes are intending to compete for netbook dominance (&lt;a href="http://www.thinkgos.com/cloud/index.html"&gt;Cloud&lt;/a&gt;, &lt;a href="http://chrome.blogspot.com/2009/07/google-chrome-os-faq.html"&gt;Google Chrome OS&lt;/a&gt;, etc). It will be interesting to follow the development.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-977343213234585503?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/977343213234585503/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/test-drive-of-moblin-2-beta.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/977343213234585503'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/977343213234585503'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/test-drive-of-moblin-2-beta.html' title='A Test Drive of Moblin 2 Beta'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_jZ9Wz9tGohQ/SnLOF_JoEAI/AAAAAAAAAc8/dBgotjmWGyM/s72-c/Screenshot.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-8564075804495920116</id><published>2009-07-30T02:47:00.000-07:00</published><updated>2009-07-30T04:03:39.448-07:00</updated><title type='text'>A Word of Caution When Connecting Multiple Drives to the D945GSEJT On-Board Power Connector</title><content type='html'>Some caution has to be taken when connecting storage devices to the on-board power connector of the D945GSEJT. Credit goes to mcnels1, who made &lt;a href="http://jonashagmar.blogspot.com/2009/07/by-request-look-inside-intel-d945gsejt.html?showComment=1248874336276#c35384896161226378"&gt;a very observant comment&lt;/a&gt; yesterday, on my D945GSEJT home server setup with two 1TB Western Digital Caviar Green (1TWDCG) hard drives.&lt;br /&gt;&lt;br /&gt;As mcnels1 pointed out, it seems hazardous to connect two 1TWDCG, which possibly require more than double the power that the board is able to deliver. The maximum power draw of a 1TWDCG is, according to the &lt;a href="http://www.wdc.com/en/library/sata/2879-701229.pdf"&gt;specifications&lt;/a&gt; (last page), 1.671A at 12VDC (which translates to ~20W). The &lt;a href="http://download.intel.com/support/motherboards/desktop/d945gsejt/sb/e62862001us.pdf"&gt;D945GSEJT specifications&lt;/a&gt; however state (page 19, last paragraph) that the on-board power connector delivers a maximum of 1.5A at 12V (18W).&lt;br /&gt;&lt;br /&gt;However, I have so far experienced no problems with the setup, that could be referred to the power supply being inadequate to power the hard drives. I performed numerous reboots (which is when the hard drives would be expected to draw the most power), due to the &lt;a href="http://jonashagmar.blogspot.com/2009/06/i-previously-blogged-about-qnap-turbo.html"&gt;complications with the setup&lt;/a&gt; concerning the Ethernet controller, without any failures. Also, massive read/write operations have been performed without any problems. For example, due to a defective sector on one of the hard drives, the drive was taken offline from the RAID1, after which I tested every sector on the drive, and then resynced the entire 1TB of the encrypted LVM volume. Also, the drives undergo weekly SMART testing, lasting for almost 4 hours, which has so far always succeeded.&lt;br /&gt;&lt;br /&gt;This apparent contradiction between theory and practice might be due to the power consumption of the 1TWDCG being far less than the stated maximal 20W. In a &lt;a href="http://www.prisjakt.nu/produkt.php?o=442776"&gt;product review&lt;/a&gt; that I found yesterday, the reviewer has a D945GSEJT system with an IDE flash drive and one 1TWGCG, and states (translated with some modifications for better conformity with English):&lt;br /&gt;&lt;br /&gt;&lt;blockquote&gt;... I have an AC-DC adapter from Seasonic which is supposed to have 80% efficiency and, measured before the AC-DC adapter, the system draws about 20W with only the mother board and the flash drive connected. With the 1TB WD Green added, the computer idles at 23W, which rises to 25-28W when it reads/writes.&lt;blockquote&gt;&lt;/blockquote&gt;&lt;/blockquote&gt;This would indicate that the maximum power consumption of the 1TWDCG is really 80% of 8W, which is 6.4W. If this is indeed the case, the on-board power connector should have no problems supplying the hard drives.&lt;br /&gt;&lt;br /&gt;Nevertheless, a word of caution is in order. As a late reply to one of my readers who considered connecting four drives to his D945GSEJT, I would advise against using the on-board power connector, taking the above information into account.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-8564075804495920116?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/8564075804495920116/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/word-of-caution-when-connecting.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/8564075804495920116'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/8564075804495920116'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/word-of-caution-when-connecting.html' title='A Word of Caution When Connecting Multiple Drives to the D945GSEJT On-Board Power Connector'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-4050784295112179689</id><published>2009-07-28T05:32:00.000-07:00</published><updated>2009-07-28T05:47:44.699-07:00</updated><title type='text'>By Request: a Look Inside the Intel D945GSEJT Server</title><content type='html'>I received &lt;a href="http://jonashagmar.blogspot.com/2009/07/update-debian-lenny-502-installer-and.html?showComment=1248780707352#c8051000710430072166"&gt;a request&lt;/a&gt; today to snap a picture of the D945GSEJT board mounted inside the mini-ITX case, so here it is:&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/_jZ9Wz9tGohQ/Sm7wW4NZrGI/AAAAAAAAAc0/AN3OKNFbcyI/s1600-h/sirius.png"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 371px; height: 400px;" src="http://1.bp.blogspot.com/_jZ9Wz9tGohQ/Sm7wW4NZrGI/AAAAAAAAAc0/AN3OKNFbcyI/s400/sirius.png" alt="" id="BLOGGER_PHOTO_ID_5363488482081221730" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;In the picture above, I have marked some of the connectors (and left some out, e.g. the USB ports):&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Ethernet port&lt;/li&gt;&lt;li&gt;DVI connector&lt;/li&gt;&lt;li&gt;12VDC power connector&lt;/li&gt;&lt;li&gt;SODIMM connector&lt;/li&gt;&lt;li&gt;Power switch&lt;/li&gt;&lt;li&gt;SATA connectors&lt;/li&gt;&lt;li&gt;On-board power connector for hard drives&lt;/li&gt;&lt;/ol&gt;The lower third of the machine as shown in the picture is occupied by the mini-ITX PSU, which &lt;a href="http://jonashagmar.blogspot.com/2009/07/lessons-from-d945gsejt-server.html"&gt;I do not use&lt;/a&gt;. Because of the design of the case, with the hard drives attached to the lid of the case (the lid is flipped on its side in the picture), there is no room for a PCI card. It would be possible to have a PCI card though, if the machine only needs one hard drive. In that case, the PCI card would be attached to a PCI riser attached to the PCI slot on the board.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-4050784295112179689?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/4050784295112179689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/by-request-look-inside-intel-d945gsejt.html#comment-form' title='14 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/4050784295112179689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/4050784295112179689'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/by-request-look-inside-intel-d945gsejt.html' title='By Request: a Look Inside the Intel D945GSEJT Server'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/_jZ9Wz9tGohQ/Sm7wW4NZrGI/AAAAAAAAAc0/AN3OKNFbcyI/s72-c/sirius.png' height='72' width='72'/><thr:total>14</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-3544193529170415721</id><published>2009-07-19T23:54:00.000-07:00</published><updated>2009-07-20T00:03:13.434-07:00</updated><title type='text'>Update: Debian Lenny 5.02 Installer and Intel D945GSEJT</title><content type='html'>When I &lt;a href="http://jonashagmar.blogspot.com/2009/06/i-previously-blogged-about-qnap-turbo.html"&gt;installed Debian Lenny on my Intel D945GSEJT home server&lt;/a&gt;, I reported that the Debian installer did not recognize the network adapter. With the latest version of the installer (5.02), the r8169 module is loaded, and at least on my system, DHCP autoconfiguration of the network connection succeeds. This is a step up from the previous installer, but r8169 is in fact the wrong kernel module, as reported in &lt;a href="http://amk1.wordpress.com/2009/06/09/realtek-8168-module-issue/"&gt;this post&lt;/a&gt;. What you want is the r8168 module, and you can find instructions on compiling that module in the previous link.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-3544193529170415721?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/3544193529170415721/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/update-debian-lenny-502-installer-and.html#comment-form' title='6 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/3544193529170415721'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/3544193529170415721'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/update-debian-lenny-502-installer-and.html' title='Update: Debian Lenny 5.02 Installer and Intel D945GSEJT'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>6</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-7301303868182290105</id><published>2009-07-12T11:28:00.000-07:00</published><updated>2009-07-14T02:37:48.596-07:00</updated><title type='text'>Retrieving a List of User/Manually Installed Packages in Debian/Ubuntu</title><content type='html'>If you are like me and have been running a Linux system for a while, you inevitably come to a point sooner or later where you would really like to know what packages you have been installing - yourself. In the case of Debian (and friends like Ubuntu), the installer pulls in a lot of packages, and there is no special indication (AFAIK) which packages were installed by the installer, and which packages were installed manually by the user. You might want the list in order to quickly get up to speed on a new installation, or, even more probably, clean up a bit among all those packages that you installed because you thought you needed them, or needed them only once or twice.&lt;br /&gt;&lt;br /&gt;I have seen quite a lot of suggestions that you should &lt;a href="http://www.arsgeek.com/2006/09/19/ubuntu-tricks-how-to-generate-a-list-of-installed-packages-and-use-it-to-reinstall-packages/"&gt;work with the entire list of installed packages&lt;/a&gt;, but that is extremely cumbersome if your intention is to clean up, and if you are dealing with a new installation, you risk pulling in obsolete or conflicting packages. What I wanted was a list with just the packages that I had chosen to install myself.&lt;br /&gt;&lt;br /&gt;My solution is a bit brute force, but it works very well. Using a virtual machine manager (I use &lt;a href="http://www.virtualbox.org/"&gt;VirtualBox&lt;/a&gt; since it is free), I set up a virtual machine with a similar installation as the one for which I wanted to get the list of installed packages, only in the case of the virtual machine installation, I will never install any packages myself, only keep the base installation up to date. On the virtual machine, I created a list of installed packages with the following command (borrowed from &lt;a href="http://www.debian-administration.org/articles/462"&gt;here&lt;/a&gt; with slight modification):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;aptitude search ~i | grep -v "^i A" | cut -d " " -f 4 &gt; clean.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;aptitude search ~i&lt;/span&gt; lists the installed packages, &lt;span style="font-family:courier new;"&gt;grep -v "^i A"&lt;/span&gt; removes the lines starting with "i A" (automatically pulled in dependencies), and &lt;span style="font-family:courier new;"&gt;cut -d " " -f 4 &gt; clean.txt&lt;/span&gt; filters out the package names (starting at position four and ending with a space). The result is written to the file &lt;span style="font-family:courier new;"&gt;clean.txt&lt;/span&gt;. Perform a similar command on the machine for which you want to retrieve the list of installed packages, substituting &lt;span style="font-family:courier new;"&gt;clean.txt&lt;/span&gt; with another file name, say &lt;span style="font-family:courier new;"&gt;modified.txt&lt;/span&gt;. With the two files in the same directory (on whichever machine), perform the following command to get the list of packages that are listed in modified.txt, but not in clean.txt (here is a reference to &lt;a href="http://www.pixelbeat.org/cmdline.html"&gt;set operations available from the command line&lt;/a&gt;, and other useful commands):&lt;br /&gt;&lt;br /&gt;&lt;span style="font-family:courier new;"&gt;join -v1 modified.txt clean.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If anyone has a simpler solution to the problem, please let me know, but once set up, this works like a charm.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-7301303868182290105?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/7301303868182290105/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/retrieving-usermanually-installed.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/7301303868182290105'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/7301303868182290105'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/retrieving-usermanually-installed.html' title='Retrieving a List of User/Manually Installed Packages in Debian/Ubuntu'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-8291773585270088357</id><published>2009-07-11T06:33:00.000-07:00</published><updated>2009-07-11T07:56:30.285-07:00</updated><title type='text'>Lessons from the D945GSEJT Server</title><content type='html'>I was very happy to discover a comment on the &lt;a href="http://jonashagmar.blogspot.com/2009/06/i-previously-blogged-about-qnap-turbo.html"&gt;setup of my Intel D945GSEJT&lt;/a&gt; home server today. I am glad to hear that my post helped you, Jules.&lt;br /&gt;&lt;br /&gt;The home server works very well. I have learned a lot in the few days that the system has been running, and I felt it was time to share some of the knowledge I have gathered so far.&lt;br /&gt;&lt;br /&gt;My choice of building the system in a fanless case with a built-in power supply was not the best. A power supply inevitably produces some heat, and with the whole setup being fanless, the harddrives reported temperatures close to 60 degrees Celcius. The &lt;a href="http://www.wdc.com/en/library/sata/2879-701229.pdf"&gt;specifications of the drives&lt;/a&gt; said that this was slightly above the upper safe temperature limit for operation. I changed to an external 12VDC adapter, and got the temperature of the harddrives down to about 40 degrees Celcius, which is perfectly acceptable.&lt;br /&gt;&lt;br /&gt;The D945GSEJT board offers two power connectors, a 12VDC connector on the back panel, and a 4-pin 12V ATX internal connector. The &lt;a href="http://download.intel.com/support/motherboards/desktop/d945gsejt/sb/e62862001us.pdf"&gt;Technical Product Specification of the board&lt;/a&gt; says that the 12VDC connector is "preferred", but does not in any way explain why that would be so, which is very strange. Connecting a mini-ITX power supply (with one 4-pin connector and one 20-pin connector) requires you to short two pins on the 20-pin connector, since this is the signal that the motherboard normally gives to the power supply to make it start and deliver the correct voltages on all pins. This is not anything I recommend in any way, but it was what I had to do to be able to use the built-in power supply of my mini-ITX case. I suspect that Intel had the idea that you would use some special power supply which is always on and only has the 4-pin connector, but I have not found any such supplies. My case gave me small electrical shocks using the internal power supply, which might have been caused by my unorthodox solution, but it might just have been the power supply that was dodgy. I am glad I switched to the external power supply, which has none of these worries.&lt;br /&gt;&lt;br /&gt;Getting acquainted with &lt;a href="http://en.wikipedia.org/wiki/Mdadm"&gt;mdadm&lt;/a&gt; for managing the RAID, and &lt;a href="http://smartmontools.sourceforge.net/"&gt;smartmontools&lt;/a&gt; for monitoring hard drive health was an essential first step in learning to administer my new home server. It turned out that one of my hard drives had a bad sector, and I got to apply this knowledge almost immediately. Emails from smartd started pouring in, telling me about the problem on the drive. The selftests that I had scheduled for the hard drives had fortunately located the error to a sector which was towards the end of the drive, which was probably not occupied by any data.  The solution I ended up using was &lt;a href="http://sourceforge.net/projects/hdrecover/"&gt;hdrecover&lt;/a&gt;, an extremely simple (293 lines of C code) program that tests the readability of each sector on a drive. If an unreadable sector is found, the program writes some data to it, forcing the drive to mark the sector as bad, an relocate it. In my case, being fairly certain that the defective sector was not occupied by any file, this was a solution as good as any. If you want to locate the file that occupies a certain sector, this can be a bit tricky. I found &lt;a href="http://smartmontools.sourceforge.net/badblockhowto.html"&gt;a howto on this subject&lt;/a&gt;, but I am not sure how I would get it to work in my case, with partitions on an encrypted LVM partition.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-8291773585270088357?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/8291773585270088357/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/lessons-from-d945gsejt-server.html#comment-form' title='23 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/8291773585270088357'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/8291773585270088357'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/07/lessons-from-d945gsejt-server.html' title='Lessons from the D945GSEJT Server'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>23</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-4730681140445774866</id><published>2009-06-27T01:22:00.000-07:00</published><updated>2009-07-20T00:06:11.030-07:00</updated><title type='text'>Setting Up a D945GSEJT Server with Debian Lenny</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/_jZ9Wz9tGohQ/Skc6SkYnKHI/AAAAAAAAAX8/gcYMag1_LdM/s1600-h/DSC_0103.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 181px;" src="http://3.bp.blogspot.com/_jZ9Wz9tGohQ/Skc6SkYnKHI/AAAAAAAAAX8/gcYMag1_LdM/s320/DSC_0103.JPG" alt="" id="BLOGGER_PHOTO_ID_5352310772832086130" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I &lt;a href="http://jonashagmar.blogspot.com/2009/03/what-you-do-when-you-drool-over-new.html"&gt;previously blogged&lt;/a&gt; about the QNAP Turbo Station as a possible candidate for a low power home server. The big problem with that solution was the &lt;a href="http://jonashagmar.blogspot.com/2009/03/my-research-about-qnap-ts-209-ii.html"&gt;loud fan&lt;/a&gt;, which seemed to be a real show stopper. Searching for an alternative solution, I found the recently released &lt;a href="http://www.intel.com/products/desktop/motherboards/D945GSEJT/D945GSEJT-overview.htm"&gt;Intel D945GSEJT&lt;/a&gt; motherboard. With a TDP below 20W (apparently ~10W when idle) and being totally fanless, it is ideal for the task. I combined this with two 1TB Western Digital Caviar Green discs (cool, quiet and with low energy consumption) in an &lt;a href="http://www.emko.cz/"&gt;Emko&lt;/a&gt; EM-153 case with a built-in, fanless 60W power supply.&lt;br /&gt;&lt;br /&gt;The resulting build is a completely passively cooled, extremely low power, fully functional home server. I installed &lt;a href="http://www.debian.org/"&gt;Debian Lenny&lt;/a&gt;, the currently stable release of Debian, which is known to be very robust, and will allow me to easily configure the machine as an SSH server, web server with LAMP, etc. With the disks set up as RAID1 and an encrypted LVM partition containing all but /boot, it is first and foremost the perfect solution for secure file storage.&lt;br /&gt;&lt;br /&gt;This setup took quite some effort, which is why I will document the critical points I encountered, for my own reference, and hopefully to help anyone who comes across this entry dealing with a similar setup.&lt;br /&gt;&lt;br /&gt;The first problem was that of setting up the OS. I had more or less decided on using Debian, since I am running Ubuntu on my desktop machines. With no optical disc drive connected to the system, I considered &lt;a href="http://blogs.koolwal.net/2009/02/25/installing-linux-on-usb-part-7-install-debian-linux-from-usb-drive/"&gt;installing Debian from USB&lt;/a&gt;. The problem with this solution is that the Debian Lenny installer is unable to recognize the Realtek 8111DL Ethernet controller (previous versions of the Debian Lenny installer, read &lt;a href="http://jonashagmar.blogspot.com/2009/07/update-debian-lenny-502-installer-and.html"&gt;this update&lt;/a&gt; about the latest version of the installer). I realized after the install was finished that it would probably be possible to load the correct kernel module manually during the install, which is of course a more elegant solution than the one I ended up using. Ubuntu 9.04 (Jaunty) Server, which I considered as an alternative, also had problems with the NIC (I found &lt;a href="http://www.logicsupply.com/blog/2009/03/25/first-glimpse-at-intels-new-mini-itx-platform-johnstown/"&gt;a reference that this would work&lt;/a&gt;, but I had no success myself). Intel lists &lt;a href="http://www.intel.com/support/motherboards/desktop/d945gsejt/sb/CS-030350.htm"&gt;some Linux distributions that they have tested on the board&lt;/a&gt;, one of which is Ubuntu 8.10 (Intrepid). The installer for Ubuntu 8.10 Server indeed recognized the NIC, so beside the fact that I would settle for an earlier distribution, and not solve the network problem permanently, it could have worked.&lt;br /&gt;&lt;br /&gt;However, a problem with pre-Lenny Debian installers, like the one for Ubuntu 8.10, is that the partition editor has a serious flaw in that it cannot correctly handle encrypted partitions set up on a RAID device. There is &lt;a href="http://wiki.debian.org/DebianInstaller/RAIDvsCrypto"&gt;a workaround for this&lt;/a&gt;, which I tried, and unfortunately did not get to work.&lt;br /&gt;&lt;br /&gt;My brute force solution, growing tired of the problems I encountered, was to hook up the hard drives to my AMD 64 X2 4850e desktop computer, and perform the installation of Debian Lenny using the DVD drive and network card (another Realtek NIC that the installer could handle) of that machine. A small bump in the road was that the installer hanged when booting, which I solved by specifying the option acpi=off to the kernel. I found a reference to &lt;a href="http://www.mail-archive.com/debian-user@lists.debian.org/msg481012.html"&gt;another person having the same problem&lt;/a&gt;, in which case the problem was solved by specifying pci=off. For me, this resulted in being able to boot, but prevented the detection of my SATA DVD burner. I now was able to set up the partitioning correctly, and let the installer percolate for about 24 hours, since the 1TB encrypted RAID partition had to be initialized with random data.&lt;br /&gt;&lt;br /&gt;With the discs still wired to the desktop computer, I booted into the new system, and used the working network connection to dowload and compile the correct kernel module for the Ethernet adapter. The instructions for doing this can be found &lt;a href="http://amk1.wordpress.com/2009/06/09/realtek-8168-module-issue/"&gt;here&lt;/a&gt;. Although in that case the Intel D945GCLF2 board was used, which has the RTL8111C NIC, the D945GSEJT features the RTL8111DL Ethernet controller, which is handled by the same kernel module (r8168), as can be seen on &lt;a href="http://www.realtek.com/downloads/downloadsView.aspx?Langid=1&amp;amp;PNid=5&amp;amp;PFid=5&amp;amp;Level=5&amp;amp;Conn=4&amp;amp;DownTypeID=3&amp;amp;GetDown=false#RTL8111B/RTL8168B/RTL8111/RTL8168%3Cbr%3ERTL8111C/RTL8111CP/RTL8111D%28L%29%3Cbr%3ERTL8168C/RTL8111DP"&gt;the Realtek download page for the drivers&lt;/a&gt;.&lt;span style="font-weight: bold;"&gt;&lt;/span&gt; After following all of the advice given in the mentioned blog entry, including the module blacklisting, the kernel kept loading the wrong (ie r8169) module when I moved the discs to the Intel Atom board. I tracked this issue down to the file /etc/udev/rules.d/70-persistent-net.rules, which listed the r8169 module, which was the correct module for the desktop AMD computer NIC. Commenting out all the lines in this file and rebooting, udev reconfigured the network setup, and I finally had everything working correctly on the mini-ITX server.&lt;br /&gt;&lt;br /&gt;One artefact from the installation procedure was that the acpi=off option made its way from the installer to the final install. Removing this option worked fine on the Intel board, and enabled me to use frequency scaling, which of course is a very desirable feature for an always-on system as this one.&lt;br /&gt;&lt;br /&gt;So there you have it. Lots of obstacles along the way, but the end result was well worth it. I hope this can serve to ease the burden of anyone else planning on a similar setup.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-4730681140445774866?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/4730681140445774866/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/06/i-previously-blogged-about-qnap-turbo.html#comment-form' title='12 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/4730681140445774866'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/4730681140445774866'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/06/i-previously-blogged-about-qnap-turbo.html' title='Setting Up a D945GSEJT Server with Debian Lenny'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/_jZ9Wz9tGohQ/Skc6SkYnKHI/AAAAAAAAAX8/gcYMag1_LdM/s72-c/DSC_0103.JPG' height='72' width='72'/><thr:total>12</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-1085028567572551416</id><published>2009-03-28T06:28:00.000-07:00</published><updated>2009-03-28T07:35:56.764-07:00</updated><title type='text'>Back to Xandros</title><content type='html'>I've gone full circle, back to using the factory installed "Xandros" distro on my Asus Eee 900.&lt;br /&gt;I had some hurdles to jump on the way&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/_jZ9Wz9tGohQ/Sc4u6nNLTmI/AAAAAAAAAXY/z5qSmQ1jbRQ/s1600-h/IMG_3509.JPG"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 320px; height: 240px;" src="http://2.bp.blogspot.com/_jZ9Wz9tGohQ/Sc4u6nNLTmI/AAAAAAAAAXY/z5qSmQ1jbRQ/s320/IMG_3509.JPG" alt="" id="BLOGGER_PHOTO_ID_5318239794462674530" border="0" /&gt;&lt;/a&gt;. First of all, I had misplaced the Eee packaging including the support and recovery discs. Then, as some sort of bizarre irony, you need to run a Windows program from the support CD to create the reinstallation USB stick from the recovery DVD (it is of course possible to do it manually in Linux, but I wanted to do it the legit way). The only Windows installation I have is the one on my quadruple-boot Dell Inspiron, which cannot read DVD-R. Back to my main computer, where I made ISO images of the support and recovery discs and set up Samba to transfer the files to the Inspiron. On the Inspiron, I used &lt;a href="http://www.daemon-tools.cc/ENG/home"&gt;Deamon tools&lt;/a&gt; to mount the isos, and was finally able to make the reinstallation USB stick.&lt;br /&gt;As a pleasant surprise, the factory Linux has had quite a lot of updates since I last tried it in June last year. Actually, this distro is perfect for my needs right now. All the programs I would typically use on a trip (which is what I bought the Eee for in the first place) are there, mainly a web browser and instant messengers (Skype without the audio cracking up like in &lt;a href="http://geteasypeasy.com/"&gt;Easy Peasy&lt;/a&gt; and &lt;a href="http://www.eeebuntu.org/"&gt;EeeBuntu&lt;/a&gt;, at last!). One addition since June is a large directory of programs available through the so called "Eee download". Better still, even if the developers have tried to hide as much as possible behind the main interface, you can access a terminal with Ctrl-T in the file manager. Now things get interesting. Updates are available through apt-get, ssh turns out to be installed by default, etc. There is actually a decent catalogue of programs available through apt-get from http://update.eeepc.asus.com/, to which /etc/apt/sources.list points. This, and the fact that the OS boots in a matter of seconds (as opposed to other distros for the Eee) makes me forget about transgressions like the XP-like theme or that USB sticks are auto-mounted as D:. This machine has risen from the ashes, and now I'm ready for my upcoming trips to Spain and Italy!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-1085028567572551416?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/1085028567572551416/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/back-to-xandros.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/1085028567572551416'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/1085028567572551416'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/back-to-xandros.html' title='Back to Xandros'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/_jZ9Wz9tGohQ/Sc4u6nNLTmI/AAAAAAAAAXY/z5qSmQ1jbRQ/s72-c/IMG_3509.JPG' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-2139949136428859907</id><published>2009-03-27T02:17:00.000-07:00</published><updated>2009-03-27T03:18:35.604-07:00</updated><title type='text'>Asus Eee PC 900 Recovery Blues</title><content type='html'>I have tried quite some distros on my &lt;a href="http://eeepc.asus.com/global/product900.html?n=0"&gt;Asus Eee PC 900&lt;/a&gt;, but I have finally done full circle, and decided to reinstall the "Xandros" OS that was installed on delivery. With the Ubuntu-based distros for the Eee that I have tried (&lt;a href="http://www.geteasypeasy.com/"&gt;Easy Peasy&lt;/a&gt;, &lt;a href="http://www.eeebuntu.org/"&gt;eeebuntu&lt;/a&gt;, and &lt;a href="http://www.ubuntu.com/"&gt;Ubuntu&lt;/a&gt; itself) the sound in Skype cracks up. This is &lt;a href="http://forum.eeebuntu.org/viewtopic.php?f=28&amp;amp;t=1337"&gt;a common issue&lt;/a&gt;, but I have not been able to get it to work, despite all the tips and tricks I have found and tried. The closest I have come to a working setup on the Eee is with &lt;a href="http://fluxflux.net/fluxflux-eee/index-en.html"&gt;FluxFlux-Eee&lt;/a&gt;, where I get perfect sound in Skype. One major drawback of all these compared to the factory distro is the looong boot time, and that is one of the main reasons I have decided to revert. An alternative would be &lt;a href="http://moblin.org/"&gt;Moblin&lt;/a&gt;, but it is still only in alpha, and only works on SSE3-capable processors (read: Atom - the Celeron in the 900 does not have SSE3).&lt;br /&gt;&lt;br /&gt;Unfortunately, I have no idea where I have put the recovery CD that came with the Eee PC, or if I even have it. The recovery CD is of course not downloadable from Asus (but the source code is, wonder how many people have actually tried to compile it). For some odd reason, there is a &lt;a href="http://sourceforge.net/project/showfiles.php?group_id=215613"&gt;recovery image available on SourceForge&lt;/a&gt;, but only for the 701. Using that image actually works on my 900, but I don't get any sound (another &lt;a href="http://forum.eeeuser.com/viewtopic.php?id=32779"&gt;confirmed issue&lt;/a&gt; without solution). As a last resort I could buy a replacement for the recovery cd from &lt;a href="http://asusparts.eu/"&gt;ASUSparts&lt;/a&gt;, but to shell out another €15 on the 900 is grim, since I am aldready beating myself up for not waiting for the Atom-based netbooks.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-2139949136428859907?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/2139949136428859907/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/asus-eee-pc-900-recovery-blues.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/2139949136428859907'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/2139949136428859907'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/asus-eee-pc-900-recovery-blues.html' title='Asus Eee PC 900 Recovery Blues'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-6219003556076284202</id><published>2009-03-26T05:09:00.000-07:00</published><updated>2009-03-27T03:09:42.158-07:00</updated><title type='text'>Finally... Clean URLs in Drupal with Debian Lenny</title><content type='html'>I managed to find out how to enable clean URLs in Drupal (I did a manual installation of Drupal 6.10) on Debian 5.0 (Lenny). What bliss. The correct advice was found among the comments to the &lt;a href="http://drupal.org/node/43783#comment-1402740"&gt;"clean URLs with Debian" page&lt;/a&gt; that I referred to before. In order to save some potential readers the trouble, and as a reminder to myself, here is the recipe (everything must be run with root privileges):&lt;br /&gt;&lt;br /&gt;&lt;ol&gt;&lt;li&gt;Execute &lt;span style="font-family:courier new;"&gt;a2enmod rewrite&lt;/span&gt;&lt;code&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/code&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt; to enable &lt;span style="font-size:100%;"&gt;&lt;span style="font-family:courier new;"&gt;mod_rewrite&lt;/span&gt;&lt;/span&gt;. You can run &lt;span style="font-family:courier new;"&gt;apache2ctl -M &lt;span style="font-family:arial;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-family:georgia;"&gt;to verify that the module is loaded (shows up as &lt;span style="font-family:courier new;"&gt;rewrite_module&lt;/span&gt; in the list) after performing step 3 below.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-family:georgia;"&gt; Change the file &lt;span style="font-family:courier new;"&gt;/etc/apache2/sites-available/default&lt;/span&gt; so that the  section &lt;span style="font-family:courier new;"&gt;Directory /var/www/&lt;/span&gt; includes the statement &lt;span style="font-family:courier new;"&gt;&lt;directory&gt;AllowOverride All&lt;/directory&gt;&lt;/span&gt; instead of &lt;span style="font-family:courier new;"&gt;AllowOverride None.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;li&gt;&lt;span style="font-family:courier new;"&gt;&lt;span style="font-family:arial;"&gt;&lt;span style="font-family:times new roman;"&gt;&lt;span style="font-family:georgia;"&gt;&lt;span style="font-family:courier new;"&gt;&lt;/span&gt;Reload apache modules by issuing &lt;span style="font-family:courier new;"&gt;/etc/init.d/apache2 force-reload&lt;/span&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ol&gt;After this you can enable clean URLs through the administration menu in Drupal.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-6219003556076284202?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/6219003556076284202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/i-managed-to-find-out-how-to-enable.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/6219003556076284202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/6219003556076284202'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/i-managed-to-find-out-how-to-enable.html' title='Finally... Clean URLs in Drupal with Debian Lenny'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-7682158180579519030</id><published>2009-03-25T04:51:00.000-07:00</published><updated>2009-03-25T05:15:44.681-07:00</updated><title type='text'>QNAP TS-209 II Research</title><content type='html'>My research about the &lt;a href="http://www.qnap.com/pro_detail_feature.asp?p_id=93"&gt;QNAP TS-209 II&lt;/a&gt; continues. It turns out that people are very satisfied with all aspects of this device, except the 70mm fan, that one person described as being louder than his first full tower PC from 1984. Fortunately, I found &lt;a href="http://forum.qnap.com/viewtopic.php?f=24&amp;amp;t=291"&gt;some creative advice&lt;/a&gt; on how to modify the &lt;a href="http://www.qnap.com/pro_detail_feature.asp?p_id=93"&gt;TS-209&lt;/a&gt; to make it quieter. The way to do it seems to be to use an 80mm fan (there are some quiet ones from Noctua for example) together with a 70mm to 80mm adapter. These adapters are not too common, but I found some at &lt;a href="http://www.kustompcs.co.uk/"&gt;Kustom&lt;/a&gt; (UK, no chance of getting them here in Sweden it seems).&lt;br /&gt;&lt;br /&gt;At the same time, I'm studying up on &lt;a href="http://drupal.org/"&gt;Drupal&lt;/a&gt; to be able to set up a website if and when I get the TS-209. The LAMP stack and &lt;a href="http://drupal.org/"&gt;Drupal&lt;/a&gt; are installed on the Dell Inspiron now, which gives me a nice base to experiment on.&lt;br /&gt;&lt;br /&gt;I promised some ranting, and I didn't have to wait long to find something to get frustrated about. In Drupal, there is a possibility to get "&lt;a href="http://drupal.org/node/15365"&gt;clean URLs&lt;/a&gt;" for your website, even &lt;a href="http://drupal.org/node/43783"&gt;a page with instructions for Debian&lt;/a&gt;. Sounds easy? Well, the line "&lt;span style="font-size:100%;"&gt;Note: This article needs to be updated for Debian "Etch" and "Lenny" releases. (as of March 2009)" should have given me a hint that it was bound not to work. There is just too much outdated information out there. Mental note: write down how I did it if I do get it to work, so that someone is spared from the same insane forum hunt.&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-7682158180579519030?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/7682158180579519030/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/my-research-about-qnap-ts-209-ii.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/7682158180579519030'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/7682158180579519030'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/my-research-about-qnap-ts-209-ii.html' title='QNAP TS-209 II Research'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-5443550714364163060</id><published>2009-03-24T08:13:00.000-07:00</published><updated>2009-03-24T08:31:41.565-07:00</updated><title type='text'>DI-624 not the culprit?</title><content type='html'>Last week I was struggling with my SSH server on my Dell Inspiron running &lt;a href="http://www.gentoo.org/"&gt;Gentoo&lt;/a&gt;. The connection was reset randomly, and so frequently that it was practically unusable. I thought my &lt;a href="http://support.dlink.com/products/view.asp?productid=DI-624_revC"&gt;DI-624&lt;/a&gt; router was to blame, since various posts accused that router model for being plagued with problems. As I often do, I grew tired of &lt;a href="http://www.gentoo.org/"&gt;Gentoo&lt;/a&gt; and switched to experimenting on the &lt;a href="http://debian.org/"&gt;Debian&lt;/a&gt; installation on the same computer (I switched &lt;a href="http://www.ubuntu.com/"&gt;Ubuntu&lt;/a&gt; Intrepid for &lt;a href="http://www.debian.org/"&gt;Debian&lt;/a&gt; Lenny last week). Strangely enough, with &lt;a href="http://www.debian.org/"&gt;Debian&lt;/a&gt; I don't experience any connection resets. As usual with Linux, I can't help but wonder what was wrong with the &lt;a href="http://www.openssh.com/"&gt;OpenSSH&lt;/a&gt; setup on &lt;a href="http://www.gentoo.org/"&gt;Gentoo&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;I often wonder if there is no better way to organize Linux support than forums. It's not often that you find something usable browsing forum posts. All too often the posts are outdated, or everyone is as confused as you are. Try finding information about whether a specific wireless network card is supported under Linux for example. I think that rant will be the topic of the next post.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-5443550714364163060?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/5443550714364163060/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/di-624-not-culprit.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/5443550714364163060'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/5443550714364163060'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/di-624-not-culprit.html' title='DI-624 not the culprit?'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-2796467632775690300</id><published>2009-03-19T09:45:00.001-07:00</published><updated>2009-03-19T10:00:22.899-07:00</updated><title type='text'>Connection Reset by Peer</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://support.dlink.com/products/images/di614+/di614+.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 300px; height: 244px;" src="http://support.dlink.com/products/images/di614+/di614+.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;I got the Laptop-based Gentoo server replacement for a future QNAP TS-209 up and running. The only problem is that SSH connections to the server are extremely unreliable and I keep getting disconnected, which of course is very annoying. How do you track down an error like this? My main suspect is my router, though. I have understood from posts on other sites that the DI-624 is notorious for dropping connections, locking up, being sluggish, you name it. Thinking about it, I have experienced quite a lot of problems downloading larger package updates over the years. Some days have been worse than others, and I've actually believed it was my ISP. Apparently Linksys are renowned for making good routers, so maybe it is time to upgrade to something more stable. If so, I will have to ask myself if it is time to upgrade to Gigabit ethernet as well...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-2796467632775690300?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/2796467632775690300/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/connection-reset-by-peer.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/2796467632775690300'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/2796467632775690300'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/connection-reset-by-peer.html' title='Connection Reset by Peer'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-3782495896308314621</id><published>2009-03-18T04:56:00.000-07:00</published><updated>2009-03-18T07:54:14.572-07:00</updated><title type='text'>Hardware Recycling</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://gizmodo.com/assets/resources/2008/04/TS-209-front.jpg"&gt;&lt;img style="margin: 0pt 10px 10px 0pt; float: left; cursor: pointer; width: 494px; height: 419px;" src="http://gizmodo.com/assets/resources/2008/04/TS-209-front.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;As I wrote yesterday, I would really like to get my hands on a &lt;a href="http://www.qnap.com/pro_detail_feature.asp?p_id=93"&gt;QNAP TS-209 II&lt;/a&gt;. It seems like an ideal home server; it has extremely low power consumption, and you can install Linux on it to tailor it to your own needs. With other NAS devices, it seems what you get is a (buggy) proprietary firmware with a limited array of services.&lt;br /&gt;&lt;br /&gt;Waiting for the TS-209 to make it to the top of my gadget shopping list, I decided to make do with what I have. The revamped Dell Inspiron 2650 that was the subject of my &lt;a href="http://jonashagmar.blogspot.com/2006/06/getting-more-from-your-dell-inspiron.html"&gt;very first post&lt;/a&gt; is a quadruple-boot machine these days (Windows XP, &lt;a href="http://www.ubuntu.com/"&gt;Ubuntu&lt;/a&gt;, &lt;a href="http://www.linuxfromscratch.org/"&gt;Linux From Scratch&lt;/a&gt; and &lt;a href="http://www.gentoo.org/"&gt;Gentoo&lt;/a&gt;). I decided to tailor the Gentoo installation to act as a test home server, since it's very customizable, and fun to tweak.&lt;br /&gt;&lt;br /&gt;Gentoo is what I started out with when I was getting to know Linux. In Gentoo, you compile all of the software on your machine. It might take you a couple of days to compile all the packages needed to get a Gnome desktop, but once you do, it is compiled specifically for your processor type, and exactly with the features that you have selected. Gentoo is a lot of fun if you don't mind having all-night compile sessions on your computer once in a while, or pulling your hair over some bizarre error that you solve ten days later realizing it was due to some version inconsistency deep down in the dependency tree. After a while, the hair pulling was too much for me. Since I switched to Ubuntu on the machines I use routinely, the amount of time spent on maintenance has decreased dramatically. But for a project like this, when you want to learn how all the bits and pieces fit together, Gentoo is perfect.&lt;br /&gt;&lt;br /&gt;I have come so far as to administer the system remotely via SSH, and it is very satisfying to be able to log in on my lunch break and see 'emerge -e world' chew away on the packages, optimizing the system for my old Celeron.&lt;br /&gt;&lt;br /&gt;Before I sign off, I have to make a note that &lt;a href="http://www.gnu.org/software/screen/"&gt;GNU Screen&lt;/a&gt; is probably one of the most overlooked packages there is. I had never heard of it until a few days ago, but it is that package that makes it possible to do what I just described - to detatch from a terminal session and attach to it at a later time. Be sure to check it out.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-3782495896308314621?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/3782495896308314621/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/what-you-do-when-you-drool-over-new.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/3782495896308314621'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/3782495896308314621'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/what-you-do-when-you-drool-over-new.html' title='Hardware Recycling'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-1815274056857952723</id><published>2009-03-17T06:57:00.000-07:00</published><updated>2009-03-17T07:52:07.429-07:00</updated><title type='text'>The Quest for a Media Server</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://www.liliputing.com/wp-content/uploads/2009/03/eee-box-b208.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer; width: 490px; height: 327px;" src="http://www.liliputing.com/wp-content/uploads/2009/03/eee-box-b208.jpg" alt="" border="0" /&gt;&lt;/a&gt;I have been on the lookout for a "Media Server" for quite some time now - a computer with very low power consumption that could run Linux and had accelerated video decoding with HDMI output. Media players similar to the &lt;a href="http://www.tvix.co.kr/eng/"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_0"&gt;TViX&lt;/span&gt; &lt;/a&gt;are finally being launched by other companies (&lt;a href="http://www.westerndigital.com/en/products/products.asp?driveid=572&amp;amp;language=en"&gt;Western Digital&lt;/a&gt;, &lt;a href="http://www.obsessable.com/home-video/qnap-nmp1000/"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_1"&gt;QNAP&lt;/span&gt;&lt;/a&gt;). Hopefully we will see the segment grow into the main stream user community, which will put more pressure on manufacturers to come up with firmwares that are less buggy.&lt;br /&gt;&lt;br /&gt;Another interesting range of products is the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_2"&gt;NAS&lt;/span&gt; segment. Network Attached Storage like the &lt;a href="http://www.qnap.com/pro_detail_feature.asp?p_id=83"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_3"&gt;QNAP&lt;/span&gt; Turbo Station&lt;/a&gt; units have grown beyond acting as simple storage units and offer services such &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_4"&gt;as&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_5"&gt;BitTorrent&lt;/span&gt; clients, FTP and HTTP servers, in fact complete Linux systems. In the case of the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_6"&gt;QNAP&lt;/span&gt; Turbo Station, you can in fact install &lt;a href="http://www.cyrius.com/debian/orion/qnap/"&gt;Debian on it&lt;/a&gt;, as it seems without too much hassle.&lt;br /&gt;&lt;br /&gt;With their ~20W footprints, these products are great replacements for a &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_7"&gt;HTPC&lt;/span&gt; in the case of the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_8"&gt;TViX&lt;/span&gt;-like media players, and for a regular &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_9"&gt;ATX&lt;/span&gt;-based home server in the case of the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_10"&gt;NAS&lt;/span&gt;. But what if you could have both? Would it be impossible to equip an ARM-based device like the Turbo Station with a graphics processor like the Sigma Designs chip in the &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_11"&gt;TViX&lt;/span&gt;?&lt;br /&gt;&lt;br /&gt;As an alternative, it seems that &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_12"&gt;Asus&lt;/span&gt; are releasing the second generation of &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_13"&gt;eee&lt;/span&gt; Boxes, and while the "low-end" models are &lt;a href="http://reviews.cnet.co.uk/desktops/0,39029981,49301562,00.htm"&gt;not powerful enough to play &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_14"&gt;HD&lt;/span&gt; material&lt;/a&gt;, maybe the "high-end" &lt;a href="http://www.google.com/search?source=ig&amp;amp;hl=en&amp;amp;rlz=&amp;amp;=&amp;amp;q=eee+box+b208&amp;amp;btnG=Google+Search&amp;amp;aq=f"&gt;b208&lt;/a&gt; is, with its dual-core Atom processor. Since they are equipped with &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_15"&gt;ATI&lt;/span&gt; &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_16"&gt;Radeon&lt;/span&gt; chips, one would think that video decoding offloading to the graphics processor should be no problem, at least in Windows, which still seems to be the main focus of graphics card manufacturers when it comes to driver development. On Linux, only &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_17"&gt;nVidia&lt;/span&gt; seem to have a working framework for video decoding (&lt;a href="http://en.wikipedia.org/wiki/VDPAU"&gt;&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_18"&gt;VDPAU&lt;/span&gt;&lt;/a&gt;, still too fresh to have made its way into most Linux &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_19"&gt;distibutions&lt;/span&gt; it seems). &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_20"&gt;AMD&lt;/span&gt;/&lt;span class="blsp-spelling-error" id="SPELLING_ERROR_21"&gt;ATI&lt;/span&gt; have a great open source initiative going on (as opposed to &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_22"&gt;nVidia&lt;/span&gt;), but so far there seems to be no way of offloading video decoding in Linux with the proprietary Catalyst driver or the open source &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_23"&gt;Radeon&lt;/span&gt; and &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_24"&gt;RadeonHD&lt;/span&gt; drivers for &lt;span class="blsp-spelling-error" id="SPELLING_ERROR_25"&gt;ATI&lt;/span&gt; cards. The Quest continues...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-1815274056857952723?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/1815274056857952723/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/quest-for-media-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/1815274056857952723'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/1815274056857952723'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2009/03/quest-for-media-server.html' title='The Quest for a Media Server'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-30238143.post-115124935446726965</id><published>2006-06-25T06:54:00.000-07:00</published><updated>2006-06-25T08:31:46.026-07:00</updated><title type='text'>Getting More From Your Dell Inspiron 2650</title><content type='html'>January 2003 - I had been working extra during the Christmas holiday, and set out to buy a kick-ass laptop for my newly-earned money. After surfing around for offers, I decided on a Dell Inspiron 2650. I remember my pride when I showed off my new companion to all of my friends. There was no end to its capabilites... or was there? A few years later, I had almost retired the Inspiron. The puny 20 GB hard drive and 256 MB memory, and the insatiable apetite for system resources of the pre-installed Windows XP was a combination that made me choose my stationary computer for almost all computer tasks. I had even started thinking about buying a new laptop, but &lt;a href="http://www.russellnewquist.net/index.php?p=789&amp;more=1&amp;c=1&amp;tb=1&amp;pb=1"&gt;Russ Newquist's weblog&lt;/a&gt; opened my eyes to the possibility of upgrading the Inspiron to squeeze another couple of years out of it. Please reconsider if this is something that you are thinking about doing yourself. My warranty had expired a long time ago, and I was prepared for the possibility that what I was about to do could damage the system beyond repair. Still, my heart almost stopped when the computer refused to boot up after I had replaced a memory module. It turned out that the only problem was that the memory module wasn't properly inserted, luckily. Anyway, if you decide to follow this upgrading guide, you cannot say that you haven't been warned. Also note that upgrading to a faster hard drive will &lt;span style="font-weight: bold;"&gt;seriously&lt;/span&gt; affect the lifetime of the battery. I never run the laptop on batteries myself, so for me that wasn't an issue. With that said, upgrading the computer (together with switching to Gentoo Linux instead of Win XP) has made me switch back to using the laptop almost exlusively. Is it faster now? I never think about the laptop being slow anymore, so the answer has to be yes! Enough said, let's get on with upgrading the Inspiron.&lt;br /&gt;&lt;br /&gt;I replaced the two memory modules in the Inspiron, as the laptop was equipped with a 2x128MB configuration. The maximum amount of memory the Inspiron can handle is 2x256MB for a total of 512MB. The old memory modules were  PC2100 SODIMMs. I bought two PC2700 SODIMMs, as these were the slowest available. As for the hard drive, I went for a 100GB 7200rpm Seagate 2.5'' hard drive with 8MB cache, a major improvement over the old 4200rpm one.&lt;br /&gt;&lt;br /&gt;We'll take the hardest part first - replacing one of the memory modules located under the keyboard. Start by removing two screws on the back of the hinges that hold the screen.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0087.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0087.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0089.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0089.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;Flip the screen as far back as possible, and remove the plastic part covering the power button by gently prying it off with a screwdriver.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0091.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0091.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0092.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0092.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;There are four screws holding the keyboard in place. Remove these and &lt;span style="font-weight: bold;"&gt;gently&lt;/span&gt; lift off the keyboard. Be careful not to damage the flat cable attaching the keyboard to the mother board. Detatch the keyboard connector from the mother board. Continue by removing the screws holding the plate with a hole for the keyboard connector in place and the screws on the screen connector, shown in red below.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0095.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0095.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Remove the plate and replace the memory module.&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0096.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0096.jpg" alt="" border="0" /&gt;&lt;/a&gt;Retrace your steps to reassemble the computer. Now turn the laptop over and remove the screw that lets you access the other memory module. Shown below is also the location of the screw giving you access to the hard drive.&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0099.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0099.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0100.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0100.jpg" alt="" border="0" /&gt;&lt;/a&gt;The memory modules are done, and it's time to turn our attention to the hard drive. This part is surprisingly easy. Remove the screw and slide the old hard drive out. Remove four screws on the side to remove the hard drive from the caddy. Remove the connector from the old hard drive and put it on the new one. Reassemble the caddy and slide it in the computer. Good luck!&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0101.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0101.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://photos1.blogger.com/blogger/5818/1232/1600/new-IMG_0103.jpg"&gt;&lt;img style="margin: 0px auto 10px; display: block; text-align: center; cursor: pointer;" src="http://photos1.blogger.com/blogger/5818/1232/320/new-IMG_0103.jpg" alt="" border="0" /&gt;&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/30238143-115124935446726965?l=jonashagmar.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://jonashagmar.blogspot.com/feeds/115124935446726965/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://jonashagmar.blogspot.com/2006/06/getting-more-from-your-dell-inspiron.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/115124935446726965'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/30238143/posts/default/115124935446726965'/><link rel='alternate' type='text/html' href='http://jonashagmar.blogspot.com/2006/06/getting-more-from-your-dell-inspiron.html' title='Getting More From Your Dell Inspiron 2650'/><author><name>Jonas Hagmar</name><uri>http://www.blogger.com/profile/12743191232921844639</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
