<?xml version="1.0" encoding="utf-8" ?>

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Akom's Tech Ruminations - Linux</title>
    <link>http://tech.akom.net/</link>
    <description>Various tech outbursts - code and solutions to practical problems</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 1.5.5 - http://www.s9y.org/</generator>
    <pubDate>Sun, 19 Jun 2011 13:39:00 GMT</pubDate>

    <image>
        <url>http://tech.akom.net/templates/default/img/s9y_banner_small.png</url>
        <title>RSS: Akom's Tech Ruminations - Linux - Various tech outbursts - code and solutions to practical problems</title>
        <link>http://tech.akom.net/</link>
        <width>100</width>
        <height>21</height>
    </image>

<item>
    <title>Figuring out the card number of a cheap SAA7130 capture card</title>
    <link>http://tech.akom.net/archives/68-Figuring-out-the-card-number-of-a-cheap-SAA7130-capture-card.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/68-Figuring-out-the-card-number-of-a-cheap-SAA7130-capture-card.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=68</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=68</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    So you bought yourself a cheap Philips SAA7130 (or SAA713X or SAA7134) capture card to record motion, you plugged it in and you are getting a black or grey screen.  Looking in dmesg you see the famous 

&lt;code&gt; saa7134[0]: Huh, no eeprom present (err=-5)? &lt;/code&gt;

And 

&lt;pre&gt;
&lt;blockquote&gt;saa7134:  Congratulations!  Your TV card vendor saved a few
saa7134:  cents for a eeprom, thus your pci board has no
saa7134:  subsystem ID and I can&#039;t identify it automatically
saa7134: I feel better now.  Ok, here are the good news:
saa7134: You can use the card=&lt;nr&gt; insmod option to specify
saa7134: which board do you have.  The list:&lt;/blockquote&gt;
&lt;/pre&gt;

What do you do?  How do you try 175 card numbers and figure out which one works?  Write a script! &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/68-Figuring-out-the-card-number-of-a-cheap-SAA7130-capture-card.html#extended&quot;&gt;Continue reading &quot;Figuring out the card number of a cheap SAA7130 capture card&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Sun, 19 Jun 2011 09:26:27 -0400</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/68-guid.html</guid>
    
</item>
<item>
    <title>Backing up cPanel without hitting logout</title>
    <link>http://tech.akom.net/archives/65-Backing-up-cPanel-without-hitting-logout.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/65-Backing-up-cPanel-without-hitting-logout.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=65</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=65</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    cPanel based hosting presents some challenges for automatic backups - there isn&#039;t an automatic way of creating local backups or any standard way of triggering their creation remotely.  Numerous scripts exist yet none were quite the solution I was looking for - I am primarily interested in the databases and mail forwarders, though files wouldn&#039;t hurt either.  Moreover - you can do this in a single line!

&lt;br/&gt;&lt;br/&gt;

My Goal therefore is: &lt;b&gt;Create and retrieve backups nightly&lt;/b&gt;.  I don&#039;t want cPanel to push files to my off-site box, I&#039;d rather initiate everything remotely and not have to open up access to some other system.  cPanel does permit one to do this using a browser, hence it can be scripted.   Really, scripting isn&#039;t even necessary - &lt;strong&gt;wget&lt;/strong&gt; is all that is required!  That said, I had a very hard time convincing wget not to visit the &lt;strong&gt;logout&lt;/strong&gt; link on each page - once you log out, you&#039;re not getting anywhere anymore.  So here is how I did it. &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/65-Backing-up-cPanel-without-hitting-logout.html#extended&quot;&gt;Continue reading &quot;Backing up cPanel without hitting logout&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 21 Apr 2011 19:26:57 -0400</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/65-guid.html</guid>
    
</item>
<item>
    <title>MySQL replication dies with fatal error 1236: Client requested master to start replication from impossible position</title>
    <link>http://tech.akom.net/archives/64-MySQL-replication-dies-with-fatal-error-1236-Client-requested-master-to-start-replication-from-impossible-position.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/64-MySQL-replication-dies-with-fatal-error-1236-Client-requested-master-to-start-replication-from-impossible-position.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=64</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=64</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    This time, my master-master setup stopped replicating with no explanation at all - running &lt;strong&gt;START SLAVE&lt;/strong&gt; yielded no warnings or errors.  Inspecting the log yielded the aforementioned error (on Ubuntu, mysql logs to /var/log/syslog by default):

&lt;br/&gt;

&lt;pre&gt;&lt;blockquote&gt;
[ERROR] Error reading packet from server: Client requested master to start replication from impossible position (
server_errno=1236)
[ERROR] Got fatal error 1236: &#039;Client requested master to start replication from impossible position&#039; from master
when reading data from binary log
[4654]: 110204 10:09:20 [Note] Slave I/O thread exiting, read up to log &#039;mysqld-bin.000742&#039;, position 4274&lt;/blockquote&gt;&lt;/pre&gt;

&lt;br/&gt;

So at first I thought this was a weird bug or a &lt;a href=&quot;http://tech.akom.net/archives/33-MySQL-Master-Master-Replication-over-a-Secure-Stunnel-Connection-SSL.html&quot; title=&quot;I run master-master over stunnel&quot;&gt;stunnel issue&lt;/a&gt;, but looking at &#039;mysqld-bin.000742&#039; on the master it turns out that it&#039;s only 3980 bytes - position 4274 is indeed impossible.  But how did it get this way? &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/64-MySQL-replication-dies-with-fatal-error-1236-Client-requested-master-to-start-replication-from-impossible-position.html#extended&quot;&gt;Continue reading &quot;MySQL replication dies with fatal error 1236: Client requested master to start replication from impossible position&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 04 Feb 2011 10:33:30 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/64-guid.html</guid>
    
</item>
<item>
    <title>Simple flat file site search in PHP/Smarty</title>
    <link>http://tech.akom.net/archives/62-Simple-flat-file-site-search-in-PHPSmarty.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/62-Simple-flat-file-site-search-in-PHPSmarty.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=62</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=62</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    Sometimes using a real search implementation (Lucene, Sphinx) is just too much.  The particular site I was working on is something like 30 pages, it&#039;s maintained as flat files (Smarty templates, but it&#039;s basically HTML on disk), and it really, really should not require megabytes of code and cron jobs to be able to search it!

&lt;br/&gt;&lt;br/&gt;

That said, this is a simple search solution - it makes a lot of assumptions: &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/62-Simple-flat-file-site-search-in-PHPSmarty.html#extended&quot;&gt;Continue reading &quot;Simple flat file site search in PHP/Smarty&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 19 Jan 2011 17:14:36 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/62-guid.html</guid>
    
</item>
<item>
    <title>Predictable ALSA numbering of USB sound cards</title>
    <link>http://tech.akom.net/archives/61-Predictable-ALSA-numbering-of-USB-sound-cards.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/61-Predictable-ALSA-numbering-of-USB-sound-cards.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=61</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=61</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    I have 3 rather cute Monoprice usb sound cards for use by &lt;strong&gt;&lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/sourceforge.net/projects/mmpd/&#039;]);&quot;  href=&quot;http://sourceforge.net/projects/mmpd/&quot; title=&quot;MMPD (Multi-mpd client)&quot;&gt;mmpd&lt;/a&gt;&lt;/strong&gt; (client I wrote for multiple mpd instances).   The great thing about them is that for $9 you can just keep adding zones to your music systems.   The bad news is, UDEV will reorder sound cards on boot as it pleases.  

&lt;!-- s9ymdb:208 --&gt;&lt;img class=&quot;serendipity_image_right&quot; width=&quot;110&quot; height=&quot;110&quot; style=&quot;float: right; border: 0px; padding-left: 5px; padding-right: 5px;&quot; src=&quot;http://tech.akom.net/uploads/photos/hardware/soundcard-monoprice.serendipityThumb.jpg&quot; alt=&quot;&quot; /&gt;
&lt;br/&gt;&lt;br/&gt;

Zones changing would be survivable in itself (reboots are rare), but I also have a webcam and an onboard sound card that I don&#039;t use - so sometimes the numbers I&#039;ve configured mpd to use aren&#039;t even valid sound cards!  On to the continuing search for a working solution &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/61-Predictable-ALSA-numbering-of-USB-sound-cards.html#extended&quot;&gt;Continue reading &quot;Predictable ALSA numbering of USB sound cards&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Wed, 12 Jan 2011 10:07:48 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/61-guid.html</guid>
    
</item>
<item>
    <title>Fixing digitemp with LinkUSB on kernels after 2.6.32-24</title>
    <link>http://tech.akom.net/archives/60-Fixing-digitemp-with-LinkUSB-on-kernels-after-2.6.32-24.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/60-Fixing-digitemp-with-LinkUSB-on-kernels-after-2.6.32-24.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=60</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=60</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    As many people have discovered, kernels after 2.6.32-24 changed the USB-RS232 serial driver to not set hardware flow control (RTS/DTS) flags.   No doubt there was a good reason.   Unfortunately, digitemp and owfs don&#039;t enable it either, also probably for a good reason - at least when applied to older devices.   What this means is that now when you try to use a LinkUSB (and probably other DS9097U type hardware behind USB to Serial converters), digitemp and owfs no longer work.

&lt;br/&gt;&lt;br/&gt;
Let&#039;s apply a time-tested hackish approach.   &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/60-Fixing-digitemp-with-LinkUSB-on-kernels-after-2.6.32-24.html#extended&quot;&gt;Continue reading &quot;Fixing digitemp with LinkUSB on kernels after 2.6.32-24&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Tue, 11 Jan 2011 16:28:22 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/60-guid.html</guid>
    
</item>
<item>
    <title>How to take down your pfSense firewall with one checkbox</title>
    <link>http://tech.akom.net/archives/59-How-to-take-down-your-pfSense-firewall-with-one-checkbox.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/59-How-to-take-down-your-pfSense-firewall-with-one-checkbox.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=59</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=59</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    Simple:  create a Traffic Shaper queue but forget to choose a queue parent.   

&lt;br/&gt;&lt;br/&gt;

Your firewall will not pass any packets across, and you&#039;ll have no idea what hit you. 
    </content:encoded>

    <pubDate>Sat, 01 Jan 2011 16:07:12 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/59-guid.html</guid>
    
</item>
<item>
    <title>Verizon Wireless tethering Ubuntu Karmic to a Storm 2</title>
    <link>http://tech.akom.net/archives/54-Verizon-Wireless-tethering-Ubuntu-Karmic-to-a-Storm-2.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/54-Verizon-Wireless-tethering-Ubuntu-Karmic-to-a-Storm-2.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=54</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=54</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    This topic is fairly well described, so this is just a quick how to for me.  (This is for USB, I am not attempting bluetooth this time)

&lt;b&gt;UPDATE&lt;/b&gt;: I now use &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/www.berry4all.com/install&#039;]);&quot;  href=&quot;http://www.berry4all.com/install&quot;&gt;berry4all&lt;/a&gt; instead of the below.  It just works, and there is a GUI

&lt;br/&gt;
&lt;br/&gt;
&lt;br/&gt;
&lt;b&gt;Old Way:&lt;/b&gt;

&lt;br/&gt;&lt;br/&gt;
&lt;ol&gt;
 &lt;li&gt; 
    &lt;blockquote&gt;sudo apt-get install &lt;strong&gt;libbarry0 barry-util&lt;/strong&gt; &lt;em&gt;barrybackup-gui&lt;/em&gt;&lt;/blockquote&gt; 
    Chances are you already have the first two in a karmic install, and you may not even need barrybackup-gui.  I did not need to add any new apt repositories
 &lt;/li&gt;
 &lt;li&gt; if the phone requires a password, edit &lt;strong&gt;/etc/ppp/peers/barry-verizon&lt;/strong&gt; and change the pty line to read
       &lt;blockquote&gt;pty &quot;/usr/sbin/pppob -P My_Password&quot;&lt;/blockquote&gt;
      Yes there is a password line in that file, but it doesn&#039;t seem to do anything, and I don&#039;t know how to use variables in a pppd script &lt;img src=&quot;http://tech.akom.net/templates/default/img/emoticons/smile.png&quot; alt=&quot;:-)&quot; style=&quot;display: inline; vertical-align: bottom;&quot; class=&quot;emoticon&quot; /&gt;
 &lt;/li&gt;
 &lt;li&gt;
  &lt;blockquote&gt;sudo pppd call barry-verizon&lt;/blockquote&gt;
   You should see the progress and the IP&#039;s relevant to the connection.
   If you&#039;re having trouble, add debug:
  &lt;blockquote&gt;sudo pppd debug call barry-verizon&lt;/blockquote&gt;
 &lt;/li&gt;
&lt;/ol&gt;


Note1: In my experience, after I kill the pppd connection I can&#039;t reconnect until I momentarily unplug the phone. Also, mass storage mode is not necessary.

&lt;br/&gt;&lt;br/&gt;

Note2: These steps should be similar for most providers.  Look at /etc/ppp/peers/barry-* to see the predefined provider scripts.

&lt;br/&gt;&lt;br/&gt;

Note3: I believe that the connection will fail miserably if you have any other network connection active on the PC besides the tethered phone.

&lt;br/&gt;&lt;br/&gt;

Note4: I am posting this using my blackberry! 
    </content:encoded>

    <pubDate>Fri, 02 Apr 2010 10:12:47 -0400</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/54-guid.html</guid>
    
</item>
<item>
    <title>Postfix satelite mail configuration with special needs</title>
    <link>http://tech.akom.net/archives/52-Postfix-satelite-mail-configuration-with-special-needs.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/52-Postfix-satelite-mail-configuration-with-special-needs.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=52</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=52</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    OK so I have special needs.  (Either that or I am just oblivious to a working example of this).

&lt;br/&gt;&lt;br/&gt;
My needs are:  
&lt;ol&gt;
&lt;li&gt;Do not receive inbound mail&lt;/li&gt;
&lt;li&gt;Do not deliver mail locally at all&lt;/li&gt;
&lt;li&gt;Send all outbound mail through an upstream relay (ISP&#039;s smtp)&lt;/li&gt;
&lt;li&gt;Qualify local addresses with a valid domain name (ISP&#039;s smtp will reject invalid domains)&lt;/li&gt;
&lt;li&gt;Map some local addresses to convenient aliases (distribution lists in the real mail system - google apps in this case)&lt;/li&gt;
&lt;/ol&gt;

&lt;br/&gt;&lt;br/&gt;
Doesn&#039;t seem so hard, right?  So I started with the postfix &quot;Satelite System&quot; option in ubuntu installer, and then... &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/52-Postfix-satelite-mail-configuration-with-special-needs.html#extended&quot;&gt;Continue reading &quot;Postfix satelite mail configuration with special needs&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 15 Feb 2010 11:51:41 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/52-guid.html</guid>
    
</item>
<item>
    <title>Software RAID in Ubuntu Karmic 9.10 </title>
    <link>http://tech.akom.net/archives/51-Software-RAID-in-Ubuntu-Karmic-9.10.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/51-Software-RAID-in-Ubuntu-Karmic-9.10.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=51</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=51</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    I am writing this down because it was somewhat hard to figure out how much of the HOWTO&#039;s out there are out of date.  This is not particularly difficult, but it&#039;s my first RAID setup and this blog is my notepad.   I am setting up a RAID1 on a Dell Precision 490 with two brand new 500GB SATA drives.
&lt;br/&gt;&lt;br/&gt;
First I tried using BIOS RAID.  My system doesn&#039;t have a true RAID controller card and after some trial,error and googling I decided to forget it and go with an industrty standard (MD) Linux software RAID.   I reset my drives to non-raid in the BIOS, popped in Ubuntu server x64 CD and went on ahead.   &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/51-Software-RAID-in-Ubuntu-Karmic-9.10.html#extended&quot;&gt;Continue reading &quot;Software RAID in Ubuntu Karmic 9.10 &quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 15 Feb 2010 09:12:32 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/51-guid.html</guid>
    
</item>
<item>
    <title>MySQL replication dies with ERROR 1201 (HY000): Could not initialize master info structure</title>
    <link>http://tech.akom.net/archives/50-MySQL-replication-dies-with-ERROR-1201-HY000-Could-not-initialize-master-info-structure.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/50-MySQL-replication-dies-with-ERROR-1201-HY000-Could-not-initialize-master-info-structure.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=50</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=50</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    On a fine happy morning I am greeted with an alert that slave is not running.  Running start slave yields this:

&lt;blockquote&gt;ERROR 1201 (HY000): Could not initialize master info structure; more error messages can be found in the MySQL error log&lt;/blockquote&gt;

Enabling the log yielded nothing.  Googling yielded &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/community.livejournal.com/mysql/129177.html&#039;]);&quot;  href=&quot;http://community.livejournal.com/mysql/129177.html&quot;&gt;This Page&lt;/a&gt; that helped me a lot, but I didn&#039;t have to do quite as much work all over again.  Here is what I did.
 &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/50-MySQL-replication-dies-with-ERROR-1201-HY000-Could-not-initialize-master-info-structure.html#extended&quot;&gt;Continue reading &quot;MySQL replication dies with ERROR 1201 (HY000): Could not initialize master info structure&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Fri, 12 Feb 2010 12:10:50 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/50-guid.html</guid>
    
</item>
<item>
    <title>Disabling X server autostart (gdm) on Ubuntu Karmic (9.10)</title>
    <link>http://tech.akom.net/archives/46-Disabling-X-server-autostart-gdm-on-Ubuntu-Karmic-9.10.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/46-Disabling-X-server-autostart-gdm-on-Ubuntu-Karmic-9.10.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=46</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=46</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    There are many reasons one may wish to do this - running their desktop installation as a sever (temporarily perhaps),  solving some video issues... or just doing it to get that facet of control back.  I, for instance, prefer to run X with &quot;startx&quot; when I&#039;m ready to do so.  I do not enjoy a black screen when the latest intel video driver doesn&#039;t work - I&#039;d rather Ctrl-Alt-Backspace and fix it.

&lt;br/&gt;&lt;br/&gt;

Anyway, so Karmic (and apparently certain installs before Karmic, as well) uses an init system called &quot;&lt;strong&gt;Upstart&lt;/strong&gt;&quot;.   If you&#039;ve tried messing with update-rc and noticed that disabling &lt;strong&gt;/etc/init.d/gdm&lt;/strong&gt; doesn&#039;t work, this is why.   Oh sure, you can run &lt;strong&gt;/etc/init.d/gdm stop&lt;/strong&gt;, but it&#039;s only temporary, assuming that works for you at all - for me it does not - my console does not recover and I get a black screen.

&lt;br/&gt;&lt;br/&gt;

To get it to stop permanently the proper way is apparently to work with upstart.  You&#039;ll notice some definitions in /etc/init (no, not /etc/init.d).   These work somewhat like the Gentoo init.d scripts - you can define dependencies, events, phases, etc.   So looking at &lt;strong&gt;/etc/init/gdm.conf &lt;/strong&gt;I see:
 &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/46-Disabling-X-server-autostart-gdm-on-Ubuntu-Karmic-9.10.html#extended&quot;&gt;Continue reading &quot;Disabling X server autostart (gdm) on Ubuntu Karmic (9.10)&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 16 Nov 2009 12:22:07 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/46-guid.html</guid>
    
</item>
<item>
    <title>Upgrading to Ubuntu 9.10 Karmic Koala breaks X (xorg) on intel driver on 945G chipset</title>
    <link>http://tech.akom.net/archives/45-Upgrading-to-Ubuntu-9.10-Karmic-Koala-breaks-X-xorg-on-intel-driver-on-945G-chipset.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/45-Upgrading-to-Ubuntu-9.10-Karmic-Koala-breaks-X-xorg-on-intel-driver-on-945G-chipset.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=45</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=45</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    After upgrading my IBM desktop with &quot;82945G/GZ Integrated Graphics Controller&quot; X stopped working entirely, regardless of any changes to xorg.conf.  Running startx manually revealed an error like this:

&lt;br/&gt;&lt;br/&gt;

&lt;blockquote&gt;&lt;pre&gt;
(EE) Failed to load module &quot;i810&quot; (module does not exist, 0)
(EE) open /dev/fb0: No such file or directory
(EE) intel(0): [drm] Failed to open DRM device for : No such file or directory
(EE) intel(0): Failed to become DRM master.
&lt;/pre&gt;&lt;/blockquote&gt;

&lt;br/&gt;&lt;br/&gt;
Took me a little while to figure out how to get me my machine back: &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/45-Upgrading-to-Ubuntu-9.10-Karmic-Koala-breaks-X-xorg-on-intel-driver-on-945G-chipset.html#extended&quot;&gt;Continue reading &quot;Upgrading to Ubuntu 9.10 Karmic Koala breaks X (xorg) on intel driver on 945G chipset&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 02 Nov 2009 12:27:51 -0500</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/45-guid.html</guid>
    
</item>
<item>
    <title>Backing Up Google Docs automatically from Linux</title>
    <link>http://tech.akom.net/archives/44-Backing-Up-Google-Docs-automatically-from-Linux.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/44-Backing-Up-Google-Docs-automatically-from-Linux.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=44</wfw:comment>

    <slash:comments>2</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=44</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    I&#039;m not quite sure why a working example of doing this is so hard to find!
&lt;br/&gt;&lt;br/&gt;
As far as I can tell, at the time of this writing there are two choices of ready-made (and free) apps that do this:  &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/gs.fhtino.it/gdocbackup&#039;]);&quot;  href=&quot;http://gs.fhtino.it/gdocbackup&quot;&gt;GDocBackup&lt;/a&gt; and &lt;a onclick=&quot;_gaq.push([&#039;_trackPageview&#039;, &#039;/extlink/ardoino.com/php-google-backup/&#039;]);&quot;  href=&quot;http://ardoino.com/php-google-backup/&quot;&gt;php-google-backup&lt;/a&gt;, a tiny php script  (on google code) that uses Zend libraries.    The former is a &lt;strong&gt;windows binary&lt;/strong&gt; and is said to run in Mono.   The latter is a php script which currently partially works (can&#039;t handle spreadsheets or PDF&#039;s).   Not wanting to run Mono (an emulator - I might as well write this in Java), and not satisfied with only backing up .doc&#039;s and presentations... I hacked up my own.
&lt;br/&gt;&lt;br/&gt;
Here is how I did it &lt;br /&gt;&lt;a href=&quot;http://tech.akom.net/archives/44-Backing-Up-Google-Docs-automatically-from-Linux.html#extended&quot;&gt;Continue reading &quot;Backing Up Google Docs automatically from Linux&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Mon, 26 Oct 2009 15:46:50 -0400</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/44-guid.html</guid>
    
</item>
<item>
    <title>Getting Pidgin to sign off when you lock your screen</title>
    <link>http://tech.akom.net/archives/43-Getting-Pidgin-to-sign-off-when-you-lock-your-screen.html</link>
            <category>Linux</category>
    
    <comments>http://tech.akom.net/archives/43-Getting-Pidgin-to-sign-off-when-you-lock-your-screen.html#comments</comments>
    <wfw:comment>http://tech.akom.net/wfwcomment.php?cid=43</wfw:comment>

    <slash:comments>0</slash:comments>
    <wfw:commentRss>http://tech.akom.net/rss.php?version=2.0&amp;type=comments&amp;cid=43</wfw:commentRss>
    

    <author>nospam@example.com (Admin)</author>
    <content:encoded>
    I am signed in to google talk from many places - blackberry, laptops, desktops, etc - and every once in a while, IM&#039;s don&#039;t go to the right one.   Since I lock my workstation at the office whenever I get up, I figured it&#039;d be nice to have Pidgin log off at the same time.
&lt;br/&gt;&lt;br/&gt;
I am not sure how you would do this in Windows, but in Linux (Ubuntu in my case), I did it like this:
&lt;br/&gt;&lt;br/&gt;
Changed my screen lock hotkey (Ctrl-Alt-l for me) to run the following:
&lt;blockquote&gt;xlock -startCmd &quot;purple-remote setstatus?status=offline&quot; -endCmd &quot;purple-remote setstatus?status=available&quot;&lt;/blockquote&gt;

That&#039;s it.  If you want specific screensaver modes you can stick them in them too:
&lt;blockquote&gt;xlock -mode blank -startCmd &quot;purple-remote setstatus?status=offline&quot; -endCmd &quot;purple-remote setstatus?status=available&quot;&lt;/blockquote&gt; 
    </content:encoded>

    <pubDate>Wed, 14 Oct 2009 12:45:48 -0400</pubDate>
    <guid isPermaLink="false">http://tech.akom.net/archives/43-guid.html</guid>
    
</item>

</channel>
</rss>
