<?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>Lepolt.com &#187; howto</title>
	<atom:link href="http://www.lepolt.com/blog/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lepolt.com/blog</link>
	<description>Random stuff from my head to your computer</description>
	<lastBuildDate>Sat, 27 Mar 2010 03:13:20 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Laptop Guts Make Great Picture Frames</title>
		<link>http://www.lepolt.com/blog/2008/03/09/laptop-guts-make-great-picture-frames/</link>
		<comments>http://www.lepolt.com/blog/2008/03/09/laptop-guts-make-great-picture-frames/#comments</comments>
		<pubDate>Mon, 10 Mar 2008 01:09:23 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[do it yourself]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.lepolt.com/blog/2008/03/09/laptop-guts-make-great-picture-frames/</guid>
		<description><![CDATA[Below I&#8217;ve created a photo documentary (uh, sure) of how I transformed my old laptop into a new digital picture frame.  Taking apart laptops is not very fun, especially since I was trying not to break anything!  There were ~100 tiny screws, parts taped on, and plastic pieces everywhere.  I used foam [...]]]></description>
			<content:encoded><![CDATA[<p>Below I&#8217;ve created a photo documentary (uh, sure) of how I transformed my old laptop into a new digital picture frame.  Taking apart laptops is not very fun, especially since I was trying <em>not</em> to break anything!  There were ~100 tiny screws, parts taped on, and plastic pieces everywhere.  I used foam board to help mount all of the components&#8230;oh, and of course a little duct tape.  All in all I&#8217;d say it turned out pretty well.  The fact that it works, of course, makes it all that much better!</p>
<p>Here is a picture of the laptop before disassembly<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0009.jpg' title='Laptop'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0009.thumbnail.jpg' alt='Laptop' /></a></p>
<div align="right">
<p>This is where I&#8217;ll begin taking things apart<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0010.jpg' title='Before disassembly'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0010.thumbnail.jpg' alt='Before disassembly' /></a></p>
</div>
<p>With the top row of buttons removed<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0011.jpg' title='No buttons'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0011.thumbnail.jpg' alt='No buttons' /></a></p>
<div align="right">
<p>Keyboard removed<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0012.jpg' title='No keyboard'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0012.thumbnail.jpg' alt='No keyboard' /></a></p>
</div>
<p>Heat sink and fan removed (this would prove later to be quite deadly)<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0013.jpg' title='No heat sink'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0013.thumbnail.jpg' alt='No heat sink' /></a></p>
<div align="right">
<p>After removing the LCD screen from the case<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0014.jpg' title='No LCD'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0014.thumbnail.jpg' alt='No LCD' /></a></p>
</div>
<p>Removing the motherboard from the case, attaching the screen, and firing it up<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0015.jpg' title='First run'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0015.thumbnail.jpg' alt='First run' /></a></p>
<div align="right">
<p>My dead processor on the bottom<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0016.jpg' title='Fried processor'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0016.thumbnail.jpg' alt='Fried processor' /></a></p>
</div>
<p>The donor PC<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0020.jpg' title='Donor PC'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0020.thumbnail.jpg' alt='Donor PC' /></a></p>
<div align="right">
<p>Booting up again<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0017.jpg' title='Booting up again'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0017.thumbnail.jpg' alt='Booting up again' /></a></p>
</div>
<p>Foam board was used to hold the LCD screen in place.  I cut out a rectangle that was a perfect size for the screen.  It&#8217;s secured in place with some duct tape.<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0022.jpg' title='Foam back'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0022.thumbnail.jpg' alt='Foam back' /></a></p>
<div align="right">
<p>It looks pretty good from the front, except for that flash<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0023.jpg' title='Front view'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0023.thumbnail.jpg' alt='Front view' /></a></p>
</div>
<p>Soldering some wire to the [old] power button.  Turns out it was too small for my skill so I have a cold solder&#8230;some hot glue and electrical tape should be okay&#8230;<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0025.jpg' title='Power button solder'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0025.thumbnail.jpg' alt='Power button solder' /></a></p>
<div align="right">
<p>Securing the motherboard in place with more duct tape.  Don&#8217;t worry, it&#8217;s not touching any of the electrical components.<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0028.jpg' title='Mobo in place'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0028.thumbnail.jpg' alt='Mobo in place' /></a></p>
</div>
<p>I drilled a hole in the top of the shadowbox frame for the pushbutton switch, ie, the &#8216;On&#8217; button.<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0029.jpg' title='Power button'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0029.thumbnail.jpg' alt='Power button' /></a></p>
<div align="right">
<p>LCD screen and motherboard in the shadowbox.  I cut out some additional pieces of foam board to make sure the back piece of the shadowbox doesn&#8217;t press down on the keyboard.<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0030.jpg' title='Back in place'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0030.thumbnail.jpg' alt='Back in place' /></a></p>
</div>
<p>The power brick is right in the middle of the entire length of cord, so I decided to keep it inside the box out of sight.<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0031.jpg' title='Power brick'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0031.thumbnail.jpg' alt='Power brick' /></a></p>
<div align="right">
<p>The nearly finished product.  All I need is a nice photo matte to throw in the front to give it that nice, finished look.<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0032.jpg' title='Almost done'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0032.thumbnail.jpg' alt='Almost done' /></a></p>
</div>
<p>Here it is hung on the wall, without a matte.<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0035.jpg' title='On the wall'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0035.thumbnail.jpg' alt='On the wall' /></a></p>
<div align="right">
<p>Lastly, a picture of all the parts I don&#8217;t need anymore.  Wow.  If you&#8217;re looking for something, let me know&#8230;I&#8217;ll make you a good deal!<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0033.jpg' title='Leftover parts'><img src='http://www.lepolt.com/blog/wp-content/uploads/2008/03/dscf0033.thumbnail.jpg' alt='Leftover parts' /></a></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lepolt.com/blog/2008/03/09/laptop-guts-make-great-picture-frames/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>A Transformation: Old Laptop &#8211;&gt; New Digital Picture Frame</title>
		<link>http://www.lepolt.com/blog/2008/03/06/a-transformation-old-laptop-new-digital-picture-frame/</link>
		<comments>http://www.lepolt.com/blog/2008/03/06/a-transformation-old-laptop-new-digital-picture-frame/#comments</comments>
		<pubDate>Fri, 07 Mar 2008 03:49:15 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[do it yourself]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.lepolt.com/blog/2008/03/06/a-transformation-old-laptop-new-digital-picture-frame/</guid>
		<description><![CDATA[In this post I will attempt to explain [in all the gory details] the steps I used to turn my old laptop into a do it yourself LCD digital picture frame.  This is a continuation on the last two posts, so I apologize if my loyal readers (all six 6,000 of them) are getting [...]]]></description>
			<content:encoded><![CDATA[<p>In this post I will attempt to explain [in all the gory details] the steps I used to turn my old laptop into a do it yourself LCD digital picture frame.  This is a continuation on the last two posts, so I apologize if my loyal readers (all <del>six</del> 6,000 of them) are getting tired of me beating this subject into the ground.  Don&#8217;t worry, I&#8217;m almost done.  The next post should have pictures.</p>
<p>From this point forward I will explain the howto software aspect of my new digital picture frame.</p>
<h1>Requirements:</h1>
<p><strong>1) Unused laptop capable of booting off USB, with Internet access</strong><br />
I used a Pentium III, 850MHz, with 256MB of RAM. This is probably complete overkill, but it&#8217;s what I had laying under the bed collecting dust.  Internet access [for my particular case] is only required to download software.  The ethernet jack on my computer was broken, so I actually set up almost everything on another PC, then transfered the flash drive to my laptop for the final product.  I have read other posts in which people used wireless internet to update the photos, and/or SSH into the machine to make modifications&#8230;but I will not touch on that here.</p>
<p><strong>2) USB drive</strong><br />
64MB is needed for the OS, and you can add as much onto that as you so desire for photo storage.  Keep in mind that most [older] laptop screens are probably only 1024 pixels wide, so the photos don&#8217;t need to be ultra high quality (ie, there is no need for 10 megapixel pics).  I used a 4GB flash drive, because that&#8217;s what I had laying around.  I think I have about 2GB of free space leftover after installing the OS and shrinking the photos.</p>
<p><strong>3) Damn Small Linux</strong> (<a href="http://damnsmalllinux.org/">link</a>)<br />
This was the best Linux distribution that I was able to find to install on a flash drive.  Damn Small Linux (DSL) provides a very small installation, and offers an option to install directly to a thumb drive without any hacking around.  I also tested out <a href="http://www.ubuntu.com/">Ubuntu</a> and <a href="http://www.debian.org/">Debian</a>, but wasn&#8217;t ever able to get them to boot off of the flash drive.  Those two distributions also required ~1GB of space so my install would have been extremely bloated, and the extra software would have been pointless for a picture frame.  I did get <a href="http://www.slax.org/">Slax</a> to install and boot up with no problems, but I was not able to find a good image viewer to use for a slideshow.  I found that a lot of these &#8220;pen drive Linux&#8221; versions don&#8217;t come with a whole slew of applications&#8230;and they shouldn&#8217;t.</p>
<p><strong>4) feh (.dsl package can be found <a href="http://www.frontiernet.net/~pictureframe/mydsl/feh.dsl">here</a>)</strong><br />
This is a very lightweight image viewer that I used to implement the photo slideshow.  There are probably other software options available, but I found a pre-built package for my situation.  It has a few nice scripting features that I was able to take advantage of.</p>
<p><strong>5) Unclutter (.dsl package can be found <a href="http://www.frontiernet.net/~pictureframe/mydsl/unclutter.dsl">here</a>)</strong><br />
This program is used for hiding the mouse cursor after a certain period of inactivity.  By default in DSL and with the feh slideshow, the mouse cursor never goes away.  In order to avoid an annoying arrow in the middle of the screen during a slideshow, I used Unclutter to take care of this.</p>
<h1>Setup Steps:</h1>
<p><strong>1) Install DSL on the flash drive.</strong>  Additional details, if you need them, can be found <a href="http://www.damnsmalllinux.org/wiki/index.php/Installing_to_a_USB_Flash_Drive#From_within_DSL">here</a>.  Boot off the Live CD, then &#8220;simply open the Main menu, go to Apps then Tools and select either a USBZIP or USBHDD and follow the prompts.&#8221;</p>
<p><strong>2) Upgrade to GNU Tools:</strong> (<a href="http://damnsmalllinux.org/wiki/index.php/Local_Startup_Documentation#GNU.2FLinux_.26_Debian_Compatibility">link</a>).  &#8220;from the system menu select Apps->Tools->Upgrade to GNU Utils.&#8221;  This will allow feh and Unclutter to work.</p>
<p><strong>3) Download feh and Unclutter .dsl files,</strong> and place them in your mydsl folder so they are loaded on boot.  gnu-utils.dsl should already be in that directory.  For me this was in /mnt/sda1/mydsl.<br />
feh (<a href="http://www.frontiernet.net/~pictureframe/mydsl/feh.dsl">http://www.frontiernet.net/~pictureframe/mydsl/feh.dsl</a>)<br />
Unclutter (<a href="http://www.frontiernet.net/~pictureframe/mydsl/unclutter.dsl">http://www.frontiernet.net/~pictureframe/mydsl/unclutter.dsl</a>)</p>
<p><strong>4) Create script to run the slideshow.</strong>  I used bash for this because the script is extremely basic and simple to implement.  I also decided to store my script file in the $HOME directory&#8230;for no real reason.  You could move this around if you wanted to.<br />
&nbsp;&nbsp;&nbsp;file:$HOME/start_slideshow.sh<br />
&nbsp;&nbsp;&nbsp;1> #!/bin/bash<br />
&nbsp;&nbsp;&nbsp;2> feh -rzF -D 60 /location/to/your/photos/<br />
&nbsp;&nbsp;&nbsp;3> sudo shutdown -h +1<br />
Line 2 will start feh searching the directory recursively, displaying images at random, full screen, and at 60 second intervals.  The script will not continue past line 2 since I didn&#8217;t use the &#8216;&#038;&#8217; at the end of the command to run the process in the background.  This is good, however, because then we can gracefully shutdown the system with the second line by exiting feh.  I exit feh by pressing &#8216;Q&#8217; on the keyboard&#8230;not the most beautiful solution, but it works.  Line 3 will halt the machine in 1 minute, giving you time to kill the shutdown sequence (sudo shutdown -c) if you would like to gain access to the desktop again.<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/start_slideshow.sh' title='start_slideshow.sh'>Download my example</a></p>
<p><strong>5) Comment out the line in .jwmrc that opens the root menu.</strong>  I did this so that my full screen slideshow was really full screen.<br />
&nbsp;&nbsp;&nbsp;file:$HOME/.jwmrc<br />
&nbsp;&nbsp;&nbsp;comment out: RootMenu height=&#8221;20&#8243; onroot=&#8221;123&#8243;<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/jwmrc' title='jwmrc'>Download my example</a></p>
<p><strong>6) Edit .xinitrc</strong> to automatically start Unclutter and the slideshow when the X Desktop starts<br />
&nbsp;&nbsp;&nbsp;file:$HOME/.xinitrc<br />
&nbsp;&nbsp;&nbsp;x1> /usr/X11R6/bin/unclutter &#038;<br />
&nbsp;&nbsp;&nbsp;x2> $HOME/start_slideshow.sh &#038;<br />
&nbsp;&nbsp;&nbsp;x3> xset s off<br />
Line 1 starts Unclutter, line 2 starts the slideshow, and line 3 turns the screensaver off so the slideshow will not be interrupted.<br />
<a href='http://www.lepolt.com/blog/wp-content/uploads/2008/03/xinitrc' title='xinitrc'>Download my example</a></p>
<p><strong>7) Prepare photos.</strong>  In my case, the flash drive partition that didn&#8217;t hold the OS was located at /mnt/sda1.  This was the perfect place to store my photos, especially since this partition could be accessed by my Mac.  I created a subdirectory called &#8216;photos&#8217; and copied 4000 files in there.</p>
<p>So there you have it, the gory details on how I set up the software for my digital picture frame.  I&#8217;ll discuss the hardware aspect at a later date.</p>
</p>
<p>Here are a few additional links that I used for reference:<br />
<a href="http://www.thewares.net/item/33">http://www.thewares.net/item/33</a><br />
<a href="http://www.frontiernet.net/~pictureframe/">http://www.frontiernet.net/~pictureframe/</a><br />
<a href="http://linuxbrit.co.uk/feh/wiki/FehHelp">http://linuxbrit.co.uk/feh/wiki/FehHelp</a></p>
<p>Edit (July 31, 2008): Apparently the links for the .dsl packages of feh and unclutter don&#8217;t work anymore, so I&#8217;ll post them here:</br></p>
<ul>
<li><a href="http://www.lepolt.com/blog/wp-content/uploads/2008/07/feh.dsl">feh</a></li>
<li><a href='http://www.lepolt.com/blog/wp-content/uploads/2008/07/unclutter.dsl'>Unclutter</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.lepolt.com/blog/2008/03/06/a-transformation-old-laptop-new-digital-picture-frame/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
	</channel>
</rss>
