<?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>Rebel Zero &#187; HowTo</title>
	<atom:link href="http://www.rebelzero.com/category/howto/feed" rel="self" type="application/rss+xml" />
	<link>http://www.rebelzero.com</link>
	<description>Where sleeping Lynxes lie....</description>
	<lastBuildDate>Sun, 09 May 2010 15:46:16 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Prevent Recent Documents from displaying recent documents</title>
		<link>http://www.rebelzero.com/ubuntu/prevent-recent-documents-from-displaying-recent-documents/252</link>
		<comments>http://www.rebelzero.com/ubuntu/prevent-recent-documents-from-displaying-recent-documents/252#comments</comments>
		<pubDate>Sat, 27 Mar 2010 06:26:48 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tweaking]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bash history]]></category>
		<category><![CDATA[Gnome]]></category>
		<category><![CDATA[recent documents]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=252</guid>
		<description><![CDATA[Prevent the recent history of opened documents from appearing in Gnome's Recent Documents listing with a simple hack.]]></description>
			<content:encoded><![CDATA[<blockquote><p>ARCHAN&gt; How do i make history not stored ? i dont want places &gt; recent doc to store  my recent files</p></blockquote>
<p>Gnome doesn&#8217;t offer an option to turn off the tracking of recently open documents, but you can employ a simple hack to prevent it from happening. Your <strong>Places</strong> &gt; <strong>Recent Documents</strong> menu listing pulls data from <strong>~/.recently-used.xbel</strong> which stores your recent document&#8217;s meta data. It&#8217;ll be recreated if you just delete it. Rather, remove it and make a directory with that same name.</p>
<p><span id="more-252"></span><br />
<code>rm ~/.recently-used.xbel &amp;&amp; mkdir ~/.recently-used.xbel</code></p>
<p>You can also use this same trick to eliminate your bash history at the command line. Every command you issue at the command line is saved to <strong>~/.bash_history</strong> after you close or exit a bash session. Just replace the file with a directory of the same name.</p>
<p><code>rm ~/.bash_history &amp;&amp; mkdir ~/.bash_history</code></p>
<p>If you ever need or want to use those features again, just remove the directories. The files will be recreated on their own as needed.</p>
<p><code>rm -r ~/.recently-used.xbel<br />
rm -r ~/.bash_history</code></p>
<p>Above, I showed how to do it with command lines but you can do the same through a nautilus window (file browser). At your home directory, use <strong>CTRL-H</strong> to toggle between hiding and showing hidden files (the ones that start with a period) so that you can find the files and delete/create as necessary.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/ubuntu/prevent-recent-documents-from-displaying-recent-documents/252/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Full transparent panel with Lucid&#8217;s Ambiance &amp; Radiance themes</title>
		<link>http://www.rebelzero.com/howto/full-transparent-panel-with-lucids-ambiance-radiance-themes/244</link>
		<comments>http://www.rebelzero.com/howto/full-transparent-panel-with-lucids-ambiance-radiance-themes/244#comments</comments>
		<pubDate>Tue, 23 Mar 2010 00:21:16 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[10.04 LTS Lucid Lynx]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tweaking]]></category>
		<category><![CDATA[Ambiance]]></category>
		<category><![CDATA[gtkrc]]></category>
		<category><![CDATA[Radiance]]></category>
		<category><![CDATA[transparent panel]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=244</guid>
		<description><![CDATA[Lucid's Radiance and Ambiance themes don't make transparent panels easy. You have to tweak them just a little bit.]]></description>
			<content:encoded><![CDATA[<p>As much as I love the new look of Lucid, I&#8217;m compelled to tweak the look and feel to suit my own taste. After haunting /wg/ at 4chan, someone requested purple-hued wallpapers. I downloaded all of them and came across the one below. If someone knows, I&#8217;d love to give them the credit they deserve for it.</p>
<p><span id="more-244"></span></p>
<p style="text-align: center;"><a href="http://img696.imageshack.us/img696/6233/1268701401706.jpg" target="_blank"><img class="aligncenter size-full wp-image-246" title="My Lucid Wallpaper" src="http://www.rebelzero.com/wp-content/uploads/2010/03/my_lucid_wallpaper_small.jpg" alt="My Lucid Wallpaper" width="480" height="300" /></a></p>
<p>I&#8217;ve since eliminated the bottom panel and replaced it with Docky. In the top panel I replaced the Menu Bar applet with the Main Menu applet, removed some icons and added the CPU Frequency Scaling Monitor applet. I then went about setting the top panel to transparent to let the wallpaper behind it bleed through but the Ambiance and Radiance themes weren&#8217;t being cooperative. Only the panel would accept transparency but none of the icons. Below is what I ended up with:</p>
<p style="text-align: center;"><a href="http://www.rebelzero.com/wp-content/uploads/2010/03/lucid_panel_ambiance_transparency_broken.png" target="_blank"><img class="aligncenter size-large wp-image-247" title="Lucid Ambiance broken transparency" src="http://www.rebelzero.com/wp-content/uploads/2010/03/lucid_panel_ambiance_transparency_broken-550x10.png" alt="Lucid Ambiance broken transparency" width="495" height="9" /></a></p>
<p>That just wasn&#8217;t going to work. First thing I did was copy the Ambiance theme to my <strong>~/.themes/</strong> directory. This magically replaces the system&#8217;s default global settings for Ambiance with my own and lets me make edits without destroying the originals.</p>
<p><code>cp -R /usr/share/themes/Ambiance ~/.themes/</code></p>
<p>I opened Ambiance&#8217;s <strong>gtkrc</strong> file with <strong>gedit</strong>.</p>
<p><code>gedit ~/.themes/Ambiance/gtk-2.0/gtkrc</code></p>
<p>I scrolled down to the panel&#8217;s style section and looked for:<br />
<code>bg_pixmap[NORMAL] = "panel_bg.png"</code></p>
<p>I just commented out that line by placing a <strong>#</strong> at the beginning of it.<br />
<code># bg_pixmap[NORMAL] = "panel_bg.png"</code></p>
<p>After saving the <strong>gtkrc</strong> file, the change wasn&#8217;t immediate. I opened the <strong>System</strong> &gt; <strong>Preferences</strong> &gt; <strong>Appearance</strong> settings, switched the theme to something else and then back to Ambiance. All of the icons and applets lost their backgrounds and the change was complete.</p>
<p style="text-align: center;"><a href="http://www.rebelzero.com/wp-content/uploads/2010/03/lucid_panel_ambiance_transparency_fixed.png" target="_blank"><img class="aligncenter size-large wp-image-248" title="Lucid Ambiance fixed transparency" src="http://www.rebelzero.com/wp-content/uploads/2010/03/lucid_panel_ambiance_transparency_fixed-550x10.png" alt="Lucid Ambiance fixed transparency" width="495" height="9" /></a></p>
<p>You can do the same with Radiance by copying the original files from<br />
<code>/usr/share/themes/Radiance</code><br />
and commenting out its bg_pixmap setting.</p>
<p>For me, I like the darker gray windows of Ambiance along with my desktop&#8217;s new look.</p>
<p style="text-align: center;"><a href="http://www.rebelzero.com/wp-content/uploads/2010/03/madhouse_lucid_docky.jpg" target="_blank"><img class="aligncenter size-large wp-image-249" title="My Lucid desktop" src="http://www.rebelzero.com/wp-content/uploads/2010/03/madhouse_lucid_docky-550x343.jpg" alt="My Lucid desktop" width="495" height="309" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/howto/full-transparent-panel-with-lucids-ambiance-radiance-themes/244/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>More concern (than necessary) over Lucid&#8217;s button layout</title>
		<link>http://www.rebelzero.com/howto/more-concern-than-necessary-over-lucids-button-layout/232</link>
		<comments>http://www.rebelzero.com/howto/more-concern-than-necessary-over-lucids-button-layout/232#comments</comments>
		<pubDate>Sun, 14 Mar 2010 17:14:42 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[10.04 LTS Lucid Lynx]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tweaking]]></category>
		<category><![CDATA[button layout]]></category>
		<category><![CDATA[close]]></category>
		<category><![CDATA[gconf-editor]]></category>
		<category><![CDATA[gconftool-2]]></category>
		<category><![CDATA[maximize]]></category>
		<category><![CDATA[metacity]]></category>
		<category><![CDATA[minimize]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=232</guid>
		<description><![CDATA[Lucid's new button layout has caused some problems for users. Here's how it can be changed.]]></description>
			<content:encoded><![CDATA[<p>There&#8217;s been a lot of debate between users over the relocation of the title bar buttons with the new theme for Ubuntu 10.04 Lucid Lynx LTS due out in April.</p>
<p>During the alpha stages of Lucid&#8217;s development, a major update to Ubuntu&#8217;s theme was introduced which went far and away from the familiar brown. With that, the <a href="http://www.ivankamajic.com/?p=281">designers decided to also incorporate a new title bar button layout</a> that flopped the minimize, maximize, and close buttons from the right corner to the left corner. Understandably, chaos ensued as many users offered lots of reasons why this was a horrible design change. But the term &#8220;many&#8221; should not be confused with &#8220;most&#8221; as there are plenty more users who aren&#8217;t that affected by it, myself included.</p>
<p><span id="more-232"></span><br />
There&#8217;s been a lot of focus on window design, more so since the introduction of Google&#8217;s Chrome web browser, which omits a title bar and a menu bar altogether, yet still maintains the min, max, and close buttons, and functions quite nicely. Ubuntu hasn&#8217;t been the only one to rethink the window managers as Microsoft and Apple have done so as well in recent years.</p>
<p>But as much as the debate rolls on, users should not fear it so much. As many things are in the Linux universe, the change need not be a permanent one. If you&#8217;re unhappy with it, change it as Gnome provides the means to your end with <strong>gconf-editor</strong>.</p>
<p>Use <strong>ALT-F2</strong> to bring up the <strong>Run Application</strong> window, enter <strong>gconf-editor</strong> and click <strong>Run</strong>. Browse to <strong>apps</strong> &gt; <strong>metacity</strong> &gt; <strong>general</strong> and find the <strong>button_layout</strong> field.</p>
<p style="text-align: center;"><a href="http://www.rebelzero.com/wp-content/uploads/2010/03/gconfeditor_buttonlayout.png"><img class="aligncenter size-full wp-image-238" title="gconf-editor showing button_layout key" src="http://www.rebelzero.com/wp-content/uploads/2010/03/gconfeditor_buttonlayout.png" alt="gconf-editor showing button_layout key" width="493" height="405" /></a></p>
<p>You can use any combination of six values: <strong>:</strong> (colon), <strong>menu</strong>, <strong>minimize</strong>, <strong>maximize</strong>, <strong>spacer</strong>, and <strong>close</strong>. Button names need to be separated with commas. The colon denotes the separation between the left and right corners. Following are some examples.</p>
<p>The default Lucid layout.<br />
<code>maximize,minimize,close:</code></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-234" title="Lucid's default button layout" src="http://www.rebelzero.com/wp-content/uploads/2010/03/button_layout_Luciddefault.png" alt="Lucid's default button layout" width="466" height="50" /></p>
<p>The previous layout that we&#8217;ve been familiar with looks broken as the minimize button is designed to be sandwiched between the maximize and close buttons.<br />
<code>menu:minimize,maximize,close</code></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-235" title="pre-Lucid layout showing broken design" src="http://www.rebelzero.com/wp-content/uploads/2010/03/button_layout_preLucidbroken.png" alt="pre-Lucid layout showing broken design" width="466" height="50" /></p>
<p>Here&#8217;s the previous look with Lucid&#8217;s button order.<br />
<code>menu:maximize,minimize,close</code></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-236" title="pre-Lucid layout corrected design" src="http://www.rebelzero.com/wp-content/uploads/2010/03/button_layout_preLucidcorreted.png" alt="pre-Lucid layout corrected design" width="466" height="50" /></p>
<p>A spacer can be added. Although it too slightly breaks the design, it may still be helpful to keep the close button separated slightly from the others. The menu button has been removed in the following example.<br />
<code>:maximize,minimize,spacer,close</code></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-237" title="pre-Lucid corrected layout with spacer" src="http://www.rebelzero.com/wp-content/uploads/2010/03/button_layout_spacer.png" alt="pre-Lucid corrected layout with spacer" width="466" height="50" /></p>
<p>One alternate layout is to keep the minimize and maximize buttons to the left and pushing the close button to the right.<br />
<code>maximize,minimize:close</code></p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-233" title="alternate Lucid layout showing separated buttons" src="http://www.rebelzero.com/wp-content/uploads/2010/03/button_layout_alternate.png" alt="alternate Lucid layout showing separated buttons" width="466" height="50" /></p>
<p>With <strong>gconf-editor</strong>, you can find whatever combination you&#8217;re most comfortable with. You can also use the command line tool <strong>gconftool-2</strong> to set the value of the layout quickly. To get the pre-Lucid layout:</p>
<pre class="brush: bash;">gconftool-2 --set /apps/metacity/general/button_layout --type=string :minimize,maximize,close</pre>
<p>Just because Ubuntu made a small change to the layout doesn&#8217;t mean it has to be accepted.</p>
<p><strong>UPDATE: Mark Shuttleworth, Canonical&#8217;s founder, <a href="https://bugs.launchpad.net/ubuntu/+source/light-themes/+bug/532633/comments/110">takes a brief moment to voice some opinions</a> over the matter.</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/howto/more-concern-than-necessary-over-lucids-button-layout/232/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Lucid Lynx not booting, small plymouth issue</title>
		<link>http://www.rebelzero.com/fixes/lucid-lynx-not-booting-small-plymouth-issue/230</link>
		<comments>http://www.rebelzero.com/fixes/lucid-lynx-not-booting-small-plymouth-issue/230#comments</comments>
		<pubDate>Fri, 12 Mar 2010 23:50:53 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[10.04 LTS Lucid Lynx]]></category>
		<category><![CDATA[Fixes]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[libplybootclient]]></category>
		<category><![CDATA[mountall]]></category>
		<category><![CDATA[plymouth]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=230</guid>
		<description><![CDATA[Needed to add a symbolic link for the broken plymouth package that prevented Lucid Lynx from starting up.]]></description>
			<content:encoded><![CDATA[<p>With the last batch of updates, plymouth broke with the following error during start-up:</p>
<blockquote><p>mountall: error while loading shared libraries: libplybootclient.so.2: cannot open shared object file: No such file or directory.<br />
init: mountall main process (265) terminated with status 127</p></blockquote>
<p>It&#8217;s getting some attention at Ubuntu Forums <a href="http://ubuntuforums.org/showthread.php?t=1428365">here</a> and <a href="http://ubuntuforums.org/showthread.php?t=1428388">here</a>. There&#8217;s also a <a href="https://bugs.launchpad.net/ubuntu/+source/plymouth/+bug/538292">bug report</a> already filed with a fix on the way.</p>
<p><span id="more-230"></span>If you find yourself stuck with a non-bootable Lucid, the posts and bug reports have some ideas. Myself, I used a workaround suggested by <a href="http://ubuntuforums.org/showpost.php?p=8957439&amp;postcount=7">Rob2687</a> and loaded a Karmic LiveCD (LiveUSB key actually), mounted my root partition and added a new symbolic link.</p>
<pre class="brush: bash;">sudo mkdir /mnt/root
sudo mount /dev/sda6 /mnt/root
sudo ln -s /mnt/root/lib/libply-boot-client.so.2.0.0 /mnt/root/lib/libplybootclient.so.2</pre>
<p>My Lucid install was able to reboot successfully after this.</p>
<p><strong>UPDATE: Updates have been pushed out to correct this situation with the following versions:<br />
</strong><strong>plymouth 0.8.0~-14<br />
mountall 2.8<br />
</strong></p>
]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/fixes/lucid-lynx-not-booting-small-plymouth-issue/230/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Karmic: gnome-power-manager hides &#8220;Do nothing&#8221; from the GUI</title>
		<link>http://www.rebelzero.com/fixes/karmic-gnome-power-manager-hides-do-nothing-from-the-gui/223</link>
		<comments>http://www.rebelzero.com/fixes/karmic-gnome-power-manager-hides-do-nothing-from-the-gui/223#comments</comments>
		<pubDate>Fri, 04 Dec 2009 04:22:27 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[9.10 Karmic Koala]]></category>
		<category><![CDATA[Fixes]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tweaking]]></category>
		<category><![CDATA[do nothing]]></category>
		<category><![CDATA[gnome power manager]]></category>
		<category><![CDATA[Power Management]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=223</guid>
		<description><![CDATA[A change in Gnome's gnome-power-management package has hidden the "Do nothing" option making it difficult to run an external monitor on a laptop with the lid closed. Here's a workaround.]]></description>
			<content:encoded><![CDATA[<p>So, I wanted to watch some video on an external monitor connected to my Ubuntu 9.10 Karmic Koala laptop, but everytime I closed the laptop&#8217;s lid, the external monitor would turn off. This is when I noticed the option of <strong>Do nothing</strong> in <strong>Power Management</strong> was noticeably absent.<br />
<span id="more-223"></span><br />
The only choices available under <strong>On AC Power</strong> &gt; <strong>When laptop lid is closed</strong> were <strong>Blank screen</strong>, <strong>Suspend</strong>, <strong>Hibernate</strong>, and <strong>Shutdown</strong>, all of which aren&#8217;t acceptable choices. Currently set at <strong>Blank screen</strong>, it would blank both screens, laptop and external, which was defeating the purpose. Since my laptop turns its own screen off when the lid is closed, I don&#8217;t need Ubuntu doing it for me.</p>
<p>After some digging, I came across this <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/416236">Launchpad bug</a> explaining the same condition. <a href="https://bugs.launchpad.net/ubuntu/+source/gnome-power-manager/+bug/416236/comments/13">Lars Bengtsson&#8217;s comment</a> explained with a link that there was a change in the <a href="http://mail.gnome.org/archives/svn-commits-list/2009-July/msg05558.html">gnome-power-manager package back in July</a> that decided to hide the <strong>Do nothing</strong> option unless it was specified in <strong>GConf</strong>.</p>
<p>There are two ways to specify <strong>Do nothing</strong> in <strong>GConf</strong>. Pick what you&#8217;re more comfortable with. The GUI way is to press <strong>ALT-F2</strong> and run <strong>gconf-editor</strong>. Use the tree to navigate to <strong>apps &gt; gnome-power-manager &gt; buttons &gt; lid_ac</strong> and change it to <strong>nothing</strong>. The Long description that appears below in the Key Documentation area provides the other possible values.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-224" style="border: 2px solid black;" title="gconf_gnomepowermanager_lid_ac" src="http://www.rebelzero.com/wp-content/uploads/2009/12/gconf_gnomepowermanager_lid_ac.png" alt="GConf lid_ac value" width="479" height="324" /></p>
<p>From a command line, or in a terminal window, use the following command to change the value to nothing:</p>
<p><code>gconftool-2 --type string --set /apps/gnome-power-manager/buttons/lid_ac "nothing"</code></p>
<p>You should now see <strong>Do nothing</strong> as an option from within the <strong>Power Management</strong> application.</p>
<p style="text-align: center;"><img class="aligncenter size-full wp-image-225" style="border: 2px solid black;" title="powermanagement_donothing" src="http://www.rebelzero.com/wp-content/uploads/2009/12/powermanagement_donothing.png" alt="Power Management: Do nothing now available" width="450" height="322" /></p>
<p>It&#8217;s only semi-persistent. Once you change the option to something else, <strong>Do nothing</strong> is hidden again. You&#8217;ll need to repeat the process to add it back. Some comments from the bug entry suggest this may not work for everyone. I suspect there are other issues preventing them from keeping an external monitor active with a laptop&#8217;s lid closed which I couldn&#8217;t suggest a reason.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/fixes/karmic-gnome-power-manager-hides-do-nothing-from-the-gui/223/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Ubuntu: Adding Shell Items To The Main Menu</title>
		<link>http://www.rebelzero.com/ubuntu/ubuntu-adding-shell-items-to-the-main-menu/195</link>
		<comments>http://www.rebelzero.com/ubuntu/ubuntu-adding-shell-items-to-the-main-menu/195#comments</comments>
		<pubDate>Sat, 10 Oct 2009 16:38:09 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[Gaming]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Tweaking]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[menu launcher]]></category>
		<category><![CDATA[shortcut]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=195</guid>
		<description><![CDATA[I keep forgetting exactly how to do this without searching for it, so what better than to post it here for myself and others?
I enjoy installing games that are either not in the official Ubuntu repositories or are newer versions than what is available. After downloading and extracting, I move them to /opt and add [...]]]></description>
			<content:encoded><![CDATA[<p>I keep forgetting exactly how to do this without searching for it, so what better than to post it here for myself and others?</p>
<p>I enjoy installing games that are either not in the official Ubuntu repositories or are newer versions than what is available. After downloading and extracting, I move them to <strong>/opt</strong> and <a href="http://www.rebelzero.com/ubuntu/ubuntu-adding-items-to-the-main-menu/74">add a launcher to the Applications &gt; Games menu</a>. Some of the games need to be launched from their own directory which makes simply pointing the launcher at the executable impossible.<br />
<span id="more-195"></span><br />
Instead, I actually set the launcher up to run a shell instance and pass it the required commands in order to run the game. For instance, <a href="http://www.alientrap.org/nexuiz/">Nexuiz</a> doesn&#8217;t require this workaround as it has that as an option built in to it. I simply set the launcher&#8217;s command up as:</p>
<blockquote><p>/opt/Nexuiz/nexuiz-linux-x86_84-glx -basedir /opt/Nexuiz</p></blockquote>
<p>However, for games such as <a href="http://www.sauerbraten.org/">Sauerbraten</a> and <a href="http://www.warsow.net/">Warsow</a>, I set the launcher&#8217;s command as:</p>
<blockquote><p>sh -c &#8220;cd /opt/sauerbraten/ &amp;&amp; ./sauerbraten_unix&#8221;</p></blockquote>
<p>&#8230;and&#8230;</p>
<blockquote><p>sh -c &#8220;cd /opt/warsow &amp;&amp; ./warsow&#8221;</p></blockquote>
<p>Now I can easily get back to my fragging.</p>
<p><a class="a2a_dd addtoany_share_save" href="http://www.addtoany.com/share_save"><img src="http://www.rebelzero.com/wp-content/plugins/add-to-any/share_save_171_16.png" width="171" height="16" alt="Share/Bookmark"/></a> </p>]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/ubuntu/ubuntu-adding-shell-items-to-the-main-menu/195/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Backup And Restore Files To/From A LUKS Encrypted Partition Image File</title>
		<link>http://www.rebelzero.com/howto/backup-and-restore-files-tofrom-a-luks-encrypted-partition-image-file/189</link>
		<comments>http://www.rebelzero.com/howto/backup-and-restore-files-tofrom-a-luks-encrypted-partition-image-file/189#comments</comments>
		<pubDate>Thu, 24 Sep 2009 04:06:12 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[backups]]></category>
		<category><![CDATA[LiveCD]]></category>
		<category><![CDATA[logical volume]]></category>
		<category><![CDATA[LUKS Encryption]]></category>
		<category><![CDATA[lvm]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=189</guid>
		<description><![CDATA[Peeking inside an image backup of an encrypted partition with logical volumes was a lot easier than I thought it would.]]></description>
			<content:encoded><![CDATA[<p>I purchased a hard drive caddy for my Thinkpad T61p to convert the optical drive bay into a second hard drive bay. It pains me to say it, but I wanted to put Windows Vista back on the laptop. There are too many reasons to list why, but that meant having to give up more hard drive space than I was willing to share between Vista and Ubuntu.</p>
<p>My desired layout was to have Vista inhabit a 320GB drive occupying the main bay while Ubuntu would live on its own 320GB drive in the caddy. Dual-booting would be done through the Bios in order to avoid, among other things, having grub issues.</p>
<p>The biggest concern was the encrypted partition that contains separate root and home logical volumes. I wanted to make an exact image copy with <strong>dd</strong> but retain its encrypted state. However, I was unsure how I could access the data from the image without restoring it. I knew you could <strong>mount</strong> ISOs through a loop device, but an encrypted image was a lot different. Here&#8217;s how I did it.</p>
<p><span id="more-189"></span>I booted the machine with an Ubuntu 9.04 LiveCD from an external CD-ROM, opened a terminal window, and gained a root prompt. Doing everything as root is dangerous and contrary to the Ubuntu sudo-only policy, but this went a lot easier without the extra typing. Just don&#8217;t say I didn&#8217;t warn you.</p>
<p>The first step was to get a list of the partitions. At this point I have both hard drives installed in order to move some shared media files from the Ubuntu drive onto the Vista drive. They are listed as /dev/sda for Vista and /dev/sdb for Ubuntu. Using <strong>fdisk</strong> to get my list, I have:</p>
<blockquote><p>root@ubuntu:~# fdisk -l /dev/sdb</p>
<p>Disk /dev/sdb: 320.0 GB, 320072933376 bytes<br />
255 heads, 63 sectors/track, 38913 cylinders<br />
Units = cylinders of 16065 * 512 = 8225280 bytes<br />
Disk identifier: 0&#215;05b304be</p>
<p>Device Boot      Start         End      Blocks   Id  System<br />
/dev/sdb1               1       12158    97659103+  83  Linux<br />
/dev/sdb2           12159       38913   214909537+   5  Extended<br />
/dev/sdb5   *       12159       12188      240943+  83  Linux<br />
/dev/sdb6           12189       38913   214668531   83  Linux</p></blockquote>
<p>I have /dev/sdb1 as the encrypted partition and /dev/sdb5 as the /boot partition, which I also want to back up. Of course, this listing doesn&#8217;t explicitly describe what each partition is. I know what they are from the installation process when I set them up. After plugging in my external drive, Ubuntu happily mounted it at /media/disk. The first step was to create the backup images.</p>
<blockquote><p>root@ubuntu:~# dd if=/dev/sdb5 of=/media/disk/sdb5_boot.img<br />
481887+0 records in<br />
481887+0 records out<br />
246726144 bytes (247 MB) copied, 11.3419 s, 21.8 MB/s</p>
<p>root@ubuntu:~# dd if=/dev/sdb1 of=/media/disk/sdb1_root_home.img<br />
195318207+0 records in<br />
195318207+0 records out<br />
100002921984 bytes (100 GB) copied, 6447.54 s, 15.5 MB/s</p></blockquote>
<p>It took a while to back up the /dev/sdb1 partition giving me plenty of time to catch up on my emails and rss feeds. The next step was to make sure I could still access the data contained within the backups. For the boot partition, this was as easy as mounting it to a temporary location and listing the directory.</p>
<blockquote><p>root@ubuntu:~# mkdir /mnt/ob_boot</p>
<p>root@ubuntu:~# mount /media/disk/sdb5_boot.img /mnt/ob_root -o loop</p>
<p>root@ubuntu:~# ls /mnt/ob_root/<br />
abi-2.6.28-11-generic         memtest86+.bin<br />
abi-2.6.28-13-generic         System.map-2.6.28-11-generic<br />
abi-2.6.28-14-generic         System.map-2.6.28-13-generic<br />
abi-2.6.28-15-generic         System.map-2.6.28-14-generic<br />
config-2.6.28-11-generic      System.map-2.6.28-15-generic<br />
config-2.6.28-13-generic      vmcoreinfo-2.6.28-11-generic<br />
config-2.6.28-14-generic      vmcoreinfo-2.6.28-13-generic<br />
config-2.6.28-15-generic      vmcoreinfo-2.6.28-14-generic<br />
grub                          vmcoreinfo-2.6.28-15-generic<br />
initrd.img-2.6.28-11-generic  vmlinuz-2.6.28-11-generic<br />
initrd.img-2.6.28-13-generic  vmlinuz-2.6.28-13-generic<br />
initrd.img-2.6.28-14-generic  vmlinuz-2.6.28-14-generic<br />
initrd.img-2.6.28-15-generic  vmlinuz-2.6.28-15-generic<br />
lost+found</p></blockquote>
<p>That was simple enough, but this is where it gets complicated. I needed to install <strong>cryptsetup</strong> and <strong>lvm2</strong>, and then load the <strong>dm-crypt</strong> kernel module.</p>
<blockquote><p>root@ubuntu:~# apt-get install cryptsetup lvm2<br />
<em>[..snip..]</em><br />
root@ubuntu:~# modprobe dm-crypt</p></blockquote>
<p>I thought you could mount the encrypted backup through a loop in the same way I just did the boot backup, but <strong>mount</strong> complains about the filesystem type.</p>
<blockquote><p>root@ubuntu:~# mkdir /mnt/ob_root_home</p>
<p>root@ubuntu:~# mount /media/disk/sdb1_root_home.img /mnt/ob_root_home -o loop<br />
mount: unknown filesystem type &#8216;crypto_LUKS&#8217;</p></blockquote>
<p>After a quick googling, I landed at an <a href="http://ubuntuforums.org/showpost.php?p=6384159&amp;postcount=2" target="_blank">Ubuntu Forums post</a> concerning something a little different but contained the steps I needed. They included the use of /dev/loop0 which I couldn&#8217;t use in the LiveCD environment as the LiveCD was currently using it, so I needed to adapt.</p>
<p>Mount the encrypted backup on a loop device.</p>
<blockquote><p>root@ubuntu:~# losetup /dev/loop1 /media/disk/sdb1_root_home.img</p></blockquote>
<p>Decrypt the new loop device. At this point it helps to remember the passphrase. I tried and failed three times before I smacked my forehead with the heavy hand of common sense.</p>
<blockquote><p>root@ubuntu:~# cryptsetup luksOpen /dev/loop1 ob_enc<br />
Enter LUKS passphrase:<br />
key slot 0 unlocked.<br />
Command successful.</p></blockquote>
<p>Now to activate the volume groups, which is done rather automagically, with <strong>vgchange</strong>.</p>
<blockquote><p>root@ubuntu:~# vgchange -ay<br />
2 logical volume(s) in volume group &#8220;obsidian&#8221; now active</p></blockquote>
<p>Now my /dev/mapper directory had entries for the decrypted device, ob_enc, and the two logical volumes, obsidian-home and obsidian-root.</p>
<blockquote><p>root@ubuntu:~# ls /dev/mapper/<br />
control        ob_enc         obsidian-home  obsidian-root</p></blockquote>
<p>At this point, I could mount the logical volumes anywhere I needed to access the files contained in each and do with them what I pleased.</p>
<blockquote><p>root@ubuntu:~# mkdir /mnt/ob_home/</p>
<p>root@ubuntu:~# mount /dev/mapper/obsidian-home /mnt/ob_home/</p>
<p>root@ubuntu:~# ls /mnt/ob_home/<br />
adam  adam_original   stovicek</p></blockquote>
<p>From here on out, I re-partitioned the drive for better layout, re-installed the core Ubuntu system, mounted the backups as outlined above, and restored /home and any other necessary files to their new partitions.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/howto/backup-and-restore-files-tofrom-a-luks-encrypted-partition-image-file/189/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Firefox 3.0 Extensions Work With Firefox 3.5 (Revisited)</title>
		<link>http://www.rebelzero.com/fixes/making-firefox-3-0-extensions-work-with-firefox-3-5-revisited/166</link>
		<comments>http://www.rebelzero.com/fixes/making-firefox-3-0-extensions-work-with-firefox-3-5-revisited/166#comments</comments>
		<pubDate>Fri, 10 Jul 2009 21:45:21 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[Fixes]]></category>
		<category><![CDATA[HowTo]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=166</guid>
		<description><![CDATA[I finally figure out how to force all of my Firefox 3.0.x plugins to work with Firefox 3.5. All were enabled, but one was broken.]]></description>
			<content:encoded><![CDATA[<p>I <a href="http://www.rebelzero.com/fixes/making-firefox-3-0-extensions-work-with-firefox-3-5/165">posted a couple of days ago</a> about making, or forcing, Firefox plugins to work for 3.5 when they were only compatible up to the 3.0.x series. I mentioned that breakage could occur and, while it took some work, I was able to get all of the plugins I had with 3.0.11 working with 3.5 as you can see in the screenshot below. Unfortunately, you can also see something was amiss.</p>
<p><span id="more-166"></span></p>
<p style="text-align: center;"><a href="http://www.rebelzero.com/wp-content/uploads/2009/07/shiretoko_all_plugins_enabled.png"><img class="aligncenter size-large wp-image-167" title="shiretoko_all_plugins_enabled" src="http://www.rebelzero.com/wp-content/uploads/2009/07/shiretoko_all_plugins_enabled-933x1024.png" alt="shiretoko_all_plugins_enabled" width="448" height="491" /></a></p>
<p>While I was apparently on Google&#8217;s homepage, the address bar was still under the impression that I was  at the Google Reader page. It was also not immediately displaying my home page when Firefox 3.5 launched. It turns out that ubufox, the Ubuntu Firefox Modifications plugin, isn&#8217;t quite compatible. Only after disabling it did Firefox 3.5 return to operating normally. All of my other plugins seem to function as expected.</p>
<p>Some other interesting tidbits from the screenshot:</p>
<ul>
<li> I am not the author of the ubufox plugin. I was still trying to figure out how Firefox handled plugins and used my troubleshooting skills by changing its name in order to show if I had made any progress.</li>
<li>There is no version 2.02.00 of the Fast Video Download. I changed the version number for the very same reason I added my name to the ubufox plugin.</li>
</ul>
<p>Things I learned in the process:</p>
<ul>
<li>Firefox keeps a record of the plugins in an <strong>extensions.rdf</strong> file located in the profile directory. Even after making changes to the necessary plugin files for both ubufox and Fast Video Download, Firefox 3.5 still wouldn&#8217;t allow me to enable them. It wasn&#8217;t until I removed the <strong>extensions.rdf</strong> file, which was later auto-generated by Firefox 3.5, that Firefox 3.5 finally recognized the version changes.</li>
<li>The ubufox plugin is a global plugin and isn&#8217;t kept in your local profile directory. It&#8217;s <strong>install.rdf</strong> file is located at <strong>/usr/share/ubufox/install.rdf</strong> and is owned by root. The idea is still the same by locating the maxVersion and changing it to 3.5.* but using <strong>sudo</strong> instead. Unfortunately, it still prevents Firefox 3.5 from functioning normally.</li>
</ul>
<p>Until a suitable replacement is made of the ubufox plugin, I recommend against changing its <strong>install.rdf</strong> file&#8217;s maxVersion entry. Since it&#8217;s a global plugin, any new user that is added to your computer will get a broken Firefox 3.5 setup.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/fixes/making-firefox-3-0-extensions-work-with-firefox-3-5-revisited/166/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Making Firefox 3.0 Extensions Work With Firefox 3.5</title>
		<link>http://www.rebelzero.com/fixes/making-firefox-3-0-extensions-work-with-firefox-3-5/165</link>
		<comments>http://www.rebelzero.com/fixes/making-firefox-3-0-extensions-work-with-firefox-3-5/165#comments</comments>
		<pubDate>Thu, 09 Jul 2009 02:56:23 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[Fixes]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Firefox 3.5]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=165</guid>
		<description><![CDATA[Here's a short example showing how to enable Firefox 3.0 plugins to work with Firefox 3.5.]]></description>
			<content:encoded><![CDATA[<p>Like previous new releases of Firefox, not all of the add-ons or extensions worked at first. Most of the time this is due to that particular plugin&#8217;s settings limiting what version of Firefox the plugin is compatible with. Most of the more popular ones have already been updated to work with Firefox 3.5. If you have one that isn&#8217;t working and can&#8217;t wait for an update, you can try to work around it.</p>
<p><span id="more-165"></span>Looking in the <strong>~/.mozilla/firefox-3.5/(profile).default/extensions</strong> directory, replacing (profile).default with your own, you should see a directory for each of your extensions.</p>
<p>Using my own example, at <strong>~/.mozilla/firefox-3.5/(profile).default/extensions/moonlight@novell.com</strong> I have Novell Moonlight installed. Within is a file called <strong>install.rdf</strong> which I needed to edit.</p>
<p>First I made a copy of it in case I broke it after editing it.</p>
<p><code>cp install.rdf install.rdf-original</code></p>
<p>Next, the permissions needed to be fixed in order to save any changes I make to the file.</p>
<p><code>chmod 0600 install.rdf</code></p>
<p>Now to edit it. I chose nano but any text editor will do.</p>
<p><code>nano install.rdf</code></p>
<p>Paging down to the bottom, I find the following section:</p>
<pre class="brush: plain;">
&lt;Description&gt;
  &lt;em:id&gt;{ec8030f7-c20a-464f-9b0e-13a3a9e97384}&lt;/em:id&gt;
  &lt;em:minVersion&gt;1.5&lt;/em:minVersion&gt;
  &lt;em:maxVersion&gt;3.1.*&lt;/em:maxVersion&gt;
&lt;/Description&gt;
</pre>
<p>I changed the maxVersion to 3.5.* and saved it.</p>
<pre class="brush: plain;">
&lt;em:maxVersion&gt;3.5.*&lt;/em:maxVersion&gt;
</pre>
<p>Last thing to do was change the file permission back to a strict read-only.</p>
<p><code>chmod 0400 install.rdf</code></p>
<p>After giving Firefox 3.5 a restart, it was now possible to enable Novell Moonlight in lieu of a future update.</p>
<p>Keep in mind that this may or may not work with all Firefox plugins with some possibly causing havoc with Firefox itself. If that&#8217;s the case, you&#8217;ll need to reverse the changes you made and wait for an official update from the plugin&#8217;s programmers.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/fixes/making-firefox-3-0-extensions-work-with-firefox-3-5/165/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Ubuntu 9.04 and Firefox 3.5 (Shiretoko)</title>
		<link>http://www.rebelzero.com/howto/ubuntu-9-04-and-firefox-3-5-shiretoko/162</link>
		<comments>http://www.rebelzero.com/howto/ubuntu-9-04-and-firefox-3-5-shiretoko/162#comments</comments>
		<pubDate>Thu, 09 Jul 2009 02:31:56 +0000</pubDate>
		<dc:creator>Adam Stovicek</dc:creator>
				<category><![CDATA[9.04 Jaunty Jackalope]]></category>
		<category><![CDATA[Add Ons]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Firefox 3.0]]></category>
		<category><![CDATA[Firefox 3.5]]></category>
		<category><![CDATA[Shiretoko]]></category>

		<guid isPermaLink="false">http://www.rebelzero.com/?p=162</guid>
		<description><![CDATA[Install Firefox 3.5 onto your Ubuntu 9.04 installation]]></description>
			<content:encoded><![CDATA[<p>Jaunty users have it as easy as:</p>
<p><code>sudo apt-get install firefox-3.5</code></p>
<p>You can also install by way of Synaptic by searching for the firefox-3.5 package name.</p>
<p><span id="more-162"></span>That&#8217;s assuming one has the universe repository enabled. This will install FF 3.5 as Shiretoko, it&#8217;s developmental codename. It <a href="http://www.asoftsite.org/s9y/archives/161-guid.html">was decided</a> to retain the Shiretoko name to differentiate it from FF 3.0 which is the default browser for Jaunty. It is planned that FF 3.5 will be the default for Karmic.</p>
<p>When FF 3.5 (Shiretoko) is first run, it will make a copy of your current <strong>~/.mozilla/firefox</strong> directory to <strong>~/.mozilla/firefox-3.5</strong> so that all of your settings, preferences, add-ons, etc. from FF 3.0 will be the same in FF 3.5. Although, as in the past, new versions of Firefox may prevent some previous extensions from being seen as compatible. There is a workaround for this which I&#8217;ll cover briefly in my next post.</p>
<p>You&#8217;ll see it listed in the Internet menu as <strong>Shiretoko Web Broswer</strong> with a Firefox-less globe icon. Once installed, both versions will coexist happily on your computer. The only thing to remember is that any changes you make to one will not be mirrored by the other since they won&#8217;t share the same settings directory.</p>
<p>For the more advanced users who are brave enough, one can move the new directory to a new name and create a symbolic link to the original so that settings are shared between the two.</p>
<p><code>mv ~/.mozilla/firefox-3.5 ~/.mozilla/firefox-3.5-original</code><br />
<code>ln -s firefox firefox-3.5</code></p>
<p>Whenever Shiretoko looks to <strong>~/.mozilla/firefox-3.5</strong> it will actually find the <strong>~/.mozilla/firefox</strong> directory. The only drawback to this is FF 3.0 and FF 3.5 constantly checking plugins when switching from one to the other.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.rebelzero.com/howto/ubuntu-9-04-and-firefox-3-5-shiretoko/162/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>
