<?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/"
	xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"
>

<channel>
	<title>sharealike.org &#187; GNU/Linux</title>
	<atom:link href="http://sharealike.org/index.php/category/gnulinux/feed/" rel="self" type="application/rss+xml" />
	<link>http://sharealike.org</link>
	<description>Law, Technology, Science, Music, Politics, and GNU/Linux</description>
	<lastBuildDate>Fri, 12 Aug 2011 00:31:43 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
		<item>
		<title>Adding Mailman to Postfix with Virtual Domains</title>
		<link>http://sharealike.org/index.php/2011/02/04/adding-mailman-to-postfix-with-virtual-domains/</link>
		<comments>http://sharealike.org/index.php/2011/02/04/adding-mailman-to-postfix-with-virtual-domains/#comments</comments>
		<pubDate>Fri, 04 Feb 2011 20:37:54 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://sharealike.org/?p=590</guid>
		<description><![CDATA[I am a big fan of the cut-and-paste howtos provided at howtoforge.com. I&#8217;ve used something like falko&#8217;s howto on Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 10.10) in order to get a mail server with those features working on Debian Squeeze. Then I wanted to add mailman in order to operate [...]]]></description>
			<content:encoded><![CDATA[<p>I am a big fan of the cut-and-paste howtos provided at <a href="http://howtoforge.com">howtoforge.com</a>.</p>
<p>I&#8217;ve used something like falko&#8217;s howto on <a href="http://howtoforge.com/virtual-users-and-domains-with-postfix-courier-mysql-and-squirrelmail-ubuntu-10.10">Virtual Users And Domains With Postfix, Courier, MySQL And SquirrelMail (Ubuntu 10.10)</a> in order to get a mail server with those features working on Debian Squeeze.</p>
<p>Then I wanted to add <a href="http://www.gnu.org/software/mailman/index.html">mailman</a> in order to operate mailing lists.</p>
<p>The closest howto for achieving this is the one by Rich Brown, <a href="http://freemars.org/howto/mailman.html">How to add Mailman mailing lists to Postfix under Ubuntu Linux when using virtual domains + virtual users</a>.</p>
<p>I&#8217;m going to try to recount what I had to do to go from a working mail server with virtual users and domains (having completed a howtoforge.com howto) to get to that same setup to run mailman. Perhaps some of this was unnecessary, duplicative, or even wrong. But, the mailing lists are working now, so that&#8217;s something.</p>
<h2>List domain preparation</h2>
<p>If the domain that will host the lists is not already served by your setup, be sure you:</p>
<ul>
<li>use phpmyadmin to create the domain example.com in the domains field. <strong>NOT lists</strong>.example.com!, and</li>
<li>add lists.example.com to your dns entry for example.com,
</ul>
<h2>Mailman</h2>
<p>As root:</p>
<blockquote><p># aptitude install mailman<br />
# newlist mailman<br />
# vi /etc/aliases
</p></blockquote>
<p>And add the following to /etc/aliases:</p>
<pre>## mailman mailing list
mailman:              "|/var/lib/mailman/mail/mailman post mailman"
mailman-admin:        "|/var/lib/mailman/mail/mailman admin mailman"
mailman-bounces:      "|/var/lib/mailman/mail/mailman bounces mailman"
mailman-confirm:      "|/var/lib/mailman/mail/mailman confirm mailman"
mailman-join:         "|/var/lib/mailman/mail/mailman join mailman"
mailman-leave:        "|/var/lib/mailman/mail/mailman leave mailman"
mailman-owner:        "|/var/lib/mailman/mail/mailman owner mailman"
mailman-request:      "|/var/lib/mailman/mail/mailman request mailman"
mailman-subscribe:    "|/var/lib/mailman/mail/mailman subscribe mailman"
mailman-unsubscribe:  "|/var/lib/mailman/mail/mailman unsubscribe mailman"</pre>
<blockquote><p># vi /etc/mailman/mm_cfg.py
</p></blockquote>
<p>and uncomment and/or appropriately edit the following lines:</p>
<pre>DEFAULT_EMAIL_HOST = 'lists.example.com'
...
DEFAULT_URL_HOST   = 'lists.example.com'
...
MTA=None   # Misnomer, suppresses alias output on newlist
...
GLOBAL_PIPELINE.insert(1, 'SpamAssassin')</pre>
<h2>Apache2</h2>
<p>create a new file: /etc/apache2/mods-available/mailman.conf that looks like this:</p>
<pre>ScriptAlias /mailman/ /usr/lib/cgi-bin/mailman/
ScriptAlias /cgi-bin/mailman/ /usr/lib/cgi-bin/mailman/

&lt;Directory /usr/lib/cgi-bin/mailman/&gt;
   AllowOverride None
   Options ExecCGI
   Order allow,deny
   Allow from all
&lt;/Directory&gt;

Alias /pipermail/ /var/lib/mailman/archives/public/
&lt;Directory /var/lib/mailman/archives/public&gt;
   Options Indexes MultiViews FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
&lt;/Directory&gt;

Alias /archives/ /var/lib/mailman/archives/public/
&lt;Directory /var/lib/mailman/archives/public&gt;
   Options Indexes MultiViews FollowSymLinks
   AllowOverride None
   Order allow,deny
   Allow from all
&lt;/Directory&gt;</pre>
<p>Now add a symlink to this file so Apache will use your new Mailman aliases the next time it starts:</p>
<blockquote><p>
# cd /etc/apache2/mods-enabled<br />
# ln -s /etc/apache2/mods-available/mailman.conf mailman.conf </p></blockquote>
<h2>Postfix</h2>
<p>Create a new file, /etc/postfix/transport, which contains one line:</p>
<pre>lists.example.com     mailman:</pre>
<p>Then as root:</p>
<blockquote><p># cd /etc/postfix<br />
# postmap transport
</p></blockquote>
<p>Finally edit /etc/postfix/main.cf &#8211; add these four lines to the end of the file:<br />
relay_domains = lists.example.com<br />
transport_maps = hash:/etc/postfix/transport<br />
mailman_destination_recipient_limit = 1<br />
unknown_local_recipient_reject_code = 550</p>
<p>Use phpmyadmin to add some aliases in the forwardings field:</p>
<pre>
mailman@example.com	mailman@lists.example.com
mailman-admin@example.com	mailman-admin@lists.example.com
mailman-bounces@example.com	mailman-bounces@lists.example.com
mailman-confirm@example.com	mailman-confirm@lists.example.com
mailman-join@example.com	mailman-join@lists.example.com
mailman-leave@example.com	mailman-leave@lists.example.com
mailman-owner@example.com	mailman-owner@lists.example.com
mailman-request@example.com	mailman-request@lists.example.com
mailman-subscribe@example.com	mailman-subscribe@lists.example.com
mailman-unsubscribe@example.com	mailman-unsubscribe@lists.example.com
</pre>
<h2>Finishing up</h2>
<blockquote><p>
# newaliases<br />
# service apache2 restart<br />
# postfix reload<br />
# service mailman start</p></blockquote>
<p>After some combination of the above and hopefully not forgetting anything&#8211;note my uncertainty there&#8211;mailing lists just started working! Go to: http://lists.example.com/mailman/admin/ and get started creating a test list to confirm everything is working.</p>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2011/02/04/adding-mailman-to-postfix-with-virtual-domains/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Debian Squeeze&#8217;s Kernel to Be Blob-Free</title>
		<link>http://sharealike.org/index.php/2010/12/15/debian-squeezes-kernel-to-be-blob-free/</link>
		<comments>http://sharealike.org/index.php/2010/12/15/debian-squeezes-kernel-to-be-blob-free/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 06:11:41 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://sharealike.org/?p=582</guid>
		<description><![CDATA[Debian announced today that Debian 6.0 &#8220;Squeeze&#8221; will be released with a completely free Linux Kernel. Having, in the past, spent many frustrating hours trying to get some wireless card or some other piece of hardware to work with some binary firmware that cannot be examined or improved but is simply foisted on you, I&#8217;m [...]]]></description>
			<content:encoded><![CDATA[<p>Debian announced today that <a href="http://www.debian.org/News/2010/20101215">Debian 6.0 &#8220;Squeeze&#8221; will be released with a completely free Linux Kernel</a>.</p>
<p>Having, in the past, spent many frustrating hours trying to get some wireless card or some other piece of hardware to work with some binary firmware that cannot be examined or improved but is simply foisted on you, I&#8217;m really thankful to the team that is doing this work. Congratulations to them!</p>
<p>I&#8217;ve already successfully installed Squeeze numerous times with the <a href="http://www.debian.org/devel/debian-installer/">Debian 6.0 beta installers</a>. Give it a try!</p>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2010/12/15/debian-squeezes-kernel-to-be-blob-free/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Remote backups with rsnapshot</title>
		<link>http://sharealike.org/index.php/2010/04/27/remote-backups-with-rsnapshot/</link>
		<comments>http://sharealike.org/index.php/2010/04/27/remote-backups-with-rsnapshot/#comments</comments>
		<pubDate>Tue, 27 Apr 2010 18:18:04 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://sharealike.org/?p=512</guid>
		<description><![CDATA[I&#8217;ve previously used rdiff-backup to do remote backups of my Debian servers, but for whatever reason they tend to fail and I don&#8217;t learn about the problem soon enough and I needed a new solution. Enter: rsnapshot. Install rsnapshot on both the remote machine and the backup server: apt-get install rsnapshot Save yourself a copy [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve previously used <a href="http://rdiff-backup.nongnu.org/">rdiff-backup</a> to do remote backups of my Debian servers, but for whatever reason they tend to fail and I don&#8217;t learn about the problem soon enough and I needed a new solution. Enter: <a href="http://rsnapshot.org/">rsnapshot</a>.</p>
<p>Install rsnapshot on both the remote machine and the backup server:</p>
<blockquote><p><code>apt-get install rsnapshot</code>
</p></blockquote>
<p>Save yourself a copy of the default config file if you ever need it:</p>
<blockquote><pre>cp /etc/rsnapshot.conf /etc/rsnapshot.conf.default</pre>
</blockquote>
<p>On the backup server I create an rsnapshot user:</p>
<blockquote><p><code>groupadd -g 3500 rsnapshot<br />
useradd -u 3500 -s /bin/false -d /home/rsnapshot -m -c "rsnapshot" -g rsnapshot rsnapshot</code>
</p></blockquote>
<p>Then prepare the backup server to be able to automatically access the production server using ssh keys:</p>
<blockquote><p><code>cd /home/rsnapshot<br />
su -m rsnapshot</code>
</p></blockquote>
<p>With the previous command you become the user rsnapshot on the shell. You could confirm this with:</p>
<blockquote><p><code>whoami</code>
</p></blockquote>
<p>The next few commands must be run as user rsnapshot!</p>
<p>Create the keys:</p>
<blockquote><p><code>ssh-keygen -t rsa</code>
</p></blockquote>
<p>Hit enter on all prompts. It is important that you do not enter a passphrase otherwise the backup will not work without human interaction, so again hit enter. In the end two files are created: /home/rsnapshot/.ssh/id_rsa and /home/rsnapshot/.ssh/id_rsa.pub.</p>
<p>Now copy over the public key you just created to your production server:</p>
<blockquote><pre>ssh-copy-id -i /home/rsnapshot/.ssh/id_rsa.pub root@yourdomainname.example.com</pre>
</blockquote>
<p>If your production server to be backed up happens to run Ubuntu, as one of mine did, then you should login to the production server and then do away with it&#8217;s silly refusal to have a password for root with:</p>
<blockquote><p><code>sudo passwd root</code></p></blockquote>
<p>and then you&#8217;ll have no trouble with the prior step which copies the public key of the user rsnapshot to the file /root/.ssh/authorized_keys on the production server yourdomainname.example.com.</p>
<p>You can confirm that this worked with:</p>
<blockquote><p><code>ssh root@yourdomainname.example.com</code></p></blockquote>
<p>That should have logged you in as root on your production server without requiring you to enter a password. Now, on the one hand, this is exactly what we were trying to do, but on the other hand, we don&#8217;t want to leave it like this or anyone who gets access to the rsnapshot user on your backup server could be root on your production server. Not good. So next we fix that by taking a look at /root/.ssh/authorized_keys. It should look similar to this:</p>
<blockquote><pre>ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA[...]/zkctw== rsnapshot@backupservername</pre>
</blockquote>
<p>Now prepend <code>from="1.2.3.4",command="/root/validate-rsync"</code> just before &#8220;ssh-rsa&#8221; separated only by a single space, all on a single line like so:</p>
<blockquote><pre>from="1.2.3.4",command="/root/validate-rsync" ssh-rsa AAAAB[...]/zkctw== rsnapshot@backupservername</pre>
</blockquote>
<p>where &#8220;1.2.3.4&#8243; is your backup server&#8217;s numeric IP address. This change means that user rsnapshot can only login from your backup server&#8217;s IP address and can only run a single command, &#8220;validate-rsync&#8221;. We must now create the file /root/validate-rsync with the following content:</p>
<blockquote><p><code>#!/bin/sh</p>
<p>case "$SSH_ORIGINAL_COMMAND" in<br />
*\&#038;*)<br />
echo "Rejected"<br />
;;<br />
*\(*)<br />
echo "Rejected"<br />
;;<br />
*\{*)<br />
echo "Rejected"<br />
;;<br />
*\;*)<br />
echo "Rejected"<br />
;;<br />
*\<*)<br />
echo "Rejected"<br />
;;<br />
*\`*)<br />
echo "Rejected"<br />
;;<br />
*\|*)<br />
echo "Rejected"<br />
;;<br />
rsync\ --server*)<br />
$SSH_ORIGINAL_COMMAND<br />
;;<br />
*)<br />
echo "Rejected"<br />
;;<br />
esac </code>
</p></blockquote>
<p>Special thanks to <a href="http://troy.jdmz.net/rsync/#validate-rsync">Troy Johnson</a> for this script. Now make the script executable:</p>
<blockquote><p><code>chmod u+x validate-rsync</code></p></blockquote>
<p>You should now be setup on the production server and can logout and go back to your rsnapshot user on the backup server. Become root on the backup server so you can edit the rsnapshot configuration file, /etc/rsnapshot.conf which you can learn more about at this <a href="http://rsnapshot.org/howto/1.2/rsnapshot-HOWTO.en.html">rsnapshot HOWTO</a>. The main thing to know about this config file is that everything that looks like a space probably should be a TAB instead. </p>
<blockquote>
<pre>#I suggest the following changes:
snapshot_root /home/rsnapshot/.snapshots/
logfile       /home/rsnapshot/rsnapshot.log # user rsnapshot can't write to /var
lockfile      /home/rsnapshot/rsnapshot.pid # user rsnapshot can't write to /var
ssh_args      -o BatchMode=yes

#Uncomment the following:
cmd_cp        /bin/cp
cmd_ssh       /usr/bin/ssh
cmd_du        /usr/bin/du
interval      monthly 3

#Choose some directories to exclude:
exclude       /home/user/JunkThatIDontWant
exclude       /cdrom
exclude       /proc
exclude       /sys
exclude       /tmp

#And choose some directories to backup:
backup        root@yourdomainname.example.com:/home/user/ yourdomainname.example.com/
backup        root@yourdomainname.example.com:/etc yourdomainname.example.com/
backup        root@yourdomainname.example.com:/var yourdomainname.example.com/
backup        root@yourdomainname.example.com:/usr/local yourdomainname.example.com/</pre>
</blockquote>
<p>Now you probably put some spaces where there were supposed to be tabs, so check your config file's syntax with this test:</p>
<blockquote><p><code>rsnapshot configtest</code></p></blockquote>
<p>Once it comes back with "Syntax OK" you are ready to try your first hourly snapshot. Become the rsnapshot user and give it a try with:</p>
<blockquote><p><code>cd /home/rsnapshot<br />
su -m rsnapshot<br />
rsnapshot -V hourly</code></p></blockquote>
<p>This will give verbose output so you can see that something is really happening. Once you get an hourly snapshot or two to complete successfully, you should automate this with cron. As the rsnapshot user, type:</p>
<blockquote><p><code>crontab -e</code></p></blockquote>
<p>and choose your schedule, something like:</p>
<blockquote><pre>0 */4 * * * /usr/bin/rsnapshot hourly
50 2 * * * /usr/bin/rsnapshot daily
40 2 * * 6 /usr/bin/rsnapshot weekly
30 2 1 * * /usr/bin/rsnapshot monthly</pre>
</blockquote>
<p>which would do 6 hourly backups a day (once every 4 hours, at 0,4,8,12,16,20)<br />
1 daily backup every day, at 2:50AM<br />
1 weekly backup every week, at 2:40AM, on Saturdays (6th day of week)<br />
1 monthly backup every month, at 2:30AM on the 1st day of the month.</p>
<p>And there you have it! You have automated remote backups of your production server using rsnapshot.</p>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2010/04/27/remote-backups-with-rsnapshot/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>High load average but low CPU usage</title>
		<link>http://sharealike.org/index.php/2010/01/17/high-load-average-but-low-cpu-usage/</link>
		<comments>http://sharealike.org/index.php/2010/01/17/high-load-average-but-low-cpu-usage/#comments</comments>
		<pubDate>Sun, 17 Jan 2010 20:01:45 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://sharealike.org/?p=500</guid>
		<description><![CDATA[One of my Debian servers had its load average pegged at 3.0 but top didn&#8217;t show anything using a lot of CPU. A little Google research revealed this approach that solved things for me: top -b -n 1 &#124; awk '{if (NR]]></description>
			<content:encoded><![CDATA[<p>One of my Debian servers had its load average pegged at 3.0 but <code>top</code> didn&#8217;t show anything using a lot of CPU. A little Google research revealed this approach that solved things for me:</p>
<p><code>top -b -n 1 | awk '{if (NR <=7) print; else if ($8 == "D") {print; count++} } END {print "Total status D: "count}'</p>
<pre>top - 11:53:48 up 5 days, 18:47,  1 user,  load average: 3.00, 3.00, 3.00
Tasks: 132 total,   1 running, 131 sleeping,   0 stopped,   0 zombie
Cpu(s):  0.2%us, 12.3%sy,  3.8%ni, 83.3%id,  0.2%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   2075620k total,  1773432k used,   302188k free,   395648k buffers
Swap:  2650684k total,      716k used,  2649968k free,  1165208k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND
 8548 root      20   0  2296  684  576 D    0  0.0   0:00.00 find
 8675 root      20   0  2296  684  576 D    0  0.0   0:00.00 find
32070 root      20   0  2296  688  576 D    0  0.0   0:00.00 find
Total status D: 3
tempe:~# killall -9 find
</pre>
<p></code></p>
<p>After that, the load average immediately began dropping back to normal.</p>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2010/01/17/high-load-average-but-low-cpu-usage/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Installing a Rich Text Editor in Drupal</title>
		<link>http://sharealike.org/index.php/2009/11/23/installing-a-rich-text-editor-in-drupal/</link>
		<comments>http://sharealike.org/index.php/2009/11/23/installing-a-rich-text-editor-in-drupal/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 22:28:57 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sharealike.org/?p=491</guid>
		<description><![CDATA[This was harder than it should have been as the instructions could be clearer that two separate downloads are required. I&#8217;ve summarized here: I assume you have ssh or command line access to your host. If not, you could accomplish the same thing using ftp, but you&#8217;ll have to pay attention to what directory you [...]]]></description>
			<content:encoded><![CDATA[<p>This was harder than it should have been as the instructions could be clearer that two separate downloads are required. I&#8217;ve summarized here:</p>
<p>I assume you have ssh or command line access to your host. If not, you could accomplish the same thing using ftp, but you&#8217;ll have to pay attention to what directory you upload into:</p>
<p>1. Install Drupal 6.x<br />
2. Download the Drupal WYSIWYG part of FCKeditor from <a href="http://drupal.org/project/fckeditor">http://drupal.org/project/fckeditor</a><br />
3. Extract that in sites/all/modules (you may have to create the modules dir) with tar -zvxf fckeditor-6.x-1.4.tar.gz<br />
4. cd to sites/all/modules/fckeditor<br />
5. Download the FCKeditor part of FCKeditor: <a href="http://ckeditor.com/download">http://ckeditor.com/download</a><br />
6. Extract that in sites/all/modules/fckeditor/fckeditor [Yes, seriously.] with tar -zvxf FCKeditor_2.6.5.tar.gz<br />
7. Go enable the FCKeditor module in the drupal admin section, it&#8217;ll be down below all the core modules in its own section.</p>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2009/11/23/installing-a-rich-text-editor-in-drupal/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Rebuilding Software RAID Array on Debian</title>
		<link>http://sharealike.org/index.php/2009/10/19/rebuilding-software-raid-array-on-debian/</link>
		<comments>http://sharealike.org/index.php/2009/10/19/rebuilding-software-raid-array-on-debian/#comments</comments>
		<pubDate>Mon, 19 Oct 2009 20:26:00 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://sharealike.org/?p=485</guid>
		<description><![CDATA[I don&#8217;t know why I always forget this command, or why it is so hard to discern from the man page / &#8211;help information. I just had my drives in an existing RAID array get out of sync and needed to rebuild the one that was down. This did the trick: mdadm /dev/md0 -a /dev/sdb1 [...]]]></description>
			<content:encoded><![CDATA[<p>I don&#8217;t know why I always forget this command, or why it is so hard to discern from the man page / &#8211;help information. I just had my drives in an existing RAID array get out of sync and needed to rebuild the one that was down. This did the trick:</p>
<blockquote><p><code>mdadm /dev/md0 -a /dev/sdb1</code></p></blockquote>
<p>This is on a software RAID array called /dev/md0 made up of /dev/sda1 and /dev/sdb1.</p>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2009/10/19/rebuilding-software-raid-array-on-debian/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Convert .mp4 from Flip Video to Ogg Theora .ogv</title>
		<link>http://sharealike.org/index.php/2009/05/17/convert-mp4-from-flip-video-to-ogg-theora-ogv/</link>
		<comments>http://sharealike.org/index.php/2009/05/17/convert-mp4-from-flip-video-to-ogg-theora-ogv/#comments</comments>
		<pubDate>Sun, 17 May 2009 13:40:44 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sharealike.org/?p=465</guid>
		<description><![CDATA[The Flip Video UltraHD camcorder records files in a .mp4 format. I wanted to convert them to Ogg Theora format. How do you do that? I did far too much searching for an answer to this question for the answer to be this easy: apt-get install ffmpeg2theora and then: ffmpeg2theora vid00001.mp4 That outputs a file [...]]]></description>
			<content:encoded><![CDATA[<p>The Flip Video UltraHD camcorder records files in a .mp4 format.  I wanted to convert them to Ogg Theora format.  How do you do that?  I did far too much searching for an answer to this question for the answer to be this easy:</p>
<p><code>apt-get install ffmpeg2theora</code></p>
<p>and then:</p>
<p><code>ffmpeg2theora vid00001.mp4</code></p>
<p>That outputs a file called vid00001.ogv and you&#8217;re done.  Find further information about the fabulous <a href="http://v2v.cc/~j/ffmpeg2theora/">ffmpeg2theora</a> at its website.</p>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2009/05/17/convert-mp4-from-flip-video-to-ogg-theora-ogv/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>links for 2009-05-01</title>
		<link>http://sharealike.org/index.php/2009/05/01/links-for-2009-05-01/</link>
		<comments>http://sharealike.org/index.php/2009/05/01/links-for-2009-05-01/#comments</comments>
		<pubDate>Sat, 02 May 2009 06:02:56 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://sharealike.org/index.php/2009/05/01/links-for-2009-05-01/</guid>
		<description><![CDATA[ii.com · Procmail Quick Start: An introduction to email filtering with a focus on procmail by Nancy McGough (tags: procmail recipes howto)]]></description>
			<content:encoded><![CDATA[<ul class="delicious">
<li>
<div class="delicious-link"><a href="http://www.ii.com/internet/robots/procmail/qs/#forwardingProbs">ii.com · Procmail Quick Start: An introduction to email filtering with a focus on procmail by Nancy McGough</a></div>
<div class="delicious-tags">(tags: <a href="http://delicious.com/brianwc/procmail">procmail</a> <a href="http://delicious.com/brianwc/recipes">recipes</a> <a href="http://delicious.com/brianwc/howto">howto</a>)</div>
</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2009/05/01/links-for-2009-05-01/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>New whitehouse.gov video requires proprietary Adobe Flash player</title>
		<link>http://sharealike.org/index.php/2009/03/04/new-whitehousegov-video-requires-proprietary-adobe-flash-player/</link>
		<comments>http://sharealike.org/index.php/2009/03/04/new-whitehousegov-video-requires-proprietary-adobe-flash-player/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 22:07:55 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Law]]></category>
		<category><![CDATA[Politics]]></category>
		<category><![CDATA[Technology]]></category>

		<guid isPermaLink="false">http://sharealike.org/?p=451</guid>
		<description><![CDATA[Privacy activists rightly complained about whitehouse.gov&#8217;s use of YouTube videos for President Obama&#8217;s weekly addresses, as it allowed a private third-party company to use cookies to track visitors to a government web site. The whitehouse.gov site appears to have responded to these complaints but in so doing has adopted a flash format that is not [...]]]></description>
			<content:encoded><![CDATA[<p>Privacy activists rightly complained about whitehouse.gov&#8217;s use of YouTube videos for President Obama&#8217;s weekly addresses, as it allowed a private third-party company to use cookies to track visitors to a government web site.  The whitehouse.gov site <a href="http://www.eff.org/deeplinks/2009/03/white-house-responds-privacy-complaints">appears to have responded to these complaints</a> but in so doing has adopted a flash format that is not playable using free software.  See below for how it renders on a Debian Lenny GNU/Linux system using Iceweasel and gnash: <a href='http://sharealike.org/wp-content/uploads/sharealike/2009/03/whitehouse_video_fail.png'><img src="http://sharealike.org/wp-content/uploads/sharealike/2009/03/whitehouse_video_fail.png" alt="Whitehouse.gov Video Fail" title="whitehouse_video_fail" width="500" height="501" class="alignnone size-full wp-image-450" /></a>  The whitehouse.gov site should take one more step towards openness and privacy-preservation by using an open audio-video format such as Ogg-<a href="http://theora.org/">Theora</a> for all its weekly addresses.</p>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2009/03/04/new-whitehousegov-video-requires-proprietary-adobe-flash-player/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
		<item>
		<title>Boot from either disk of a RAID1 Mirror</title>
		<link>http://sharealike.org/index.php/2009/01/14/boot-from-either-disk-of-a-raid1-mirror/</link>
		<comments>http://sharealike.org/index.php/2009/01/14/boot-from-either-disk-of-a-raid1-mirror/#comments</comments>
		<pubDate>Thu, 15 Jan 2009 05:08:35 +0000</pubDate>
		<dc:creator>brianwc</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>

		<guid isPermaLink="false">http://sharealike.org/?p=444</guid>
		<description><![CDATA[I always forget this series of commands and have trouble locating them. After setting up a RAID1 mirror set, I want to be sure I can boot off of either drive in case of a drive failure. Assume two SATA drives, /dev/sda and /dev/sdb. The first will be set up during the OS install. To [...]]]></description>
			<content:encoded><![CDATA[<p>I always forget this series of commands and have trouble locating them.  After setting up a RAID1 mirror set, I want to be sure I can boot off of either drive in case of a drive failure.  Assume two SATA drives, /dev/sda and /dev/sdb.  The first will be set up during the OS install.  To be sure the second drive also has the right info in its MBR, do this as root:</p>
<p><code>grub<br />
grub>device (hd0) /dev/sdb<br />
grub>root (hd0,0)<br />
grub>setup (hd0)<br />
grub>quit</code></p>
]]></content:encoded>
			<wfw:commentRss>http://sharealike.org/index.php/2009/01/14/boot-from-either-disk-of-a-raid1-mirror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license>
	</item>
	</channel>
</rss>

