<?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>oh god, why'd it break‽ &#187; configure</title>
	<atom:link href="http://yokohead.com/category/howto/configure/feed/" rel="self" type="application/rss+xml" />
	<link>http://yokohead.com</link>
	<description>screwing around with technology</description>
	<lastBuildDate>Mon, 26 Jul 2010 18:00:00 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Configuring ecryptfs</title>
		<link>http://yokohead.com/2009/02/configuring-ecryptfs/</link>
		<comments>http://yokohead.com/2009/02/configuring-ecryptfs/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 07:59:20 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[ecryptfs]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://yokohead.com/?p=220</guid>
		<description><![CDATA[I was reading through my buddy&#8217;s security blog, Security Aegis, and realized that my current security setup in Ubuntu is absolutely terrible &#8211; I have a Truecrypt container I dump things into from time to time,  and that&#8217;s really about it.  After recently discovering the Ubuntu Pocket Guide and Reference,  I took [...]]]></description>
			<content:encoded><![CDATA[<p>I was reading through my buddy&#8217;s security blog, <a href="http://www.securityaegis.com">Security Aegis</a>, and realized that my current security setup in Ubuntu is absolutely terrible &#8211; I have a Truecrypt container I dump things into from time to time,  and that&#8217;s really about it.  After recently discovering the <a href="http://www.ubuntupocketguide.com/index2.html">Ubuntu Pocket Guide and Reference</a>,  I took a quick look through there to see what might be available.</p>
<p>The guide mentioned Intrepid has the ability to create an automounting private folder using <em>ecryptfs‐utils </em>with next to no setup.  That&#8217;s nice,  but I&#8217;d rather have a bit more control over the folder &#8211; having it just pop up on login isn&#8217;t very appealing since my system gets used from time to time by other people.  A bit of googling around turned this up:</p>
<ol>
<li><a href="http://beginlinux.com/desktop_training/ubuntu/1084-solving-privacy-issues- ">How to auto-configure<br />
 </a></li>
<li><a href="http://www.ubuntugeek.com/how-to-create-a-private-encrypted-folder-on-ubuntu-810-intrepid.html">How to configure hands on</a></li>
<li><a href="http://tombuntu.com/index.php/2007/09/03/using-truecrypt-on-ubuntu-for-encryption/">The basic truecrypt way</a></li>
</ol>
<p><a href="http://ubuntugeek.com">Ubuntugeek</a> has a nice writeup on the under-the-hood way to use <em>ecryptfs-utils</em>.  The reason I&#8217;m going with this over <a href="http://truecrypt.org">Truecrypt</a> is I&#8217;d rather have the files encrypt on the fly without needing a set amount of space first (as in a container).  I&#8217;ll keep the containers on my thumb drives for now.</p>
<p>Started with the Ubuntugeek step by step:</p>
<ul>
<li><code>sudo aptitude install ecryptfs-utils</code></li>
<li><code>mkdir ~/crypt</code></li>
<li><code>chmod 700 ~/crypt</code></li>
<li><code>sudo mount -t ecryptfs ~/crypt ~/crypt
<ul>
<li>chose 4 for passphrase</li>
<li>created passphrase<</li>
<li>selected aes for cipher</li>
<li>16 for blocksize</li>
</ul>
<p></code></li>
</ul>
<p>After selecting my options:</p>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; text-align: left;" dir="ltr">
Attempting to mount with the following options:
 ecryptfs_key_bytes=16
 ecryptfs_cipher=aes
 ecryptfs_sig=1c56a17407ef3160
 WARNING: Based on the contents of [/root/.ecryptfs/sig-cache.txt],
 it looks like you have never mounted with this key
 before. This could mean that you have typed your
 passphrase wrong.

Would you like to proceed with the mount (yes/no)? yes
 Would you like to append sig [1c56a17407ef3160] to
 [/root/.ecryptfs/sig-cache.txt]
 in order to avoid this warning in the future (yes/no)? yes
 Successfully appended new sig to user sig cache file
 Mounted eCryptfs
</pre>
<p>Not quite sure what just happened there.  I just installed this thing,  of course I haven&#8217;t mounted with this key before.  I wasn&#8217;t asked for a plaintext passthrough either.  Check to see if it worked anyways.</p>
<ul>
<li><code>cp Firefox_wallpaper.png ~/crypt</code></li>
<li><code>ls ~/crypt</code></li>
<li><code>sudo umount ~/crypt</code></li>
<li><code>ls ~/ | grep crypt</code></li>
</ul>
<p>Crypt is still there!  Blast.</p>
<ul>
<li><code>ls ~/crypt</code></li>
</ul>
<p>It still shows my png file too!</p>
<ul>
<li><code>gnome-open ~/crypt/Firefox_wallpaper.png</code></li>
</ul>
<p>&#8220;Fatal error reading PNG image file: Not a PNG file&#8221;</p>
<p>Alright,  so that&#8217;s good,  it&#8217;s probably encrypted then.  I&#8217;ll remount and see if it&#8217;ll open.</p>
<ul>
<li><code>sudo mount -t ecryptfs ~/crypt ~/crypt -o key=passphrase,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=n</code></li>
<li><code>gnome-open ~/crypt/Firefox_wallpaper.png</code></li>
</ul>
<p>Yep,  opens fine now.  Since I was expecting Truecrypt style mount behavior from Windows I was expecting the entire folder to just disapear (even though I specifically created one,  duh).  Reading through the <a href="https://launchpad.net/ecryptfs">ecryptfs page</a> and <a href=" http://www.makeuseof.com/tag/encrypt-your-files-in-linux-with-ecryptfs/">here</a> made a bit more sense.  Without pre-allocation there isn&#8217;t much of a choice anyways.  Time to turn this bulky command into an easy use alias:</p>
<ul>
<li><code>echo "alias mount-crypt='sudo mount -t ecryptfs ~/crypt ~/crypt -o key=passphrase,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_passthrough=n'" | tee -a ~/.bash_aliases</code></li>
<li><code>source .bashrc</code></li>
</ul>
<p>Figuring out the above took a bit longer than those two lines&#8230;  here&#8217;s some <a href="http://dl.getdropbox.com/u/461380/whyillneverprogram.txt">insight</a> into my rookie mistakes.  (460 through 471 was me playing videos in terminal via ascii, heh.)</p>
]]></content:encoded>
			<wfw:commentRss>http://yokohead.com/2009/02/configuring-ecryptfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Logitech MX-518 with Gnome in Ubuntu 8.10</title>
		<link>http://yokohead.com/2009/02/logitech-mx-518-with-gnome-in-ubuntu-810/</link>
		<comments>http://yokohead.com/2009/02/logitech-mx-518-with-gnome-in-ubuntu-810/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 01:01:00 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[programs]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[logitech]]></category>
		<category><![CDATA[mx518]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[x]]></category>

		<guid isPermaLink="false">http://yokohead.com/?p=166</guid>
		<description><![CDATA[Not having my back/forward keys working in anything in Ubuntu was driving me nuts &#8211; in Windows I was absolutely dependent on being able to lazily click the side buttons (even though I use mouse gestures).  The first thing I stumbled across seemed simple enough.
hyperq just replaced his InputDevice section with the code below, [...]]]></description>
			<content:encoded><![CDATA[<p>Not having my back/forward keys working in anything in Ubuntu was driving me nuts &#8211; in Windows I was absolutely dependent on being able to lazily click the side buttons (even though I use mouse gestures).  The first thing I <a href="http://ubuntuforums.org/showthread.php?t=664074&amp;highlight=mx518">stumbled across</a> seemed simple enough.</p>
<p>hyperq just replaced his <code>InputDevice</code> section with the code below,   when I checked my own xorg though I didn&#8217;t even have an <code>InputDevice</code> area at all &#8211; so I just pasted the following into the end of my <em>xorg.conf</em> and restarted X (ctrl+alt+backspace).</p>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; text-align: left;" dir="ltr">Section "InputDevice"
       Identifier      "Configured Mouse"
       Driver          "evdev"
       Option          "CorePointer"
       Option          "Buttons"       "7"
       Option          "ZAxisMapping"  "4 5"
       Option          "ButtonMapping" "1 2 3 6 7"
       Option          "Name"  "Logitech USB-PS/2 Optical Mouse"
EndSection</pre>
<p>Once X loaded up I was able to use the buttons in Firefox,  but that was about it.  Still didn&#8217;t work in Nautilus,  which is really where the functionality should be.</p>
<p>After a bit of hunting around I found this excellent <a href="http://ubuntuforums.org/showthread.php?t=219894&amp;highlight=logitech+how">UbuntuForum post</a> by <a href="http://ubuntuforums.org/member.php?u=45177">detyabozhye.</a></p>
<p>First step was to make sure that <em>xserver-xorg-input-evdev</em> was installed:</p>
<ul>
<li><code>locate evdev<br />
 </code></li>
</ul>
<p>Returned this for me:</p>
<p><a href="http://yokohead.com/wp-content/uploads/2009/02/screenshot-terminal.png"></a><a href="http://yokohead.com/wp-content/uploads/2009/02/screenshot-terminal1.png"><img class="alignnone size-thumbnail wp-image-178" title="screenshot-terminal1" src="http://yokohead.com/wp-content/uploads/2009/02/screenshot-terminal1-150x150.png" alt="screenshot-terminal1" width="150" height="150" /></a></p>
<p><em>xserver-xorg-input-evdev </em>is already installed,  no need to snag that particular package.  Next was checking my installed USB devices to see exactly what Ubuntu thinks my Logitech MX-518 actually is.</p>
<ul>
<li>c<code>at /proc/bus/input/devices</code></li>
</ul>
<p>The device list is quite extensive,  and I just pulled out the Logitech related bit</p>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; text-align: left;" dir="ltr">I: Bus=0003 Vendor=046d Product=c01e Version=0110
N: Name="<span style="color: #ff0000;"><strong>Logitech USB-PS/2 Optical Mouse</strong></span>"
P: Phys=usb-0000:00:0b.0-4/input0
S: Sysfs=/devices/pci0000:00/0000:00:0b.0/usb1/1-4/1-4:1.0/input/input4
U: Uniq=
H: Handlers=mouse1 event1
B: EV=17
B: KEY=ff0000 0 0 0 0
B: REL=103
B: MSC=10</pre>
<p>Perfect, this is the same thing I added into my xorg from earlier,  so it definitely has the right mouse,  and the Firefox back/forward buttons show this &#8211; but time to get it working with Nautilus.  Unfortunately there isn&#8217;t a native way to do this,  the buttons actually have to be bound to certain keys.</p>
<p>To do this there are two necessary packages,  <em>xvkbd</em> and <em>xbindkeys</em>.</p>
<ul>
<li><code>sudo apt-get install xvkbd xbindkeys</code></li>
</ul>
<p>Then <code>xbindkeys</code> needs to be configured to map the keys to Nautilus shortcuts.</p>
<ul>
<li><code>gedit ~/.xbindkeysrc</code></li>
</ul>
<p>Paste in the following:</p>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; text-align: left;" dir="ltr">"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[<span style="text-decoration: underline;">L</span>eft]""
  m:0x0 + b:6
"/usr/bin/xvkbd -xsendevent -text "\[Alt_L]\[<span style="text-decoration: underline;">R</span>ight]""
  m:0x0 + b:7</pre>
<p>Hit<strong> CTRL+S </strong>to save,  then <strong>ALT+F4</strong> to close.</p>
<p>Started up <em>xbindkeys</em> and tested it in Nautilus &#8211; and nothing happened.  Made sure the key commands themselves worked by hitting <strong>ALT+LEFT </strong>and <strong>ALT+RIGHT</strong> &#8211; moved back and forward just like it should,  but my side buttons didn&#8217;t do it.  The only thing different from what detabozhye did and myself is I defined the buttons,  so I removed that part and matched deta&#8217;s suggestion,  then restarted X.  Firefox still worked, Nautilus didn&#8217;t.</p>
<p>This time I loaded <code>xev</code> to try and see what button was /actually/ being pressed since it obviously wasn&#8217;t 6 or 7 at this point.</p>
<ul>
<li><code>xev</code></li>
</ul>
<p>(That was easy, eh?)  Unfortunately <code>xev</code> is a pain in the arse to actually use.  What I had to do was click,   and hold the button to stop <code>xev</code> output from spamming my terminal and make very sure to not move the mouse (or more mouse movement spam would scroll by).</p>
<p>When I held down my large side button and scanned the output I saw this:</p>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; text-align: left;" dir="ltr">ButtonPress event, serial 34, synthetic NO, window 0x4000001,
root 0x13b, subw 0x4000002, time 13076697, (36,18), root:(1014,814),
state 0x10, button 8, same_screen YES</pre>
<p>Finally,  it&#8217;s not 6,  it&#8217;s 8.  Great. The little upper one was 9.  Changed my .xbindkeysrc to update with the new buttons and then restarted <code>xbindkeys</code></p>
<ul>
<li><code>killall xbindkeys</code></li>
<li><code>xbindkeys</code></li>
</ul>
<p>Finally works.</p>
<p>Of course, after doing all of this I had a flash of insight&#8230; I <em>could&#8217;ve</em> simply had xev output to a file instead of trying to watch the terminal window and then searched for it later,   which I did as a test with a left click, then a right click, then a middle click.</p>
<ul>
<li><code>xev &gt; xevoutput.txt</code></li>
<li><em>left click, right click, then middle click</em> (in the xev window)</li>
<li><code>cat xevoutput.txt | grep button</code></li>
</ul>
<p>Returns:</p>
<pre class="alt2" style="border: 1px inset; margin: 0px; padding: 6px; overflow: auto; text-align: left;" dir="ltr">state 0x10, button 1, same_screen YES
state 0x110, button 1, same_screen YES
state 0x10, button 3, same_screen YES
state 0x410, button 3, same_screen YES
state 0x10, button 2, same_screen YES
state 0x210, button 2, same_screen YES</pre>
<p>There ya go&#8230; left click = 1,  right click = 3,  middle mouse click = 2.  If I did that earlier (and made life easier on myself) it would&#8217;ve returned 8 and 9 respectively.</p>
<p>Now this needs to be added to your startup list so it isn&#8217;t necessary to start it each time manually.  The easy way to do this in Gnome is by clicking <strong>System -&gt; Preferences -&gt; Session</strong>.  Click &#8220;Add&#8221;,  then type <code>xbindkeys</code> for the name,  and <code>xbindkeys</code> for the command,  and a description if you&#8217;d like.</p>
<p>I don&#8217;t like doing things through the GUI if I don&#8217;t have to,  so I hunted around for a way to configure it manually (mainly because I spent half my time SSH&#8217;d into the box from work and would rather have the way to work with or without a mouse).  After all of the above though I decided I&#8217;m done screwing around with this nonsense for the day and will make that into another post later tonight.</p>
]]></content:encoded>
			<wfw:commentRss>http://yokohead.com/2009/02/logitech-mx-518-with-gnome-in-ubuntu-810/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Creating gnome keyboard shortcuts</title>
		<link>http://yokohead.com/2009/01/creating-gnome-keyboard-shortcuts/</link>
		<comments>http://yokohead.com/2009/01/creating-gnome-keyboard-shortcuts/#comments</comments>
		<pubDate>Wed, 28 Jan 2009 07:38:14 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://yokohead.com/?p=140</guid>
		<description><![CDATA[I just found out about gconf-editor and have been crawling through here customizing my gnome desktop to my exact specifications &#8211; this program lets you do just about anything you can think of to the gnome environment.  This evening I just wanted my shortcut keys working again.

Hit &#60;Alt&#62;F2 then type gconf-editor and hit &#60;enter&#62;
Click Apps [...]]]></description>
			<content:encoded><![CDATA[<p>I just found out about <a href="http://projects.gnome.org/gconf/"><code>gconf-editor</code></a> and have been crawling through here customizing my gnome desktop to my exact specifications &#8211; this program lets you do just about anything you can think of to the gnome environment.  This evening I just wanted my shortcut keys working again.</p>
<ul>
<li>Hit &lt;Alt&gt;F2 then type <code>gconf-editor</code> and hit &lt;enter&gt;</li>
<li>Click <em>Apps</em> &gt; <em>metacity</em> &gt; <em>keybinding_commands</em></li>
</ul>
<div id="attachment_145" class="wp-caption alignnone" style="width: 619px"><a href="http://yokohead.com/wp-content/uploads/2009/01/screenshot-configuration-editor-keybinding_commands-1.png"><img class="size-full wp-image-145" title="screenshot-configuration-editor-keybinding_commands-1" src="http://yokohead.com/wp-content/uploads/2009/01/screenshot-configuration-editor-keybinding_commands-1.png" alt="gconf-editor - Apps &gt; metacity &gt; keybinding_commands" width="609" height="441" /></a><p class="wp-caption-text">gconf-editor - Apps &gt; metacity &gt; keybinding_commands</p></div>
<p>You&#8217;ll notice I&#8217;ve already added some common programs and commands in.  Under <em>keybinding_commands</em> panel simply double click the Value line and type in the command you would like to make a shortcut for. Now click on <em>global_keybindings</em> to make the actual keyboard shortcuts.</p>
<div id="attachment_146" class="wp-caption alignnone" style="width: 619px"><a href="http://yokohead.com/wp-content/uploads/2009/01/screenshot-configuration-editor-global_keybindings.png"><img class="size-full wp-image-146" title="screenshot-configuration-editor-global_keybindings" src="http://yokohead.com/wp-content/uploads/2009/01/screenshot-configuration-editor-global_keybindings.png" alt="gconf-editor: Apps &gt; metacity &gt; global_keybindings" width="609" height="441" /></a><p class="wp-caption-text">gconf-editor: Apps &gt; metacity &gt; global_keybindings</p></div>
<p>Here I&#8217;ve actually created the shortcuts themselves.  &lt;Super&gt; is for the Windows key,  followed by a letter to finish it off.  &lt;Super&gt;g opens up pidgin,  &lt;Super&gt;c for xchat,  ect.</p>
]]></content:encoded>
			<wfw:commentRss>http://yokohead.com/2009/01/creating-gnome-keyboard-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Checking Ubuntu boot times</title>
		<link>http://yokohead.com/2009/01/checking-ubuntu-boot-times/</link>
		<comments>http://yokohead.com/2009/01/checking-ubuntu-boot-times/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 00:49:42 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[programs]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[bootchart]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://yokohead.com/?p=92</guid>
		<description><![CDATA[Occasionally it&#8217;s fun to waste some time shooting your friends and unfortunately Ubuntu just isn&#8217;t up to speed when it comes to gaming &#8211; so I dual boot into a stripped Vista installation.  I&#8217;d like to make switching back and forth as quick as possible.
First thing I did was go and get Bootchart, &#8220;a tool [...]]]></description>
			<content:encoded><![CDATA[<p>Occasionally it&#8217;s fun to waste some time shooting your friends and unfortunately Ubuntu just isn&#8217;t up to speed when it comes to gaming &#8211; so I dual boot into a stripped Vista installation.  I&#8217;d like to make switching back and forth as quick as possible.</p>
<p>First thing I did was go and get <a href="http://www.bootchart.org/">Bootchart</a>, &#8220;<em>a tool for performance analysis and visualization of the GNU/Linux boot process&#8221;. </em>Bootchart is easy enough to install,  and unpacks at 51mb:</p>
<ul>
<li><code>sudo apt-get install bootchart</code></li>
</ul>
<p>Wandered over to the <a href="http://www.bootchart.org/docs.html">bootchart documentation</a> to see if there was anything special I ought to know about and realized I&#8217;m using Ubuntu&#8230; none of this is necessary.  Simply install and restart.</p>
<ul>
<li><code>sudo shutdown -r now</code></li>
</ul>
<p>Once restarted,  you&#8217;ll want to check out <strong>/var/log/bootchart</strong> for the png files with the bootchart output.  Here&#8217;s an <a href="http://yokohead.com/wp-content/uploads/2009/01/hardy-20090126-2.png">example</a> from my 8.04.2 test machine I&#8217;ve been working with today.</p>
<div id="attachment_106" class="wp-caption alignleft" style="width: 157px"><a href="http://yokohead.com/wp-content/uploads/2009/01/hardy-20090126-2.png"><img class="size-medium wp-image-106" title="hardy-20090126-2" src="http://yokohead.com/wp-content/uploads/2009/01/hardy-20090126-2-147x300.png" alt="hardy-20090126-2" width="147" height="300" /></a><p class="wp-caption-text">Ubuntu 8.04.2 bootchart</p></div>
<div id="attachment_151" class="wp-caption alignleft" style="width: 158px"><a href="http://yokohead.com/wp-content/uploads/2009/01/intrepid-20090127-1.png"><img class="size-medium wp-image-151" title="intrepid-20090127-1" src="http://yokohead.com/wp-content/uploads/2009/01/intrepid-20090127-1-148x300.png" alt="Ubuntu 8.10 bootchart" width="148" height="300" /></a><p class="wp-caption-text">Ubuntu 8.10 bootchart</p></div>
<div id="attachment_283" class="wp-caption alignleft" style="width: 89px"><a href="http://yokohead.com/wp-content/uploads/2009/01/desktop-karmic-20090620-1.png"><img class="size-medium wp-image-283" title="karmic-20090620-1" src="http://yokohead.com/wp-content/uploads/2009/01/desktop-karmic-20090620-1-79x300.png" alt="Ubuntu 9.10 Alpha 2 bootchart" width="79" height="300" /></a><p class="wp-caption-text">Ubuntu 9.10 Alpha 2 bootchart</p></div>
<p>For added awesome,  since I have <a href="http://yokohead.com/2009/01/installing-dropbox/">Dropbox</a> running on my work ubuntu,  work XP,  and home ubuntu installations I was able to do this to get the .png over to my WinXP while writing this post:</p>
<p><code>cp /var/log/bootchart/*.png /home/kyle-test/Dropbox/Public</code></p>
<p>By the time I had turned back to XP Dropbox had already synced,  and I was able to right click the uploaded PNG and choose Dropbox -&gt; Public link,  send a copy to my friend,  and upload here into the post with absolute minimum effort.  I&#8217;ll also have the file for comparison when I get home and do the same thing on 8.10.</p>
<p>Once I&#8217;ve learned enough to sufficiently decode this I&#8217;ll make another post explaining what each thing is and what can be configured/removed to make boot times faster.</p>
<p>In a nutshell,  my <a href="http://h20000.www2.hp.com/bizsupport/TechSupport/DocumentIndex.jsp?lang=en&amp;cc=us&amp;contentType=SupportManual&amp;prodTypeId=12454&amp;prodSeriesId=447468&amp;docIndexId=64180&amp;manualLang=en">HP dx5150</a> here at work boots in 30 seconds.</p>
<p><br class="spacer_" /></p>
<p><br class="spacer_" /></p>
<p>[UPDATE 6-20-09 4:36pm]<br />
 Just ran another bootchart on a fresh install of Ubuntu 9.10 Alpha 2 on my main machine &#8211; dropped from 24 seconds to 15,  probably due to ext4 being the main filesystem.</p>
<p>[UPDATE 1-28-09 12:28am]<br />
 Finally got around to getting bootchart up on the 8.10 installation at home,  this one clocks in at 24 seconds!  Taking a look between the two it seems as if hard drive throughput is my biggest limiter &#8211; I only dropped 6 seconds on total boot time and this machine is at least 5 times as powerful as the dx 5150 at work.</p>
]]></content:encoded>
			<wfw:commentRss>http://yokohead.com/2009/01/checking-ubuntu-boot-times/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Turn off PC speaker in Ubuntu</title>
		<link>http://yokohead.com/2009/01/turn-off-pc-speaker/</link>
		<comments>http://yokohead.com/2009/01/turn-off-pc-speaker/#comments</comments>
		<pubDate>Mon, 26 Jan 2009 06:45:59 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[pc speaker]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://yokohead.com/?p=59</guid>
		<description><![CDATA[Hearing the PC speaker was driving me nuts every time I hit backspace too many times&#8230;  turn it off this way:
Temporarily:


sudo modprobe -r pcspkr


Permanently:


echo "blacklist pcspkr" &#124; sudo tee -a /etc/modprobe.d/blacklist





]]></description>
			<content:encoded><![CDATA[<p>Hearing the PC speaker was driving me nuts every time I hit backspace too many times&#8230;  turn it off this way:</p>
<p>Temporarily:</p>
<ul>
<li>
<pre>sudo modprobe -r pcspkr</pre>
</li>
</ul>
<p>Permanently:</p>
<ul>
<li>
<pre>echo "blacklist pcspkr" | sudo tee -a /etc/modprobe.d/blacklist</pre>
</li>
</ul>
<p><br class="spacer_" /></p>
<ul>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://yokohead.com/2009/01/turn-off-pc-speaker/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Customize the bash prompt</title>
		<link>http://yokohead.com/2009/01/customize-the-bash-prompt/</link>
		<comments>http://yokohead.com/2009/01/customize-the-bash-prompt/#comments</comments>
		<pubDate>Wed, 21 Jan 2009 08:30:30 +0000</pubDate>
		<dc:creator>Kyle</dc:creator>
				<category><![CDATA[configure]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[customize]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://yokohead.com/?p=43</guid>
		<description><![CDATA[http://ubuntuforums.org/showthread.php?t=614743
cd ~/
cp .bashrc .bashrc-backup
touch .bash_colors
gedit .bash_colors
Paste in:
# ANSI color codes
RS="\[\033[0m\]"    # reset
HC="\[\033[1m\]"    # hicolor
UL="\[\033[4m\]"    # underline
INV="\[\033[7m\]"   # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black
FRED="\[\033[31m\]" # foreground red
FGRN="\[\033[32m\]" # foreground green
FYEL="\[\033[33m\]" # foreground yellow
FBLE="\[\033[34m\]" # foreground blue
FMAG="\[\033[35m\]" # foreground magenta
FCYN="\[\033[36m\]" # foreground cyan
FWHT="\[\033[37m\]" # foreground white
BBLK="\[\033[40m\]" # background black
BRED="\[\033[41m\]" # background red
BGRN="\[\033[42m\]" # background green
BYEL="\[\033[43m\]" # [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://ubuntuforums.org/showthread.php?t=614743">http://ubuntuforums.org/showthread.php?t=614743</a></p>
<pre>cd ~/</pre>
<pre>cp .bashrc .bashrc-backup</pre>
<pre>touch .bash_colors</pre>
<pre>gedit .bash_colors</pre>
<p>Paste in:</p>
<pre># ANSI color codes
RS="\[\033[0m\]"    # reset
HC="\[\033[1m\]"    # hicolor
UL="\[\033[4m\]"    # underline
INV="\[\033[7m\]"   # inverse background and foreground
FBLK="\[\033[30m\]" # foreground black
FRED="\[\033[31m\]" # foreground red
FGRN="\[\033[32m\]" # foreground green
FYEL="\[\033[33m\]" # foreground yellow
FBLE="\[\033[34m\]" # foreground blue
FMAG="\[\033[35m\]" # foreground magenta
FCYN="\[\033[36m\]" # foreground cyan
FWHT="\[\033[37m\]" # foreground white
BBLK="\[\033[40m\]" # background black
BRED="\[\033[41m\]" # background red
BGRN="\[\033[42m\]" # background green
BYEL="\[\033[43m\]" # background yellow
BBLE="\[\033[44m\]" # background blue
BMAG="\[\033[45m\]" # background magenta
BCYN="\[\033[46m\]" # background cyan
BWHT="\[\033[47m\]" # background white</pre>
<p>Save the file, close gedit</p>
<pre>sudo gedit .bashrc</pre>
<p>At the bottom of the file,  add:</p>
<pre>PS1="$HC$FGRN[$FRED\u$FGRN: $FRED\w$FGRN]\\$ $RS"
PS2="&gt; "

source ~/.bash_colors</pre>
<pre>PS1 will look like this:<span style="color: #00ff00;"> [</span><span style="color: #ff0000;">kyle</span><span style="color: #00ff00;">:</span> <span style="color: #ff0000;">~/Desktop</span><span style="color: #00ff00;">]$ </span></pre>
<p>PS2 will look like a standard &gt;,  nothing special</p>
<p>Here&#8217;s what the bottom of my .bashrc looks like &#8211; everything has simply been added after the standard ubuntu configuration and has worked well so far.</p>
<pre># load extra source files
source ~/.bash_aliases    # customized alias list
source ~/.bash_colors     # ANSI color codes

# personal prompts
PS1="$HC$FGRN[$FRED\u$FGRN: $FRED\w$FGRN]\\$ $RS"
PS2="&gt; "</pre>
]]></content:encoded>
			<wfw:commentRss>http://yokohead.com/2009/01/customize-the-bash-prompt/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
