<?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>LinuxNut.org</title>
	<atom:link href="http://linuxnut.org/feed/" rel="self" type="application/rss+xml" />
	<link>http://linuxnut.org</link>
	<description>Nuts about Linux and Stuff...</description>
	<lastBuildDate>Fri, 09 Apr 2010 15:52:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Random Key Generator</title>
		<link>http://linuxnut.org/2010/04/random-key-generator/</link>
		<comments>http://linuxnut.org/2010/04/random-key-generator/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 15:52:23 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[generator]]></category>
		<category><![CDATA[key]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://linuxnut.org/?p=156</guid>
		<description><![CDATA[Need a strong password or a random key? Well http://randomkeygen.com/ has what you need. Just click on the link and you&#8217;ll be given a choice of 19 passwords of varying complexity, and 21 keys from 64 bit through to 504 bit in length.
]]></description>
			<content:encoded><![CDATA[<p>Need a strong password or a random key? Well <a href="http://randomkeygen.com/">http://randomkeygen.com/</a> has what you need. Just click on the link and you&#8217;ll be given a choice of 19 passwords of varying complexity, and 21 keys from 64 bit through to 504 bit in length.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2010/04/random-key-generator/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Resizing and Renaming Batches of Images</title>
		<link>http://linuxnut.org/2010/04/resizing-and-renaming-batches-of-images/</link>
		<comments>http://linuxnut.org/2010/04/resizing-and-renaming-batches-of-images/#comments</comments>
		<pubDate>Wed, 07 Apr 2010 11:11:59 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[batch]]></category>
		<category><![CDATA[images]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[rename]]></category>
		<category><![CDATA[resize]]></category>

		<guid isPermaLink="false">http://linuxnut.org/?p=149</guid>
		<description><![CDATA[I recently had the need to resize a hundred jpeg images of varying sizes, and to get them all down to consistent widths (or heights for the portrait images), and then finally to rename the thumbnail preview images that I had also created.

Resizing
My first thought was that I could use Gimp, but alas it does [...]]]></description>
			<content:encoded><![CDATA[<p>I recently had the need to resize a hundred jpeg images of varying sizes, and to get them all down to consistent widths (or heights for the portrait images), and then finally to rename the thumbnail preview images that I had also created.<br />
<span id="more-149"></span></p>
<h3>Resizing</h3>
<p>My first thought was that I could use Gimp, but alas it does not by default have a batch conversion process. There is a plug-in called “<a href="http://members.ozemail.com.au/~hodsond/dbp.html">David&#8217;s Batch Processor</a>”, but it doesn&#8217;t allow you to specify just the X or Y dimension by itself.</p>
<p>The resizing tool I went for was &#8216;<a href="http://www.imagemagick.org/www/mogrify.html">mogrify</a>&#8216;, which is a command line utility with awesome image manipulation capabilities. Since I wanted to get all my landscape format images down to 400 pixels wide, I just entered the following command:</p>
<pre>mogrify -resize 400 *.jpg</pre>
<p>For the portrait images that I wanted to all be 400 pixels high I entered:</p>
<pre>mogrify -resize x400 *.jpg</pre>
<h3>Renaming</h3>
<p>Once I had all the images resized, I wanted to set the names of my preview thumbnails to end &#8216;_pre.jpg&#8217;. It turns out that this is very easy to do with the &#8216;rename&#8217; command, which was written by the creator of Perl &#8211; Larry Wall. The command is included by default with Debian and Ubuntu, and is easily added to other distros.</p>
<p>Just supply &#8216;rename&#8217; with a <a href="http://www.regular-expressions.info/reference.html">regular expression</a>, and it renames your files as required. The important part of the command parameter is:</p>
<pre>'s/ [pattern to match] / [what to replace it with] /'</pre>
<p>To rename my images I just entered:</p>
<pre>rename -v 's/\.jpg$/_pre\.jpg/' *.jpg</pre>
<p>To test the command without actually renaming anything, just change &#8216;-v&#8217; to &#8216;-n&#8217;.</p>
<p>For more information on the &#8216;rename&#8217; command see <a href="http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal">http://tips.webdesign10.com/how-to-bulk-rename-files-in-linux-in-the-terminal</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2010/04/resizing-and-renaming-batches-of-images/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>umask</title>
		<link>http://linuxnut.org/2009/08/umask/</link>
		<comments>http://linuxnut.org/2009/08/umask/#comments</comments>
		<pubDate>Fri, 21 Aug 2009 13:59:16 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[umask]]></category>

		<guid isPermaLink="false">http://admin.linuxnut.org/?p=119</guid>
		<description><![CDATA[umask determines what permissions any new files or directories will have by default. Like file permissions, it historically takes an octal value (e.g. &#8216;umask 002&#8242;), but can also symbolic values (e.g. &#8216;umask a=rx,ug+w&#8217;). I&#8217;m going to just focus on the octal values.

The octal value appears to have a lower than what you&#8217;d normally set with [...]]]></description>
			<content:encoded><![CDATA[<p>umask determines what permissions any new files or directories will have by default. Like file permissions, it historically takes an octal value (e.g. &#8216;umask 002&#8242;), but can also symbolic values (e.g. &#8216;umask a=rx,ug+w&#8217;). I&#8217;m going to just focus on the octal values.<br />
<span id="more-119"></span><br />
The octal value appears to have a lower than what you&#8217;d normally set with chmod, but this is because it is actually subtracted from the maximum possible file (666) or directory (777) permissions.</p>
<p>For example if you create a new directory with umask set to 022, the resulting permissions are set to 755, since 777 &#8211; 022 = 755.</p>
<p>Most of the time umask is set sensibly from the beginning, and you don&#8217;t have to worry about it. If you do need to change it, you&#8217;ll probably find it being set in one of your login scripts &#8211; &#8216;/etc/profile&#8217; or &#8216;~/.bashrc&#8217;.</p>
<p>For more information just check the man page.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2009/08/umask/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Programmer Jokes</title>
		<link>http://linuxnut.org/2009/08/programmer-jokes/</link>
		<comments>http://linuxnut.org/2009/08/programmer-jokes/#comments</comments>
		<pubDate>Wed, 19 Aug 2009 18:48:33 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[Humor]]></category>
		<category><![CDATA[Links]]></category>

		<guid isPermaLink="false">http://linuxnut.org/?p=145</guid>
		<description><![CDATA[Here&#8217;s a bunch of programmer jokes &#8211; http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke
]]></description>
			<content:encoded><![CDATA[<p>Here&#8217;s a bunch of programmer jokes &#8211; <a href="http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke" target="_blank">http://stackoverflow.com/questions/234075/what-is-your-best-programmer-joke</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2009/08/programmer-jokes/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Unix time</title>
		<link>http://linuxnut.org/2009/08/unix-time/</link>
		<comments>http://linuxnut.org/2009/08/unix-time/#comments</comments>
		<pubDate>Sun, 16 Aug 2009 16:23:10 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[time]]></category>
		<category><![CDATA[Unix]]></category>
		<category><![CDATA[UTC]]></category>

		<guid isPermaLink="false">http://admin.linuxnut.org/?p=122</guid>
		<description><![CDATA[If you should happen to need to know the current time as a unix timestamp, try http://www.unixtime.se/. Alternatively typing
date +%s
at a convenient command line might be faster, and more accurate&#8230;
]]></description>
			<content:encoded><![CDATA[<p>If you should happen to need to know the current time as a unix timestamp, try <a href="http://www.unixtime.se/" target="_blank">http://www.unixtime.se/</a>. Alternatively typing</p>
<pre>date +%s</pre>
<p>at a convenient command line might be faster, and more accurate&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2009/08/unix-time/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>What distro version am I running?</title>
		<link>http://linuxnut.org/2009/01/what-distro-version-am-i-running/</link>
		<comments>http://linuxnut.org/2009/01/what-distro-version-am-i-running/#comments</comments>
		<pubDate>Tue, 13 Jan 2009 19:35:30 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[distro]]></category>
		<category><![CDATA[LSB]]></category>

		<guid isPermaLink="false">http://admin.linuxnut.org/?p=48</guid>
		<description><![CDATA[With any Linux Standard Base compliant distro (Mandriva, openSUSE, Red Hat, Ubuntu, etc&#8230;), there is an easy way to find its version number, and code name.
Just run the following command:
lsb_release -a
This should give a result such as the following:
Distributor ID:	Ubuntu
Description:	Ubuntu 8.10
Release:	8.10
Codename:	intrepid
Additionally, to find out what type of architecture your kernel is currently compiled for, just [...]]]></description>
			<content:encoded><![CDATA[<p>With any <a href="http://www.linuxbase.org/">Linux Standard Base</a> compliant distro (Mandriva, openSUSE, Red Hat, Ubuntu, etc&#8230;), there is an easy way to find its version number, and code name.</p>
<p><span id="more-48"></span>Just run the following command:</p>
<pre>lsb_release -a</pre>
<p>This should give a result such as the following:</p>
<pre>Distributor ID:	Ubuntu
Description:	Ubuntu 8.10
Release:	8.10
Codename:	intrepid</pre>
<p>Additionally, to find out what type of architecture your kernel is currently compiled for, just run:</p>
<pre>uname -m</pre>
<p>Which will give something like this:</p>
<pre>x86_64</pre>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2009/01/what-distro-version-am-i-running/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>FFmpeg</title>
		<link>http://linuxnut.org/2009/01/ffmpeg/</link>
		<comments>http://linuxnut.org/2009/01/ffmpeg/#comments</comments>
		<pubDate>Sun, 11 Jan 2009 15:23:53 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[FFmpeg]]></category>
		<category><![CDATA[transcode]]></category>
		<category><![CDATA[video]]></category>

		<guid isPermaLink="false">http://admin.linuxnut.org/?p=46</guid>
		<description><![CDATA[FFmpeg is an open-source command line utility for performing audio/video file conversions. It can be used to simply convert straight from one video format to another, or to crop, pad, rescale, change bit-rates, merge or split out audio and video, and so on&#8230;
The projects website is at http://ffmpeg.mplayerhq.hu/. Here&#8217;s a few links to some of [...]]]></description>
			<content:encoded><![CDATA[<p>FFmpeg is an open-source command line utility for performing audio/video file conversions. It can be used to simply convert straight from one video format to another, or to crop, pad, rescale, change bit-rates, merge or split out audio and video, and so on&#8230;</p>
<p><span id="more-46"></span>The projects website is at <a href="http://ffmpeg.mplayerhq.hu/">http://ffmpeg.mplayerhq.hu/</a>. Here&#8217;s a few links to some of the most useful parts of the project&#8217;s own documentation:</p>
<ul>
<li><a href="http://ffmpeg.mplayerhq.hu/general.html">Supported file, image, video and audio formats</a></li>
<li><a href="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#TOC9">Video options</a></li>
<li><a href="http://ffmpeg.mplayerhq.hu/ffmpeg-doc.html#TOC11">Audio options</a></li>
</ul>
<p>The simplest command format is &#8216;ffmpeg -i inputFile outputFile&#8217;, but it can be made as complex as required, in order to specify every single parameter of the conversion process.</p>
<p>To obtain the encoding details from an existing audio or video file, just run the command with only an input file specified, e.g.: ffmpeg -i somefile.avi</p>
<p>I&#8217;ll now list some commonly used parameters. These may do exactly what you need first time, but don&#8217;t be surprised if you have to tweak the parameters slightly for them to work on your system, with your files:</p>
<p><strong>Convert AVI video to MPEG:</strong></p>
<pre>ffmpeg -i inputFile.avi outputFile.mpg</pre>
<p><strong>Convert MPEG video to AVI:</strong></p>
<pre>ffmpeg -i inputFile.mpg outputFile.avi</pre>
<p><strong>Convert FLV to MPEG:</strong></p>
<pre>ffmpeg -i inputFile.flv -ab 56k -ar 22050 -b 500k -s 320x240 outputFile.mpg</pre>
<dl>
<dd>Audio bit-rate: 56kbps</dd>
<dd>Audio sampling frequency: 22050Hz</dd>
<dd>Video bit-rate: 500kbps</dd>
<dd>Video size: 320 x 240</dd>
</dl>
<p>&nbsp;<br />
<strong>Convert MPEG or AVI to FLV:</strong></p>
<pre>ffmpeg -i inputFile.avi -acodec mp3 -ar 22050 -f flv outputFile.flv</pre>
<dl>
<dd>Audio sampling frequency: 22050Hz</dd>
</dl>
<p>&nbsp;<br />
<strong>Convert AVI to MPEG-2 for DVD</strong><br />
Note that you will probably need to change the &#8216;target&#8217; and &#8216;aspect&#8217; to match your needs:</p>
<pre>ffmpeg -i inputFile.avi -target pal-dvd -aspect 16:9 outputFile.mpg</pre>
<p><strong>Convert sequence of JPEGs to MPEG:</strong><br />
Note that the image files in this example would named &#8216;pic-001.jpg, pic-002.jpg, etc&#8230;</p>
<pre>ffmpeg -f image2 -i pic-%d.jpg outputFile.mpg</pre>
<p><strong>Convert MPEG or AVI to sequence of JPEGs:</strong></p>
<pre>ffmpeg -i inputFile.mpg pic-%d.jpg</pre>
<p><strong>Convert MPEG or AVI to time-lapsed sequence of JPEGs, one per second:</strong></p>
<pre>ffmpeg -i inputFile.mpg -r 1 pic-%d.jpg</pre>
<dl>
<dd>Video frame-rate: 1fps</dd>
</dl>
<p>&nbsp;<br />
<strong>Convert MPEG or AVI to animated GIF:</strong></p>
<pre>ffmpeg -i inputFile.avi outputFile.gif</pre>
<p><strong>Convert MP3 to WAV:</strong></p>
<pre>ffmpeg -i inputFile.mp3 outputFile.wav</pre>
<p><strong>Convert WAV to MP3:</strong></p>
<pre>ffmpeg -i inputFile.wav -ab 256k outputFile.mp3</pre>
<dl>
<dd>Audio bit-rate: 256kbps</dd>
</dl>
<p>&nbsp;<br />
<strong>Remove the audio from MPEG or AVI:</strong></p>
<pre>ffmpeg -i inputFile.avi -an outputFile.avi</pre>
<p><strong>Remove video from MPEG or AVI, and convert to MP3:</strong></p>
<pre>ffmpeg -i inputFile.avi -an -ab 256k outputFile.mp3</pre>
<dl>
<dd>Audio bit-rate: 256kbps</dd>
</dl>
<p>&nbsp;<br />
<strong>Add audio and video together, and convert to MPEG:</strong></p>
<pre>ffmpeg -i audioFile.wav -i videoFile.avi outputFile.mpg</pre>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2009/01/ffmpeg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>watch</title>
		<link>http://linuxnut.org/2009/01/watch/</link>
		<comments>http://linuxnut.org/2009/01/watch/#comments</comments>
		<pubDate>Sun, 04 Jan 2009 14:56:41 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://admin.linuxnut.org/?p=25</guid>
		<description><![CDATA[I only came across this command fairly recently. It&#8217;s a simple command, but immensely useful.
The watch command is used to run a given command at a predefined interval, and to monitor the output in real-time until the watch command is terminated. When run, it initially only displays the first output of the given command, and [...]]]></description>
			<content:encoded><![CDATA[<p>I only came across this command fairly recently. It&#8217;s a simple command, but immensely useful.</p>
<p>The watch command is used to run a given command at a predefined interval, and to monitor the output in real-time until the watch command is terminated. When run, it initially only displays the first output of the given command, and then only updates it if something in the output changes.</p>
<p><span id="more-25"></span>For example to have a constantly up-to-date listing of a directory, just run
<pre>watch ls</pre>
<p> Or similarly to have a list of who is logged onto your system, just run
<pre>watch who</pre>
<p> These two examples are very simple, but they can be made as complex as you like.</p>
<p>A number of options can be used:</p>
<ul>
<li>&#8216;-d&#8217; or &#8216;&#8211;differences&#8217; will briefly highlight what has changed in the output</li>
<li>&#8216;&#8211;cumulative&#8217; will make the differences remain displayed</li>
<li>&#8216;-n <em>seconds</em>&#8216; or &#8216;&#8211;interval=<em>seconds</em>&#8216; will allow the interval between program runs to be set to something other than it default of two seconds</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2009/01/watch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Finally &#8211; A 64-bit version of Adobe Flash Player for Linux</title>
		<link>http://linuxnut.org/2008/11/finally-a-64-bit-version-of-adobe-flash-player-for-linux/</link>
		<comments>http://linuxnut.org/2008/11/finally-a-64-bit-version-of-adobe-flash-player-for-linux/#comments</comments>
		<pubDate>Mon, 17 Nov 2008 22:41:02 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[How-Tos]]></category>
		<category><![CDATA[Links]]></category>
		<category><![CDATA[Adobe Flash]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://admin.linuxnut.org/?p=22</guid>
		<description><![CDATA[It seems to have been a long time coming, but finally an alpha version has been released. Although it&#8217;s an alpha, it&#8217;s still a vast improvement over the 32-bit version which I&#8217;ve used up until now with the aid of NPS Wrapper.
Because it can now running natively on a 64-bit architecture without the aid of [...]]]></description>
			<content:encoded><![CDATA[<p>It seems to have been a long time coming, but finally an alpha version has been released. Although it&#8217;s an alpha, it&#8217;s still a vast improvement over the 32-bit version which I&#8217;ve used up until now with the aid of NPS Wrapper.</p>
<p><span id="more-22"></span>Because it can now running natively on a 64-bit architecture without the aid of a wrapper, it has a smaller memory footprint and is vastly more stable. With the 32-bit version I usually had to restart Firefox at least once a day to free up some RAM, or just to get Flash Player working again.</p>
<p>To get your copy, just go to <a href="http://labs.adobe.com/downloads/flashplayer10.html">http://labs.adobe.com/downloads/flashplayer10.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2008/11/finally-a-64-bit-version-of-adobe-flash-player-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>GNU/Linux Distro Timeline</title>
		<link>http://linuxnut.org/2008/08/gnulinux-distro-timeline/</link>
		<comments>http://linuxnut.org/2008/08/gnulinux-distro-timeline/#comments</comments>
		<pubDate>Wed, 27 Aug 2008 19:48:32 +0000</pubDate>
		<dc:creator>Bryce</dc:creator>
				<category><![CDATA[Links]]></category>
		<category><![CDATA[GNU]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[timeline]]></category>

		<guid isPermaLink="false">http://admin.linuxnut.org/?p=18</guid>
		<description><![CDATA[Andreas has produced a cladogram (tree diagram) showing the timeline and relationship of probably every known Linux distribution. You can see the latest version of the diagram (v7.6) here, or visit the homepage http://futurist.se/gldt/.
]]></description>
			<content:encoded><![CDATA[<p>Andreas has produced a cladogram (tree diagram) showing the timeline and relationship of probably every known Linux distribution. You can see the latest version of the diagram (v7.6) <a href="http://futurist.se/gldt/gldt76.png">here</a>, or visit the homepage <a href="http://futurist.se/gldt/">http://futurist.se/gldt/</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://linuxnut.org/2008/08/gnulinux-distro-timeline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
