<?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>SurlyJake &#187; Linux</title>
	<atom:link href="http://www.surlyjake.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.surlyjake.com</link>
	<description></description>
	<lastBuildDate>Fri, 30 Dec 2011 15:28:12 +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>Create a custom application launcher in GNOME3</title>
		<link>http://www.surlyjake.com/2011/12/create-a-custom-application-launcher-in-gnome3/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=create-a-custom-application-launcher-in-gnome3</link>
		<comments>http://www.surlyjake.com/2011/12/create-a-custom-application-launcher-in-gnome3/#comments</comments>
		<pubDate>Fri, 30 Dec 2011 15:26:51 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Arch]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[IDE]]></category>
		<category><![CDATA[svg]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=879</guid>
		<description><![CDATA[On Arch, the system-wide shortcuts are stored in /usr/share/applications. Each one is a .desktop file with a few parameters. user-specific icons are stored in ~/.local/share/applications. I downloaded eclipse and extracted it in my home directory, so I&#8217;ll use eclipse as the example application. Create the .desktop file: nano ~/.local/share/applications/Eclipse.desktop Paste this in: [Desktop Entry] Encoding=UTF-8 [...]]]></description>
			<content:encoded><![CDATA[<p>On Arch, the system-wide shortcuts are stored in /usr/share/applications. Each one is a .desktop file with a few parameters. user-specific icons are stored in ~/.local/share/applications. I downloaded eclipse and extracted it in my home directory, so I&#8217;ll use eclipse as the example application.</p>
<ol>
<li><strong>Create the .desktop file:</strong>
<pre><code>nano ~/.local/share/applications/Eclipse.desktop</code></pre>
<p>Paste this in:</p>
<pre><code>[Desktop Entry]
Encoding=UTF-8
Version=1.0
Type=Application
NoDisplay=false
Exec=/path/to/eclipse/eclipse
Name=Eclipse Comment=Launcher for Eclipse</code></pre>
<p>Each line is pretty self-explanatory. Edit to suit your needs. As soon as you save the file, you will be able to see your new shortcut in the list.</li>
<li><strong>(Optional) Give the shortcut a nice-looking icon:</strong><br />
You probably noticed that your icon is an ugly diamond. To pretty it up, you simply have to add one more line to the desktop file.</p>
<pre><code> Icon=/path/to/eclipse/eclipse.<a href="http://www.surlyjake.com/tag/svg/" class="st_tag internal_tag" rel="tag" title="Posts tagged with svg">svg</a></code></pre>
<p>Your application may have included a png icon, but to make it really look nice, you should grab an SVG file of the logo from somewhere. Arch has a very simple packaging process which lets you examine all of the package building elements through their webpage at http://www.archlinux.org/packages/. I was able to grab the SVG which the package uses like this:</p>
<pre><code>wget -O eclipse.svg http://projects.archlinux.org/svntogit/packages.git/plain/trunk/eclipse.svg\?h\=packages/eclipse</code></pre>
</li>
</ol>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2011/12/create-a-custom-application-launcher-in-gnome3/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2011/12/create-a-custom-application-launcher-in-gnome3/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Prevent samba from creating home directory for machine accounts.</title>
		<link>http://www.surlyjake.com/2011/08/prevent-samba-from-creating-home-directory-for-machine-accounts/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=prevent-samba-from-creating-home-directory-for-machine-accounts</link>
		<comments>http://www.surlyjake.com/2011/08/prevent-samba-from-creating-home-directory-for-machine-accounts/#comments</comments>
		<pubDate>Fri, 05 Aug 2011 22:34:29 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Samba]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=367</guid>
		<description><![CDATA[Since this setup automatically creates a home directory for a user as soon as they access the machine (via samba, ssh, console), I noticed some directories being created for computer accounts.  To prevent this,  I have added a line that only &#8220;Domain Users&#8221; are allowed to authenticate.  To add this: wbinfo -n "Domain Users" It [...]]]></description>
			<content:encoded><![CDATA[<p>Since this setup automatically creates a home directory for a user as soon as they access the machine (via samba, ssh, console), I noticed some directories being created for computer accounts.  To prevent this,  I have added a line that only &#8220;Domain Users&#8221; are allowed to authenticate.  To add this:</p>
<pre><code>wbinfo -n "Domain Users"</code></pre>
<p>It will spit out the SID for the Domain Users group. Something like this:</p>
<pre><code>S-1-5-21-((some number))-((some number))-((some number)) Domain Group (2)</code></pre>
<p>Take that number and change the Pam_winbind.so line in /etc/pam.d/common-session to look like this:</p>
<pre><code>session sufficient pam_winbind.so require_membership_of=S-1-5-21-((some number))-((some number))-((some number)</code></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2011/08/prevent-samba-from-creating-home-directory-for-machine-accounts/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2011/08/prevent-samba-from-creating-home-directory-for-machine-accounts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Open-VM-tools on Debian 6 squeeze</title>
		<link>http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-open-vm-tools-on-debian-6-squeeze</link>
		<comments>http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 21:51:53 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Squeeze]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[squeeze]]></category>
		<category><![CDATA[virtual machine]]></category>
		<category><![CDATA[VM]]></category>
		<category><![CDATA[VMware]]></category>
		<category><![CDATA[vmware tools]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=700</guid>
		<description><![CDATA[Installing Open Virtual Machine Tools is a nice alternative to managing and installing the vmware tools package that comes with Vmware&#8217;s hypervisor products.  It allows you to use APT to manage all the dependencies and updates. Module assistant will recompile the kernel modules for you automatically when you update kernels too. I have verified that [...]]]></description>
			<content:encoded><![CDATA[<p>Installing Open <a href="http://www.surlyjake.com/tag/virtual-machine/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtual machine">Virtual Machine</a> Tools is a nice alternative to managing and installing the <a href="http://www.surlyjake.com/tag/vmware-tools/" class="st_tag internal_tag" rel="tag" title="Posts tagged with vmware tools">vmware tools</a> package that comes with <a href="http://www.surlyjake.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VMware">Vmware</a>&#8217;s hypervisor products.  It allows you to use <a href="http://www.surlyjake.com/tag/apt/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apt">APT</a> to manage all the dependencies and updates. Module assistant will recompile the kernel modules for you automatically when you update kernels too.</p>
<p>I have verified that this configuration works under ESXi 4.1.0, 260247 and a new <a href="http://www.surlyjake.com/tag/squeeze/" class="st_tag internal_tag" rel="tag" title="Posts tagged with squeeze">Squeeze</a> <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a>. All of the essential functions like being able to see guest OS information on the Vsphere summary page and performing &#8220;Shut Down Guest&#8221; and &#8220;Restart Guest&#8221; all work as expected. If your experiences vary, please leave a comment</p>
<p><em>This should all be performed by the root user (otherwise prepend &#8216;sudo&#8217; to the commands if you must use sudo). </em><br />
The first thing you need to do is add the &#8216;contrib&#8217; archive to your apt sources config:</p>
<pre><code>nano /etc/apt/sources.list</code></pre>
<p>Add the &#8216;contrib&#8217; to the end of these source lines. I use the <a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">debian</a>.uchicago.edu repository, so mine look like this on a new install:</p>
<pre><code>deb http://debian.uchicago.edu/debian/ squeeze main contrib
deb-src http://debian.uchicago.edu/debian/ squeeze main contrib</code></pre>
<p>After you save changes to the file, simply update your package list and perform the install:</p>
<pre><code>apt-get update
apt-get install open-<a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">vm</a>-tools open-<a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">vm</a>-source</code></pre>
<p>You might see an error that looks like this:</p>
<pre><code>Loading open-vm-tools modules: vmhgfsFATAL: Module vmhgfs not found.
 vmmemctlFATAL: Module vmmemctl not found.
 vmsyncFATAL: Module vmsync not found.</code></pre>
<p>Don&#8217;t worry, this is because we have not installed the kernel modules for some of the more advanced VMware functions like the vmhgfs file system, Memory Balloon (vmmemctl) <a href="http://www.surlyjake.com/tag/driver/" class="st_tag internal_tag" rel="tag" title="Posts tagged with driver">Driver</a>,  and vmsync, which helps freeze the VM while taking snapshots.<br />
To install these kernel modules, we&#8217;re going to use module-assistant. It will compile the modules for your kernel:</p>
<pre><code>module-assistant auto-install open-vm -i</code></pre>
<p>The &#8216;-i&#8217; puts module assistant into non-interactive mode. It wont ask you to confirm any additional package installs necesarry to set up the build environment.<br />
If you&#8217;re running a server without a Graphical environment, you&#8217;re finished. If you want features such as automatically adjusting the VM&#8217;s monitor resolution or allowing your mouse to seamlessly move between your host system and the VM, you need to install one more package:</p>
<pre><code>apt-get install open-vm-toolbox</code></pre>
<p>Now you won&#8217;t need to use CTRL+ALT to switch back and forth.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2011/02/install-open-vm-tools-on-debian-6-squeeze/feed/</wfw:commentRss>
		<slash:comments>28</slash:comments>
		</item>
		<item>
		<title>Tar extract destination folder</title>
		<link>http://www.surlyjake.com/2011/02/tar-extract-destination-folder/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tar-extract-destination-folder</link>
		<comments>http://www.surlyjake.com/2011/02/tar-extract-destination-folder/#comments</comments>
		<pubDate>Tue, 08 Feb 2011 17:51:10 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[extract]]></category>
		<category><![CDATA[VMware]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=698</guid>
		<description><![CDATA[Tar can redirect extracted files to a different folder. This can be handy if you want to unpack a tar archive stored on a cd or other read-only media and want to eliminate the step of first copying the archive, extracting it, then deleting the extra tar.  All you have to do is add a [...]]]></description>
			<content:encoded><![CDATA[<p>Tar can redirect extracted files to a different folder. This can be handy if you want to unpack a tar archive stored on a cd or other read-only media and want to eliminate the step of first copying the archive, extracting it, then deleting the extra tar.  All you have to do is add a &#8216;-C &lt;target folder&gt;&#8217; to the tar command.   So here&#8217;s an example using the <a href="http://www.surlyjake.com/tag/vmware/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VMware">VMware</a> Tools tarball:</p>
<pre><code># tar -C /root -zxvf /media/cdrom0/VMwareTools-8.3.2-257589.tar.gz</code></pre>
<p>This will redirect the extracted files into the /root folder. simple</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2011/02/tar-extract-destination-folder/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2011/02/tar-extract-destination-folder/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Brasero, no option for creating ISO</title>
		<link>http://www.surlyjake.com/2011/01/brasero-no-option-for-creating-iso/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=brasero-no-option-for-creating-iso</link>
		<comments>http://www.surlyjake.com/2011/01/brasero-no-option-for-creating-iso/#comments</comments>
		<pubDate>Wed, 19 Jan 2011 19:37:20 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Brasero]]></category>
		<category><![CDATA[ISO]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=689</guid>
		<description><![CDATA[I love Brasero. It&#8217;s simple, lightweight, and comes with Ubuntu. Recently, when I wanted to back up a disk, ISO was not on the list of formats. As is usual, the issue was a missing package: brasero-cdrkit. apt-get install brasero-cdrkit Now, .ISO (ISO9960) will be an available disk format for you under Brasero.]]></description>
			<content:encoded><![CDATA[<p>I love <a href="http://www.surlyjake.com/tag/brasero/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Brasero">Brasero</a>. It&#8217;s simple, lightweight, and comes with <a href="http://www.surlyjake.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a>. Recently, when I wanted to back up a disk, <a href="http://www.surlyjake.com/tag/iso/" class="st_tag internal_tag" rel="tag" title="Posts tagged with ISO">ISO</a> was not on the list of formats. As is usual, the issue was a missing package: brasero-cdrkit.</p>
<pre><code><a href="http://www.surlyjake.com/tag/apt/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apt">apt</a>-get <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> brasero-cdrkit</code></pre>
<p>Now, .ISO (ISO9960) will be an available disk format for you under Brasero.</p>
<pre><a href="http://www.surlyjake.com/wp-content/uploads/2011/01/Brasero-iso.jpg"><img class="alignnone size-full wp-image-690" title="Brasero-iso" src="http://www.surlyjake.com/wp-content/uploads/2011/01/Brasero-iso.jpg" alt="" width="552" height="520" /></a></pre>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2011/01/brasero-no-option-for-creating-iso/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2011/01/brasero-no-option-for-creating-iso/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Convert High-Def MKV to play on xbox 360 using Linux</title>
		<link>http://www.surlyjake.com/2010/06/convert-high-def-mkv-to-play-on-xbox-360-using-linux/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=convert-high-def-mkv-to-play-on-xbox-360-using-linux</link>
		<comments>http://www.surlyjake.com/2010/06/convert-high-def-mkv-to-play-on-xbox-360-using-linux/#comments</comments>
		<pubDate>Tue, 29 Jun 2010 21:23:32 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[codec]]></category>
		<category><![CDATA[h 264]]></category>
		<category><![CDATA[mkv file]]></category>
		<category><![CDATA[xbox360]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=612</guid>
		<description><![CDATA[There are a million different tutorials out there on how to convert a MKV file into a format that an xbox360 will play. You may have found, like i did, that most of them use 50 different questionable pieces of software to manipulate individual tracks and separate the mkv, etc, etc&#8230; I think those are [...]]]></description>
			<content:encoded><![CDATA[<p>There are a million different tutorials out there on how to convert a <a href="http://www.surlyjake.com/tag/mkv-file/" class="st_tag internal_tag" rel="tag" title="Posts tagged with mkv file">MKV file</a> into a format that an <a href="http://www.surlyjake.com/tag/xbox360/" class="st_tag internal_tag" rel="tag" title="Posts tagged with xbox360">xbox360</a> will play. You may have found, like i did, that most of them use 50 different questionable pieces of software to manipulate individual tracks and separate the mkv, etc, etc&#8230; I think those are ridiculous.</p>
<p>Please read the<a href="http://support.xbox.com/support/en/us/nxe/gamesandmedia/movies/videofaq/viewvideoplaybackfaq.aspx" target="_blank"> FAQ regarding xbox360 file format compatibility</a>.  It may help you pick better options for your particular files than the general ones i offer below.</p>
<p>The solution is simple: Use <a href="http://avidemux.sourceforge.net/" target="_blank">Avidemux</a>.</p>
<ol>
<li><a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">Install</a> avidemux. To <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> it is simple. It&#8217;s in the <a href="http://www.surlyjake.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">Ubuntu</a> repositories and I imagine you can also find it in other distros quite easily.</li>
<li>Open avidemux and open the mkv you want to convert. If prompted some garbage about 264 and safemode, just use safe mode and dont worry about it.</li>
<li>Select File -&gt; Properties. This will tell you some info on the formats in use in your video file. Take this opportunity to identify what the xbox doesn&#8217;t like. When you are finished, click OK. If you want a second opinion, open up the folder with your mkv in it.  Right click -&gt; properties -&gt; Audio/Video tab. This will also tell  you the video and audio formats.</li>
<li>We obviously know that it wont play a video in a MKV container, so first thing to do is change the &#8220;Format&#8221; dropdown to say &#8220;MP4&#8243; <em>(you can, of course use AVI, but the majority of files I run into are h.264 and aac audio. For this combo, you want mp4&#8230;)</em></li>
<li>From the Properties menu, recall the video <a href="http://www.surlyjake.com/tag/codec/" class="st_tag internal_tag" rel="tag" title="Posts tagged with codec">codec</a>. H264 files show as &#8220;AVC1&#8243; inside of avidemux. I&#8217;m sure theres a technical reason for this, but do you want to talk about it or watch your video?<br />
Most of the time, you can leave the video droptown in avidemux on &#8220;Copy&#8221; this is nice because it means that your processor wont be re-encoding the video. This saves you quality and time.</li>
<li>From the properties menu, recall the audio codec. If you have a video with AAC stereo audio, leave the dropdown on &#8220;copy&#8221;.<br />
This is where most of my files need some love. Many MKV&#8217;s have 5.1 surround audio tracks. This is great, but not for an xbox360. To mix the audio down to stereo, select AAC on the audio dropdown, then click &#8220;filters&#8221;. In the mixer dropdown, select &#8220;stereo&#8221;.</li>
<li>Click &#8220;save&#8221;. Avidemux will prompt you for a filename for the converted file. It does not default a file extension, so do yourself and your xbox a favor and add one yourself like &#8220;&lt;videoname&gt;.mp4&#8243;.</li>
</ol>
<p>Once avidemux is finished with your file, it&#8217;s ready to go.</p>
<p><a class="linkification-ext" title="Linkification: http://avidemux.sourceforge.net/" href="http://avidemux.sourceforge.net/">http://avidemux.sourceforge.net/</a></p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2010/06/convert-high-def-mkv-to-play-on-xbox-360-using-linux/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2010/06/convert-high-def-mkv-to-play-on-xbox-360-using-linux/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Script to run handbrake on an entire folder</title>
		<link>http://www.surlyjake.com/2010/06/script-to-run-handbrake-on-an-entire-folder/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=script-to-run-handbrake-on-an-entire-folder</link>
		<comments>http://www.surlyjake.com/2010/06/script-to-run-handbrake-on-an-entire-folder/#comments</comments>
		<pubDate>Thu, 10 Jun 2010 21:33:09 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[shell scripting]]></category>
		<category><![CDATA[bash script]]></category>
		<category><![CDATA[Handbrake]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[video files]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=601</guid>
		<description><![CDATA[UPDATED 8-10-10: This script has been superceeded by its newer version at http://www.surlyjake.com/2010/08/script-to-run-handbrake-recursively-through-a-folder-tree/. The new version features all of the previous features, but can also traverse recursively through a folder structure. #!/bin/bash if [ -z "$1" ] ; then TRANSCODEDIR="." else TRANSCODEDIR="$1" fi for file in "$TRANSCODEDIR"/* do HandBrakeCLI -i "${file}" -o "${file}.mp4" --preset="iPhone &#38; [...]]]></description>
			<content:encoded><![CDATA[<p><strong> UPDATED 8-10-10:<br />
This <a href="http://www.surlyjake.com/tag/script/" class="st_tag internal_tag" rel="tag" title="Posts tagged with script">script</a> has been superceeded by its newer version at <a href="http://www.surlyjake.com/2010/08/script-to-run-handbrake-recursively-through-a-folder-tree/">http://www.surlyjake.com/2010/08/script-to-run-handbrake-recursively-through-a-folder-tree/</a>. The new version features all of the previous features, but can also traverse recursively through a folder structure.</strong></p>
<pre><code>#!/bin/bash
if [ -z "$1" ] ; then
	TRANSCODEDIR="."
else
TRANSCODEDIR="$1"
fi
for file in "$TRANSCODEDIR"/*
do
	HandBrakeCLI -i "${file}" -o "${file}.mp4" --preset="iPhone &amp; iPod Touch"""
done</code></pre>
<p>Save that into a .sh file like &#8220;handbrakefolder.sh&#8221;</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2010/06/script-to-run-handbrake-on-an-entire-folder/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2010/06/script-to-run-handbrake-on-an-entire-folder/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Debian eth0, eth1, eth2, in Virtualbox or VMware Virtual machines when copying</title>
		<link>http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=debian-eth0-eth1-eth2-etc-in-vms-when-copying</link>
		<comments>http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/#comments</comments>
		<pubDate>Fri, 13 Nov 2009 19:44:17 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Debian Etch]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[eth]]></category>
		<category><![CDATA[VM]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=60</guid>
		<description><![CDATA[Debian uses udev. Udev handles mapping MAC&#8217;s to the appropriate /dev/eth(X) file. If you copy a Virtual machine, Udev will remember the MAC address of the old NIC. When you copy the machine, the virtual host usually generates a new MAC address for the VM. Udev will assign the new Device to eth1, eth2, and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://www.surlyjake.com/tag/debian/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Debian">Debian</a> uses udev. Udev handles mapping MAC&#8217;s to the appropriate /dev/<a href="http://www.surlyjake.com/tag/eth/" class="st_tag internal_tag" rel="tag" title="Posts tagged with eth">eth</a>(X) file. If you copy a <a href="http://www.surlyjake.com/tag/virtual-machine/" class="st_tag internal_tag" rel="tag" title="Posts tagged with virtual machine">Virtual machine</a>, Udev will remember the MAC address of the old NIC. When you copy the machine, the virtual host usually generates a new MAC address for the <a href="http://www.surlyjake.com/tag/vm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with VM">VM</a>.<br />
Udev will assign the new Device to eth1, eth2, and so on. If you want to change your NIC assignments make Udev forget the old MAC.<br />
In Debian 5 (lenny) it is in this file:</p>
<pre><code>/etc/udev/rules.d/70-persistent-net.rules</code></pre>
<p>In Debian 4 (etch) it is in this file:</p>
<pre><code>/etc/udev/rules.d/z25_persistent-net.rules
</code></pre>
<p>To apply changes in Lenny: &#8220;udevadm trigger&#8221; or &#8220;udevtrigger&#8221; (in Etch)</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/11/debian-eth0-eth1-eth2-etc-in-vms-when-copying/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Karmic install cannot login (gdm freezes) Nvidia</title>
		<link>http://www.surlyjake.com/2009/11/karmic-install-cannot-login-gdm-freezes-nvidia/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=karmic-install-cannot-login-gdm-freezes-nvidia</link>
		<comments>http://www.surlyjake.com/2009/11/karmic-install-cannot-login-gdm-freezes-nvidia/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 17:13:46 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu Karmic]]></category>
		<category><![CDATA[apt]]></category>
		<category><![CDATA[driver]]></category>
		<category><![CDATA[gdm]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Karmic]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[nvidia drivers]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=560</guid>
		<description><![CDATA[On a fresh install of karmic, using an Nvidia 7800 GT. When I went to click on my username to log in, some artifacts would appear on the screen, then the system would freeze. hard. Couldnt even ctrl+alt to another console. Installing the Nvidia drivers fixed the issue. To fix it: Do a hard reset [...]]]></description>
			<content:encoded><![CDATA[<p>On a fresh <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> of <a href="http://www.surlyjake.com/tag/karmic/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Karmic">karmic</a>, using an <a href="http://www.surlyjake.com/tag/nvidia/" class="st_tag internal_tag" rel="tag" title="Posts tagged with nvidia">Nvidia</a> 7800 GT. When I went to click on my username to log in, some artifacts would appear on the screen, then the system would freeze. hard. Couldnt even ctrl+alt to another console. Installing the <a href="http://www.surlyjake.com/tag/nvidia-drivers/" class="st_tag internal_tag" rel="tag" title="Posts tagged with nvidia drivers">Nvidia drivers</a> fixed the issue. To fix it:</p>
<ol>
<li>Do a hard reset on the machine</li>
<li>When you arrive at the <a href="http://www.surlyjake.com/tag/gdm/" class="st_tag internal_tag" rel="tag" title="Posts tagged with gdm">GDM</a> screen, DO NOT CLICK ON ANYTHING.</li>
<li>press CTRL + ALT + F5. Your screen will switch over to a text console.</li>
<li>Log in.</li>
<li>Install the Nvidia glx <a href="http://www.surlyjake.com/tag/driver/" class="st_tag internal_tag" rel="tag" title="Posts tagged with driver">driver</a></li>
<pre><code>sudo aptitude install nvidia-glx-new</code></pre>
<li>Reboot the machine.</li>
<pre><code>sudo reboot</code></pre>
</ol>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/11/karmic-install-cannot-login-gdm-freezes-nvidia/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/11/karmic-install-cannot-login-gdm-freezes-nvidia/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Tethered Blackberry Modem on Ubuntu Karmic</title>
		<link>http://www.surlyjake.com/2009/09/tethered-blackberry-modem-on-ubuntu-karmic/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=tethered-blackberry-modem-on-ubuntu-karmic</link>
		<comments>http://www.surlyjake.com/2009/09/tethered-blackberry-modem-on-ubuntu-karmic/#comments</comments>
		<pubDate>Fri, 11 Sep 2009 22:54:43 +0000</pubDate>
		<dc:creator>jacob</dc:creator>
				<category><![CDATA[Ubuntu Karmic]]></category>
		<category><![CDATA[blackberry]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[Karmic]]></category>
		<category><![CDATA[modem]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[verizon]]></category>

		<guid isPermaLink="false">http://www.surlyjake.com/?p=540</guid>
		<description><![CDATA[Using your blackberry as a 3G (in my case) modem proved to be Incredibly simple. There are five million different methods to do this and many have you compiling stuff and editing text files. I love those sorts of things, but this is much easier. I Wish that I had tried this sooner. **Confirmed using [...]]]></description>
			<content:encoded><![CDATA[<p>Using your <a href="http://www.surlyjake.com/tag/blackberry/" class="st_tag internal_tag" rel="tag" title="Posts tagged with blackberry">blackberry</a> as a 3G (in my case) <a href="http://www.surlyjake.com/tag/modem/" class="st_tag internal_tag" rel="tag" title="Posts tagged with modem">modem</a> proved to be Incredibly simple. There are five million different methods to do this and many have you compiling stuff and editing text files. I love those sorts of things, but this is much easier. I Wish that I had tried this sooner.</p>
<p>**Confirmed using Blackberry Tour (9630) on <a href="http://www.surlyjake.com/tag/verizon/" class="st_tag internal_tag" rel="tag" title="Posts tagged with verizon">Verizon</a>. **</p>
<p>What we will do is use a program called &#8216;barry&#8217;. <a href="http://www.netdirect.ca/software/packages/barry" target="_blank">http://www.netdirect.ca/software/packages/barry</a> All we need to do is <a href="http://www.surlyjake.com/tag/install/" class="st_tag internal_tag" rel="tag" title="Posts tagged with install">install</a> some packages from the repository below. These commands are from the terminal, so launch it from &#8220;Applications -> Accessories -> Terminal&#8221; in the Menu.</p>
<p>Edit /etc/<a href="http://www.surlyjake.com/tag/apt/" class="st_tag internal_tag" rel="tag" title="Posts tagged with apt">apt</a>/sources.list</p>
<pre><code>sudo nano /etc/apt/sources.list</code></pre>
<p>add these lines:</p>
<pre><code>deb http://ppa.launchpad.net/doctormo/barry-snapshot/<a href="http://www.surlyjake.com/tag/ubuntu/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Ubuntu">ubuntu</a> <a href="http://www.surlyjake.com/tag/karmic/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Karmic">karmic</a> main
deb-src http://ppa.launchpad.net/doctormo/barry-snapshot/ubuntu <a href="http://www.surlyjake.com/tag/karmic/" class="st_tag internal_tag" rel="tag" title="Posts tagged with Karmic">karmic</a> main</code></pre>
<p>install the repositories key. </p>
<pre><code>sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 113659DF</code></pre>
<p>Now update your package list</p>
<pre><code>sudo aptitude update</code></pre>
<p>and install the programs:</p>
<pre><code>sudo aptitude install libbarry0 barry-util barrybackup-gui</code></pre>
<p>Thats it! now to create the connection, the command will vary depending on your provider. The ones they have preconfigured are: ATT Cingular, China Mobile, KPN Nederland, O2 Ireland, Rogers, Sprint, T-Mobile US, Verizon.<br />
the syntax is :<br />
sudo pppd call barry-{provider}</p>
<p>for Verizon:</p>
<pre><code>sudo pppd call barry-verizon</code></pre>
<p>You&#8217;ll see a bunch of output, and it&#8217;ll tell you that the connection is up. to close it down, press (CTRL+C). Make it pretty by creating an application launcher on your desktop.</p>
<div class="none"><div class="g-plusone" data-href="http://www.surlyjake.com/2009/09/tethered-blackberry-modem-on-ubuntu-karmic/" size="standard" count="true"></div></div>]]></content:encoded>
			<wfw:commentRss>http://www.surlyjake.com/2009/09/tethered-blackberry-modem-on-ubuntu-karmic/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
	</channel>
</rss>

