<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>LinuxQuestions.org - Blogs - Garda</title>
		<link>http://www.linuxquestions.org/questions/blog/garda-181394/</link>
		<description>LinuxQuestions.org offers a free Linux forum where Linux newbies can ask questions and Linux experts can offer advice. Topics include security, installation, networking and much more.</description>
		<language>en</language>
		<lastBuildDate>Wed, 19 Jun 2013 06:04:00 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>https://lqo-thequestionsnetw.netdna-ssl.com/questions/images/misc/rss.jpg</url>
			<title>LinuxQuestions.org - Blogs - Garda</title>
			<link>http://www.linuxquestions.org/questions/blog/garda-181394/</link>
		</image>
		<item>
			<title>Recursively generate MD5 checksums</title>
			<link>http://www.linuxquestions.org/questions/blog/garda-181394/recursively-generate-md5-checksums-22258/</link>
			<pubDate>Wed, 26 Oct 2011 14:53:27 GMT</pubDate>
			<description>I wanted to generate MD5 checksums of a whole bunch of files in a directory. It turns out that this is not as straightforward as it should be. IMO it...</description>
			<content:encoded><![CDATA[<div>I wanted to generate MD5 checksums of a whole bunch of files in a directory. It turns out that this is not as straightforward as it should be. IMO it should be completed with: md5sum -br *<br />
<br />
Unfortunately it was not as straightforward. I <a href="http://info.michael-simons.eu/2008/10/25/recursively-md5sum-all-files-in-a-directory-tree/" target="_blank" rel="nofollow">found this blog entry</a> after searching for a while and adapted this to what I needed. To generate checksums, I used the following:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">find . -type f -print0 | xargs -0 md5sum -b</pre>
</div>(Note: for the above to work, &quot;cd&quot; to the top level directiory, or use &quot;find /home/username/folder/&quot; instead of &quot;find .&quot;)<br />
<br />
Some explanation. The &quot;find&quot; command is used to list filenames based on a particular search. &quot;-type f&quot; lists only files (ie. &quot;-type d&quot; lists only directories). &quot;-print0&quot; is an option to use if the filename contains newline characters, it instead finishes entries with a NULL character. Correspondingly, the &quot;-0&quot; switch needs to be used with &quot;xargs&quot;.<br />
<br />
&quot;xargs&quot; is used to build commands using piped input. So the above basically repeats everything after the &quot;-0&quot; switch over and over with the input from &quot;find&quot; appended each time. If you want to use a different command, just replace &quot;md5sum -b&quot; with any other command.<br />
<br />
Also, if sums are stored to a text file, they can be verified using: <div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">md5sum -c <i>filename.txt</i></pre>
</div></div>

]]></content:encoded>
			<dc:creator>Garda</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/garda-181394/recursively-generate-md5-checksums-22258/</guid>
		</item>
		<item>
			<title>Add splash image to GRUB</title>
			<link>http://www.linuxquestions.org/questions/blog/garda-181394/add-splash-image-to-grub-1426/</link>
			<pubDate>Mon, 15 Dec 2008 08:59:36 GMT</pubDate>
			<description>I wanted to add something to the default GRUB screen that greets you as you start Linux more nicely than monochrome text. 
I did this using the...</description>
			<content:encoded><![CDATA[<div>I wanted to add something to the default GRUB screen that greets you as you start Linux more nicely than monochrome text.<br />
I did this using the splashscreen feature of GRUB version 1, the boot loader that I had installed.<br />
I used Krita for some of the image manipulation, but GIMP is also a good app. On Debian, you can get GIMP as root with<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">apt-get install gimp</pre>
</div>Splash images in GRUB have to be in .xpm or &quot;X PixMap&quot; format and they have to be 640x480 in size, and 14 colours.<br />
I found a nice image of tux on the internet and converted it to the right format.<br />
For interest, images can be .xpm or .xpm.gz (a gzipped image) which are created using<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">cat image.xpm | gzip &gt; image.xpm.gz</pre>
</div>Images are completely uncompressed and compressing using gzip does significantly reduce their size, however it's not really necessary given that they are only ~300KB anyway.<br />
<br />
I placed the image in /boot/grub<br />
<br />
To make the image appear during boot, I added the line to /boot/grub/menu.lst <br />
This file may be called something different depending on your distro.<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">splashimage=(hd0,0)/grub/splash.xpm</pre>
</div>(hd0,0) may be different depending on the location of where Linux is installed for you. There should be a section in this file that looks something like this:<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 66px;
		text-align: left;
		overflow: auto">title		Linux
root		(hd0,1)
kernel		/vmlinuz root=/dev/hda2 ro</pre>
</div>In this case (hd0,1) should be used. This is probably the easiest way of figuring out your drive's GRUB designation.<br />
I'm not sure why, but the splash image line needs to be entered into the GRUB configuration file in the early part of the file before the OS lists, otherwise it does not work.<br />
I could not get really good results with Krita, but I was able to find a nice Debian package (there may be a similar package for other distros) with pre-made images<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">apt-get install grub-splashimages</pre>
</div>These images are placed in /boot/grub/splashimages/ and can be accessed using a line such as<br />
<br />
<div style="margin:20px; margin-top:5px">
	<div class="smallfont" style="margin-bottom:2px">Code:</div>
	<pre class="bbcodeblock" dir="ltr" style="
		margin: 0px;
		margin-right: -99999px;
		padding: 3px;
		border: 1px inset;
		width: 98%;
		height: 34px;
		text-align: left;
		overflow: auto">splashimage=(hd0,0)/grub/splashimages/debsplash.xpm.gz</pre>
</div></div>

]]></content:encoded>
			<dc:creator>Garda</dc:creator>
			<guid isPermaLink="true">http://www.linuxquestions.org/questions/blog/garda-181394/add-splash-image-to-grub-1426/</guid>
		</item>
	</channel>
</rss>
