<?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>Rick Guyer .com &#187; Linux</title>
	<atom:link href="http://rickguyer.com/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://rickguyer.com</link>
	<description>Information about the web, web development, and technology.</description>
	<lastBuildDate>Sat, 03 Jul 2010 19:52:13 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Resetting the All Inboxes counter on your Palm Pre</title>
		<link>http://rickguyer.com/all-inboxes-counter-palm-pre/</link>
		<comments>http://rickguyer.com/all-inboxes-counter-palm-pre/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 23:01:57 +0000</pubDate>
		<dc:creator>ricog</dc:creator>
				<category><![CDATA[webOS]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Palm Pre]]></category>
		<category><![CDATA[SQLite]]></category>

		<guid isPermaLink="false">http://rickguyer.com/?p=151</guid>
		<description><![CDATA[I've been digging around on webOS for a little while, learning how it ticks. I get pretty excited about the possibilities of open source mobile development. Although I haven't created any official apps yet, I've learned some pretty cool stuff.

A few weeks after I got my Palm Pre my All Inboxes mailbox counter got out of sync. If I had any unread mail it would show +5 more than what I had. I think this occurred when I removed an account or had a crash or something. I've forgotten the details. Anyway, it was bugging the hell out of me. So today I decided to track it down. To my surprise it wasn't too hard to figure out.]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been digging around on <a href="http://en.wikipedia.org/wiki/WebOS">webOS</a> for a little while, learning how it ticks. I get pretty excited about the possibilities of open source mobile development. Although I haven&#8217;t created any official apps yet, I&#8217;ve learned some pretty cool stuff.</p>
<p>A few weeks after I got my <a href="http://www.palm.com/us/products/phones/pre/">Palm Pre</a> my All Inboxes mailbox counter got out of sync. If I had any unread mail it would show +5 more than what I had. I think this occurred when I removed an account or had a crash or something. I&#8217;ve forgotten the details. Anyway, it was bugging the hell out of me. So today I decided to track it down. To my surprise it wasn&#8217;t too hard to figure out.<span id="more-151"></span></p>
<p>Initially I tried different things; like removing all the email accounts, rebooting the phone, and various other attempts to &#8220;trick&#8221; the Pre into resetting the unread counter for All Inboxes. And please keep in mind that the simplest way to solve this problem (for most people) will be to <a href="http://www.weboshelp.net/webos-mojo-development-resources/frequently-asked-questions/444-how-do-i-perform-a-hard-reset-on-the-pre">reset the Palm Pre to its factory settings</a>. I haven&#8217;t tried a reset, but I&#8217;m pretty sure it will do the trick. For me though, I knew the unread counter was just a field in a record in a database somewhere on the Pre. And updating that field was a lot more fun than a reset would have been. Below I describe how I fixed the inbox counter.</p>
<p>The process involves <a href="http://www.webos-internals.org/wiki/Portal:Accessing_Linux">rooting your Pre</a> in order to get access to the <a href="http://www.sqlite.org/">SQLite</a> database that most of the Pre&#8217;s data is stored on. Although rooting is fairly straight forward and this fix is only a few commands on a rooted Pre, I do not encourage anyone to root their phone and risk messing something up. If you don&#8217;t know what you are doing and don&#8217;t feel comfortable turning your Palm Pre into a paper weight in the spirit of adventure, you might want to stop reading this article.</p>
<p>For everyone else, let the fun begin.</p>
<ol>
<li>First, like I said, you need to <a href="http://www.webos-internals.org/wiki/Portal:Accessing_Linux">root your Palm Pre</a>.</li>
<li>Next, from the root prompt enter the Pre&#8217;s relevant SQLite database with this command:
<pre class="brush: php">sqlite3 /var/luna/data/dbdata/PalmDatabase.db3</pre>
</li>
<li>Take a peek at the record that holds the unread message counter for All Inboxes:
<pre class="brush: php">SELECT * FROM com_palm_accounts_ActiveRecordFolder WHERE syncKey=&#039;_All_Inboxes_&#039;;</pre>
<p>You&#8217;ll see something like this:</p>
<pre class="brush: php">|1|5|7|45079976738820|EMAIL|_All_Inboxes_|0|-9999991||All inboxes|0|0|48378511622153|44|4182610||||||0|0|0|0|0|All inboxes||||||||||||||||</pre>
<p>For those who care, you can see the details of the com_palm_accounts_ActiveRecordFolder table by running:</p>
<pre class="brush: php">.schema com_palm_accounts_ActiveRecordFolder</pre>
<p>That&#8217;s how I learned about the syncKey and the unreadCount used below.</li>
<li>Now let&#8217;s update the counter:
<pre class="brush: php">UPDATE com_palm_accounts_ActiveRecordFolder SET unreadCount=1 WHERE syncKey=&#039;_All_Inboxes_&#039;;</pre>
<p>In the above example I set unreadCount=1 because I had one unread mail across all my email accounts. You&#8217;ll probably want to change the number to your actual unread count. At this point you should be able to look at your Pre and see that the counter is fixed.</li>
<li>Exit SQLite:
<pre class="brush: php">.exit</pre>
</li>
</ol>
<p>That&#8217;s it. I restarted my Pre after doing this, but it probably isn&#8217;t necessary.</p>
<p>I hope this proves useful to someone/anyone. If you have any comments or need some help let me know. I&#8217;m really enjoying webOS and plan to learn more.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickguyer.com/all-inboxes-counter-palm-pre/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>VirtualBox: Disable time sync between host and client</title>
		<link>http://rickguyer.com/virtualbox-disable-time-sync-between-host-and-client/</link>
		<comments>http://rickguyer.com/virtualbox-disable-time-sync-between-host-and-client/#comments</comments>
		<pubDate>Mon, 08 Jun 2009 16:35:53 +0000</pubDate>
		<dc:creator>ricog</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://rickguyer.com/?p=68</guid>
		<description><![CDATA[If you run VirtualBox you may eventually run into problems with the time or time sync within your VM guest, you can run this command on the host to disable time sync.]]></description>
			<content:encoded><![CDATA[<p>If you run <a href="http://www.virtualbox.org/">VirtualBox</a> you may eventually run into problems with the time or time sync within your VM guest. You can run this command on the host to disable time sync:</p>
<p style="padding-left: 30px;">vboxmanage setextradata &lt;vmname&gt; &#8220;VBoxInternal/Devices/VMMDev/0/Config/GetHostTimeDisabled&#8221; &#8220;1&#8243;</p>
<p>Just replace &lt;vmname&gt; with the name of your guest. On Windows hosts, you&#8217;ll need to change the command to &#8220;VBoxManage&#8221;.</p>
<p>You will most likely want to set the client to sync with a time server after this. On Windows clients, just double click on the time and go to the Internet Time tab. Check the box and choose time.nist.gov (better reliability).</p>
<p>I needed to solve this because QuickBooks Pro 2000 complains about the system time being changed continuously while in multi-user mode.</p>
<p><em>I found this simple VirtualBox time sync tip in a post titled <a href="http://www.ideaexcursion.com/2008/08/19/synchronize-a-virtualized-domain-controller-with-external-time-servers/">Synchronize a Virtualized Domain Controller with External Time Servers</a>.</em></p>
]]></content:encoded>
			<wfw:commentRss>http://rickguyer.com/virtualbox-disable-time-sync-between-host-and-client/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Synergy keyboard shortcuts on Ubuntu</title>
		<link>http://rickguyer.com/synergy-keyboard-shortcuts-on-ubuntu/</link>
		<comments>http://rickguyer.com/synergy-keyboard-shortcuts-on-ubuntu/#comments</comments>
		<pubDate>Wed, 27 May 2009 13:13:02 +0000</pubDate>
		<dc:creator>ricog</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Synergy]]></category>

		<guid isPermaLink="false">http://rickguyer.com/?p=60</guid>
		<description><![CDATA[In a previous post, I wrote about running Synergy on boot in Ubuntu. Synergy also lets you setup keyboard shortcuts for various actions. Below I show how to setup Synergy keyboard shortcuts for switching between computers. Now you can work away without the need to grab the mouse to get from one screen to the next.]]></description>
			<content:encoded><![CDATA[<p>In a previous post, I wrote about running <a href="http://rickguyer.com/synergy-on-boot-in-ubuntu/">Synergy on boot in Ubuntu</a>. <a href="http://en.wikipedia.org/wiki/Synergy_(software)">Synergy</a> also lets you setup keyboard shortcuts for various actions. Below I show how to setup Synergy keyboard shortcuts for switching between computers. Now you can work away without the need to grab the mouse to get from one screen to the next.</p>
<ol>
<li>Open a terminal and enter
<pre class="brush: php">sudo gedit /etc/synergy.conf</pre>
</li>
<li>Add an options section with keystroke lines something like this
<pre class="brush: php">
section: options
keystroke(Alt+1) = switchToScreen(comp1)
keystroke(Alt+2) = switchToScreen(comp2)
end
</pre>
</li>
<li>Save the file and exit</li>
<li>Restart Synergy (reboot if you don&#8217;t know how to restart otherwise)</li>
</ol>
<p>You will need to replace &#8220;comp1&#8243; and &#8220;comp2&#8243; with your computer names or aliases. These should be listed in the screens section of your synergy.conf. And of course, if you have more than 2 screens, just add more keystroke lines.</p>
<p>You can learn more about Synergy&#8217;s options on the <a href="http://synergy2.sourceforge.net/configuration.html">Synergy configuration page</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickguyer.com/synergy-keyboard-shortcuts-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Synergy on boot in Ubuntu</title>
		<link>http://rickguyer.com/synergy-on-boot-in-ubuntu/</link>
		<comments>http://rickguyer.com/synergy-on-boot-in-ubuntu/#comments</comments>
		<pubDate>Tue, 26 May 2009 04:01:30 +0000</pubDate>
		<dc:creator>ricog</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Synergy]]></category>

		<guid isPermaLink="false">http://rickguyer.com/?p=55</guid>
		<description><![CDATA[Synergy is a great tool that lets you control multiple computers with one keyboard and mouse. If you use Ubuntu, or another linux distro, it may not be entirely obvious how to get synergy to run on boot. Below are the steps I took:]]></description>
			<content:encoded><![CDATA[<p><a href="http://en.wikipedia.org/wiki/Synergy_(software)">Synergy</a> is a great tool that lets you control multiple computers with one keyboard and mouse. If you use <a href="http://www.ubuntu.com/">Ubuntu</a>, or another linux distro, it may not be entirely obvious how to get synergy to run on boot. Below are the steps I took:</p>
<p><strong><em>Update July 3, 2010</em></strong><em> &#8211; I added client installation instructions and headings that hopefully will clarify a few points.</em></p>
<p><strong>For an Ubuntu Server:</strong></p>
<ol>
<li>Install Synergy if you haven&#8217;t already
<ul>
<li>Frontend applications like <a href="http://quicksynergy.sourceforge.net/">QuickSynergy</a> will install Synergy for you</li>
<li>Otherwise, you can go to System &gt; Administration &gt; Synaptic Package Manager, and search for &#8220;synergy&#8221;</li>
</ul>
</li>
<li>Create your synergy config file
<ul>
<li>If you are using QuickSynergy, you can copy an existing config from ~/.quicksynergy/synergy.conf</li>
<li>If you are using a different frontend, look around for their synergy.conf</li>
<li>Or, you can <a href="http://synergy2.sourceforge.net/configuration.html">build the synergy configuration file from scratch</a></li>
</ul>
</li>
<li>Store the synergy config in /etc/synergy.conf
<ul>
<li>From a terminal type sudo gedit /etc/synergy.conf</li>
</ul>
</li>
<li>Set synergy to run on boot
<ul>
<li>Go to System &gt; Preferences &gt; Startup Applications</li>
<li>Add Synergy, entering /usr/bin/synergys <em>(note the s on the end)</em> for the command</li>
<li>Reboot to test it out</li>
</ul>
</li>
</ol>
<p><strong>For an Ubuntu client</strong></p>
<ol>
<li>Install Synergy if you haven&#8217;t already (as in step 1 above)</li>
<li>Make sure the Synergy server is up and running. You can ping it&#8217;s hostname or ip address</li>
<li>Set synergy to run on boot
<ul>
<li>Go to System &gt; Preferences &gt; Startup Applications</li>
<li>Add Synergy, entering /usr/bin/synergyc &lt;server&gt;
<ul>
<li>note the c on the end of the command</li>
<li>&lt;server&gt; is the hostname or IP address you were able to ping in step 2</li>
</ul>
</li>
<li>Reboot to test it out</li>
</ul>
</li>
</ol>
<p>I&#8217;m sure there are many other ways to accomplish this. If you are interested in learning more about Synergy, the <a href="http://code.google.com/p/synergy-plus/">Synergy-plus</a> project maintains an excellent list of <a href="http://code.google.com/p/synergy-plus/wiki/RelatedProjects">Synergy Related Projects</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://rickguyer.com/synergy-on-boot-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
