<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>m4xr8d's view</title>
	<atom:link href="http://m4xr8d.wordpress.com/feed/" rel="self" type="application/rss+xml" />
	<link>http://m4xr8d.wordpress.com</link>
	<description>(emm- for- ecks- ray- ted)</description>
	<lastBuildDate>Sat, 08 May 2010 14:25:41 +0000</lastBuildDate>
	<language></language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.com/</generator>
<cloud domain='m4xr8d.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://s2.wp.com/i/buttonw-com.png</url>
		<title>m4xr8d's view</title>
		<link>http://m4xr8d.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://m4xr8d.wordpress.com/osd.xml" title="m4xr8d&#039;s view" />
	<atom:link rel='hub' href='http://m4xr8d.wordpress.com/?pushpress=hub'/>
		<item>
		<title>yet another random wallpaper script</title>
		<link>http://m4xr8d.wordpress.com/2010/05/08/yet-another-random-wallpaper-script/</link>
		<comments>http://m4xr8d.wordpress.com/2010/05/08/yet-another-random-wallpaper-script/#comments</comments>
		<pubDate>Sat, 08 May 2010 14:25:41 +0000</pubDate>
		<dc:creator>m4xr8d</dc:creator>
				<category><![CDATA[utilities]]></category>
		<category><![CDATA[autostart]]></category>
		<category><![CDATA[random wallpaper]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=83</guid>
		<description><![CDATA[Yea, everyone has a random wallpaper script. I especially like the ones where the guys sift through a couple of text files to get a wallpaper selected. I&#8217;m always a big fan of doing more work than is needed. Do I really need to use sarcasm tags for you guys??? Well anyways, this script uses [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=83&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Yea, everyone has a random wallpaper script. I especially like the ones where the guys sift through a couple of text files to get a wallpaper selected. I&#8217;m always a big fan of doing more work than is needed. <em>Do I really need to use sarcasm tags for you guys???</em><br />
Well anyways, this script uses <strong>ls | sort- R | head -1</strong> to get a random image at logon. That&#8217;s right guys, you don&#8217;t have to muck around with any <strong>random</strong> command I use <strong>feh</strong> to set the image also.  You could easily modify this script for swapping out walls at an interval and to use your preferred wallpaper setter.<br />
Well, here is my incarnation.<br />
&#8212;&#8212;&#8212;&#8212;-<br />
#!/bin/bash<br />
## Description: Sets a random wallpaper from a list generated by ls in the wallpaper directory. Uses feh to set wallpaper.</p>
<p>wall_dir=&#8221;/home/m4x/Pictures/walls/&#8221;<br />
random_wall=`ls $wall_dir | sort -R | head -1`<br />
/usr/bin/feh &#8211;bg-scale $wall_dir$random_wall<br />
# end of script</p>
<p>And one modified to swap walls every 30 minutes and use a text file.<br />
&#8212;&#8212;&#8212;&#8212;-<br />
#!/bin/bash<br />
## Description: Sets a random wallpaper from a list generated by ls in the wallpaper directory. Uses feh to set wallpaper. Changes every 30 minutes.</p>
<p>	wall_dir=&#8221;/home/m4x/Pictures/walls/&#8221;<br />
	wall_list=&#8221;walls&#8221;<br />
while :;do<br />
	random_wall=`cat $wall_dir$wall_list | sort -R | head -1`<br />
	/usr/bin/feh &#8211;bg-scale $wall_dir$random_wall<br />
    sleep 30m<br />
done<br />
# end of script</p>
<p>How do I use these??<br />
  Well, just add it to your user&#8217;s startup script or make a desktop file in ~/.config/autostart .</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/m4xr8d.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/m4xr8d.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/m4xr8d.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/m4xr8d.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/m4xr8d.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/m4xr8d.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/m4xr8d.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/m4xr8d.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/m4xr8d.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/m4xr8d.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/m4xr8d.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/m4xr8d.wordpress.com/83/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/m4xr8d.wordpress.com/83/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/m4xr8d.wordpress.com/83/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=83&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://m4xr8d.wordpress.com/2010/05/08/yet-another-random-wallpaper-script/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/391893cc309c8390c0c88514359737fd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">m4xr8d</media:title>
		</media:content>
	</item>
		<item>
		<title>various command line snippets</title>
		<link>http://m4xr8d.wordpress.com/2010/05/06/various-command-line-snippets/</link>
		<comments>http://m4xr8d.wordpress.com/2010/05/06/various-command-line-snippets/#comments</comments>
		<pubDate>Thu, 06 May 2010 15:43:27 +0000</pubDate>
		<dc:creator>m4xr8d</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[cli]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[snippets]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=71</guid>
		<description><![CDATA[Linux is fun. I love using the commandline, so every now and then when I come up with a command that I use more than once or it just took forever to figure it out I toss it in a file for future reference. They could be simple, short snippets or long piped out commands. [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=71&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Linux is fun. I love using the commandline, so every now and then when I come up with a command that I use more than once or it just took forever to figure it out I toss it in a file for future reference. They could be simple, short snippets or long piped out commands. Well they might not be perfect but they have served their purpose, so maybe some one else can use them.</p>
<p># recursively make everything r/w<br />
chmod -R 0777 *</p>
<p># start a http server using python accessible at http://localhost:8000<br />
python -m SimpleHTTPServer</p>
<p># find playlist and ls in m3u text file<br />
find . -iname &#8216;*.m3u&#8217; -print0 | xargs -0 ls &gt;&gt; m3u</p>
<p># find all playlist and delete<br />
find . -iname &#8216;*.m3u&#8217; -print0 | xargs -0 rm</p>
<p># strip ID3v1 tags<br />
find -name \*.mp3 -type f -print0 | xargs -0 id3v2 -s</p>
<p># ls hidden files<br />
ls -a | grep -v ^d | grep [.][a-zA-Z0-9] | cut -d. -f2</p>
<p># find all albumart jpgs and rename to folder.jpg<br />
IFS=$&#8217;\t\n&#8217;; for i in $( find . -iname &#8216;*.jpg&#8217; ); do echo &#8220;Renaming&#8221; $i; mv $i ${i%/*}/folder.jpg; done</p>
<p># lsmod but just the names no depends<br />
lsmod | cut -c1-22</p>
<p># join all avi in a directory<br />
mencoder *.avi -o out.avi -ovc copy -oac copy</p>
<p># mount a squashfs<br />
mount filesystem.squashfs somefolder -t squashfs -o loop</p>
<p># convert video to smv for my Philips GoGear 4GB, requires smv_encode, google it<br />
smv_encode -g 220&#215;176 -f 24 -n 5 -r -1 -q 60 &#8220;some_ffmpeg_supported_video&#8221; &#8220;some_video.smv&#8221;</p>
<p># open links in thunderbird in firefox<br />
gconftool-2 -s /desktop/gnome/url-handlers/http/command &#8216;/usr/bin/firefox %s&#8217; &#8211;type String<br />
gconftool-2 -s /desktop/gnome/url-handlers/https/command &#8216;/usr/bin/firefox %s&#8217; &#8211;type String</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/m4xr8d.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/m4xr8d.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/m4xr8d.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/m4xr8d.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/m4xr8d.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/m4xr8d.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/m4xr8d.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/m4xr8d.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/m4xr8d.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/m4xr8d.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/m4xr8d.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/m4xr8d.wordpress.com/71/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/m4xr8d.wordpress.com/71/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/m4xr8d.wordpress.com/71/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=71&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://m4xr8d.wordpress.com/2010/05/06/various-command-line-snippets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/391893cc309c8390c0c88514359737fd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">m4xr8d</media:title>
		</media:content>
	</item>
		<item>
		<title>sort wallpaper by dimensions</title>
		<link>http://m4xr8d.wordpress.com/2010/05/05/sort-wallpaper-by-dimensions/</link>
		<comments>http://m4xr8d.wordpress.com/2010/05/05/sort-wallpaper-by-dimensions/#comments</comments>
		<pubDate>Wed, 05 May 2010 16:24:24 +0000</pubDate>
		<dc:creator>m4xr8d</dc:creator>
				<category><![CDATA[images]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=67</guid>
		<description><![CDATA[Let&#8217;s say you have one large folder of wallpaper/backdrops and your tired of picking the wrong one because its dimensions are wrong for your screen. Well this script is one you might enjoy. &#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211; #!/bin/bash ## Description:let&#8217;s sort images/wallpaper into folders based on dimensions ##Depends: imagemagick for i in $( find . -iname &#8216;*.jpg&#8217; ) [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=67&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Let&#8217;s say you have one large folder of wallpaper/backdrops and your tired of picking the wrong one because its dimensions are wrong for your screen. Well this script is one you might enjoy.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
#!/bin/bash</p>
<p>## Description:let&#8217;s sort images/wallpaper into folders based on dimensions<br />
##Depends:    imagemagick</p>
<p>for i in $( find . -iname &#8216;*.jpg&#8217; )<br />
   do<br />
   dim=`identify -format %w_x_%h $i`;<br />
   mkdir -p sorted/$dim<br />
   mv $i sorted/$dim<br />
done</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/m4xr8d.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/m4xr8d.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/m4xr8d.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/m4xr8d.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/m4xr8d.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/m4xr8d.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/m4xr8d.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/m4xr8d.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/m4xr8d.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/m4xr8d.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/m4xr8d.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/m4xr8d.wordpress.com/67/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/m4xr8d.wordpress.com/67/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/m4xr8d.wordpress.com/67/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=67&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://m4xr8d.wordpress.com/2010/05/05/sort-wallpaper-by-dimensions/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/391893cc309c8390c0c88514359737fd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">m4xr8d</media:title>
		</media:content>
	</item>
		<item>
		<title>batch re-encode mp3s using lame</title>
		<link>http://m4xr8d.wordpress.com/2010/05/05/batch-re-encode-mp3s-using-lame/</link>
		<comments>http://m4xr8d.wordpress.com/2010/05/05/batch-re-encode-mp3s-using-lame/#comments</comments>
		<pubDate>Wed, 05 May 2010 16:09:40 +0000</pubDate>
		<dc:creator>m4xr8d</dc:creator>
				<category><![CDATA[mp3]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[re-encode]]></category>
		<category><![CDATA[script]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=65</guid>
		<description><![CDATA[Being a frugal type of guy, I purchased an mp3 player that only holds 4GB(really just 3.7GB of music). Well a large portion of my mp3s are encoded at 192kbps or higher so I really fit that many on it. Solution was simple, re-encode them down to 128kbps or lower using lame and id3lib. Most [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=65&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>Being a frugal type of guy, I purchased an mp3 player that only holds 4GB(really just 3.7GB of music). Well a large portion of my mp3s are encoded at 192kbps or higher so I really fit that many on it. Solution was simple, re-encode them down to 128kbps or lower using <strong>lame</strong> and <strong>id3lib</strong>. Most distros have them. Some scripts I looked at take all the bitrate info and write it to a text file then compare it to find out if it needs to be re-encoded, I really don&#8217;t think that is necessary to accomplish the task.</p>
<p>In this script I use <strong>file</strong> and pipe it through <strong>cut</strong> a few times to come up with my bitrate. This works pretty well unless you have a corrupt mp3. Well guess what, if it is too corrupt lame isn&#8217;t going to process it anyways. Sorry Charlie.</p>
<p>I use id3info(found in id3lib package) to get the existing ID3 tags. My mp3 player only supports artist, album and song title tags, so that&#8217;s what I use. If yours supports more by all means go ahead and check the man pages for <strong>lame</strong> and <strong>id3info</strong> for all that they have support for.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>#!/bin/bash</p>
<p>## Description:	Let&#8217;s batch reencode any mp3s that&#8217;s bitrate is higher than 128 for our mp3 player.<br />
## Depends:	lame    -<br />
##		id3lib  -</p>
<p>IFS=$&#8217;\t\n&#8217;</p>
<p>reset</p>
<p>for i in $(find . -iname &#8216;*.mp3&#8242;)<br />
do</p>
<p>	bit=$(file &#8220;$i&#8221; | cut -d&#8221;:&#8221; -f3 | cut -d&#8221;,&#8221; -f4 | cut -c1-4)<br />
	title=$(id3info &#8220;$i&#8221; | grep TIT2 | cut -d&#8221;:&#8221; -f2)<br />
	artist=$(id3info &#8220;$i&#8221; | grep TPE1 | cut -d&#8221;:&#8221; -f2)<br />
	album=$(id3info &#8220;$i&#8221; | grep TALB | cut -d&#8221;:&#8221; -f2)<br />
	target_bit=&#8221; 129&#8243;<br />
	out=temp.mp3</p>
<p>if [ "$bit" -gt "$target_bit" ]; then<br />
	echo &#8220;$bit   $i &#8221; &gt;&gt; reencode # prints a list of what was re-encoded. Can be commented out<br />
 	nice -n 19 lame &#8211;cbr -b 128 &#8211;id3v2-only &#8211;tt $title &#8211;ta $artist &#8211;tl $album &#8220;$i&#8221; &#8220;$out&#8221;<br />
 	mv &#8220;$out&#8221; &#8220;$i&#8221;<br />
 	else<br />
 	echo &#8220;$bit   $i &#8221; &gt;&gt; untouched # prints a list of what wasn&#8217;t re-encoded. Can be commented out along with above line.<br />
fi</p>
<p>done</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/m4xr8d.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/m4xr8d.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/m4xr8d.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/m4xr8d.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/m4xr8d.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/m4xr8d.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/m4xr8d.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/m4xr8d.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/m4xr8d.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/m4xr8d.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/m4xr8d.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/m4xr8d.wordpress.com/65/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/m4xr8d.wordpress.com/65/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/m4xr8d.wordpress.com/65/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=65&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://m4xr8d.wordpress.com/2010/05/05/batch-re-encode-mp3s-using-lame/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/391893cc309c8390c0c88514359737fd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">m4xr8d</media:title>
		</media:content>
	</item>
		<item>
		<title>Let&#8217;s redo our mp3 ID3v2 Tags recursively</title>
		<link>http://m4xr8d.wordpress.com/2010/05/05/lets-redo-our-mp3-id3v2-tags-recursively/</link>
		<comments>http://m4xr8d.wordpress.com/2010/05/05/lets-redo-our-mp3-id3v2-tags-recursively/#comments</comments>
		<pubDate>Wed, 05 May 2010 13:57:41 +0000</pubDate>
		<dc:creator>m4xr8d</dc:creator>
				<category><![CDATA[mp3]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[id3tag]]></category>
		<category><![CDATA[id3v2]]></category>
		<category><![CDATA[scipts]]></category>
		<category><![CDATA[v2strip]]></category>

		<guid isPermaLink="false">http://localhost/wordpress/?p=59</guid>
		<description><![CDATA[So you have a bunch of mp3s that you want/need to tag/re-tag. You could use some of the fancy GUI programs out there. Kid3 and Easytag are just two that come to mind. Unfortunately you&#8217;ll have to input/type quite a bit if you have a lot of mp3s. So why not have your computer do [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=59&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So you have a bunch of mp3s that you want/need to tag/re-tag. You could use some of the fancy GUI programs out there. Kid3 and Easytag are just two that come to mind. Unfortunately you&#8217;ll have to input/type quite a bit if you have a lot of mp3s. So why not have your computer do it for you? So using some standard commands and a couple of packages most distros might have in their repositories we can accomplish it rather easily.<br />
While this script will only tag your mp3s based on its file path it is not that hard to modify. Using a clever combination of file, cut, awk and sed you can add all the tags id3tag(part of the id3lib package) handles: artist, album, song, comment, comment description, year, track, total number of tracks, and genre.<br />
I use either v2strip or the id3v2 packages to strip the tags. If you have one and not the other just comment/uncomment the appropriate one.</p>
<p>While this script shouldn&#8217;t do any unreparable damage to your files always test first on a copy.</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>#!/bin/bash</p>
<p>## Description:	This script will traverse a directory, find mp3s, strip all ID3 tags(both ID3v1 and ID3v2),<br />
##		then re-tag them based on the directory structure.<br />
##		Existing file structure MUST be ./artist/album/song.mp3<br />
## Depends:	id3lib &#8211; http://id3lib.sourceforge.net<br />
##		id3v2  &#8211; http://id3v2.sourceforge.net<br />
##		v2strip(optional) &#8211; google it if you distro doesn&#8217;t have it.</p>
<p>IFS=$&#8217;\t\n&#8217;</p>
<p>for i in $( find . -iname &#8216;*.mp3&#8242; )<br />
do</p>
<p># Let&#8217;s get the existing tags out of there.</p>
<p>  id3v2 -D &#8220;$i&#8221;<br />
#  v2strip &#8220;$i&#8221;</p>
<p> if [ -f "$i" ];then</p>
<p>    artist=$(echo &#8220;$i&#8221; | awk -F/ &#8216;{print $2}&#8217;)<br />
    album=$(echo &#8220;$i&#8221; | awk -F/ &#8216;{print $3}&#8217;)<br />
    title=$(echo &#8220;$i&#8221; | awk -F/ &#8216;{print $4}&#8217;)</p>
<p>      nice -n 19 id3tag -2 &#8211;artist=&#8221;$artist&#8221; &#8211;album=&#8221;$album&#8221; &#8211;song=&#8221;$title&#8221; &#8220;$i&#8221;</p>
<p> fi<br />
done</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/m4xr8d.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/m4xr8d.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/m4xr8d.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/m4xr8d.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/m4xr8d.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/m4xr8d.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/m4xr8d.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/m4xr8d.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/m4xr8d.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/m4xr8d.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/m4xr8d.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/m4xr8d.wordpress.com/59/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/m4xr8d.wordpress.com/59/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/m4xr8d.wordpress.com/59/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=59&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://m4xr8d.wordpress.com/2010/05/05/lets-redo-our-mp3-id3v2-tags-recursively/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/391893cc309c8390c0c88514359737fd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">m4xr8d</media:title>
		</media:content>
	</item>
		<item>
		<title>Getting Zenwalk 6.2 To Work On The Aspire One ZG5</title>
		<link>http://m4xr8d.wordpress.com/2010/01/19/getting-zenwalk-6-2-to-work-on-the-aspire-one-zg5/</link>
		<comments>http://m4xr8d.wordpress.com/2010/01/19/getting-zenwalk-6-2-to-work-on-the-aspire-one-zg5/#comments</comments>
		<pubDate>Wed, 20 Jan 2010 00:01:43 +0000</pubDate>
		<dc:creator>m4xr8d</dc:creator>
				<category><![CDATA[Uncategorized]]></category>

		<guid isPermaLink="false">http://m4xr8d.wordpress.com/2010/01/19/getting-zenwalk-6-2-to-work-on-the-aspire-one-zg5/</guid>
		<description><![CDATA[The 6.2 install is exactly the same as 6.0. While the Fn key tweaks are also the same, the Xorg.conf tweaks no longer work and the kernel needs to be recompiled to include a couple of modules for the card readers to work. Here I&#8217;m going to deal with my biggest pet peeve. The card [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=55&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>The 6.2 install is exactly the same as 6.0. While the Fn key tweaks are also the same, the Xorg.conf tweaks no longer work and the kernel needs to be recompiled to include a couple of modules for the card readers to work. Here I&#8217;m going to deal with my biggest pet peeve. The card readers.</p>
<p>As most people know the righthand card reader does not work very well out of the box. You have to have a card inserted at boot for it to work. Sort of assinine. Now the solution was simple for 6.0 because the kernel packager included the modules required to hotplug the card. Well in the stock Zenwalk kernel (2.6.30.5) and even the Snapshot kernel (2.6.32.2) they weren&#8217;t included. So this is how I recompiled my kernel to included them.</p>
<p>1)  Download &amp; Install the Zenwalk kernelsource. It doesn&#8217;t matter whether your Current or Snapshot. Open terminal and follow the example<br />
<code><br />
m4x[~]$ su<br />
Password:<br />
root[m4x]# netpkg kernelsource<br />
Cleaning cache<br />
Connecting to mirror<br />
Uncompressing meta information<br />
Computing packages dependencies<br />
Computing packages descriptions<br />
Creating packages list<br />
Getting local packages list<br />
Computing packages status<br />
cat: /var/netpkg/last_selector: No such file or directory<br />
Synchronization with http://distro.ibiblio.org/pub/linux/distributions/zenwalk/i486/snapshot successful<br />
[I][extrad] Found installed kernelsource-2.6.32.2-i486-64.1.tlz on the repository<br />
what should I do ?<br />
1) install<br />
2) download<br />
3) skip<br />
</code></p>
<p>Pick number 1.</p>
<p>After it has install as root we need to change directories. So now<br />
<code><br />
m4x[~]$ su<br />
Password:<br />
root[m4x]# cd /usr/src<br />
root[src]# ln -s linux-2.6.3x.x linux            (replace the x's with the kernel version you installed)<br />
root[src]# cd linux<br />
root[linux]#<br />
</code></p>
<p>Now you should be in /usr/src/linux.  Now let&#8217;s get ready to configure our new kernel.<br />
<code><br />
root[linux]# make mrproper<br />
root[linux]# cp /boot/config .config<br />
root[linux]# make prepare<br />
</code></p>
<p>Let&#8217;s give your kernel a new version.<br />
<code><br />
root[linux]# mousepad Makefile<br />
</code><br />
Now we are going to edit line #4. Add your version after the last digit in the line. I&#8217;ve added m4x.<br />
<strong>EXTRAVERSION = .2m4x</strong><br />
Save and quit.<br />
Now let&#8217;s open the configure tool.<br />
<code><br />
root[linux]# make gconfig<br />
</code></p>
<p>Once open we are going to add a couple of modules to be built.<br />
Scroll down to <strong>Bus options (PCI etc)</strong>, expand it.<br />
Scroll down to <strong>Support for PCI Hotplug(NEW)</strong>, double click it. There should now be a <strong>M</strong> in the value column.<br />
Scroll up to <strong>PCI Express Support(NEW)</strong>, expand it. Double click <strong>PCI Express Hotplug Driver(NEW)</strong>. There should now be a <strong>M</strong> in the value column.<br />
Save and exit program.</p>
<p>Let&#8217;s build it<br />
<code><br />
root[linux]# time nice -n -19 make<br />
</code></p>
<p>When it is finally done building we&#8217;ll install it<br />
<code><br />
root[linux]# make modules_install<br />
root[linux]# cp arch/i386/boot/bzImage  /boot/vmlinuz-2.6.32.2m4x<br />
root[linux]# cp System.map /boot/System.map-2.6.32.2m4x<br />
root[linux]# cp .config /boot/config-2.6.32.2m4x<br />
root[linux]# depmod -v 2.6.32.2m4x<br />
</code></p>
<p>Now your kernel is install, but we have to point lilo to it and we have to add stuff to the kernel line.<br />
<code><br />
root[linux]# mousepad /etc/lilo.conf<br />
</code></p>
<p>Now add pciehp.pciehp_force=1 to the append line.<br />
It will look something like this<br />
<code><br />
# Start LILO global section<br />
append="resume=/dev/sda3 splash=silent pciehp.pciehp_force=1"<br />
</code></p>
<p>Now let&#8217;s make a new entry for your new kernel. Mine looks like this.<br />
<code><br />
# Linux bootable partition config begins<br />
image = /boot/vmlinuz-2.6.32.2m4x<br />
root = /dev/sda4<br />
label = 2.6.32.2m4x<br />
initrd = /boot/initrd.splash<br />
read-only<br />
# Linux bootable partition config ends<br />
</code><br />
Save and exit program.</p>
<p>Run lilo<br />
<code><br />
root[linux]# lilo -v<br />
</code></p>
<p>Now we just have to get the pciehp module to load at boot.</p>
<p><code><br />
root[linux]# mousepad /etc/rc.d/rc.modules<br />
</code></p>
<p>Add <strong>/sbin/modprobe pciehp</strong> to it, save and quit program.</p>
<p>Now reboot and select your new kernel.<br />
Hopefully everything goes well. If your card reader doesn&#8217;t work open a terminal as root and<br />
<code><br />
root[linux]# modprobe mmc_block<br />
</code></p>
<p>Good Luck</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/m4xr8d.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/m4xr8d.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/m4xr8d.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/m4xr8d.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/m4xr8d.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/m4xr8d.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/m4xr8d.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/m4xr8d.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/m4xr8d.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/m4xr8d.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/m4xr8d.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/m4xr8d.wordpress.com/55/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/m4xr8d.wordpress.com/55/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/m4xr8d.wordpress.com/55/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=55&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://m4xr8d.wordpress.com/2010/01/19/getting-zenwalk-6-2-to-work-on-the-aspire-one-zg5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/391893cc309c8390c0c88514359737fd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">m4xr8d</media:title>
		</media:content>
	</item>
		<item>
		<title>Kuki 3.0 Pre Release 1.7</title>
		<link>http://m4xr8d.wordpress.com/2009/06/25/kuki-3-0-pre-release-1-7/</link>
		<comments>http://m4xr8d.wordpress.com/2009/06/25/kuki-3-0-pre-release-1-7/#comments</comments>
		<pubDate>Thu, 25 Jun 2009 19:24:01 +0000</pubDate>
		<dc:creator>m4xr8d</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://m4xr8d.wordpress.com/?p=39</guid>
		<description><![CDATA[So I thought I would try out the Kuki 3.0 Pre Release 1.7. There seems to be a decent following over on the Acer Aspire One User forum. Just a couple lines from the kuki site. Kuki Linux is a lightweight Ubuntu-based Linux distribution founded by João Ferro (leak), built to be a replacement for [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=39&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>So I thought I would try out the Kuki 3.0 Pre Release 1.7. There seems to be a decent following over on the Acer Aspire One User forum.</p>
<p>Just a couple lines from the kuki site.</p>
<blockquote><p><em>Kuki Linux is a lightweight Ubuntu-based Linux distribution founded by João Ferro  (leak), built to be a replacement for the Linpus Lite distribution on the Acer Aspire One</em>.</p></blockquote>
<blockquote><p><em>It uses XFCE 4.6  as a window manager and features lightweight software and all the fixes to allow the Acer Aspire One to work as well as possible</em>.</p></blockquote>
<p>So as a replacement everything should work out of the box. Well let&#8217;s see how it meets my requirements.</p>
<p>1. It is a live distro and I was able to use Unetbootin to put it on a usbkey.<br />
2. Not particularly fast but it still booted. I was able to walk downstairs, grab a glass of water and return in time to see the login screen pop up.<br />
3. Wireless out of the box. Led doesn&#8217;t work, but that isn&#8217;t important to me.<br />
4. Screen real estate. Only one panel was in use, so that&#8217;s not bad.<br />
5. Card readers. Neither readers worked out of the box. Do they have to be inserted prior to boot? I tried to modprobe pciehp and was returned a nice <strong>FATAL: Module pciehp not found.</strong> So I guess that is a FAIL<br />
6. Sound card. Well it works sorta. When I opened a mp3 I was greeted with volume at max and an error <strong>AO: [pulse] Failed to connect to server: Internal error</strong>. I was unable to lower the volume by scrolling over the volume applet but I could raise and lower via the function controls and the mixer controls. So this is a niggle.<br />
7. Webcam works out of the box.<br />
8. Suspend does work, but not from Fn+F4. So this is another niggle.<br />
9. Fn+Fx keys, not all work. As a matter of fact only F7(mousepad) and F8(mute) work. Had this been a generic distro it would be fine, but this <em>is built especially for the Acer Aspire One.</em><br />
10. Overall feel. Well it just feels slow. Scrolling in Iceweasel is slow and stuttery. Switching between tabs lags.  Scrolling through desktops is slow. There&#8217;s no Office packages other than a dictionary, pdf viewer, orage and zim desktop wiki. Gimp isn&#8217;t included. None of my existing partitions were setup to browse.  It makes this distro useless as a livecd/usb.  There really is nothing that makes me want to go wow.</p>
<p>Score: <strong>4/10</strong></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/m4xr8d.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/m4xr8d.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/m4xr8d.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/m4xr8d.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/m4xr8d.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/m4xr8d.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/m4xr8d.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/m4xr8d.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/m4xr8d.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/m4xr8d.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/m4xr8d.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/m4xr8d.wordpress.com/39/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/m4xr8d.wordpress.com/39/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/m4xr8d.wordpress.com/39/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=39&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://m4xr8d.wordpress.com/2009/06/25/kuki-3-0-pre-release-1-7/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/391893cc309c8390c0c88514359737fd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">m4xr8d</media:title>
		</media:content>
	</item>
		<item>
		<title>My Aspire One Linux Distibution Requirements</title>
		<link>http://m4xr8d.wordpress.com/2009/06/23/my-aspire-one-linux-distibution-requirements/</link>
		<comments>http://m4xr8d.wordpress.com/2009/06/23/my-aspire-one-linux-distibution-requirements/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 16:14:38 +0000</pubDate>
		<dc:creator>m4xr8d</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://m4xr8d.wordpress.com/?p=30</guid>
		<description><![CDATA[There has been plenty of discussion around as to what makes a good Linux distribution for the Aspire One. Everyone has their own special requirements as well as their favorite distros. So here are my requirements. 1. Must have a livecd. This is the most important feature because if the installed system go tits up [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=30&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p>There has been plenty of discussion around as to what makes a good Linux distribution for the Aspire One. Everyone has their own special requirements as well as their favorite distros. So here are my requirements.</p>
<p>1. <strong>Must have a livecd.</strong> This is the most important feature because if the installed system go tits up this makes it easier on everyone if you are able to boot from a like system. This livecd should boot from a usb also. The distro should install nicely using Unetbootin. So many people are being told to use this utility to install the iso to their usb.<br />
2. <strong>It must boot.</strong> No extra cheat codes unless it is language and keymaps. Time doesn&#8217;t really too much, but over 40s and it starts to get annoying.<br />
3.  <strong>Wireless.</strong> If wireless isn&#8217;t automatically detected and you have to figure out some new utility it gets fairly annoying. I believe ath5k has work fine since 2.6.28. If the developer wants to include madwifi drivers that isn&#8217;t a problem. It just shouldn&#8217;t take forever to setup. Remember, if you don&#8217;t have wireless it makes it hard to get online and troubleshoot. Not everyone is going to be able to use eth0.<br />
4. <strong>Screen Realty.</strong> The AAO A150s only have an 8.9&#8243; screen so having panels and widgets every where is just clutter.<br />
5. <strong>Card Readers.</strong> Both just have to work out of the box. They are supported in 2.6.28 and newer, they need to work. The need to be built with the kernel. To rebuild the kernel on this little guy takes about 80 minutes. Having to remember to insert one in before booting is worthless also. Having to reboot because you forgot is asinine.<br />
6. <strong>Sound Card.</strong> Sound is nice to have.<br />
7. <strong>Webcam.</strong> Another nice thing to have working. It is supported in the newer kernels.<br />
8. <strong>Suspend.</strong>  A nice feature to have. Not very often do you find a distro that it doesn&#8217;t work, but sometimes you do.<br />
9. <strong>Fn Keys.</strong> If a distro claims to be netbook compatible these have to mapped to something at least.<br />
10. <strong>Overall Feel.</strong> Does the distro feel polished, was it hard to get around the desktop, did packages work, am I able to browse all disks, can I browse network shares easily? Just some things to make the experience better.</p>
<p>Yea, every distro is going to require some tweaking, but to be missing functionality is ridiculous.</p>
<p>Some distros I might not trty due to the fact they don&#8217;t have a livecd. I&#8217;ve got a working system on my AAO and don&#8217;t wish to install a distro that I&#8217;ve tweak the hell out of.</p>
<p>While I&#8217;ll be trying as many distros out I&#8217;ll post my opinions, maybe someone will find them useful.</p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/m4xr8d.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/m4xr8d.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/m4xr8d.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/m4xr8d.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/m4xr8d.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/m4xr8d.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/m4xr8d.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/m4xr8d.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/m4xr8d.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/m4xr8d.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/m4xr8d.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/m4xr8d.wordpress.com/30/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/m4xr8d.wordpress.com/30/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/m4xr8d.wordpress.com/30/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=30&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://m4xr8d.wordpress.com/2009/06/23/my-aspire-one-linux-distibution-requirements/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/391893cc309c8390c0c88514359737fd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">m4xr8d</media:title>
		</media:content>
	</item>
		<item>
		<title>Zenwalk 6.0 On Acer Aspire One</title>
		<link>http://m4xr8d.wordpress.com/2009/02/25/zenwalk-60-on-acer-aspire-one/</link>
		<comments>http://m4xr8d.wordpress.com/2009/02/25/zenwalk-60-on-acer-aspire-one/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 20:52:45 +0000</pubDate>
		<dc:creator>m4xr8d</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://m4xr8d.wordpress.com/?p=4</guid>
		<description><![CDATA[Do Not Use This Tutorial To Install Zenwalk 6.2 I recently purchased one of Acer&#8217;s netbooks. The Aspire One ZG5. It&#8217;s blue, has 120GB hard drive, 1GB RAM and it had WinXP Home Edition on it. Now I can use Windows but I just don&#8217;t like to, I prefer Zenwalk Linux. Not Ubuntu, Debian, Fedora, [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=4&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></description>
			<content:encoded><![CDATA[<p><strong>Do Not Use This Tutorial To Install Zenwalk 6.2</strong></p>
<p>I recently purchased one of Acer&#8217;s netbooks. The Aspire One ZG5. It&#8217;s blue, has 120GB hard drive, 1GB RAM and it had WinXP Home Edition on it. Now I can use Windows but I just don&#8217;t like to, I prefer Zenwalk Linux. Not Ubuntu, Debian, Fedora, Suse, Mandriva or any of their offspring. I figured if Acer could put Linpus on the AAO I should be able to install Zenwalk on it. There is more than enough information out there now to accomplish this.</p>
<p><strong>Prep Work:</strong></p>
<p>You need to upgrade your AAO&#8217;s bios to 3309. A simple Google will give you the answer.</p>
<p>Steps</p>
<p>1) I was planning on keeping WindowsXP so I was going to have to set this up for dual booting. So defragment the hard drive.  <em>I&#8217;m going to resize the Windows drive and don&#8217;t really want a bunch of files scattered all over.</em></p>
<p>2) Resize the drive.  <em>My AAO came with a 120GB drive so I left the recovery service partion intact (PQSERVICE 4.88GB). Resized the WindowsXP (ACER) down to half @ 53.45GB.</em></p>
<p>3) Create a Linux partition. <em>My linux partion is 52.45GB and formatted  with Ext3. </em></p>
<p>4) Create a Linux Swap partition of 1GB.</p>
<p>Now all I really had to do was reboot and make sure Windows was still there and worked. <em>Yup</em></p>
<p><strong>Shopping List:</strong></p>
<p>UNetbootin &#8211; <em>A small utility that will download and install several different linux distros to a USB key and make it bootable. </em></p>
<p>USB key large enough for the Zenwalk ISO.  <em>I had a 1GB key laying around.</em></p>
<p>Zenwalk 6.0 iso</p>
<p>Beer</p>
<p><strong>Install:</strong></p>
<p>1) Go ahead and use UNetbootin to install the Zenwalk 6.0 iso to the usb key. <em>Fairly simple task so I won&#8217;t explain it.</em></p>
<p>2) Reboot the AAO. Upon reboot hit F12 to select a boot device. Select your usb key. Then hit enter when the boot menu comes up. You should now be in the Zenwalk setup. You should just be able to hit enter again to start the installation process. You should now be confronted with a dialog screen with several options such as autopartition,partition and exit. We are going to exit the installer, so select exit and hit enter and then you should now be in a command line. We did this because Zenwalk 5.2 and newer does not like to be installed from a usb, it will eventually error out towards the end  complaining it can&#8217;t find the packages to install. So now we are going to mount the usb key for us to use later. This is what I used.</p>
<p><code>mkdir /usb1<br />
mount /dev/sdb1 /usb1<br />
setup</code></p>
<p>Now we should be back in the installer.</p>
<p>3) Now that we are back to the installer, it is as simple as just answering questions. First select your keymap, then go straight to install. The install dialog will find your linux swap partition and your ext2 partition. It will ask you what filesystem you wish to use and format it. <em>I chose xfs. </em>It will find your Windows partion and the Acer recovery partion. It will ask you where you wish to mount these. <em>I chose /mnt/Acer and /mnt/Win_XP.</em> Now it should be ready to install the Zenwalk packages. You are going to choose the premounted directoy option. Just enter where you mounted the usb key:<em> /usb1</em> . Hit enter.</p>
<p>4) While it is installing go have a beer. Come back in about 20 minutes and when it&#8217;s done have it install lilo. Select the simple, and a resolution of 800&#215;600, no extra options, mbr. Reboot.</p>
<p>5) Now just finish up with the postinstall. You&#8217;ll have a functioning Zenwalk 6.0 install minus your SD card readers, and your Fn keys.</p>
<p><strong>Card Readers:</strong><br />
To get your card readers to work is pretty simple.<br />
1) Open xkernelconf. This can be found in System &gt;&gt; Control Panel.<br />
Scroll down the right side of xkernelconf and doubleclick <strong>mmc_block</strong> and <strong>pciehp</strong>. Now apply changes.<br />
2) As root create  <strong>/etc/modprobe.d/pciehp</strong> and add <span style="font-weight:bold;">options pciehp pciehp_force=1</span> to it.<br />
3) Reboot and insert card in either slot and the will be seen in Thunar.</p>
<p><strong>Xorg.conf:</strong><br />
The Intel graphics run a little slow with the stock Xorg.conf. Simply add<br />
<code><br />
Option "AccelMethod" "exa"<br />
Option "MigrationHeuristic" "greedy"<br />
</code>to the driver section of xorg.conf and<br />
<code><br />
export INTEL_BATCH=1<br />
</code>to /etc/profile.</p>
<p><strong>Fn Keys:</strong><br />
The Fn keys seem to take the longest to setup. While I could get most working with just one program, I was not able to get them all working properly. I ended up combining several techniques.</p>
<p>First we need to add some lines to<strong> /etc/rc.d/rc.local</strong><br />
As root add the following to rc.local<br />
<code>/usr/bin/setkeycodes e025 130<br />
/usr/bin/setkeycodes e026 131<br />
/usr/bin/setkeycodes e027 132<br />
/usr/bin/setkeycodes e029 122<br />
/usr/bin/setkeycodes e071 134<br />
/usr/bin/setkeycodes e072 135</code></p>
<p>Now as your user create .Xmodmap with the following contents.<br />
<code>keycode 160 = XF86AudioMute<br />
keycode 174 = XF86AudioLowerVolume<br />
keycode 176 = XF86AudioRaiseVolume<br />
keycode 223 = XF86Standby<br />
keycode 239 = XF86KbdBrightnessDown<br />
keycode 123 = XF86KbdBrightnessUp<br />
keycode 210 = XF86Display</code></p>
<p>Now open ~/.xinitrc in mousepad and add to it.<br />
<code>xmodmap ~/.Xmodmap</code></p>
<p>Now go into the XFCE Keyboard setttings and add these commands to the appropriate Fn keys.</p>
<p>amixer set Master 2dB+ unmute &gt;&gt;&gt; FN + UpArrow<br />
amixer set Master 2dB+ unmute &gt;&gt;&gt; FN + DownArrow<br />
amixer set Master toggle            &gt;&gt;&gt; FN + F8<br />
sudo /usr/sbin/standby               &gt;&gt;&gt; FN + F4</p>
<p>As of now the Fn keys F4,F6,F7,F8, Brightness Up, Brightness Down, Volume Up and Volume Down will work at your next login<br />
If Fn+F4 does not put your AAO into standby you might have to correct it.<br />
Open terminal and if<br />
<code>your_username[~]$ sudo /usr/sbin/standby</code><br />
returns<br />
<code>sudo: can't stat /etc/sudoers: No such file or directory<br />
Segmentation fault</code><br />
then<br />
<code>su<br />
mv /etc/sudoers.new /etc/sudoers</code></p>
<p>Now Fn keys F1,F2,F3 and F5 require a little more work.<br />
First we need a small package called xbindkeys, so open a terminal and<br />
<code>su<br />
netpkg mirror<br />
netpkg xbindkeys</code></p>
<p>Now as your_username open terminal and<br />
<code>xbindkeys --defaults &gt; ~/.xbindkeysrc<br />
mousepad ~/.xbinkeysrc</code></p>
<p>Remove everything after<br />
<strong># Examples of commands:</strong><br />
then add</p>
<p><code># F1 XFCE4 Help<br />
"iceweasel /usr/share/xfce4/doc/C/index.html"<br />
m:0x0 + c:134<br />
# F2 Zen Panel<br />
"gksu zenpanel"<br />
m:0x0 + c:135<br />
# F3 powersave<br />
"xfce4-power-manager -c"<br />
m:0x0 + c:140<br />
# F5 External Display<br />
"/usr/bin/externaldisplay"<br />
m:0x0 + c:210</code></p>
<p>Now we need to add xbindkeys to XFCE&#8217;s startup.<br />
Which is in Settings Manager &gt;&gt; Sessions and Start Up &gt;&gt; Application Autostart. Click the &#8216;Add&#8217; button and fill in the name as xbindkeys and the command as xbindkeys.</p>
<p>You&#8217;ll notice how I use Fn+F5 to call /usr/bin/externaldisplay. Basically externaldisplay is a simple xdialog script that changes the resolution on an external monitor. My script is:</p>
<p><code>#!/bin/sh<br />
DIALOG=Xdialog<br />
$DIALOG --title "External VGA Display" \<br />
--menu "Choose a Resolution" 13 50 6 \<br />
"1" "Laptop Only" \<br />
"2" "Ext.Monitor Only 1024x600" \<br />
"3" "Ext.Monitor Only 1024x768" \<br />
"4" "Ext. Monitor Auto"  2&gt; /tmp/menu.tmp.$$<br />
retval=$?<br />
choice=`cat /tmp/menu.tmp.$$`<br />
rm -f /tmp/menu.tmp.$$<br />
case $retval in<br />
0)<br />
if [ "$choice" = "1" ]; then<br />
xrandr --output LVDS --mode 1024x600<br />
xrandr --output VGA --off<br />
fi<br />
if [ "$choice" = "2" ]; then<br />
xrandr --output VGA --mode 1024x600_60.000<br />
xrandr --output LVDS --off<br />
fi<br />
if [ "$choice" = "3" ]; then<br />
xrandr --output VGA --mode 1024x768<br />
xrandr --output LVDS --off<br />
fi<br />
if [ "$choice" = "4" ]; then<br />
xrandr --output VGA --auto<br />
fi<br />
;;<br />
1)<br />
echo "Cancel pressed.";;<br />
255)<br />
echo "Box closed.";;<br />
esac</code></p>
<p>If you wish to use this for your needs you&#8217;ll have to find out the resolutions your external monitor is capable of. You can do that by first connecting your monitor and then in a terminal issue</p>
<p><code>xrandr -q</code></p>
<br />  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/m4xr8d.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/m4xr8d.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/m4xr8d.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/m4xr8d.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gofacebook/m4xr8d.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/facebook/m4xr8d.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gotwitter/m4xr8d.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/twitter/m4xr8d.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/m4xr8d.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/m4xr8d.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/m4xr8d.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/m4xr8d.wordpress.com/4/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/m4xr8d.wordpress.com/4/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/m4xr8d.wordpress.com/4/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=m4xr8d.wordpress.com&amp;blog=1173014&amp;post=4&amp;subd=m4xr8d&amp;ref=&amp;feed=1" width="1" height="1" />]]></content:encoded>
			<wfw:commentRss>http://m4xr8d.wordpress.com/2009/02/25/zenwalk-60-on-acer-aspire-one/feed/</wfw:commentRss>
		<slash:comments>20</slash:comments>
	
		<media:content url="http://1.gravatar.com/avatar/391893cc309c8390c0c88514359737fd?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">m4xr8d</media:title>
		</media:content>
	</item>
	</channel>
</rss>
