<?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>edafe.org &#187; karmic</title>
	<atom:link href="http://edafe.org/tag/karmic/feed/" rel="self" type="application/rss+xml" />
	<link>http://edafe.org</link>
	<description>edafe.org is the personal site of Edafe Knabe.</description>
	<lastBuildDate>Fri, 03 Feb 2012 08:24:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Redirecting mail for the local root user</title>
		<link>http://edafe.org/2010/01/redirecting-mail-for-the-local-root-user-2/</link>
		<comments>http://edafe.org/2010/01/redirecting-mail-for-the-local-root-user-2/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 12:46:23 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unr]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=5768</guid>
		<description><![CDATA[postfix is Ubuntu&#8217;s default mail transfer agent (MTA) and can be configured to deliver mail using a relay host that requires SMTP authentication. Get the necessary packages with the following command: user@ubuntu:~$ sudo apt-get install postfix bsd-mailx Begin to configure &#8230; <a href="http://edafe.org/2010/01/redirecting-mail-for-the-local-root-user-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><em>postfix</em> is Ubuntu&rsquo;s default mail transfer agent (MTA) and can be configured to deliver mail using a <a href="http://en.wikipedia.org/wiki/SMTP-AUTH" target="_blank">relay host that requires SMTP authentication</a>.</p>
<p>Get the necessary packages with the following command:</p>
<p><code>user@ubuntu:~$ sudo apt-get install postfix bsd-mailx</code></p>
<p>Begin to configure your <em>postfix</em> installation by choosing <em>satellite system</em> as the general type of configuration. Enter the local machine name as the mail name (eg mycomputer.edafe.org) and the SMTP server address of your email service provider as the SMTP relay host (eg smtp.relayhost.com).</p>
<p>Edit the file <em>/etc/postfix/main.cf</em> and add the following:</p>
<p><code>smtp_sasl_auth_enable = yes<br />smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd<br />smtp_sasl_security_options =<br />relay_domains =</code></p>
<p>Create the file <em>/etc/postfix/sasl_passwd</em> and make the following entries:</p>
<p><code>smtp.relayhost.com user:password</code></p>
<p>Substitute <em>smtp.relayhost.com</em> with the address of the SMTP relay host and <em>user:password</em> with your login details.</p>
<p>Continue by executing the following three commands:</p>
<p><code>user@ubuntu:~$ sudo chown root.root /etc/postfix/sasl_passwd<br />user@ubuntu:~$ sudo chmod 600 /etc/postfix/sasl_passwd<br />user@ubuntu:~$ sudo postmap hash:/etc/postfix/sasl_passwd</code></p>
<p>Instruct <em>postfix</em> to reload its settings with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/postfix reload</code></p>
<h4>Making changes to the alias table</h4>
<p>The aliases table provides a system-wide mechanism to redirect mail for local recipients.</p>
<p>Edit the file <em>/etc/aliases</em> to contain the following entries:</p>
<p><code>postmaster: root<br />root: user@yourdomain.com</code></p>
<p>Substitute <em>user@yourdomain.com</em> with the email address that you would like mail for the root user to be redirected to.</p>
<p>Finally, update <em>/etc/aliases.db</em> using the following command:</p>
<p><code>user@ubuntu:~$ sudo newaliases</code></p>
<p>Mail for the local root user from now on will automatically be forwarded to <em>user@yourdomain.com</em> , using <em>smtp.relayhost.com</em> as the relay host.<br /><a href="http://www.postfix.org/BASIC_CONFIGURATION_README.html" target="_blank">www.postfix.org</a>, <a href="https://help.ubuntu.com/community/Postfix" target="_blank">help.ubuntu.com</a></p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2010/01/redirecting-mail-for-the-local-root-user-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring hard disks with smartmontools</title>
		<link>http://edafe.org/2009/12/monitoring-hard-disks-with-smartmontools-2/</link>
		<comments>http://edafe.org/2009/12/monitoring-hard-disks-with-smartmontools-2/#comments</comments>
		<pubDate>Tue, 29 Dec 2009 01:56:13 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[smart]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unr]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=5737</guid>
		<description><![CDATA[SMART stands for Self-Monitoring, Analysis and Reporting Technology and is built into most modern hard disks. The smartd daemon is part of smartmontools and monitors a disk&#8217;s SMART data for any signs of hardware problems. SMART is available with Parallel &#8230; <a href="http://edafe.org/2009/12/monitoring-hard-disks-with-smartmontools-2/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SMART stands for Self-Monitoring, Analysis and Reporting Technology and is built into most modern hard disks. The <em>smartd</em> daemon is part of <em>smartmontools</em> and <a href="http://www.linuxjournal.com/article/6983" target="_blank">monitors a disk&rsquo;s SMART data</a> for any signs of hardware problems.</p>
<p>SMART is available with Parallel and Serial ATA disks, drives appearing as either <em>/dev/hd*</em> or <em class="mono">/dev/sd*</em>, respectively. Use the following command to obtain relevant information for your system:</p>
<p><code>user@ubuntu:~$ df -hl</code></p>
<p>If required, start by configuring <em>postfix</em> to <a href="./2010/01/redirecting-mail-for-the-local-root-user-2/">redirect mail for the local root user</a>.</p>
<p>Get the necessary packages with the following command:</p>
<p><code>user@ubuntu:~$ sudo apt-get install smartmontools bsd-mailx</code></p>
<h4>Configuring smartd</h4>
<p>Edit the file <em>/etc/smartd.conf</em> and comment out any lines beginning with <em>DEVICESCAN</em>.</p>
<p>If you are using a netbook or a laptop, add the following line for the <em>smartd</em> daemon to monitor the device <em>/dev/sda</em>:</p>
<p><code>/dev/sda -a -d ata -n standby -o on -S on -m root -M daily -M test</code></p>
<p>If you are using a desktop or a server, add the following line for the <em>smartd</em> daemon to monitor the device <em>/dev/hda</em>:</p>
<p><code>/dev/hda -a -d ata -n never -o on -S on -s (L/../../7/04|S/../.././02) -m root -M daily -M test</code></p>
<p>See <em>man smartd.conf</em> for more information on how to tailor the operation of <em>smartd</em> to your needs.</p>
<h4>Starting smartd</h4>
<p>Edit the file <em>/etc/default/smartmontools</em> and uncomment the line containing <em>start_smartd=yes</em>.</p>
<p>Restart the <em>smartd</em> daemon with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/smartmontools restart</code></p>
<p>Verify that the local root user has received a test message from the <em>smartd</em> daemon.</p>
<p>From now on, the <em>smartd</em> daemon will monitor the disk and, in the event of impending disk failure, alert the local root user by email.</p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2009/12/monitoring-hard-disks-with-smartmontools-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Monitoring hard disks with smartmontools</title>
		<link>http://edafe.org/2006/12/monitoring-hard-disks-with-smartmontools/</link>
		<comments>http://edafe.org/2006/12/monitoring-hard-disks-with-smartmontools/#comments</comments>
		<pubDate>Sun, 17 Dec 2006 14:57:46 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[smart]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unr]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1202</guid>
		<description><![CDATA[This post has been updated.]]></description>
			<content:encoded><![CDATA[<p>This post <a href="./2009/12/monitoring-hard-disks-with-smartmontools-2/">has been updated</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/12/monitoring-hard-disks-with-smartmontools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Redirecting mail for the local root user</title>
		<link>http://edafe.org/2006/09/redirecting-mail-for-the-local-root-user/</link>
		<comments>http://edafe.org/2006/09/redirecting-mail-for-the-local-root-user/#comments</comments>
		<pubDate>Fri, 29 Sep 2006 22:18:59 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[email]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[postfix]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[smtp]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unr]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1188</guid>
		<description><![CDATA[This post has been updated.]]></description>
			<content:encoded><![CDATA[<p>This post <a href="./2010/01/redirecting-mail-for-the-local-root-user-2/">has been updated</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/09/redirecting-mail-for-the-local-root-user/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Public/private key authentication with SSH</title>
		<link>http://edafe.org/2006/09/publicprivate-key-authentication-with-ssh/</link>
		<comments>http://edafe.org/2006/09/publicprivate-key-authentication-with-ssh/#comments</comments>
		<pubDate>Mon, 25 Sep 2006 19:31:42 +0000</pubDate>
		<dc:creator>edafe</dc:creator>
				<category><![CDATA[computing]]></category>
		<category><![CDATA[cryptography]]></category>
		<category><![CDATA[dapper]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[karmic]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[protocol]]></category>
		<category><![CDATA[security]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[unr]]></category>

		<guid isPermaLink="false">http://edafe.org/?p=1190</guid>
		<description><![CDATA[SSH is a protocol that enables secure logins to your computer over a network. SSH supports the use of public/private key pairs for user authentication. Private keys are kept locally, while public keys are stored on the remote machine. On &#8230; <a href="http://edafe.org/2006/09/publicprivate-key-authentication-with-ssh/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>SSH is a protocol that enables secure logins to your computer over a network. SSH supports the use of <a href="http://en.wikipedia.org/wiki/Public-key_cryptography" target="_blank">public/private key pairs for user authentication</a>. Private keys are kept locally, while public keys are stored on the remote machine.</p>
<h4>On the Local Machine</h4>
<p>Use the command <em>ssh-keygen -t dsa</em> to generate a key pair for the local user. Use an appropriate passphrase to secure your private key (<a href="http://www.snailbook.com/faq/no-passphrase.auto.html#no-biscuit" target="_blank">don&rsquo;t be tempted to use an empty passphrase</a>).<br />Set the permissions for the private key file with the following command:</p>
<p><code>user@ubuntu:~$ chmod 600 ~/.ssh/id_dsa</code></p>
<h4>On the Remote Machine</h4>
<p>Get the necessary packages with the following command:</p>
<p><code>user@ubuntu:~$ sudo apt-get install ssh</code></p>
<p>Copy the public key file <em>~/.ssh/id_dsa.pub</em> from the local to the remote machine.</p>
<p>On the remote machine, move and rename the file with the following command:</p>
<p><code>user@ubuntu:~$ mv id_dsa.pub .ssh/authorized_keys2</code></p>
<p>Set the permissions for the file with the following command:</p>
<p><code>user@ubuntu:~$ chmod 600 ~/.ssh/authorized_keys2</code></p>
<p>Add the user <em>user</em> to the group ssh:</p>
<p><code>user@ubuntu:~$ sudo adduser user ssh</code></p>
<p>Get the file <em>sshd_config</em> and move it to <em>/etc/ssh/</em>:</p>
<p><code>user@ubuntu:~# sudo wget &quot;<a href="http://edafe.org/wp-content/uploads/2006/09/sshd_config" target="_blank">http://edafe.org/wp-content/uploads/2006/09/sshd_config</a>&quot;<br />user@ubuntu:~# sudo mv sshd_config /etc/ssh/</code></p>
<p>The downloaded file contains the following changes from the Ubuntu default configuration:</p>
<p><code>LogLevel VERBOSE</p>
<p>AllowGroups ssh<br />
LoginGraceTime 20<br />
PermitRootLogin no<br />
MaxAuthTries 1</p>
<p>RSAAuthentication no</p>
<p>PasswordAuthentication no</p>
<p>X11 Forwarding no<br />
TCPKeepAlive yes<br />
ClientAliveInterval 15<br />
ClientAliveCountMax 3</p>
<p>MaxStartups 3</p>
<p>UsePAM no</code></p>
<p>Setting these options makes root logins impossible. Only users belonging to the group ssh may establish a connection. Access to the remote machine is strictly tied to the private key and the passphrase used to encrypt it.</p>
<p>Next, restart the SSH server on the remote machine with the following command:</p>
<p><code>user@ubuntu:~$ sudo /etc/init.d/ssh restart</code></p>
<p>You should now be able to log into the remote machine using the private key stored on the local machine:</p>
<p><code>user@ubuntu:~$ ssh remote.machine<br />Enter passphrase for key '/home/user/.ssh/id_dsa':</code></p>
<p>The book <em><a href="http://oreilly.com/catalog/9780596008956/" target="_blank">SSH The Secure Shell by Daniel Barrett, Richard Silverman and Robert Byrnes</a></em> is useful as a reference text and has information on other clever stuff you can do with SSH.<br /><a href="http://www-128.ibm.com/developerworks/linux/library/l-keyc.html" target="_blank">www.ibm.com/developerworks/linux/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://edafe.org/2006/09/publicprivate-key-authentication-with-ssh/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

