<?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; Linux</title>
	<atom:link href="http://www.lepolt.com/blog/category/linux/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>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>
		<item>
		<title>A Do It Yourself Screw-up</title>
		<link>http://www.lepolt.com/blog/2008/02/29/a-do-it-yourself-screw-up/</link>
		<comments>http://www.lepolt.com/blog/2008/02/29/a-do-it-yourself-screw-up/#comments</comments>
		<pubDate>Fri, 29 Feb 2008 15:38:33 +0000</pubDate>
		<dc:creator>Jonathan</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[do it yourself]]></category>
		<category><![CDATA[technology]]></category>

		<guid isPermaLink="false">http://www.lepolt.com/blog/2008/02/29/a-do-it-yourself-screw-up/</guid>
		<description><![CDATA[Last week for some reason unknown to anyone, I decided it would be a good idea to take my old laptop and morph it into a digital picture frame.  You know what I’m talking about; those picture frames that you plug into a wall while connecting a memory card and then the photo on [...]]]></description>
			<content:encoded><![CDATA[<p>Last week for some reason unknown to anyone, I decided it would be a good idea to take my old laptop and morph it into a digital picture frame.  You know what I’m talking about; those picture frames that you plug into a wall while connecting a memory card and then the photo on the LCD alternates so that instead of displaying only one photo, you can display thousands.  </p>
<p>My laptop is/was 6.5 years old, so it was pretty much worthless.  To make laptop operation even more worthless, the battery had been completely dead for probably three years.  Laptop – battery = very small desktop.  Also, the power jack was not in the best condition, so if you moved the computer in the wrong direction or nudged the power cord, the darn thing shutoff immediately (when I said the battery was dead I really meant it).  So if all of this didn’t make my laptop worthless enough, icing on the cake is that the Ethernet jack was also busted, so I couldn’t even plug it in to get on the internet.  Who cares about wireless internet when you still have to plug the thing in to the wall?</p>
<p>Case in point: the computer worked (sort of), but was practically worthless.  I don’t even know the last time I turned it on.</p>
<p>Making a do it yourself (DIY) picture frame should be easy enough, right?  It seemed that all I needed to do was strip out all the unnecessary hardware (CD-ROM, floppy, battery, hard drive), slap a small version of Linux on a bootable flash drive, and write some scripts to run a slideshow once the computer started.  After that all that needed to be done was disassemble the laptop, and mount the final results in a form suitable to hang on a wall somewhere.</p>
<p>I may go through the gory details later, but for now I’ll stick to the basics.  After installing multiple versions of Linux (<a href="http://www.ubuntu.com/">Ubuntu</a>, <a href="http://www.debian.org/">Debian</a>, <a href="http://www.slax.org/">Slax</a>, <a href="http://damnsmalllinux.org/">Damn Small Linux</a>) multiple times and even attempting a Windows install, I kept running into stupid issues which mostly came down to not being able to boot off the flash drive and not being able to load the software I needed/wanted for the slideshow.  After some “research” that consisted of a lot of Google, cussing, and burning CD-R’s, I finally chose Damn Small Linux (DSL).  I’m not kidding, that’s the name of this distribution, and it’s really damn small.  The download is about 50 megs, and even after I installed some additional software it’s still under 75 megs with no problems.  As a comparison, <a href="http://www.microsoft.com/windows/products/windowsvista/editions/systemrequirements.mspx">Windows Vista</a> requires over 250 times that much free space before you can even install it.</p>
<p>Cool, right?  My laptop now boots off a flash drive, starts a slideshow, and pressing the ‘Q’ key turns the whole thing off.  Perfect!  Time for disassembly.  I should mention that before I began this project I didn’t care about this computer.  If I broke it, oh well it was collecting dust anyways.  I never realize how many tiny screws held that laptop together.  It took a few hours, but I finally managed to strip it all down to the LCD screen, motherboard, processor, USB connectors, power button, and some LED’s that light up when the computer is on.  Now for the moment of truth: will this thing boot up after all the destruction?  I present to you an abridged script of what transpired:</p>
<p><----Begin transcript----></p>
<p>Jonathan takes a deep breath as he presses what’s left of the power button.  Some LED’s on the motherboard light up, signifying that the boot process has begun.  He looks delighted.  The LCD screen displays the BIOS, and then begins to load the operating system.</p>
<p><strong>Jonathan</strong><br />
“Sweet!” he says out loud, thinking to himself that he’s a complete genius and this contraption sitting on the desk, as ghetto as it looks, it actually going to work.</p>
<p>The operating system continues to load, stepping through all of the required steps for Linux to start up.  Jonathan is thrilled.  The complexion on his face is one of excitement and satisfaction.  After about two minutes a loud “POP!” comes from the computer, and a piece of something shoots towards Jonathan.</p>
<p><strong>Jonathan</strong><br />
“Oh s&#8212;!!!  No freakin’ way!!!  Are you freakin’ kidding me?!  Son of a b&#8212;&#8212;!!!”</p>
<p>The computer shuts off, the screen goes blank, and Jonathan sits in his chair dumbfounded at the previous events.</p>
<p><----End transcript----></p>
<p>Ladies and gentlemen, that “pop” was the sound of me frying my processor chip, and it flying off of the module it was formally soldiered to.  For whatever reason, be it ignorance or apathy, I had decided that I didn’t need the heat sink on the processor when I booted it up.  For those of you who don’t know, computer processors get very, very, very hot when then are running.  200 degrees is not unheard of, especially for a desktop machine.  If the processor doesn’t have any way to dissipate this heat (like a <a href="http://en.wikipedia.org/wiki/Heat_sink">heat sink</a> and fan), it will keep getting hotter and hotter until it fries, burns out, explodes, kills itself, catches on fire, etc.  Once a chip does this, it’s game over.  This video will show you some examples.  I should note that I don&#8217;t have volume, so I have no idea what is being said. (EDIT: Turns out it&#8217;s just a little techno music)</p>
<p><object width="425" height="355"><param name="movie" value="http://www.youtube.com/v/Xf0VuRG7MN4"></param><param name="wmode" value="transparent"></param><embed src="http://www.youtube.com/v/Xf0VuRG7MN4" type="application/x-shockwave-flash" wmode="transparent" width="425" height="355"></embed></object></p>
<p>So this is the current state of my do it yourself digital picture frame from my old laptop computer.  I’ll post some pictures later.  I’m checking eBay to see if I can located a new processor, but originally I really didn’t want to spend and money on this project.  Isn’t $2500 for the computer enough?</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lepolt.com/blog/2008/02/29/a-do-it-yourself-screw-up/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
