<?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>RedKrieg&#039;s Blog &#187; Tutorials</title>
	<atom:link href="http://redkrieg.com/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://redkrieg.com</link>
	<description>/dev/random</description>
	<lastBuildDate>Tue, 10 May 2011 06:03:58 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Pianobar &#8211; An open source Pandora client</title>
		<link>http://redkrieg.com/2011/01/02/pianobar-an-open-source-pandora-client/</link>
		<comments>http://redkrieg.com/2011/01/02/pianobar-an-open-source-pandora-client/#comments</comments>
		<pubDate>Sun, 02 Jan 2011 15:31:38 +0000</pubDate>
		<dc:creator>RedKrieg</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://redkrieg.com/?p=169</guid>
		<description><![CDATA[I&#8217;ve been using pianobar for about two weeks now and have yet to experience any crashes that plagued my usage previously. It is by far the most efficient, stable way to use Pandora. In Ubuntu, you can install it from &#8230; <a href="http://redkrieg.com/2011/01/02/pianobar-an-open-source-pandora-client/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="https://github.com/PromyLOPh/pianobar">pianobar</a> for about two weeks now and have yet to experience any crashes that plagued my usage previously.  It is by far the most efficient, stable way to use <a href="http://pandora.com">Pandora</a>.  In Ubuntu, you can install it from the software center or via <a href="apt:pianobar">&#8220;apt-get install pianobar&#8221;</a>.  I also recommend installing <a href="apt:libnotify-bin">libnotify-bin</a> if you want to use notifications on song changes (instructions below).</p>
<p>Once installed, you can either run it straight away by opening a terminal and typing &#8220;pianobar&#8221;, or you can set up some configurations first to enhance your experience.  I use a shell script to catch events from the player and display notifications with the song artist and title.</p>
<p>For configuration, edit ~/.config/pianobar/config in your favorite editor.  Here is my configuration (note that I pay for Pandora One, if you do not, you can&#8217;t specify mp3-hifi as your audio_format):<br />
<code><br />
event_command = /home/myuser/bin/pianobar-notify<br />
user = user@domain.com<br />
password = yourpassword<br />
audio_format = mp3-hifi<br />
</code></p>
<p>The script at /home/myuser/bin/pianobar-notify will be called any time an &#8220;event&#8221; is sent.  See the man page for details on how you can extend this.  Below is the pianobar-notify script I use (don&#8217;t forget to chmod +x):<br />
<code><br />
#!/bin/bash<br />
# create variables<br />
while read L; do<br />
        k="`echo "$L" | cut -d '=' -f 1`"<br />
        v="`echo "$L" | cut -d '=' -f 2`"<br />
        export "$k=$v"<br />
done < <(grep -e '^\(title\|artist\|album\|stationName\|pRet\|pRetStr\|wRet\|wRetStr\|songDuration\|songPlayed\|rating\|coverArt\)=' /dev/stdin) # don't overwrite $1...</p>
<p>case "$1" in<br />
        songstart)<br />
#               echo 'naughty.notify({title = "pianobar", text = "Now playing: ' "$title" ' by ' "$artist" '"})' | awesome-client -<br />
#               echo "$title -- $artist" > $HOME/.config/pianobar/nowplaying<br />
#               # or whatever you like...<br />
                notify-send "Pianobar - $stationName" "Now Playing: $artist - $title"<br />
                ;;</p>
<p>#       songfinish)<br />
#               # scrobble if 75% of song have been played, but only if the song hasn't<br />
#               # been banned<br />
#               if [ -n "$songDuration" ] &#038;&#038;<br />
#                               [ $(echo "scale=4; ($songPlayed/$songDuration*100)>50" | bc) -eq 1 ] &#038;&#038;<br />
#                               [ "$rating" -ne 2 ]; then<br />
#                       # scrobbler-helper is part of the Audio::Scrobble package at cpan<br />
#                       # "pia" is the last.fm client identifier of "pianobar", don't use<br />
#                       # it for anything else, please<br />
#                       scrobbler-helper -P pia -V 1.0 "$title" "$artist" "$album" "" "" "" "$((songDuration/1000))" &#038;<br />
#               fi<br />
#               ;;</p>
<p>        *)<br />
                if [ "$pRet" -ne 1 ]; then<br />
                        notify-send "Pianobar - ERROR" "$1 failed: $pRetStr"<br />
                elif [ "$wRet" -ne 1 ]; then<br />
                        notify-send "Pianobar - ERROR" "$1 failed: $wRetStr"<br />
                fi<br />
                ;;<br />
esac<br />
</code></p>
<p>Have fun enjoying your music without a web browser!</p>
]]></content:encoded>
			<wfw:commentRss>http://redkrieg.com/2011/01/02/pianobar-an-open-source-pandora-client/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ADB over SSH &#8211; Fun with port forwards</title>
		<link>http://redkrieg.com/2010/10/11/adb-over-ssh-fun-with-port-forwards/</link>
		<comments>http://redkrieg.com/2010/10/11/adb-over-ssh-fun-with-port-forwards/#comments</comments>
		<pubDate>Mon, 11 Oct 2010 17:25:25 +0000</pubDate>
		<dc:creator>RedKrieg</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://redkrieg.com/?p=133</guid>
		<description><![CDATA[So last week one of my coworkers and I were discussing a VPN configuration to allow adb shells over 3G. Just tonight I realized that a VPN isn&#8217;t even required, SSH can do the same job with relatively little effort. &#8230; <a href="http://redkrieg.com/2010/10/11/adb-over-ssh-fun-with-port-forwards/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So last week one of my coworkers and I were discussing a VPN configuration to allow adb shells over 3G.  Just tonight I realized that a VPN isn&#8217;t even required, SSH can do the same job with relatively little effort.  Here&#8217;s how I rigged my setup.</p>
<p><strong>Prerequisites:</strong></p>
<ul>
<li>A functional SSH server, accessible from outside your network.</li>
<li><a href="http://code.google.com/p/connectbot/">Connectbot</a> on your phone with a connection configured for your home computer.</li>
<li>A functional ADB over USB install with correct PATH variables set.  When you open a new command prompt and type &#8220;adb shell&#8221; you should see a prompt from your phone.</li>
</ul>
<p>Configuration of the above items are well documented elsewhere and will be outside the scope of this article.</p>
<p>So, having the prerequisites in order, you start by modifying your Connectbot connection as follows:</p>
<ul>
<li>Long-press your connection in the list and choose &#8220;Edit host&#8221;.</li>
<li>Press &#8220;Post-login automation&#8221;.</li>
<li>In the box type &#8220;adb connect localhost:5555[ENTER]&#8221; the new line here ([ENTER] key) is necessary to automatically run the command.</li>
<li>Press &#8220;OK&#8221;.</li>
<li>Press back to return to the connection list.</li>
<li>Long-press your connection in the list and choose &#8220;Edit port forwards&#8221;.</li>
<li>Press Menu, then &#8220;Add port forward&#8221; and enter the following:</li>
<ul>
<li>Nickname: &#8220;ADB&#8221;.</li>
<li>Type: &#8220;Remote&#8221;.</li>
<li>Source port: &#8220;5555&#8243;</li>
<li>Destination: &#8220;localhost:5555&#8243;</li>
</ul>
<li>Press &#8220;Create port forward&#8221;.</li>
</ul>
<p>Your connection is now configured to tunnel the ADB protocol over port 5555 from your computer to the phone via reverse SSH tunnelling.  The next step is to configure ADB on the phone to listen over tcp/ip:</p>
<ul>
<li>On your computer, with the phone connected via USB, type &#8220;adb tcpip 5555&#8243;.</li>
</ul>
<p>That&#8217;s it!  You can now disconnect your USB cable, take your phone on a car ride, etc.  If you need to use adb with it, simply use Connectbot to connect to your home computer, after the connection is authenticated (you can use password or public-key) the adb connection will be made automatically, so you simply have to use adb as you normally would!</p>
<p>Remember that over 3G you&#8217;re going to have some delay for commands, here&#8217;s an example push:</p>
<p><code><br />
redkrieg@h4xt0p:~$ time adb push Downloads/UniversalAndroot-1.6.2-beta5.apk /sdcard/<br />
11 KB/s (964401 bytes in 83.041s)<br />
redkrieg@h4xt0p:~$ ls -hal Downloads/UniversalAndroot-1.6.2-beta5.apk<br />
-rw-r--r-- 1 redkrieg redkrieg 942K 2010-10-08 15:08 Downloads/UniversalAndroot-1.6.2-beta5.apk<br />
redkrieg@h4xt0p:~$<br />
</code></p>
<p>So yeah, it&#8217;s slow as dirt, but I totally pushed a file from my home computer to my phone from across the city.</p>
<p>To undo this and restore normal USB ADB functionality, you must first connect with Connectbot using the instructions above, then from your computer run &#8220;adb usb&#8221; to return the phone to USB mode.  If you&#8217;re unable to do this, you&#8217;ll need to run the following from a local shell on the phone:</p>
<p><code><br />
su<br />
setprop service.adb.tcp.port -1<br />
stop adbd<br />
start adbd<br />
</code></p>
<p>That&#8217;s it.  Have fun!</p>
<p>Update: I&#8217;ve just thought things through and realized that this leaves root wide open to remote exploit if someone knows your IP.  Probably best to switch back to USB adb once you&#8217;re done until I figure out a good way to block non-localhost connections to 5555 in iptables on boot.  If you know how to do this, please post a comment, otherwise it&#8217;ll be my project for the night.</p>
<p>Update 2:<br />
After some testing, it seems like T-mo blocks inbound connections like this, so iptables shouldn&#8217;t be necessary. That being said, the following rules should take care of any lingering doubt:</p>
<p><code><br />
iptables -A INPUT -p tcp --dport 5555 -s 127.0.0.1 -j ACCEPT<br />
iptables -A INPUT -p tcp --dport 5555 -j DROP<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://redkrieg.com/2010/10/11/adb-over-ssh-fun-with-port-forwards/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>My New Lighter</title>
		<link>http://redkrieg.com/2007/09/01/my-new-lighter/</link>
		<comments>http://redkrieg.com/2007/09/01/my-new-lighter/#comments</comments>
		<pubDate>Sat, 01 Sep 2007 23:15:03 +0000</pubDate>
		<dc:creator>RedKrieg</dc:creator>
				<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://redkrieg.com/2007/09/01/my-new-lighter/</guid>
		<description><![CDATA[I modified a cheap Zippo to contain a really cool surprise! Impress your friends! Pics and video after the jump. Old School Zippo &#8211; Funny videos are here Click here for pictures and closeups of the lighter.]]></description>
			<content:encoded><![CDATA[<p>I modified a cheap Zippo to contain a really cool surprise!  Impress your friends!  Pics and video after the jump.</p>
<p><span id="more-105"></span></p>
<p><embed src="http://www.metacafe.com/fplayer/797872/old_school_zippo.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"> </embed><br /><font size = 1><a href="http://www.metacafe.com/watch/797872/old_school_zippo/">Old School Zippo</a> &#8211; <a href="http://www.metacafe.com/">Funny videos are here</a></font></p>
<p><a href="http://www.flickr.com/gp/94367433@N00/e3YCc2">Click here for pictures and closeups of the lighter.</a></p>
]]></content:encoded>
			<wfw:commentRss>http://redkrieg.com/2007/09/01/my-new-lighter/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>WEP Cracking with WifiWay</title>
		<link>http://redkrieg.com/2007/08/28/wep-cracking-with-wifiway/</link>
		<comments>http://redkrieg.com/2007/08/28/wep-cracking-with-wifiway/#comments</comments>
		<pubDate>Wed, 29 Aug 2007 01:10:05 +0000</pubDate>
		<dc:creator>RedKrieg</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://redkrieg.com/2007/08/28/wep-cracking-with-wifiway/</guid>
		<description><![CDATA[This weekend one of my friends asked about hacking in to wireless networks. I decided to show off and they wanted to video the experience, so I set up a spare wireless router with 7961122705933aa134db338064 as the WEP encryption key. &#8230; <a href="http://redkrieg.com/2007/08/28/wep-cracking-with-wifiway/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This weekend one of my friends asked about hacking in to wireless networks.  I decided to show off and they wanted to video the experience, so I set up a spare wireless router with 7961122705933aa134db338064 as the WEP encryption key.  I then rebooted in to a livecd called <a href="http://www.wifiway.org/">Wifiway</a>.  Since this video was created, there&#8217;s been a new release of Wifiway that includes the airoway script I use, so there&#8217;s no need for the thumbdrive now.  Click <strong>Read More&#8230;</strong> below to view the video!  The actual crack takes about three minutes, the rest of the video is just preparation of the access point.<br />
<span id="more-104"></span><br />
<embed src="http://www.metacafe.com/fplayer/792398/wep_cracking_with_wifiway_and_aircrack_ng.swf" width="400" height="345" wmode="transparent" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash"> </embed><br /><font size = 1><a href="http://www.metacafe.com/watch/792398/wep_cracking_with_wifiway_and_aircrack_ng/">WEP Cracking With WifiWay And Aircrack-ng</a> &#8211; <a href="http://www.metacafe.com/">The best video clips are right here</a></font></p>
]]></content:encoded>
			<wfw:commentRss>http://redkrieg.com/2007/08/28/wep-cracking-with-wifiway/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>GnuPG E-mail Encryption</title>
		<link>http://redkrieg.com/2007/04/10/gnupg-e-mail-encryption/</link>
		<comments>http://redkrieg.com/2007/04/10/gnupg-e-mail-encryption/#comments</comments>
		<pubDate>Tue, 10 Apr 2007 15:40:29 +0000</pubDate>
		<dc:creator>RedKrieg</dc:creator>
				<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://redkrieg.com/2007/04/10/gnupg-e-mail-encryption/</guid>
		<description><![CDATA[I&#8217;ve recently started using GnuPG to encrypt email transmission with the aid of the new FireGPG extension to firefox which allows one to use public key encryption in gmail. The extension can be found at it&#8217;s homepage. My public key &#8230; <a href="http://redkrieg.com/2007/04/10/gnupg-e-mail-encryption/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently started using GnuPG to encrypt email transmission with the aid of the new FireGPG extension to firefox which allows one to use public key encryption in gmail. The extension can be found at it&#8217;s <a href="http://firegpg.tuxfamily.org/">homepage</a>. My public key can be found <a href="http://redkrieg.com/redkrieg-gpg-public-key">here</a> if you would like to communicate with me securely. But what is public key encryption? I&#8217;ll give a layman&#8217;s introduction here. Hopefully I&#8217;ll explain it in a way you can understand.<br />
<span id="more-99"></span><br />
Let&#8217;s start with the problem. Say you need to send a message to your lawyer about your cheating wife/husband and you need to make absolutely sure that she/he can&#8217;t read it, because she/he doesn&#8217;t know you know she/he&#8217;s cheating (that bitch/bastard). Let&#8217;s say the whore/asshole works at the post office and delivers the lawyer&#8217;s mail, so she/he&#8217;s sure to be able to read the message if you just sent it on a post card. To get around this, we give the lawyer an open lock to which we possess the only key. He will then place an open lock of his choosing to which only he possesses the key inside a box, lock it using your lock, and mail it to you. When this box is delivered to you, you can unlock it, as you have the key to it, and remove his open lock. You will then place your message in the box, as well as your open lock (so he can send you another message back), and lock the box with his lock. Now only your lawyer can open the box you have just locked. The only way the lying bitch/bastard can then read the message is if you either copied it before you locked it up, or ask him to send it back once he&#8217;s unlocked it.</p>
<p>In this example, the locks we selected are our &#8220;public keys&#8221;, and the keys to those locks are our &#8220;private keys&#8221;. We don&#8217;t need the key to the lock to secure it, only to open it. Of course, in the digital world, we can duplicate the lock (public key) before we lock it down as many times as we need to, so there&#8217;s no reason to exchange that lock each time. There is never an exchange, or even presentation of the keys to open our locks (private key), so we never give anyone the ability open our locks! The only way to access the information stored in our locked box other than having the key, would be to pick the lock. To prevent this we use locks with great complexity. Were these keys physical, and each pin in our lock was 1/8th of an inch apart, our typical 1024 bit key would be over 10 feet long. Try picking that. I dare you.</p>
<p>Of course there&#8217;s no real limit to the size of the lock/key pair that your use, but if you want to keep it sane, 1024 bits is practically impossible to break these days. 2048 is without question enough for the next 5 years. 4096 is crazy.</p>
<p>Please, send me a digitally encrypted message here in the comments and I&#8217;ll get back to you, just don&#8217;t forget to link your public key!</p>
]]></content:encoded>
			<wfw:commentRss>http://redkrieg.com/2007/04/10/gnupg-e-mail-encryption/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ghost 4 Linux complete guide to imaging</title>
		<link>http://redkrieg.com/2007/03/19/ghost-4-linux-complete-guide-to-imaging/</link>
		<comments>http://redkrieg.com/2007/03/19/ghost-4-linux-complete-guide-to-imaging/#comments</comments>
		<pubDate>Tue, 20 Mar 2007 02:23:25 +0000</pubDate>
		<dc:creator>RedKrieg</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Work]]></category>

		<guid isPermaLink="false">http://redkrieg.com/2007/03/19/ghost-4-linux-complete-guide-to-imaging/</guid>
		<description><![CDATA[About a month ago I was given 65 new Dell Optiplex 745&#8242;s to replace my 6 year old desktops in my training environment. This presented a multitude of problems for me. Problems: Our imaging software ran off of a floppy &#8230; <a href="http://redkrieg.com/2007/03/19/ghost-4-linux-complete-guide-to-imaging/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>About a month ago I was given 65 new Dell Optiplex 745&#8242;s to replace my 6 year old desktops in my training environment. This presented a multitude of problems for me.</p>
<p><strong>Problems:</strong></p>
<ol>
<li>Our imaging software ran off of a floppy disk.</li>
<li>It was DOS based, and I hate DOS</li>
<li>It couldn&#8217;t detect SATA drives (you would not <strong>believe</strong> how mad I was when I finally solved the floppy problem just to run into this).</li>
</ol>
<p>As usual, I&#8217;m dumped into this with no support of note and a limited time frame. Not to mention all of my normal duties. So what do I do? The same thing I do whenever I have an insurmountable obstacle&#8230; Turn to Linux.</p>
<p><a href="http://www.sourceforge.net/projects/g4l">Ghost 4 Linux</a> is a CD based distro designed with imaging in mind. It&#8217;s really useful and all that, blah blah blah. This post isn&#8217;t about extolling its many virtues. This post is to teach you how to use it. More accurately, this post is to teach my coworkers at our other sites to replicate my setup. I&#8217;ve included below the document I sent to them so they could get up and running with Windows 2003 servers.</p>
<p>Enjoy.</p>
<p><strong>Ghost 4 Linux instructions</strong></p>
<p>Ghost 4 Linux is natively a CD based distribution; however it can be easily modified to run from a network boot.  These instructions assume you are using a Windows 2003 Server for DHCP.<br />
<span id="more-97"></span><br />
<strong>One-Time Network Setup:</strong></p>
<ol>
<li>Get the ISO image from <a href="http://sourceforge.net/project/showfiles.php?group_id=119810&#038;package_id=130506&#038;release_id=488197">http://sourceforge.net/project/showfiles.php?group_id=119810&#038;package_id=130506&#038;release_id=488197</a></li>
<li>Burn the image to a CD.  (If you don’t want to network boot, stop here, you’re done)</li>
<li>Copy all files from the CD to a folder called “TFTP” on a server (I use my primary DHCP server, you’ll see why in a moment).</li>
<li>Download syslinux from <a href="http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.36.zip">http://www.kernel.org/pub/linux/utils/boot/syslinux/syslinux-3.36.zip</a></li>
<li>Copy the file “pxelinux.0” from the zip to the TFTP folder.</li>
<li>Create a folder in the TFTP folder called “pxelinux.cfg”</li>
<li>Copy the isolinux.cfg file from the TFTP folder in to the “pxelinux.cfg” folder.</li>
<li>Rename isolinux.cfg in the “pxelinux.cfg” folder to “default”.  (This step ensures that our file becomes a catch-all.  Using this method, it is possible to have different boot images based on the MAC of the requesting machine.)</li>
<li>Edit “default” and change the TIMEOUT variable to 100 (10 seconds) and the ONTIMEOUT variable to “bzImage20.1” (the kernel with the best support for our hardware).  Move “MENU DEFAULT” from “bzImageb” to “bzImage20.1”.  This allows for unattended network booting.  (You’ll need a UNIX capable text editor to view the “default” configuration file.  Notepad will not read it properly.  Try <a href="http://sourceforge.net/project/showfiles.php?group_id=95717&#038;package_id=102072">http://sourceforge.net/project/showfiles.php?group_id=95717&#038;package_id=102072</a>)</li>
<li>Open the DHCP control panel on your primary DHCP server (you’ll need to do this on the secondary as well).</li>
<li>Expand the “Scope” folder. Right click on “Scope Options” and select “Configure Options”.</li>
<li>Put a check mark in “013 Boot File Size” and enter “0x1a”.</li>
<li>Put a check mark in “043 Vendor Specific Info” and enter “01 04 00 00 00 00 ff” under the Binary Value column.</li>
<li>Open a command window and type the following (substitute your own DHCP server name):<br />
<code>c:\>netsh<br />
dhcp<br />
server \\server_name<br />
add optiondef 60 ClassID String 0<br />
set optionvalue 60 STRING PXEClient</code></li>
<li>Put a check mark in “066 Boot Server Host Name” and enter the IP address of the server.</li>
<li>Put a check mark in “067 Bootfile Name” and enter “pxelinux.0”.</li>
<li>Copy “tftpd.exe” from “C:\WINDOWS\system32\dllcache\” (it’s there, show hidden and system files) to &#8220;C:\WINDOWS\system32\” on the DHCP server.</li>
<li>On the DHCP server, type “sc create tftpd binpath= c:\WINDOWS\system32\tftpd.exe”.</li>
<li>Open the services console from MMC.</li>
<li>Start the new tftpd service.</li>
<li>Run regedit.</li>
<li>Browse to “HKEY_LOCAL_MACHINE\system\currentControlSet\services\tftpd”</li>
<li>Add a subkey called “parameters” to the tftpd folder.</li>
<li>Add a string value “Directory” to the “parameters” key.</li>
<li>Give “Directory” the path location where your boot image file is located. (C:\TFTP).</li>
<li>Repeat steps 10-16 for your secondary DHCP server (If applicable).</li>
<li>Take a break.</li>
<li>On any server with plenty of free space available, you’ll need to set up the IIS FTP service with a folder and anonymous read/write access.  Remember the IP of this server.</li>
</ol>
<p><strong>Client setup:</strong></p>
<ol>
<li>Boot a machine that’s already configured with the proper partition scheme for all your images (partitions must not change sizes; this requires extra work and takes longer to image).</li>
<li>Press F2 during boot to enter setup.</li>
<li>Expand “Onboard Devices”.</li>
<li>Go to “Integrated NIC”.</li>
<li>Change from “On” to “On w/PXE”.</li>
<li>Save and Exit.</li>
<li>Press F12 during boot to enter the boot menu.</li>
<li>Select “Onboard Network Controller”</li>
<li>The machine should get an address from DHCP then load the bootsplash.</li>
<li>Either scroll down to option “F” and press Enter, or just wait 10 seconds.  (If the splash screen does not appear, something is wrong with the DHCP configuration, contact me).</li>
<li>After the kernel loads (takes about 20 seconds), a new splash screen will appear.  Press Enter 3 times and it will load a prompt.  (This is a fully functional linux shell, but all we want is the ghost program).</li>
<li>Make a note of the IP given and type “g4l”.</li>
<li>Press Enter to skip the warning screen.</li>
<li>You’re now in the ghost program.  For our first image, we’ll use “RAW Mode”, so select it.</li>
<li>Choose “Network Use” (Click ‘n’ Clone can be used if you just want to copy one drive to another).</li>
<li>Choose option “D: Config FTP”.</li>
<li>Enter the IP address of the server from step 28 above.</li>
<li>Choose option “F: Config Filename”.</li>
<li>Press Enter and type the file name you wish to use (I use “sda” for “Serial Disk Alpha”).</li>
<li>Choose option “H: Backup”</li>
<li>Press Space to select “(X) sda” (This is the first serial hard drive attached.  “sda1” is the first partition on sda.  “sda5” is the first logical drive on sda.)</li>
<li>Press Enter.</li>
<li>Press Enter again to confirm and backup will begin.  (This can take a couple hours if the disk has lots of data, see “tips” below to speed it up.)</li>
</ol>
<p>Once the backup is complete, you can restore the partition table to all the machines.  This only needs to be done once for each machine.  After this we’ll be using “File Mode” to only copy the data.</p>
<p><strong>Tip 1:</strong> RAW mode is capable of a bit-for-bit backup, thus even deleted files are stored in the image!  To help with speed and image size, there&#8217;s a tool on the cd called “blank6”.  All it does is make files of all zeroes until it fills the drive, then deletes them.  This makes the image easier to compress.</p>
<p><strong>Tip 2:</strong> When running g4l, you can skip steps 16-19 above by typing “g4l 10.10.10.15 sda” to run g4l.  This sets the IP of the FTP server to “10.10.10.15” and the image file name to “sda”.  Saves time and also works when restoring (see steps 4-7 below).</p>
<p><strong>Restoring the partition table:</strong></p>
<ol>
<li>Boot to g4l and run it.</li>
<li>Choose “RAW Mode”.</li>
<li>Choose “Network Use”.</li>
<li>Choose option “D: Config FTP”.</li>
<li>Enter the IP of the FTP server where the “sda” image is located.</li>
<li>Choose option “F: Config filename”.</li>
<li>Scroll to “sda” and press Space to select, then Enter.</li>
<li>Choose option “I: Restore”</li>
<li>Press Space to select “sda”, then press Enter.</li>
<li>Press Enter to confirm.</li>
<li>Repeat for each machine needing the partition table.</li>
</ol>
<p>Again, this only needs to be done once per machine, but can take some time.  Any number of machines can be imaged in this way simultaneously.</p>
<p><strong>File mode imaging</strong></p>
<p>Now that we have our partition table on the hard drive we can do a file mode image.  This is the fast one you’ll use for day-to-day imaging.  File mode can be done over the network, or to a partition on the drive.  I use network because it’s actually faster, since the system doesn’t have to read and write to two different places on the disk simultaneously.</p>
<p><strong>File mode Server (backup and restore):</strong></p>
<ol>
<li>Boot into g4l as before (Make note of the IP address before typing “g4l”!!!).</li>
<li>Choose “File Mode”.</li>
<li>Choose “Select partition”.</li>
<li>Scroll down to “sda7” assuming we’re using the same partition scheme.  Otherwise, find the one you store images on.</li>
<li>Press Space to select and Enter to confirm.</li>
<li>Press Enter at the dialog specifying mount information.</li>
<li>Select “Launch server”.</li>
<li>Press Enter to continue.</li>
<li>The server is now running.</li>
</ol>
<p>Only one server is needed for up to 20 clients imaging simultaneously.</p>
<p><strong>File mode Client (backup):</strong></p>
<ol>
<li>Boot into g4l.</li>
<li>Choose “File Mode”.</li>
<li>Choose “Launch client”.</li>
<li>Use Up/Down to select the partition to be imaged.</li>
<li>Press Right or Tab to move to the “Image file…” field.</li>
<li>Enter “/mnt/local/filename”.  (“/mnt/local/” is something you will need to memorize, sorry.)  For the filename, I use “hdc” for the helpdesk C drive (sda1), “hdd” for the helpdesk D drive (sda5), and xp for the clean XP image (sda1).</li>
<li>Press Down to select “Save partition into a new image file” and press Space to ensure it is selected.</li>
<li>Press Down until you reach “[ ] Connect to server” and press Space to select it.</li>
<li>Press Down and enter the IP address recorded in step 1 of the server set up.</li>
<li>Press F5.</li>
<li>Press F5 again to use the default options.</li>
<li>Enter a description (e.g. “Helpdesk C Drive”) and press Enter.</li>
<li>Press Enter on the NTFS warning.</li>
<li>A summary will appear.  Press Enter again.</li>
<li>Image saving will commence.  When complete, the system can be rebooted.</li>
</ol>
<p><strong>File mode Client (restore):</strong></p>
<ol>
<li>Boot into g4l.</li>
<li>Choose “File Mode”.</li>
<li>Choose “Launch client”.</li>
<li>Use Up/Down to select the partition to be imaged.  (sda1 is C, sda5 is D if you’re using the same scheme as me).</li>
<li>Press Right or Tab to move to the “Image file…” field.</li>
<li>Enter “/mnt/local/filename.000”.  IMPORTANT!  The “.000” gets appended to every file mode backup.  This serves two purposes…  One, the file can be spanned to account for the 2GB file size limit in FAT32.  Two, you can’t accidentally overwrite your image if you forget to select “Restore” in the next step (it will create a file called “imagename.000.000” instead).</li>
<li>Press Down to highlight “Restore a partition from an image file” and Space to select it.</li>
<li>Press Down to highlight “[ ] Connect to Server” and press Space to select it.</li>
<li>Press Down and enter the IP address recorded in step 1 of the server set up.</li>
<li>Press F5.  The description of the image will appear (e.g. “Helpdesk C Drive”).</li>
<li>Press Enter, then F5 again to select the default options.</li>
<li>Press Enter 3 times to confirm the dialogs, restoration will begin.</li>
</ol>
<p>I am currently working on rewriting g4l to have each of these steps done relatively automatically.  All one would have to do is select what you want to do, then g4l will take care of the rest, but I’m not there yet.  After I do that, this will be as easy as “enter the IP and select an image”.  But it may be a few weeks before I get to that point.</p>
<p>Let me know if you have any trouble.</p>
]]></content:encoded>
			<wfw:commentRss>http://redkrieg.com/2007/03/19/ghost-4-linux-complete-guide-to-imaging/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Black 360 Universal Remote Mod</title>
		<link>http://redkrieg.com/2006/12/27/black-360-universal-remote-mod/</link>
		<comments>http://redkrieg.com/2006/12/27/black-360-universal-remote-mod/#comments</comments>
		<pubDate>Thu, 28 Dec 2006 03:53:28 +0000</pubDate>
		<dc:creator>RedKrieg</dc:creator>
				<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://redkrieg.com/2006/12/27/black-360-universal-remote-mod/</guid>
		<description><![CDATA[I finally got my universal remote apart without breaking it in half and decided to throw together a little how-to for all the people having trouble getting it apart to paint it. Here we have the remote, battery cover removed. &#8230; <a href="http://redkrieg.com/2006/12/27/black-360-universal-remote-mod/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I finally got my universal remote apart without breaking it in half and decided to throw together a little how-to for all the people having trouble getting it apart to paint it.</p>
<ol>
<li>Here we have the remote, battery cover removed. Notice the screw at the far end of the battery cover. It is normally covered by a sticker.<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00001.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00001-t.jpg" /></a></li>
<li>Use a flat head screwdriver to pry the back tabs up, releasing the battery case.<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00002.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00002-t.jpg" /></a></li>
<li>I used a vice to apply pressure to both sides of the controller. Because of its shape, you&#8217;ll need to slide it back and forth gradually as you apply pressure to prevent any blemishes. Also be sure to use a rag to keep the plastic away from the metal.<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00003.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00003-t.jpg" /></a></li>
<li>Pull up at the seam until the side pops out. You&#8217;ll only need to get one side loose, the other will follow naturally.<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00004.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00004-t.jpg" /></a></li>
<li>Bottom of remote removed.<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00005.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00005-t.jpg" /></a></li>
<li>Be sure to remove these metal bits before painting, thank me later.<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00006.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00006-t.jpg" /></a></li>
<li>Main board removed. I used masking tape over the IR screen, rather than try to separate it from the gray plastic before painting.<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00007.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00007-t.jpg" /></a></li>
<li>Remote fully disassembled. Be sure not to lose anything!<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00008.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00008-t.jpg" /></a></li>
<li>Check out <a href="http://alcaron.blogspot.com/2006/12/noir-360-wireless-controller.html">Alcaron&#8217;s tutorial</a> for painting tips.</li>
<li>Close ups of the individual parts after painting. I painted in the dark, which was a major mistake. Always paint during the day.<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00009.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00009-t.jpg" /></a><a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00010.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00010-t.jpg" /></a><a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00011.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00011-t.jpg" /></a></li>
<li>And our finished product. Notice the awful paint job which I&#8217;ll be sanding down and repainting tomorrow. I just wanted to get this up today. Hope you all enjoyed!<br />
    <a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00012.jpg"><img width="200" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00012-t.jpg" /></a><a href="http://redkrieg.com/wp-content/uploads/Image/remote/00013.jpg" title="{remote}"><img width="200" height="150" border="0" src="http://redkrieg.com/wp-content/uploads/Image/remote/00013-t.jpg" alt="" /></a><a href="http://redkrieg.com/wp-content/uploads/Image/remote/00014.jpg" title="{remote}"><img width="200" height="150" border="0" src="http://redkrieg.com/wp-content/uploads/Image/remote/00014-t.jpg" alt="" /></a><a href="http://redkrieg.com/wp-content/uploads/Image/remote/00015.jpg" title="{remote}"><img width="200" height="150" border="0" src="http://redkrieg.com/wp-content/uploads/Image/remote/00015-t.jpg" alt="" /></a><a title="{remote}" href="http://redkrieg.com/wp-content/uploads/Image/remote/00016.jpg"><img width="113" height="150" border="0" alt="" src="http://redkrieg.com/wp-content/uploads/Image/remote/00016-t.jpg" /></a></li>
</ol>
<p>Please, let me know if you give this a shot, I really love the look.</p>
]]></content:encoded>
			<wfw:commentRss>http://redkrieg.com/2006/12/27/black-360-universal-remote-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Black Controller Mod</title>
		<link>http://redkrieg.com/2006/12/25/black-controller-mod/</link>
		<comments>http://redkrieg.com/2006/12/25/black-controller-mod/#comments</comments>
		<pubDate>Tue, 26 Dec 2006 01:03:47 +0000</pubDate>
		<dc:creator>RedKrieg</dc:creator>
				<category><![CDATA[Art & Design]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://redkrieg.com/2006/12/25/black-controller-mod/</guid>
		<description><![CDATA[I&#8217;ve been a busy little bee this holiday break and decided to modify one of my xbox360 controllers following this guide by Alcaron. It came out way better than I thought it would, the only issue I had being that &#8230; <a href="http://redkrieg.com/2006/12/25/black-controller-mod/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been a busy little bee this holiday break and decided to modify one of my xbox360 controllers following <a href="http://alcaron.blogspot.com/2006/12/noir-360-wireless-controller.html">this guide</a> by Alcaron. It came out way better than I thought it would, the only issue I had being that the battery compartment button didn&#8217;t hold the paint, so it&#8217;s starting to scratch off. Other than that one (easy to fix) blemish, I think the whole project worked well, and I&#8217;ll be repeating the process for my other controller and all my accessories soon&#8230; If only I can figure out how to get that damned universal remote apart. Here&#8217;s the pics! Enjoy!</p>
<p><a title="{controller} Sexy in Black" href="http://redkrieg.com/wp-content/uploads/Image/controllerfront.jpg"><img width="201" height="150" border="0" src="http://redkrieg.com/wp-content/uploads/Image/controllerfront-t.jpg" alt="" /></a><a title="{controller} Minor blemish on battery case, wear inside control sticks." href="http://redkrieg.com/wp-content/uploads/Image/controllertop.jpg"><img width="200" height="150" border="0" src="http://redkrieg.com/wp-content/uploads/Image/controllertop-t.jpg" alt="" /></a><a title="{controller} This is the paint I used, worked great." href="http://redkrieg.com/wp-content/uploads/Image/controllerpaint.jpg"><img width="130" height="150" border="0" src="http://redkrieg.com/wp-content/uploads/Image/controllerpaint-t.jpg" alt="" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://redkrieg.com/2006/12/25/black-controller-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

<!-- Served from: redkrieg.com @ 2012-02-05 05:47:20 by W3 Total Cache -->
