<?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>gHacks technology news &#187; Networks</title>
	<atom:link href="http://www.ghacks.net/category/networks/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ghacks.net</link>
	<description>A technology blog covering software, mobile phones, gadgets, security, the Internet and other relevant areas.</description>
	<lastBuildDate>Tue, 24 Nov 2009 23:31:44 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.6</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux reboots are a thing of the past with Ksplice</title>
		<link>http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/</link>
		<comments>http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/#comments</comments>
		<pubDate>Mon, 23 Nov 2009 00:42:07 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux kernel]]></category>
		<category><![CDATA[linux upgrade]]></category>
		<category><![CDATA[rebooting]]></category>
		<category><![CDATA[upgrade]]></category>
		<category><![CDATA[uptime]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=20091</guid>
		<description><![CDATA[Even though the Linux operating system is very stable and rarely needs a reboot, there are times when an update (such as a kernel update) will make this a requirement. At least that used to be the case. That is correct. With the help of a newly developed technology (dubbed Ksplice) even a kernel update [...]]]></description>
			<content:encoded><![CDATA[<p>Even though the Linux operating system is very stable and rarely needs a reboot, there are times when an update (such as a kernel update) will make this a requirement. At least that used to be the case. That is correct. With the help of a newly developed technology (dubbed <a title="Ksplice" href="http://www.ksplice.com" target="_blank">Ksplice</a>) even a kernel update will not require a reboot. This is fantastic news to administrators who depend upon constant uptime for their servers and production desktops/machines.</p>
<p>Of course one might think such a technology would be difficult at best to use. Not so. The developers of Ksplice have created an incredibly easy to use system that allows the administrator to handle critical updates, normally requiring a reboot, as easily as those updates that do not require a reboot.</p>
<p>Getting such a system working does requiring the installation of third party software. This tutorial will walk you through installing Ksplice as well as how to go about updating a currently running kernel with the new system.</p>
<p><span id="more-20091"></span><strong>Installing Ksplice</strong></p>
<div id="attachment_20092" class="wp-caption alignleft" style="width: 288px"><a rel="attachment wp-att-20092" href="http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/gdebi_install/"><img class="size-full wp-image-20092 " src="http://www.ghacks.net/wp-content/uploads/2009/11/gdebi_install.png" alt="Figure 1" width="278" height="206" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>To install Ksplice navigate your browser to the <a title="Ksplice Uptrack Page" href="http://www.ksplice.com/uptrack/howitworks" target="_blank">Ksplice Uptrack page</a> and click on the link for your particular distribution. If you are using Ubuntu the Gdebi installer will be an option to select from (see Figure 1) . Select <em>Open with</em> and then make sure GDebi is selected. Click OK and the installation will commence.</p>
<p>During the installation a new window will open specific to Ksplice. In this window you will have to agree to a License and then click Forward. Once you have done this the installation will complete.</p>
<p><strong>Using Ksplice</strong></p>
<div id="attachment_20095" class="wp-caption alignright" style="width: 310px"><a rel="attachment wp-att-20095" href="http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/ksplice_uptrack_manager/"><img class="size-medium wp-image-20095 " src="http://www.ghacks.net/wp-content/uploads/2009/11/ksplice_uptrack_manager-500x388.png" alt="Figure 2" width="300" height="233" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>After install is finished Ksplice will automatically open up the update window (see Figure 2) and reveal to you if there are any updates for your currently running kernel. This might very well remind you of the average Linux package management front-end.</p>
<p>In order to install the update(s) click the <em>Install All Updates </em>button to take care of any updates pending.</p>
<p>You will also notice a new icon added to your Notification Area (see Figure 3). This Icon will not only allow you to launch the</p>
<div id="attachment_20277" class="wp-caption alignleft" style="width: 206px"><a rel="attachment wp-att-20277" href="http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/ksplice_notification_icon/"><img class="size-full wp-image-20277" src="http://www.ghacks.net/wp-content/uploads/2009/11/ksplice_notification_icon.png" alt="Figure 3" width="196" height="36" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>Ksplice tool, it will also keep you informed if there are any updates available. Figure 3 shows the Ksplice icon with a pending update.  When your system is up to date the &#8220;!&#8221; will disappear and leave you with a clean &#8220;K&#8221; icon.</p>
<p><strong>Command line</strong></p>
<p>What Linux tool is complete without a command line component? Ksplice includes four command line tools for your terminal pleasure:</p>
<ul>
<li> <strong>uptrack-upgrade</strong>: This command will download and install the latest kernel updates available for your system.</li>
<li> <strong>uptrack-install PACKAGE</strong>: Will install a specific update (Where PACKAGE is the package name to update.)</li>
<li><strong> uptrack-remove PACKAGE </strong>: Will remove a specific update (Where PACKAGE is the package name to remove).</li>
<li> <strong>uptrack-show PACKAGE</strong>: Will show more detail about a specific update (Where PACKAGE is the package name).</li>
</ul>
<p><strong>Final thoughts</strong></p>
<p>I have been using Linux (and computers) for quite some time. I never thought I would see the day when such a major update to the underlying sub-systems could be pulled off without a reboot. And not only that, it is done as simply as using a GUI interface.  But now we are looking at something special. Ksplice is only now beginning to make serious inroads into reaching that goal of 100% uptime. And now, without having to reboot after a major upgrade, that 100% number is looking closer and closer every day.</p>

	Tags: <a href="http://www.ghacks.net/tag/kernel/" title="kernel" rel="tag">kernel</a>, <a href="http://www.ghacks.net/tag/linux-kernel/" title="linux kernel" rel="tag">linux kernel</a>, <a href="http://www.ghacks.net/tag/linux-upgrade/" title="linux upgrade" rel="tag">linux upgrade</a>, <a href="http://www.ghacks.net/tag/rebooting/" title="rebooting" rel="tag">rebooting</a>, <a href="http://www.ghacks.net/tag/upgrade/" title="upgrade" rel="tag">upgrade</a>, <a href="http://www.ghacks.net/tag/uptime/" title="uptime" rel="tag">uptime</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/07/18/yahoo-server-monitor-widget/" title="Yahoo Server Monitor Widget (July 18, 2008)">Yahoo Server Monitor Widget</a> (0)</li>
	<li><a href="http://www.ghacks.net/2008/10/09/win-extensions-for-windows/" title="Win Extensions for Windows (October 9, 2008)">Win Extensions for Windows</a> (32)</li>
	<li><a href="http://www.ghacks.net/2007/10/05/upgrading-to-wordpress-23/" title="Upgrading to Wordpress 2.3 (October 5, 2007)">Upgrading to Wordpress 2.3</a> (3)</li>
	<li><a href="http://www.ghacks.net/2006/12/06/things-to-check-before-switching-to-vista-part-1/" title="Things to check before switching to Vista Part 1 (December 6, 2006)">Things to check before switching to Vista Part 1</a> (1)</li>
	<li><a href="http://www.ghacks.net/2007/05/03/monitor-your-website-with-montastic/" title="Monitor your website with Montastic (May 3, 2007)">Monitor your website with Montastic</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/23/linux-reboots-are-a-thing-of-the-past-with-ksplice/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Set up a Gnumed backend server</title>
		<link>http://www.ghacks.net/2009/11/10/set-up-a-gnumed-backend-server/</link>
		<comments>http://www.ghacks.net/2009/11/10/set-up-a-gnumed-backend-server/#comments</comments>
		<pubDate>Tue, 10 Nov 2009 19:25:50 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[backend server]]></category>
		<category><![CDATA[gnumed]]></category>
		<category><![CDATA[medical practice server]]></category>
		<category><![CDATA[medical software]]></category>
		<category><![CDATA[postgresql]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=18370</guid>
		<description><![CDATA[Recently I covered the front-end of the Gnumed software designed for the medical industry (see &#8220;Let your medical practice go open source with Gnumed.&#8221;) In that article I showed you how to start working with Gnumed, but limited the installation to using the public servers. Because these public servers can not safely and securely hold [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I covered the front-end of the Gnumed software designed for the medical industry (see &#8220;<a title="Let your medical practice go open source with Gnumed" href="http://www.ghacks.net/2009/10/20/let-your-medical-practice-go-open-source-with-gnumed/" target="_blank">Let your medical practice go open source with Gnumed</a>.&#8221;) In that article I showed you how to start working with Gnumed, but limited the installation to using the public servers. Because these public servers can not safely and securely hold patient data, it is necessary to be able to set up your own backend server for this purpose. That is where this tutorial comes in.</p>
<p>In this article you will learn how to install everything you need to get your Gnumed front end connected to a locally hosted Gnumed backend server. I will be illustrating this on Ubuntu 9.10 with the end result being a local-only installation. Of course the necessary modifications to make this a LAN-based installation shouldn&#8217;t be difficult for you, once you have the local install up and running.</p>
<p><span id="more-18370"></span>This article comes a good time because this month it was just announced that new versions of Gnumed will include both medication management and prescription handling as well it was announced (on the <a title="Gnumed on Blogspot" href="http://gnumed.blogspot.com/" target="_blank">Gnumed Blog</a>) that a company is working on a billing feature for inclusion in a future release of Gnumed. That is certainly good news.</p>
<p>But, for now, let&#8217;s get on with the server installation.</p>
<p>Before we continue, make sure you have a working installation of PostgreSQL up and running. For more information on this take a look at my article &#8220;<a title="Basic postgresql server setup" href="http://www.ghacks.net/2009/11/10/basic-postgresql-server-setup/" target="_blank">Basic postgresql server setup</a>.&#8221;</p>
<p>Once you have PostgreSQL up and running you are ready to go.</p>
<p><strong>Installing the backend</strong></p>
<p>Go do the Gnumed server download mirror page and download the <em>gnumed-server</em> deb file (just click on a mirror). Once that file is downloaded open up a terminal window, cd to the directory you saved the file to, and issue the command:</p>
<p><em>sudo dpkg -i gnumed-server*</em></p>
<p>which will install the server.</p>
<p>As soon as the server is installed you have to create the databases used by Gnumed. Fortunately the Gnumed server package includes a simple command for this. From your terminal window issue the command:</p>
<p><em>sudo gm-bootstrap_server</em></p>
<p>This command will take some time to run its course. And, in the end, it might seem like you have some errors. These errors most likely mention a password &#8211; it is safe to ignore those errors.</p>
<p><strong>Configuration</strong></p>
<p>There are only two configurations you have to take care of. The first is to copy the proper .conf file into the <strong>~/.gnumed</strong> directory. The file you want to copy will be <strong>/etc/gnumed/gnumed-client.conf</strong>. Copy that with the command:</p>
<p><em>sudo cp /etc/gnumed/gnumed-client.conf ~/.gnumed</em></p>
<p>You really only need to make one change in that file. Look for this section beginning with:</p>
<p><em>[profile local GNUmed database]</em></p>
<p><em>host =</em></p>
<p>You want to change the <em>host = </em>line to reflect:</p>
<p><em>host = localhost</em></p>
<p>Now you need to make a change to a PostgreSQL file. The file in question is <strong>/etc/postgres/8.4/main/pg_hba.conf</strong>. You have to add a section to a very specific section of this file. Look for this line:</p>
<p><em># TYPE  DATABASE    USER    CIDR-ADDRESS    METHOD</em></p>
<p>Underneath that line you need to add:</p>
<p><em>local   samegroup   +gm-logins   md5</em></p>
<p>Once you have added that, save the file, and restart PostgreSQL with the command:</p>
<p><em>sudo /etc/init.d/postgresql-8.4 restart</em></p>
<p><strong>Log in</strong></p>
<p>Now it&#8217;s time to start up Gnumed and log in to your local server. When you start you will want the following login information:</p>
<ul>
<li><span style="background-color: #ffffff">Backend: local Gnumed database</span></li>
<li><span style="background-color: #ffffff">Username: any-doc</span></li>
<li><span style="background-color: #ffffff">Password: any-doc</span></li>
</ul>
<p>Hit the OK button to begin the login process. You will have to walk through a couple of windows (such as the language mismatch settings). But after that you will up and running with your own Gnumed backend server.</p>
<p><strong>Final thoughts</strong></p>
<p>It would behoove anyone medical practitioner looking to cut some corners (and wanting to take care of their own tech) to deploy Gnumed. And with the upcoming features, Gnumed is an outstanding solution.</p>

	Tags: <a href="http://www.ghacks.net/tag/backend-server/" title="backend server" rel="tag">backend server</a>, <a href="http://www.ghacks.net/tag/gnumed/" title="gnumed" rel="tag">gnumed</a>, <a href="http://www.ghacks.net/tag/medical-practice-server/" title="medical practice server" rel="tag">medical practice server</a>, <a href="http://www.ghacks.net/tag/medical-software/" title="medical software" rel="tag">medical software</a>, <a href="http://www.ghacks.net/tag/postgresql/" title="postgresql" rel="tag">postgresql</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/10/20/let-your-medical-practice-go-open-source-with-gnumed/" title="Let your medical practice go open source with Gnumed (October 20, 2009)">Let your medical practice go open source with Gnumed</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/11/10/basic-postgresql-server-setup/" title="Basic postgresql server setup (November 10, 2009)">Basic postgresql server setup</a> (5)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/10/set-up-a-gnumed-backend-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Apache troubleshooting tips</title>
		<link>http://www.ghacks.net/2009/11/08/apache-troubleshooting-tips/</link>
		<comments>http://www.ghacks.net/2009/11/08/apache-troubleshooting-tips/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 00:21:57 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[apache log]]></category>
		<category><![CDATA[apache2]]></category>
		<category><![CDATA[apache2ctl]]></category>
		<category><![CDATA[log files]]></category>
		<category><![CDATA[php]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=18266</guid>
		<description><![CDATA[How many times have you installed a LAMP server only to find Apache doesn&#8217;t seem to want to run right? Or you install a new module only to see Apache try to download pages as file, instead of displaying them on screen?
There are a hundred and one thousand things that can go wrong with any [...]]]></description>
			<content:encoded><![CDATA[<p>How many times have you installed a LAMP server only to find Apache doesn&#8217;t seem to want to run right? Or you install a new module only to see Apache try to download pages as file, instead of displaying them on screen?</p>
<p>There are a hundred and one thousand things that can go wrong with any web server installation. From a fresh installation to an installation that has been running for a long time, you never know when something is going to cause your web server to go astray. When it does happen, it&#8217;s always nice to know that, usually, Occam&#8217;s Razor applies.</p>
<p>In this tutorial you will find some advice that will help you through some of the more common issues that can pop up with an Apache web server.</p>
<p><span id="more-18266"></span><strong>Is your server actually running?</strong></p>
<p>Believe it or not, this has happened to plenty of administrators. You take the server down, do some maintenance, and when you go to check out the server you&#8217;re getting errors. The first thing you do, naturally, is check out that <strong>/etc/apache2/apache.conf</strong> file to make sure your syntax is correct. But it&#8217;s perfect! What&#8217;s up? The first thing you might want to check is to make sure the server is running. But you don&#8217;t want to just issue the command to start the server or reload the server. Instead, issue the command:</p>
<p><em>sudo /etc/init.d/apache2 status</em></p>
<p>Which should return something like:</p>
<p><em>* apache is running (pid 9751).</em></p>
<p>If not, start the server with either:</p>
<p><em>sudo /etc/init.d/apache2 start</em></p>
<p>or</p>
<p><em>sudo apache2ctl start</em></p>
<p>NOTE: If you are using a distribution like Fedora, SuSE, or Mandriva you will need to first <em>su </em>to the root user and issue the above commands WITHOUT using <em>sudo</em>.</p>
<p><strong>It&#8217;s not running and it won&#8217;t start</strong></p>
<p>Did you just make changes to your Apache configuration file? Are the changes correct? If you&#8217;re not sure, you can use the <em>apache2ctl </em>command to check the syntax of your configuration file. This is done with the command:</p>
<p><em>sudo apache2ctl configtext</em></p>
<p><em><span style="font-style: normal">The above command should report:</span></em></p>
<p><em><span style="font-style: normal">Syntax OK</span></em></p>
<p><em><strong><span style="font-style: normal"><span style="font-weight: normal">If you don&#8217;t get an OK, you will get information that points to the errors in your configuration file. </span></span></strong></em></p>
<p><em><strong><span style="font-style: normal"><span style="font-weight: normal"><strong>Apache wants to download .php files!</strong></span></span></strong></em></p>
<p><em><strong><span style="font-style: normal"><span style="font-weight: normal"><strong><span style="font-weight: normal">This is another common issue. When you add a new tool on your web server (such as Drupal), if your configuration file is set up properly, any .php file might not be displayed. Instead any attempt to view a .php file will instead have your browser trying to download the file. Why is this? Apache must be informed that certain extensions are to be displayed, not downloaded. This is done from within the Apache configuration file. Open up that file (in the Ubuntu server it will be </span>/etc/apache2/apache2.conf<span style="font-weight: normal">) and first look for the following line:</span></strong></span></span></strong></em></p>
<p><em><strong><span style="font-weight: normal"><strong><span style="font-weight: normal">DirectoryIndex index.html</span></strong></span></strong></em></p>
<p>If that file doesn&#8217;t include <em>index.php </em>nearly all sites that use php will be rendered useless.</p>
<p>The second line to look for is:</p>
<p><em>AddHandler application/x-httpd-php .php</em></p>
<p>If you find this line, and it is commented out, make sure you uncomment it by removing the &#8220;#&#8221; character. If it is not there add it to the bottom of the configuration file.</p>
<p>And, as always, when you make a change to the configuration file, restart Apache.</p>
<p><strong>Know where to look for problems</strong></p>
<p>Finally, it is crucial that you know where to first turn when the above doesn&#8217;t help you out. Any time I have an issue with Apache where Occam&#8217;s Razor does not apply, the first place I turn is the log files.</p>
<p>If you look in <strong>/var/log/apache2</strong> you will find, at least, the following files:</p>
<ul>
<li><span style="background-color: #ffffff">access.log: This keeps track of any connection made to your server.</span></li>
<li><span style="background-color: #ffffff">error.log: This keeps track of any errors that occur with Apache.</span></li>
<li><span style="background-color: #ffffff">other_vhosts_access.log: This is where virtual hosts will log when the virtual host has not been prescribed its own log file.</span></li>
</ul>
<p>Of course, as your site evolves so will your available log files. Regardless of what you find in <strong>/var/log/apache2</strong>, that is where you should always first turn when you have problems. Even before you google.</p>
<p><strong>Final thoughts</strong></p>
<p>Now you should be able to handle some of the more common issues with the Apache server. And if your problem isn&#8217;t common, you also know where to turn to find clues that will lead you down the right path to correction.</p>

	Tags: <a href="http://www.ghacks.net/tag/apache/" title="apache" rel="tag">apache</a>, <a href="http://www.ghacks.net/tag/apache-log/" title="apache log" rel="tag">apache log</a>, <a href="http://www.ghacks.net/tag/apache2/" title="apache2" rel="tag">apache2</a>, <a href="http://www.ghacks.net/tag/apache2ctl/" title="apache2ctl" rel="tag">apache2ctl</a>, <a href="http://www.ghacks.net/tag/log-files/" title="log files" rel="tag">log files</a>, <a href="http://www.ghacks.net/tag/php/" title="php" rel="tag">php</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/12/28/portable-web-server/" title="Portable Web Server (December 28, 2008)">Portable Web Server</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/09/17/local-apache-web-server-wampserver/" title="Local Apache Web Server Wampserver (September 17, 2009)">Local Apache Web Server Wampserver</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/" title="How to: Install a LAMP server (July 23, 2009)">How to: Install a LAMP server</a> (7)</li>
	<li><a href="http://www.ghacks.net/2007/01/31/host-your-own-webserver/" title="Host your own webserver (January 31, 2007)">Host your own webserver</a> (18)</li>
	<li><a href="http://www.ghacks.net/2009/03/29/wordpress-template-tags-you-should-know/" title="Wordpress template tags you should know (March 29, 2009)">Wordpress template tags you should know</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/08/apache-troubleshooting-tips/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Let Munin monitor your servers and network</title>
		<link>http://www.ghacks.net/2009/11/05/let-munin-monitor-your-servers-and-network/</link>
		<comments>http://www.ghacks.net/2009/11/05/let-munin-monitor-your-servers-and-network/#comments</comments>
		<pubDate>Thu, 05 Nov 2009 19:50:59 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Network Monitoring]]></category>
		<category><![CDATA[system monitoring]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[web monitoring]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=18152</guid>
		<description><![CDATA[If you are looking for an easy to install, configure, and use systems monitor, look no further. The Munin is a network/systems monitor that presents all its data is easy to read graphs. Munin is setup as a server/client (or node) which makes this system very flexible. Munin also offers an extensive plugins library that [...]]]></description>
			<content:encoded><![CDATA[<p>If you are looking for an easy to install, configure, and use systems monitor, look no further. The Munin is a network/systems monitor that presents all its data is easy to read graphs. Munin is setup as a server/client (or node) which makes this system very flexible. Munin also offers an extensive plugins library that extends that flexibility to include the monitoring of many various systems and even applications.</p>
<p>And what&#8217;s best is you don&#8217;t have to jump through a bunch of hoops to get munin up and running. In this tutorial you will see how to get your Munin server up and running and monitoring your system and a sample client configuration that will monitor a client node. As you might expect, I will continue to build upon the Ubuntu Server series and install Munin on a Ubuntu 9.04 installation. NOTE: This same installation will work on Ubuntu 9.10 as well.<span id="more-18152"></span><strong>Server installation/configuration</strong></p>
<p>Installing Munin on the Ubunter server is simple. Open up a terminal window (or log into your server console) and issue the command:</p>
<p><em>sudo apt-get install munin </em></p>
<p>The above command will also install <em>munin-node</em> which is the client-side software. This is fine, so let it happen. Upon installation Munin will install the configuration files in <strong>/etc/munin,</strong> the executable in <strong>/etc/init.d/, </strong>and the web files in <strong>/var/www/munin</strong>.</p>
<p>The first thing that will need to be done is to configure your server correctly. Open up the <strong>/etc/munin/munin.conf</strong> file and look for this section:</p>
<p><code>dbdir     /var/lib/munin<br />
htmldir    /var/www/munin/<br />
logdir     /var/log/munin<br />
rundir     /var/run/munin</code></p>
<p>Out of the box, this will work just fine.  But if you have any other needs that would dictate any of these directives change, change them here.</p>
<p>The next section to look for is this:</p>
<p><code># a simple host tree<br />
[localhost.localdomain]<br />
address 127.0.0.1<br />
use_node_name yes</code></p>
<p>What the above section does is monitor the server Munin is installed on. This configuration only needs to change if you have specific requirements. Also, if you need to add a client (node), this is where you add it.</p>
<p>In order to instruct Munin to monitor a remote machine you need to add a new host tree. Say, for instance, you want to monitor a machine on the IP addres 192.168.1.150. To do this you would add:</p>
<p><code>[MACHINE NAME]<br />
address 192.168.1.150<br />
use_node_name yes</code></p>
<p>Where MACHINE NAME is a name to indicate the job (or user, or department, etc) of the machine.</p>
<p>Once you have these configurations and save the file. Now to move on to the <strong>/etc/munin/munin-node.conf</strong> file. There is only one configuration you would need to add in order to monitor nodes. Look for this line:</p>
<p><em>allow ^127\.0\.0\.1$</em></p>
<p>Beneath this line you will want to add (in order to enable our new node):</p>
<p><em>allow ^192\.168\.1\.1$</em></p>
<p>Save this file and restart the Munin server with the command:</p>
<p><em>/etc/init.d/munin restart</em></p>
<p><strong>Installing for client</strong></p>
<p>All you need to do for your client is to install the <em>munin-node</em> package. To do this issue the command:</p>
<p><em>sudo apt-get install munin-node</em></p>
<p>On the client machine. Now start munin-node with the command:</p>
<p><em>sudo /etc/init.d/munin-node start</em></p>
<p>Munin will begin to monitor this client now.</p>
<p><strong>The graphs</strong></p>
<p>When all is up and running, point your browser to http://ADDRESS_TO_SERVER/munin/</p>
<div id="attachment_18157" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-18157" href="http://www.ghacks.net/2009/11/05/let-munin-monitor-your-servers-and-network/munin_overview/"><img class="size-thumbnail wp-image-18157 " src="http://www.ghacks.net/wp-content/uploads/2009/11/munin_overview-300x245.png" alt="Figure 1" width="180" height="147" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>Where ADDRESS_TO_SERVER is the actual address of the server. Very shortly after you install Munin you may only see a listing of the nodes being watched (see Figure 1). This is okay, it will take some time before data is actually collected.</p>
<p>After a while you will notice data collected and graphs developing. If you click on the <strong>localhost.localdomain</strong> link you will see data beginning to collect (see Figure 2).</p>
<p><strong> </strong></p>
<p><strong></p>
<div id="attachment_18158" class="wp-caption alignright" style="width: 310px"><a rel="attachment wp-att-18158" href="http://www.ghacks.net/2009/11/05/let-munin-monitor-your-servers-and-network/munin_early_data/"><img class="size-thumbnail wp-image-18158" src="http://www.ghacks.net/wp-content/uploads/2009/11/munin_early_data-300x300.png" alt="Figure 2" width="300" height="300" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>Final thoughts</strong></p>
<p>Munin is a very powerful tool that allows you to gather crucial data about your systems and networks. Now that you have Munin installed and running you can begin to extend the server by adding more and more clients as well as plugins. You will quickly find Munin to be a very valuable tool for data analysis on your various systems and networks.</p>

	Tags: <a href="http://www.ghacks.net/tag/network-monitoring/" title="Network Monitoring" rel="tag">Network Monitoring</a>, <a href="http://www.ghacks.net/tag/system-monitoring/" title="system monitoring" rel="tag">system monitoring</a>, <a href="http://www.ghacks.net/tag/ubuntu/" title="ubuntu" rel="tag">ubuntu</a>, <a href="http://www.ghacks.net/tag/web-monitoring/" title="web monitoring" rel="tag">web monitoring</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/06/08/how-to-install-nagios-on-ubuntu-server/" title="How to install Nagios on Ubuntu server (June 8, 2009)">How to install Nagios on Ubuntu server</a> (10)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/20/why-you-should-switch-your-parents-pc-to-ubuntu/" title="Why you should switch your parents pc to ubuntu (December 20, 2006)">Why you should switch your parents pc to ubuntu</a> (20)</li>
	<li><a href="http://www.ghacks.net/2009/04/02/which-ubuntu-derivative-is-right-for-you/" title="Which Ubuntu Derivative Is Right For You? (April 2, 2009)">Which Ubuntu Derivative Is Right For You?</a> (16)</li>
	<li><a href="http://www.ghacks.net/2009/10/06/what-makes-ubuntu-so-user-friendly/" title="What makes Ubuntu so user friendly? (October 6, 2009)">What makes Ubuntu so user friendly?</a> (47)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/05/let-munin-monitor-your-servers-and-network/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connect to your Samba server from Linux</title>
		<link>http://www.ghacks.net/2009/11/04/connect-to-your-samba-server-from-linux/</link>
		<comments>http://www.ghacks.net/2009/11/04/connect-to-your-samba-server-from-linux/#comments</comments>
		<pubDate>Tue, 03 Nov 2009 23:03:42 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[GNOME]]></category>
		<category><![CDATA[samba]]></category>
		<category><![CDATA[samba shares]]></category>
		<category><![CDATA[smb.conf]]></category>
		<category><![CDATA[smbclient]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=18072</guid>
		<description><![CDATA[I have written a few articles on Samba here on Ghacks. And most people know how to connect to Samba shares via Windows. Generally speaking (when all is set up correctly) it&#8217;s just a matter of opening up Explorer and entering \\ADDRESS_OF_SAMBA_SERVER\SHARENAME to get to your Samba shares. But what about in Linux? How do [...]]]></description>
			<content:encoded><![CDATA[<p>I have written a few articles on Samba here on Ghacks. And most people know how to connect to Samba shares via Windows. Generally speaking (when all is set up correctly) it&#8217;s just a matter of opening up Explorer and entering \\ADDRESS_OF_SAMBA_SERVER\SHARENAME to get to your Samba shares. But what about in Linux? How do you go about connecting to Samba shares with the same operating system that is running the Samba server?</p>
<p>One would think that an easy task. It actually is, once you know how it is done.  And in this article I am going to show you two different ways of making the connection to your Samba server. You will need to have a working knowledge of how the Samba server is set up as well as a username/password configured on the Samba server. There are also a few steps to take on the desktop for one certain method of connection.</p>
<p>The two methods I will describe are: Using GNOME&#8217;s Connect To Server dialog and the command line. The latter will be used to show you how to set up auto mounting for Samba.</p>
<p><span id="more-18072"></span></p>
<p><strong>The graphical method</strong></p>
<div id="attachment_18074" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-18074" href="http://www.ghacks.net/2009/11/04/connect-to-your-samba-server-from-linux/connect_to_server/"><img class="size-thumbnail wp-image-18074 " src="http://www.ghacks.net/wp-content/uploads/2009/11/connect_to_server-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>If you take a look at the GNOME Places menu you will see an entry labeled &#8220;Connect to server&#8230;&#8221;. This is what you want to use in order to connect to your Samba server. When you click on that a new window will open. From the Service type drop-down select &#8220;Windows share&#8221; (see Figure 1).</p>
<p>When you select that entry some of the configuration options will change. As you can see (in Figure 1), I have entered the necessary options to connect to a Samba server on my internal network. You will want to replace the information so it reflects your needs. The only tricky bit of information might be the Folder entry. If you are connecting to the root directory on the share you will not need to enter anything there. Say, for instance, you share is <strong>/media/samba/user<em>. </em><span style="font-weight: normal">If you want to connect to that directory leave the Folder entry blank. Say, however, you want to connect directly to a sub-folder within that share &#8211; you can enter that folder here. This, of course, isn&#8217;t needed because you can always traverse the sub-directories with simple navigation. <span style="background-color: #ffffff"><strong><span style="font-weight: normal">You can also choose to add a bookmark instantly, from in this window. </span></strong></span></span></strong></p>
<p><strong><span style="font-weight: normal"><span style="background-color: #ffffff"><strong><span style="font-weight: normal"> </span></strong></span></span></strong></p>
<p><strong><strong> </strong></strong></p>
<p><strong><strong> </strong></strong></p>
<div id="attachment_18075" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-18075" href="http://www.ghacks.net/2009/11/04/connect-to-your-samba-server-from-linux/connect_to_server_password/"><img class="size-thumbnail wp-image-18075 " src="http://www.ghacks.net/wp-content/uploads/2009/11/connect_to_server_password-300x300.png" alt="Figure 2" width="180" height="180" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>Once you have all of the information entered click Connect and you will be greeted with a new window that requires you to enter a password. Also, if you do not supply a Domain name in the previous window, you will be required to enter it here.</p>
<p>You can also set this up to remember your password either until you logout or until, well, forever. Once you have entered the password/domain click the Connect button and a new Nautilus window will open inside of your Samba Share.</p>
<p><strong>Using the command line</strong></p>
<p>Now we&#8217;re going to use the command line to accomplish a similar goal. The biggest difference is that we are going to actually mount the Samba share into another directory, very much the same way we would mount a second hard drive.</p>
<p>There are a few pieces to put together before we actually take care of the mounting. First let&#8217;s create a directory that the Samba share will be mounted to. So from the terminal window issue the following command:</p>
<p><em>sudo mkdir /media/samba</em></p>
<p>Now let&#8217;s make sure our users can read/write to this directory with the command:</p>
<p><em>sudo chmod -R u+rw /media/samba</em></p>
<p>Okay now let&#8217;s make sure we can see the Samba shares from the command line. We&#8217;ll do that with the <em>smbclient </em>command like so:</p>
<p><em>smbclient -L //SAMBA_SERVER_ADDRESS</em></p>
<p>Where <em>SAMBA_SERVER_ADDRESS</em> is the actual IP address of the Samba server.</p>
<div id="attachment_18089" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-18089" href="http://www.ghacks.net/2009/11/04/connect-to-your-samba-server-from-linux/smbclient/"><img class="size-thumbnail wp-image-18089 " src="http://www.ghacks.net/wp-content/uploads/2009/11/smbclient-300x300.png" alt="Figure 3" width="180" height="180" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>You will be prompted for your username and password. If you get an error it could be that the usernames don&#8217;t match on each end. If that&#8217;s the case you could add the <em>-U </em>switch to the command like so:</p>
<p><em>smbclient &#8211;user=jlwallen -L  //SAMBA_SERVER_ADDRESS</em></p>
<p>You should see output similar to that shown in Figure 3.</p>
<p>Now it&#8217;s time to try to mount the Samba share to the <strong>/media/samba</strong> directory. To do this issue the command:</p>
<p><em>sudo mount -t cifs //SAMBA_SERVER_ADDRESS/SHARE -o username=USERNAME /media/samba/</em></p>
<p>Where:</p>
<ul>
<li><span style="background-color: #ffffff">SAMBA_SERVER_ADDRESS is the IP address of the Samba server.</span></li>
<li><span style="background-color: #ffffff">SHARE is the share name.</span></li>
<li><span style="background-color: #ffffff">USERNAME is the username to connect with.</span></li>
</ul>
<p>If that works you can now make this an automated mount by adding the following line to your <strong>/etc/fstab</strong> file:</p>
<p><code>//SAMBA_SERVER_ADDRESS/SHARE     /media/samba    cifs  credentials=/etc/samba/user.cred 0 0 </code></p>
<p>Where SAMBA_SERVER_ADDRESS is the IP address of the Samba server and SHARE is the share name.</p>
<p>Notice the user.cred file. This is one last thing we need to create. With your text editor create this file and place into it:</p>
<p><em>username=USER</em></p>
<p><em>password=PASSWORD</em></p>
<p>Where USER is the username to log in with and PASSWORD is the password to use for authentication. The final step is the give this new file the proper permissions with the command:</p>
<p>sudo chmod 600 /etc/samba/user.cred</p>
<p>You can ensure this works by issuing the command <em>mount -a</em> which should mount your Samba share.</p>
<p><strong>Final thoughts</strong></p>
<p>You should now have an auto-mounting Samba share &#8211; or the ability to easily connect your GNOME desktop to a Samba share. Samba is a very powerful tool that not only can share files with Windows machines, but with Linux machines as well.</p>

	Tags: <a href="http://www.ghacks.net/tag/gnome/" title="GNOME" rel="tag">GNOME</a>, <a href="http://www.ghacks.net/tag/samba/" title="samba" rel="tag">samba</a>, <a href="http://www.ghacks.net/tag/samba-shares/" title="samba shares" rel="tag">samba shares</a>, <a href="http://www.ghacks.net/tag/smbconf/" title="smb.conf" rel="tag">smb.conf</a>, <a href="http://www.ghacks.net/tag/smbclient/" title="smbclient" rel="tag">smbclient</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/09/04/set-up-your-new-ubuntu-server-as-a-samba-server/" title="Set up your new Ubuntu Server as a Samba Server (September 4, 2009)">Set up your new Ubuntu Server as a Samba Server</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/02/06/get-to-know-linux-understanding-smbconf/" title="Get To Know Linux: Understanding smb.conf (February 6, 2009)">Get To Know Linux: Understanding smb.conf</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/04/19/auto-mounting-a-samba-share-in-linux/" title="Auto mounting a Samba share in Linux (April 19, 2009)">Auto mounting a Samba share in Linux</a> (5)</li>
	<li><a href="http://www.ghacks.net/2009/11/24/walk-through-installation-of-opensuse-11-2/" title="Walk-through installation of OpenSuSE 11.2 (November 24, 2009)">Walk-through installation of OpenSuSE 11.2</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/04/03/simple-gnome-note-taking-with-tomboy/" title="Simple GNOME Note Taking with Tomboy (April 3, 2009)">Simple GNOME Note Taking with Tomboy</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/04/connect-to-your-samba-server-from-linux/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Set up a Linux media server</title>
		<link>http://www.ghacks.net/2009/10/29/set-up-a-linux-media-server/</link>
		<comments>http://www.ghacks.net/2009/10/29/set-up-a-linux-media-server/#comments</comments>
		<pubDate>Thu, 29 Oct 2009 17:51:54 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music and Video]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[DAAP]]></category>
		<category><![CDATA[itunes]]></category>
		<category><![CDATA[mp3 server]]></category>
		<category><![CDATA[multimedia server]]></category>
		<category><![CDATA[music server]]></category>
		<category><![CDATA[songbird]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17860</guid>
		<description><![CDATA[Do you have multiple machines around your house that would like to share a centralized server for multi-media? Having such a server for music allows for consolidation, ease of use, and space saving on client PCs. Of course to many users, the idea of setting up a multi-media server sounds like it would be a [...]]]></description>
			<content:encoded><![CDATA[<p>Do you have multiple machines around your house that would like to share a centralized server for multi-media? Having such a server for music allows for consolidation, ease of use, and space saving on client PCs. Of course to many users, the idea of setting up a multi-media server sounds like it would be a nightmare&#8230;especially on the Linux platform. That couldn&#8217;t be further from the truth.</p>
<p><a title="Firefly Media Server" href="http://www.fireflymediaserver.org/" target="_blank">The Firefly Media Server</a> (formerly mt-daap) is a fast DAAP server that is simple to install and even easier to configure. Firefly resides on a single Linux machine that doesn&#8217;t have to be a powerhouse. In fact, you can install this lightweight server on Ubuntu Server and you&#8217;re almost ready to go. In this article you will see how to do just that &#8211; install and configure Firefly Media Server on Ubuntu Server.</p>
<p><span id="more-17860"></span><strong>Features</strong></p>
<p>The Firefly server has all of the features you will want in a DAAP server:</p>
<ul>
<li><span style="background-color: #ffffff">Supports Unix/POSIX</span></li>
<li><span style="background-color: #ffffff">Beta for Windows in the works</span></li>
<li><span style="background-color: #ffffff">On the fly transcoding of OGG, FLAC, Apple Lossless, and WM</span></li>
<li><span style="background-color: #ffffff">User-created smart playlist support</span></li>
<li><span style="background-color: #ffffff">Integrates with iTunes and many other DAAP-supporting media players</span></li>
<li><span style="background-color: #ffffff">Serve streaming radio stations</span></li>
</ul>
<p><strong>Installation</strong></p>
<p>Since we are installing on a Ubuntu Server, the installation is simple:</p>
<ol>
<li><span style="background-color: #ffffff">Open up a terminal (or just log into your servers&#8217; console)</span></li>
<li><span style="background-color: #ffffff">Issue the command <em>sudo apt-get install mt-daap</em></span></li>
<li><span style="background-color: #ffffff">Enter your user password</span></li>
</ol>
<p>That&#8217;s it. Now it&#8217;s time to set it up.</p>
<p><strong>Configuration file</strong></p>
<p>There is only one configuration file for Firefly: <strong>/etc/mt-daapd.conf</strong>. This file is quite easy to set up. For a basic DAAP server, out of the box, there is really only one option you must configure. If you open up the configuration file look for the line:</p>
<p><em>mp3_dir = /home/media/music</em></p>
<p>This is the line you will need to change to reflect the directory you will serve your media from. For my setup I created a new sub-directory in <strong>/opt </strong>called <strong>music</strong>. Do this with the command:</p>
<p><em>sudo mkdir /opt/media</em></p>
<p>Now you have to make that directory readable by the DAAP server with the command:</p>
<p><em>sudo chmod ug+r -R /opt/media</em></p>
<p>Now all files and sub-directories created with the <strong>/opt/media</strong> directory will have the proper permissions such that the DAAP server can serve up the files.</p>
<p>Of course what you have just set up is a very basic DAAP server. There are a lot of other options within the configuration file you can set up, such as:</p>
<ul>
<li><span style="background-color: #ffffff">servername: This is the name your DAAP server will broadcast. By default the server will be listed as Firefly <em>RELEASE_NUMBER HOSTNAME</em> (Where <em>RELEASE_NUMBER </em>is the release number of the Firefly installation and <em>HOSTNAME</em> is the hostname of the server.)</span></li>
<li><span style="background-color: #ffffff">password protection: This will cause any user attempting to access the DAAP server to have to enter a password in order to see the files. </span></li>
<li><span style="background-color: #ffffff">port: If you need to use a port other than the default (3689), configure it here.</span></li>
<li><span style="background-color: #ffffff">extensions: The file types you want to allow to be served by your DAAP server.</span></li>
<li><span style="background-color: #ffffff">Valid codectypes: These are the configurations for the format conversion. There are already lines for this in the configuration file &#8211; you just have to uncomment the ones you want to add for internal conversion.</span></li>
<li><span style="background-color: #ffffff">rescan_interval: If you want to enable background scanning you need to uncomment this entry and set an interval. This will enable you to add new files without having to restart the DAAP server to pick up the new files. Very handy if you frequently add new files.</span></li>
</ul>
<p>There are other configuration options, but those are the ones you will want to focus on first.</p>
<p><strong>Start the daemon</strong></p>
<p>After your configuration file is complete, go ahead and move your media files into the directory and then start the server with the command:</p>
<p><em>sudo /etc/init.d/mt-daap start</em></p>
<p>With the server up and running you can fire up a DAAP enabled client, like iTunes or Songbird (Note: Songbird requires the addition of a DAAP add on), and you should automatically see the files on the DAAP server.</p>
<p><strong>Final thoughts</strong></p>
<p>Setting up a DAAP server is a great idea for a small internal network where you want to be able to share out a multi-media library. Anyone looking to set this up, and has a Linux server up and running, would do well to give Firefly a try. The simplicity, size, and speed of this server makes it the perfect candidate.</p>

	Tags: <a href="http://www.ghacks.net/tag/daap/" title="DAAP" rel="tag">DAAP</a>, <a href="http://www.ghacks.net/tag/itunes/" title="itunes" rel="tag">itunes</a>, <a href="http://www.ghacks.net/tag/mp3-server/" title="mp3 server" rel="tag">mp3 server</a>, <a href="http://www.ghacks.net/tag/multimedia-server/" title="multimedia server" rel="tag">multimedia server</a>, <a href="http://www.ghacks.net/tag/music-server/" title="music server" rel="tag">music server</a>, <a href="http://www.ghacks.net/tag/songbird/" title="songbird" rel="tag">songbird</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/08/03/songbird-07-rc1-released/" title="Songbird 0.7 RC1 Released (August 3, 2008)">Songbird 0.7 RC1 Released</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/05/29/itunes-music-server-pulptunes/" title="iTunes Music Server pulpTunes (May 29, 2009)">iTunes Music Server pulpTunes</a> (7)</li>
	<li><a href="http://www.ghacks.net/2008/07/16/winamp-ipod-plugin-2/" title="Winamp iPod Plugin (July 16, 2008)">Winamp iPod Plugin</a> (5)</li>
	<li><a href="http://www.ghacks.net/2007/06/11/view-and-edit-information-about-songs-with-more-tunes/" title="View and Edit information of songs with More Tunes (June 11, 2007)">View and Edit information of songs with More Tunes</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/08/22/the-complete-media-player-review-part-1-2/" title="The Complete Media Player Review (Part 1) (August 22, 2008)">The Complete Media Player Review (Part 1)</a> (15)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/29/set-up-a-linux-media-server/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Stop SPAM in Postfix with Spamassassin</title>
		<link>http://www.ghacks.net/2009/10/26/stop-spam-in-postfix-with-spamassassin/</link>
		<comments>http://www.ghacks.net/2009/10/26/stop-spam-in-postfix-with-spamassassin/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 20:46:31 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[email filtering]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[spam]]></category>
		<category><![CDATA[SPAM scoring]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17653</guid>
		<description><![CDATA[So you have your Ubuntu server up and running with a Postfix mail server (see &#8220;Install Postfix for reliable email delivery&#8220;). You have also set up Postfix for antivirus with the help of ClamAV (see &#8220;Add antivirus to Post fix with ClamAV&#8220;). Finally you have Postfix set up to relay (see &#8220;Mail relaying made simple [...]]]></description>
			<content:encoded><![CDATA[<p>So you have your Ubuntu server up and running with a Postfix mail server (see &#8220;<a title="Install Postfix for reliable email delivery" href="http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/" target="_blank">Install Postfix for reliable email delivery</a>&#8220;). You have also set up Postfix for antivirus with the help of ClamAV (see &#8220;<a title="Add antivirus to Postfix with ClamAV" href="http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/" target="_blank">Add antivirus to Post fix with ClamAV</a>&#8220;). Finally you have Postfix set up to relay (see &#8220;<a title="Mail relaying made simple with Postfix" href="http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/" target="_blank">Mail relaying made simple with Postfix</a>&#8220;). The last trick in this bag is to add SPAM prevention to Postfix.</p>
<p>Fortunately there is a tool for that. The tool? <a title="Spamassassin" href="http://spamassassin.apache.org/" target="_blank">Spamassassin</a>. Spamassassin is a very versatile SPAM tool that is part of the <a title="Apache Foundation" href="http://www.apache.org/" target="_blank">Apache Foundation</a>. Spamassassin uses numerous means to detect SPAM including: DNS and Checksum based SPAM detection as well as Bayesian filtering, external programs, black lists, and online databases. These tools together make for a fairly powerful detection system.</p>
<p>In this article you are going to see how to install and configure Spamassassin to work in conjunction with Postfix to further enhance your email server.</p>
<p><span id="more-17653"></span><strong>Installing Spamassassin</strong></p>
<p>Obviously the first thing you need to do is install Spamassassin. You will find Spamassassin in the Ubuntu repositories. And since this entire series has been laid on top of a Ubuntu Server installation, that is quite convenient. So, to install Spamassassin, open up your terminal window and issue the following command:</p>
<p><em>sudo apt-get install spamassassin</em></p>
<p>There may or may not be some dependencies to install in order for the Spamassassin  installation to complete. Go ahead and OK those. Once this installation is complete you are ready to start configuring.</p>
<p><strong>Configuration</strong></p>
<p>Before we actually get to the configuration it is important to understand the SPAM scoring system. With Spamassassin, messages are tagged as SPAM only when they have enough SPAM-matching characteristics (according to a scoring level). The scoring level is 0-5, however it&#8217;s not as simple as saying a 0 means it is 0% SPAM. The system is set up so that every characteristic can add to the overall score. For example a message tested to find a base64 attachment does not have a file name filtered with both bayes+net will add 0.224 to the over all score of the message. When all of the characteristic scores are added up, if they exceed the default score you have set in the configuration file, that message is considered SPAM.</p>
<p>Now that you have a basic understand of how the scoring system works. Let&#8217;s start configuring Spamassassin.</p>
<p>The main configuration file is <strong>/etc/spamassassin/local.cf. </strong>The first option you want to configure is the default score. Look for the line:</p>
<p><em> # required_score 5.0</em></p>
<p>The first thing you want to do is uncomment that line (by removing the &#8220;#&#8221; character) and then changing the score. A score of 5 is pretty high and sure to be SPAM. Understand the more you lower that score the likely you are of missing message messages that are tagged false-positives. A score of 3.5 is a fairly reliable score that will catch a lot of SPAM but not a lot of false positives.</p>
<p>Above this line are a couple of other options that are important. The first is the option to set the option:</p>
<p>report_safe</p>
<p>To 0. This option can be set to either 0 or 1. A zero means that if a message is found to be SPAM the message will not be deleted, but instead the subject line will be rewritten to include a message marking it as SPAM.  This is handy to prevent users from losing important messages to false positives. This also allows you to set a lower score threshold.</p>
<p>To do this first look for the line:</p>
<p><em># report_safe 1</em></p>
<p>Uncomment this line by removing the &#8220;#&#8221; character and then change the &#8220;1&#8243; to &#8220;0&#8243; (no quotes).</p>
<p>The next step is to uncomment the line:</p>
<p># rewrite_header Subject *****SPAM*****</p>
<p>Now you can alter the &#8220;*****SPAM*****&#8221; section of this line to reflect what you&#8217;d prefer it to say. Just make sure it is clear to your users that a message with this rewritten subject line is most likely SPAM.</p>
<p>Now restart the Spamassassin daemon with the command:</p>
<p><em>sudo /etc/init.d/spamassassin restart </em></p>
<p><strong>Configure Postfix</strong></p>
<p>The last step is to set up Postfix to use Spamassassin. To do this open up the file <strong>/etc/postfix/master.cf<em> </em><span style="font-weight: normal">and look for the line:</span></strong></p>
<p><strong><span style="font-weight: normal"><em>smtp     inet    n   &#8211;   &#8211;   &#8211;   &#8211;   smtpd</em></span></strong></p>
<p>You need to alter this line to look like:</p>
<p><code>smtp      inet   n   -   -   -   -   smtpd -o content_filter=spamassassin</code></p>
<p>Finally, at the end of this file add the following:</p>
<p><code>spamassassin<br />
unix - n n - - pipe<br />
flags=R<br />
user=spamd<br />
argv=/usr/bin/spamc<br />
-e /usr/sbin/sendmail<br />
-oi -f ${sender} ${recipient}</code></p>
<p>Now all you need to do is restart Postfix with the command:</p>
<p><em>sudo /etc/init.d/postfix restart</em></p>
<p>Your mail server should now be scoring incoming message as SPAM or HAM.</p>
<p><strong>Final thoughts</strong></p>
<p>The mail server is a tricky beast. You have to ensure that users are getting their mail, but you have to make sure they aren&#8217;t receive SPAM or viruses. After completing this series of articles, you should have a pretty solid server running that will send out mail that is safe for users eyes.</p>

	Tags: <a href="http://www.ghacks.net/tag/email/" title="Email" rel="tag">Email</a>, <a href="http://www.ghacks.net/tag/email-filtering/" title="email filtering" rel="tag">email filtering</a>, <a href="http://www.ghacks.net/tag/postfix/" title="Postfix" rel="tag">Postfix</a>, <a href="http://www.ghacks.net/tag/spam/" title="spam" rel="tag">spam</a>, <a href="http://www.ghacks.net/tag/spam-scoring/" title="SPAM scoring" rel="tag">SPAM scoring</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/07/01/trap-spammers-with-project-honey-pot/" title="Trap Spammers with Project Honey Pot (July 1, 2009)">Trap Spammers with Project Honey Pot</a> (4)</li>
	<li><a href="http://www.ghacks.net/2008/08/28/tinymail-email-protection/" title="Tinymail Email Protection (August 28, 2008)">Tinymail Email Protection</a> (18)</li>
	<li><a href="http://www.ghacks.net/2008/02/26/reduce-spam-by-using-alternative-google-mail-address/" title="Reduce Spam by using alternative Google Mail Address ? (February 26, 2008)">Reduce Spam by using alternative Google Mail Address ?</a> (8)</li>
	<li><a href="http://www.ghacks.net/2006/01/25/phishing-explained/" title="Phishing Explained (January 25, 2006)">Phishing Explained</a> (4)</li>
	<li><a href="http://www.ghacks.net/2006/05/09/introduction-series-part-1-spam/" title="Introduction Series Part 1: Spam (May 9, 2006)">Introduction Series Part 1: Spam</a> (0)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/26/stop-spam-in-postfix-with-spamassassin/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Add antivirus to Postfix with ClamAV</title>
		<link>http://www.ghacks.net/2009/10/25/add-antivirus-to-postfix-with-clamav/</link>
		<comments>http://www.ghacks.net/2009/10/25/add-antivirus-to-postfix-with-clamav/#comments</comments>
		<pubDate>Sun, 25 Oct 2009 15:46:17 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Email]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[anti virus]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[virus definitions]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17707</guid>
		<description><![CDATA[By now you have your Postfix mail server up and running (see &#8220;Install Postfix for reliable email delievery&#8220;). You even have relaying working (see &#8220;Mail relaying made simple with Postfix&#8220;). But one of the most important features you can add to a mail server is an system to prevent viruses from being passed to users. [...]]]></description>
			<content:encoded><![CDATA[<p>By now you have your Postfix mail server up and running (see &#8220;<a title="Install Postfix for reliable email delievery" href="http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/" target="_blank">Install Postfix for reliable email delievery</a>&#8220;). You even have relaying working (see &#8220;<a title="Mail relaying made simple with Postfix" href="http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/" target="_blank">Mail relaying made simple with Postfix</a>&#8220;). But one of the most important features you can add to a mail server is an system to prevent viruses from being passed to users. Naturally, the Linux fan will say &#8220;But Linux isn&#8217;t affected by viruses!&#8221;. Although that may, for the most part, be true, this is a mail SERVER which could be serving up mail to Windows users. And Windows machines ARE effected by viruses. To that end, anti-virus measures are a necessity on a Linux email server.</p>
<p>One of the best anti-virus systems for a Postfix server is <a title="ClamAV" href="http://www.clamav.net/" target="_blank">ClamAV</a>. This anti-virus tool kit is open sourced and can be used on all UNIX-like operating systems. It&#8217;s easy to install and effective. In this article we will be following our series started way back in the <a title="Installing Ubuntu Server 9.04" href="http://www.ghacks.net/2009/09/03/installing-ubuntu-server-9-04/" target="_blank">Installing Ubuntu Server 9.04 article</a>. Of course we will be installing ClamAV on a Ubuntu server running LAMP and Postfix. With that in mind, let&#8217;s get busy!</p>
<p><span id="more-17707"></span><strong>Installation</strong></p>
<p>The first thing to take care of is the installation of ClamAV. There are a number of tools you will need to install. Open up a terminal window and issue the command:</p>
<p><code>sudo apt-get install clamav clamav-freshclam clamsmtp</code></p>
<p>The above command should also pick up all of the necessary dependencies. The installation will also start the clamav daemon. You will restart that momentarily</p>
<p><strong>Configuration</strong></p>
<p>Once installed you have some configurations to take care of. There are three files you are going to have to edit:</p>
<ul>
<li><span style="background-color: #ffffff"><strong>/etc/clamsmtpd.conf</strong></span></li>
<li><span style="background-color: #ffffff"><strong>/etc/postfix/main.cf</strong></span></li>
<li><span style="background-color: #ffffff"><strong>/etc/postfix/master.cf</strong></span></li>
</ul>
<p>The first file to configure is the <strong>clamsmtpd.conf </strong>file. The configuration in this file is simple. Look for the lines:</p>
<p><em>OutAddress: 10025</em></p>
<p><em><em>127.0.0.1:10026</em></em></p>
<p>Change them to:</p>
<p><em>OutAddress: 10026</em></p>
<p><em><em>127.0.0.1:10025</em></em></p>
<p>That&#8217;s it for the <strong>clamsmtpd.conf </strong>file. Now let&#8217;s move on to the heavier configurations.</p>
<p>Open up the <strong>/etc/postfix/main.cf </strong>file. Scroll down to the bottom of this file and add the following:</p>
<p><em>content_filter = scan:127.0.0.1:10025</em></p>
<p><em>receive_override_options = no_address_mappings</em></p>
<p>Save that file and now move on over to the <strong>/etc/postfix/master.cf</strong> file. Again, scroll down to the bottom of this file and add the following:</p>
<p><code># AV scan filter (used by content_filter)<br />
scan      unix  -       -       n       -       16      smtp<br />
-o smtp_send_xforward_command=yes<br />
# For injecting mail back into postfix from the filter<br />
127.0.0.1:10026 inet  n -       n       -       16      smtpd<br />
-o content_filter=<br />
-o receive_override_options=no_unknown_recipient_checks,no_header_body_checks<br />
-o smtpd_helo_restrictions=<br />
-o smtpd_client_restrictions=<br />
-o smtpd_sender_restrictions=<br />
-o smtpd_recipient_restrictions=permit_mynetworks,reject<br />
-o mynetworks_style=host<br />
-o smtpd_authorized_xforward_hosts=127.0.0.0/8</code></p>
<p>Save that file.</p>
<p><strong>Restarting</strong></p>
<p>The first thing you need to do is restart Postfix with the command:</p>
<p><em>sudo /etc/init.d/postfix restart</em></p>
<p>Once that has restarted you need to restart clamsmtpd with the command:</p>
<p><em>sudo /etc/init.d/clamsmtpd restart</em></p>
<p>Now, if nothing has gone horribly wrong, you should have a virus protected Postfix mail server.</p>
<p><strong>Updating signatures</strong></p>
<p>You should never go without updating your virus signatures. This is critical for keeping your mail server virus-free as new viruses are created or old viruses mutate. Fortunately ClamAV has its own tool for this. You will need to go back to that terminal window and issue the command:</p>
<p><em>sudo freshclam</em></p>
<p>Which will update the signatures.</p>
<p>You might even add the <em>freshclam</em> command into the root users crontab for regular signature updates.</p>
<p><strong>Final thoughts</strong></p>
<p>Your Postfix mail server is getting better and stronger each day. Adding anti-virus is a critical step in the grand scheme of Postfix things. In our next addition to the Postfix series, we will add Spamassassin for anti-spam measures.</p>

	Tags: <a href="http://www.ghacks.net/tag/anti-virus/" title="anti virus" rel="tag">anti virus</a>, <a href="http://www.ghacks.net/tag/postfix/" title="Postfix" rel="tag">Postfix</a>, <a href="http://www.ghacks.net/tag/virus-definitions/" title="virus definitions" rel="tag">virus definitions</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2007/04/10/what-is-your-security-concept/" title="What is your Security Concept ? (April 10, 2007)">What is your Security Concept ?</a> (9)</li>
	<li><a href="http://www.ghacks.net/2007/01/01/test-your-anti-virus-program/" title="Test your Anti-virus program (January 1, 2007)">Test your Anti-virus program</a> (10)</li>
	<li><a href="http://www.ghacks.net/2009/10/26/stop-spam-in-postfix-with-spamassassin/" title="Stop SPAM in Postfix with Spamassassin (October 26, 2009)">Stop SPAM in Postfix with Spamassassin</a> (1)</li>
	<li><a href="http://www.ghacks.net/2007/01/11/secure-windows-xp/" title="Secure Windows XP (January 11, 2007)">Secure Windows XP</a> (0)</li>
	<li><a href="http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/" title="Mail relaying made simple with Postfix (September 23, 2009)">Mail relaying made simple with Postfix</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/25/add-antivirus-to-postfix-with-clamav/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Install Postfix for reliable email delivery</title>
		<link>http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/</link>
		<comments>http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/#comments</comments>
		<pubDate>Sat, 24 Oct 2009 15:43:36 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[Postfix]]></category>
		<category><![CDATA[ubuntu mail server]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17656</guid>
		<description><![CDATA[With your Ubuntu LAMP Server up and running (see my previous article &#8220;Installing Ubuntu Server 9.04&#8221; and &#8220;How to: install a LAMP server&#8220;) and you are ready to set it up as a mail server. For the longest time Sendmail was the de facto standard Linux mail server. But over time serious security issues drove [...]]]></description>
			<content:encoded><![CDATA[<p>With your Ubuntu LAMP Server up and running (see my previous article &#8220;<a title="Installing Ubuntu Server 9.04" href="http://www.ghacks.net/2009/09/03/installing-ubuntu-server-9-04/" target="_blank">Installing Ubuntu Server 9.04</a>&#8221; and &#8220;<a title="How to: Install a LAMP server" href="http://www.ghacks.net/2009/07/23/how-to-install-a-lamp-server/" target="_blank">How to: install a LAMP server</a>&#8220;) and you are ready to set it up as a mail server. For the longest time Sendmail was the de facto standard Linux mail server. But over time serious security issues drove users to a much more reliable, secure, and easier to configure alternative. That alternative is <a title="Postfix" href="http://www.postfix.org" target="_blank">Postfix</a>. Postfix is much easier to configure than Sendmail and it is easier to add third-party &#8220;modules&#8221; (such as Spamassassin and ClamAV &#8211; will be discussed in later articles).</p>
<p>In this article you are going to learn how to install Postfix on your already running Ubuntu Server 9.04. I am going to assume you have it networked and have a domain registered that you want to use. At the end of this article you should have a working mail server, ready for use.</p>
<p><span id="more-17656"></span></p>
<p>NOTE: For the purposes of this article, I will use the fake domain &#8220;www.ubuntumail.net&#8221;. You will want to use your domain in place of that.</p>
<p>The first step is to install the software necessary. Since you already have LAMP up and running all you will need to do is install Postfix and it&#8217;s dependencies. To do this open up a terminal and issue the following command:</p>
<p><em>sudo apt-get install postfix</em></p>
<p>The installation will not only install Postfix, but will start the Postfix daemon for you. You will most likely want to test this installation by running the old telnet test like so:</p>
<p><em>telnet localhost 25</em></p>
<p>You should see something like:<br />
<code>Trying 127.0.0.1...<br />
Connected to www.ubuntumail.net.<br />
Escape character is '^]'.<br />
220 localhost.localdomain ESMTP Postfix (Ubuntu)</code></p>
<p>If you do, success! Now you are ready to take care of the configuration steps.</p>
<p><strong>Configuration</strong></p>
<p>There is only one file you need to deal with in Postfix. That file is <strong>/etc/postfix/main.cf</strong>. There really isn&#8217;t much to configuring this file (for a basic installation &#8211; which is all we are dealing with right now).</p>
<p>To set your Postfix installation up for your domain you will want to open that file for editing like so:</p>
<p><em>sudo nano /etc/postfix/main.cf</em></p>
<p>The above command opens <strong>main.cf </strong>in the Nano editor. What you need to look for is this section:</p>
<p><code>myhostname = ubuntumail<br />
alias_maps = hash:/etc/aliases<br />
alias_database = hash:/etc/aliases<br />
myorigin = /etc/mailname<br />
mydestination = ubuntumail.net, ubuntumail, localhost.localdomain, localhost<br />
relayhost =<br />
#mynetworks = 127.0.0.0/8<br />
mynetworks = 127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128<br />
mailbox_command = procmail -a "$EXTENSION"<br />
mailbox_size_limit = 0<br />
recipient_delimiter = +<br />
inet_interfaces = all</code></p>
<p>As you can see, I have already configured the above section to work with our sample domain. You will need to go through the above section and insert your domain where you see ubuntumail.net. You will want to pay close attention to the <strong>mydestination</strong> line. As you can see that line contains:</p>
<p>ubuntumail.net, ubuntumail, localhost.localdomain</p>
<p>This helps to avoid mailloops in Postfix.</p>
<p>Some people also like to use the <strong>mydomain</strong> parameter, but since <strong>mydomain </strong>is taken from <strong>$myhostname </strong>by removing the first part (unless that would cause the domain to be a top-level domain) it can be redundant. If, however, your mail server serves your entire domain, you will need to use the <strong>mydomain</strong> parameter. For that you would insert:</p>
<p><code>mydomain = ubuntumail.net</code></p>
<p>at the top of the section shown above.</p>
<p>Once you have that configuration saved, restart Postfix with the command:</p>
<p><em>sudo /etc/init.d/postfix reload</em></p>
<p>To reload the mail server.</p>
<p><strong>Users</strong></p>
<p>As this is a Linux box, you will want to make sure you have a user created for every email address you need to serve up. So create your users with your favorite user creation tool. Since you are most likely installing on a Ubuntu Server (sans GUI), you will be using the <em>useradd </em>command. You can accomplish this with the command:</p>
<p><em>sudo useradd -m USERNAME</em></p>
<p>Where USERNAME is the actual username you want to use. Next you will need to give the user a password with the command:</p>
<p>sudo passwd USERNAME</p>
<p>Where USERNAME is the actual username you want to use. You will be prompted to enter the password twice.</p>
<p>After you have entered the users, you can then test the mail server by sending an email from an external source to see if it arrives. If there is a problem make sure the first place you look is <strong>/var/log/mail.err</strong>.</p>
<p><strong>Final thoughts</strong></p>
<p>At this point you should have a basic, working mail server. Postfix does make this task much more simple than did Sendmail. In my next article I will cover adding Spamassassin to your Postfix mail server to keep SPAM from getting in.</p>

	Tags: <a href="http://www.ghacks.net/tag/email/" title="Email" rel="tag">Email</a>, <a href="http://www.ghacks.net/tag/mail-server/" title="mail server" rel="tag">mail server</a>, <a href="http://www.ghacks.net/tag/postfix/" title="Postfix" rel="tag">Postfix</a>, <a href="http://www.ghacks.net/tag/ubuntu-mail-server/" title="ubuntu mail server" rel="tag">ubuntu mail server</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/10/26/stop-spam-in-postfix-with-spamassassin/" title="Stop SPAM in Postfix with Spamassassin (October 26, 2009)">Stop SPAM in Postfix with Spamassassin</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/05/19/quickly-check-mails-without-downloading-them/" title="Quickly check mails without downloading them (May 19, 2008)">Quickly check mails without downloading them</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/" title="Mail relaying made simple with Postfix (September 23, 2009)">Mail relaying made simple with Postfix</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/08/25/yahoo-mail-search-and-messenger-upgrades/" title="Yahoo Mail, Search And Messenger Upgrades (August 25, 2009)">Yahoo Mail, Search And Messenger Upgrades</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/09/11/yahoo-mail-integrates-drop-io-to-support-100-megabyte-attachments/" title="Yahoo Mail Integrates Drop.io To Support 100 Megabyte Attachments (September 11, 2009)">Yahoo Mail Integrates Drop.io To Support 100 Megabyte Attachments</a> (8)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Asset scanning with nmap and ndiff</title>
		<link>http://www.ghacks.net/2009/10/22/asset-scanning-with-nmap-and-ndiff/</link>
		<comments>http://www.ghacks.net/2009/10/22/asset-scanning-with-nmap-and-ndiff/#comments</comments>
		<pubDate>Thu, 22 Oct 2009 18:46:53 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[asset management]]></category>
		<category><![CDATA[ndiff]]></category>
		<category><![CDATA[network scans]]></category>
		<category><![CDATA[nmap]]></category>
		<category><![CDATA[port scanning]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17556</guid>
		<description><![CDATA[If you are in a small business or a larger enterprise you know you need to keep track of all those machines. Sure you could easily tag and record them as they go from the box to the desk, but that doesn&#8217;t always happen. And the larger the company the more likely something is able [...]]]></description>
			<content:encoded><![CDATA[<p>If you are in a small business or a larger enterprise you know you need to keep track of all those machines. Sure you could easily tag and record them as they go from the box to the desk, but that doesn&#8217;t always happen. And the larger the company the more likely something is able to get by you without you getting a complete record of the system. If that is the case you need some tool to help you ascertain what you have out there. Add to that the idea that we are more and more living in a homogeneous IT world, where more than one operating system might be living on your network.</p>
<p>Having a tool that can quickly, and regularly, take snapshots of your network landscape is critical to keeping tabs on your PCs. Of course you can shell out some budget dollars for a proprietary tool, but why bother when you can fire up a Linux machine and use the trusty Nmap tool for the job.</p>
<p>Nmap is a command line tool that rapidly scans a network gathering information about machines and ports. It is easy to use and flexible, making it perfect for the job of asset scanning. In this tutorial you will see how to set up a system that will regularly scan your network and create a report that can then be used to keep inventory of your networked machines.</p>
<p><span id="more-17556"></span></p>
<p><strong>Installing</strong></p>
<p>Before we get to the actual scanning we need to install a couple of applications. Since I am using a Ubuntu system, we&#8217;ll run the installation using <em>apt-get. </em>With some simple modifications, you can do the same on a fedora system. The two applications to install are: nmap and ndiff. We use ndiff to compare the results of scans. To install these applications open up a terminal window and issue the following command:</p>
<p><em>sudo apt-get install nmap ndiff</em></p>
<p>You will have to accept dependencies, at which point the two applications will install. Upon completion of the installation, you are ready to scan.</p>
<p><strong>Using nmap</strong></p>
<p>Nmap is actually a fairly powerful tool. If you issue the command <em>man nmap</em> you will see just how powerful this tool is. You can also see how many arguments you can use with Nmap as well as what each argument does. Fortunately I will show you a simple command you can issue to make this a bit easier.</p>
<p>I am going to illustrate how these tools work together by running an nmap scan on a small internal network. I will then scan the network after making a change to one machine and see if ndiff catches the change.</p>
<p><span style="background-color: #ffffff">The command for the scan is:</span></p>
<p><code>sudo nmap -n -PN 192.168.1.1/24 -O &gt; network_scan</code></p>
<p>I will then run that same scan after making the change with one alteration:</p>
<p><code>sudo nmap -n -PN 192.168.1.1/24 -O &gt; network2_scan<br />
<span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;background-color: #ffffff"> </span></code></p>
<p><code><span style="font-family: Georgia, 'Times New Roman', 'Bitstream Charter', Times, serif;background-color: #ffffff">The above commands will output to the files <strong>network_scan, </strong>and <strong>network2_scan<span style="font-weight: normal">.</span></strong></span></code></p>
<p>Once you have the two files you will compare them using the <em>ndiff</em> command like so:</p>
<p><em>ndiff -b network_scan -o network2_scan</em></p>
<p>The two options used are:</p>
<ul>
<li><span style="background-color: #ffffff">b &#8211; Baseline.</span></li>
<li><span style="background-color: #ffffff">o &#8211; Observed.</span></li>
</ul>
<p>You can think of Baseline as your control group.</p>
<div id="attachment_17592" class="wp-caption alignleft" style="width: 310px"><a rel="attachment wp-att-17592" href="http://www.ghacks.net/2009/10/22/asset-scanning-with-nmap-and-ndiff/results/"><img class="size-thumbnail wp-image-17592" src="http://www.ghacks.net/wp-content/uploads/2009/10/results-300x300.png" alt="Figure 1" width="300" height="300" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>The results of the command are shown in Figure 1.</p>
<p>The results show exactly what occurred in my network change. I shut down the machine associated with IP address 192.168.1.37.</p>
<p>Of course you could also get a much clearer picture of your network by combing through the results of the initial scan, but if you are looking for how your network topography has changed from scan to scan, using ndiff is the best way.</p>
<p>To see the full usage of both nmap and ndiff, take a look at the man pages. I will warn you, they are fairly complex. But this tutorial should give you a solid understanding of how the basics of the tools work.</p>

	Tags: <a href="http://www.ghacks.net/tag/asset-management/" title="asset management" rel="tag">asset management</a>, <a href="http://www.ghacks.net/tag/ndiff/" title="ndiff" rel="tag">ndiff</a>, <a href="http://www.ghacks.net/tag/network-scans/" title="network scans" rel="tag">network scans</a>, <a href="http://www.ghacks.net/tag/nmap/" title="nmap" rel="tag">nmap</a>, <a href="http://www.ghacks.net/tag/port-scanning/" title="port scanning" rel="tag">port scanning</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/08/11/port-scanning-networking-tool-superscan/" title="Port Scanning Networking Tool SuperScan (August 11, 2008)">Port Scanning Networking Tool SuperScan</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/08/09/map-your-network-with-zenmap/" title="Map your network with Zenmap (August 9, 2009)">Map your network with Zenmap</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/22/asset-scanning-with-nmap-and-ndiff/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Troubleshoot networking problems with GNOME&#8217;s Nettools</title>
		<link>http://www.ghacks.net/2009/10/18/troubleshoot-networking-problems-with-gnomes-nettools/</link>
		<comments>http://www.ghacks.net/2009/10/18/troubleshoot-networking-problems-with-gnomes-nettools/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 14:40:44 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[troubleshooting]]></category>
		<category><![CDATA[finger]]></category>
		<category><![CDATA[lookup]]></category>
		<category><![CDATA[netstat]]></category>
		<category><![CDATA[ping]]></category>
		<category><![CDATA[port scan]]></category>
		<category><![CDATA[traceroute]]></category>
		<category><![CDATA[whois]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17415</guid>
		<description><![CDATA[How many times have you had networking issues and not known exactly where to start? With Linux there are so many tools you can choose from. Add to that the choice between console and GUI and you have the making for a rather confusing start. Most new Linux users (and many of those who have [...]]]></description>
			<content:encoded><![CDATA[<p>How many times have you had networking issues and not known exactly where to start? With Linux there are so many tools you can choose from. Add to that the choice between console and GUI and you have the making for a rather confusing start. Most new Linux users (and many of those who have used Linux for a while) have no idea how to use the whois, finger, Port Scanning, and other helpful networking tools. But it doesn&#8217;t have to be that way.</p>
<p>With the help of the GNOME Nettools you can have a sweet collection of powerful tools that will help you to troubleshoot your network in no time. And this collection of tools is all wrapped up into a user-friendly graphical interface. So without any further adieu, let&#8217;s take a look at this powerful suite of tools.</p>
<p><span id="more-17415"></span><strong>Features</strong></p>
<p>The GNOME Nettools includes the following tools:</p>
<ul>
<li>Devices: Have all information about your networking devices at your fingertips.</li>
<li>Ping: Get detailed information using the ping tool.</li>
<li>Netstat: Get detailed information about your routing table, active network services, and multicast information about your machine.</li>
<li>Traceroute: Trace the path to a network host.</li>
<li>Port scan: Scan for open ports on servers and desktops.</li>
<li>Lookup: Get detailed information about a server.</li>
<li>Finger: Lookup a users finger entry.</li>
<li>Whois: Lookup a whois entry for a domain.</li>
</ul>
<p>GNOME Nettools also features:</p>
<ul>
<li>Copy information to text report.</li>
<li>Help system.</li>
<li>Drop downs for previously entered addresses/domains.</li>
<li>Easy to use GUI.</li>
</ul>
<p>Now let&#8217;s take a look and see how this tool is used.</p>
<p><strong>Usage</strong></p>
<div id="attachment_17417" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17417" href="http://www.ghacks.net/2009/10/18/troubleshoot-networking-problems-with-gnomes-nettools/nettools_devices/"><img class="size-thumbnail wp-image-17417" src="http://www.ghacks.net/wp-content/uploads/2009/10/nettools_devices-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>As you can see there has been no mention of installation. That is because GNOME Nettools is installed by default. In order to start up the tool you only have to go to the Administration sub-menu of the System menu. Once you have fired up the tool you will be greeted with main window at the Devices tab. This tab is where you gather the information about your installed networking devices. As you can see (In Figure 1) there is plenty of detailed information about my default eth0 interface. You can switch this to display information about any connected internet device you have on the machine by using the Interface drop-down.</p>
<p>The next tab, Ping, is where you can actually start troubleshooting networking issues. Ping is almost always one of the first tools I use, but I generally use it in command line form. Since most new Linux users prefer to not use the command line &#8211; you can still get your ping on with Nettools. Click on the Ping tab to reveal how the Ping tool works (see Figure 2).</p>
<div id="attachment_17419" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-17419" href="http://www.ghacks.net/2009/10/18/troubleshoot-networking-problems-with-gnomes-nettools/nettools_ping-2/"><img class="size-thumbnail wp-image-17419" src="http://www.ghacks.net/wp-content/uploads/2009/10/nettools_ping1-300x300.png" alt="Figure 2" width="180" height="180" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>By default the Nettools Ping tool will be configured for a limited 5 requests. You can up that number or even change it to an unlimited number if you need. In Figure 2 I have sent 5 ping requests to an internal server and received 100% sucess on my packets. I know this server is at least responding.</p>
<p>The other tools will all work exactly as you would expect them. One thing that is nice is as a tool is working you can switch over to another tool without disrupting the original tools task. This is especially nice when running a traceroute that can take a while (see Figure 3).</p>
<div id="attachment_17422" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17422" href="http://www.ghacks.net/2009/10/18/troubleshoot-networking-problems-with-gnomes-nettools/nettools_traceroute/"><img class="size-thumbnail wp-image-17422" src="http://www.ghacks.net/wp-content/uploads/2009/10/nettools_traceroute-300x300.png" alt="Figure 3" width="180" height="180" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>The traceroute tool will follow a path, hop for hop, to a destination you enter. In Figure 3 I ran a traceroute on www.google.com which ended before it reached its goal. This, of course, was only to show you the output of the traceroute (as there is not much I can personally do if my route to www.google.com is stopped outside of the boundaries of my network or my service providers network. But it gives you an idea of where the route stops. If this were a corporate issue, and the destination was one I had to reach, I would know precisely where the last known successful hop was (in the case of Figure 3 &#8211; after the 65.222.158.82 address).</p>
<p>I can then use the Whois tool to discover who is connected to that address. By clicking on the Whois tab and then entering the IP address above I receive the following information:</p>
<p><code>MCI Communications Services, Inc. d/b/a Verizon Business UUNET65 (NET-65-192-0-0-1)<br />
65.192.0.0 - 65.223.255.255<br />
SPLICE COMMUNICATIONS, INC. UU-65-222-158-80-D4 (NET-65-222-158-80-1)<br />
65.222.158.80 - 65.222.158.87</code></p>
<p>If www.google.com were a critical address for me (and my company) to reach for work (or a host of my company&#8217;s web site) I could at least contact the owner of this domain.</p>
<p><strong>Final thoughts</strong></p>
<p>As you would expect, the rest of the Nettools tools work in a very similar fashion than their command line counter parts. The only difference? You don&#8217;t have to open up a terminal window to use them. No commands to remember, no commands to type. Just easy network analysis, with the help of a user-friendly GUI tool.</p>

	Tags: <a href="http://www.ghacks.net/tag/finger/" title="finger" rel="tag">finger</a>, <a href="http://www.ghacks.net/tag/lookup/" title="lookup" rel="tag">lookup</a>, <a href="http://www.ghacks.net/tag/netstat/" title="netstat" rel="tag">netstat</a>, <a href="http://www.ghacks.net/tag/ping/" title="ping" rel="tag">ping</a>, <a href="http://www.ghacks.net/tag/port-scan/" title="port scan" rel="tag">port scan</a>, <a href="http://www.ghacks.net/tag/traceroute/" title="traceroute" rel="tag">traceroute</a>, <a href="http://www.ghacks.net/tag/whois/" title="whois" rel="tag">whois</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/03/16/ways-to-check-if-a-website-is-really-down/" title="Ways to check if a website is really down (March 16, 2008)">Ways to check if a website is really down</a> (12)</li>
	<li><a href="http://www.ghacks.net/2009/02/18/internet-maniac-networking-software/" title="Internet Maniac Networking Software (February 18, 2009)">Internet Maniac Networking Software</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/05/11/etoolz-network-toolset/" title="eToolz Network Toolset (May 11, 2008)">eToolz Network Toolset</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/06/30/who-shares-your-shared-hosting/" title="Who shares your shared hosting? (June 30, 2009)">Who shares your shared hosting?</a> (5)</li>
	<li><a href="http://www.ghacks.net/2009/01/04/webhopper-internet-traceroute-tool/" title="WebHopper Internet Traceroute Tool (January 4, 2009)">WebHopper Internet Traceroute Tool</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/18/troubleshoot-networking-problems-with-gnomes-nettools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Five handy secure shell tips and tricks</title>
		<link>http://www.ghacks.net/2009/10/17/five-handy-secure-shell-tips-and-tricks/</link>
		<comments>http://www.ghacks.net/2009/10/17/five-handy-secure-shell-tips-and-tricks/#comments</comments>
		<pubDate>Sat, 17 Oct 2009 17:47:49 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[linux shell]]></category>
		<category><![CDATA[secure shell]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17386</guid>
		<description><![CDATA[I use secure shell a LOT, every day. So much so that I often take for granted how important this tool is. Not only does it allow me to log into remote machines to handle management of said machine, it can do other things as well &#8211; X tunneling being one of the most useful features. But [...]]]></description>
			<content:encoded><![CDATA[<p>I use secure shell a LOT, every day. So much so that I often take for granted how important this tool is. Not only does it allow me to log into remote machines to handle management of said machine, it can do other things as well &#8211; X tunneling being one of the most useful features. But for many users ssh only serves as a means to log in, do a few command-line tasks, and log out. It doesn&#8217;t (and shouldn&#8217;t) have to be that way.</p>
<p>With Secure Shell there are a number of ways to use (and configure) this tool to make it more useful and more secure. In this article  you will learn five different (and handy) secure shell tips to make sure your ssh usage is as good as it can be. And for some basic secure shell knowledge, check out my article &#8220;<a title="Get to know Linux: Secure Shell" href="http://www.ghacks.net/2009/02/17/get-to-know-linux-secure-shell/" target="_blank">Get to know Linux: Secure shell</a>&#8220;.</p>
<p><span id="more-17386"></span><strong>Password-less logon</strong></p>
<p>Have have dealt with this before (as a side note), but wanted to re-iterate this process. Because I use ssh so much I get tired of having to enter passwords constantly. Now I will preface this by saying only do this on a network you trust. Yes you will be logging into ssh with a certificate, and that certificate will be on your machine, but you don&#8217;t want to employ this method on a network that can not be trusted. With that in mind, here are the steps for setting this up.</p>
<p>On the local machine issue the command:</p>
<p><em>ssh-keygen -t dsa</em></p>
<p>This command will generate a public key that will be then copied to your server. During this creation process you will be asked for a password &#8211; just press enter to use a blank password for this. You will have to verify the password, so hit enter again. )</p>
<p>With the key created you have to copy it to the server you want to ssh into. To do this enter the command:</p>
<p><em>ssh-copy-id -i .ssh/id_dsa.pub username@destination</em></p>
<p>Where <em>username</em> is the username you will be logging into on the remote server and <em>destination</em> is the IP address of the remote server.</p>
<p>Now when you go to secure shell into that remote machine you will not have to enter a password.</p>
<p><strong>Block root login</strong></p>
<p>Although secure shell is a secure means of logging into your server, you do not want to allow root access (for obvious reasons). Blocking root access is simple. Open up the <strong>/etc/ssh/sshd_config</strong> file and look for this line:</p>
<p><em>PermitRootLogin</em></p>
<p>and make sure it is set to &#8220;no&#8221; (no quotes). So the complete line will read:</p>
<p><em>PermitRootLogin no</em></p>
<p>Once you have saved that file, restart the ssh daemon with the command:</p>
<p><em>sudo /etc/init.d/ssh restart</em></p>
<p>Now the root user can no longer log in remotely via ssh.</p>
<p><strong>Enable X tunneling</strong></p>
<p>Secure shell is made even more powerful when you can run a remote X application on your local machine. And what is better is that it&#8217;s not difficult at all. In order to allow X tunneling you will first need to open up the <strong>/etc/ssh/sshd_config </strong>file and search for this line:</p>
<p><em>X11Forwarding</em></p>
<p>and make sure it looks like:</p>
<p><em>X11Forwarding yes</em></p>
<p>Once that is set save the file, restart sshd, and you are ready to tunnel and X Windows application through ssh. To accomplish this you have to add the <em>-X </em>flag to your secure shell command like this:</p>
<p><em>ssh -v -l USERNAME IP_ADDRESS -X</em></p>
<p>Where USERNAME is the username you want to log in with and IP_ADDRESS is the actual IP address of the machine you are logging into.</p>
<p><strong>Final thoughts</strong></p>
<p>There are so many cool tricks and tips with secure shell, but the above three are, in my opinion, the most helpful. Have you come across a helpful ssh tip you&#8217;d like to share? Or are you looking for a particular behavior out of secure shell? If so. share with your fellow Ghacks readers.</p>

	Tags: <a href="http://www.ghacks.net/tag/linux/" title="Linux" rel="tag">Linux</a>, <a href="http://www.ghacks.net/tag/linux-shell/" title="linux shell" rel="tag">linux shell</a>, <a href="http://www.ghacks.net/tag/secure-shell/" title="secure shell" rel="tag">secure shell</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/02/18/linux-command-line-fu/" title="Linux Command Line Fu (February 18, 2009)">Linux Command Line Fu</a> (5)</li>
	<li><a href="http://www.ghacks.net/2009/02/17/get-to-know-linux-secure-shell/" title="Get To Know Linux: Secure Shell (February 17, 2009)">Get To Know Linux: Secure Shell</a> (4)</li>
	<li><a href="http://www.ghacks.net/2008/02/07/yoggie-pico-personal-mobile-security-computer/" title="Yoggie PICO Personal Mobile Security Computer (February 7, 2008)">Yoggie PICO Personal Mobile Security Computer</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/07/widgets-for-linux-superkaramba/" title="Widgets for Linux: SuperKaramba (December 7, 2006)">Widgets for Linux: SuperKaramba</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/17/five-handy-secure-shell-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>P2P-like downloads with Multiget</title>
		<link>http://www.ghacks.net/2009/10/12/p2p-like-downloads-with-multiget/</link>
		<comments>http://www.ghacks.net/2009/10/12/p2p-like-downloads-with-multiget/#comments</comments>
		<pubDate>Mon, 12 Oct 2009 21:18:49 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[download threads]]></category>
		<category><![CDATA[downloads]]></category>
		<category><![CDATA[iso images. Ubuntu]]></category>
		<category><![CDATA[wget]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17198</guid>
		<description><![CDATA[As a old-school Linux user I am quick to use the command line before any other tool. One of those tools I use almost daily is wget. Wget is a command-line only tool that downloads files from remote locations easily and quickly. Wget is a great tool to have in your toolbox, but for many [...]]]></description>
			<content:encoded><![CDATA[<p>As a old-school Linux user I am quick to use the command line before any other tool. One of those tools I use almost daily is wget. Wget is a command-line only tool that downloads files from remote locations easily and quickly. Wget is a great tool to have in your toolbox, but for many people it falls short in a couple of key features. One big feature is no GUI. Yes I realise for many that is NOT a selling point. Even though wget is about as simple a command as you can get, it is, after all, a command. The other feature is multi-threading. Although wget can do cool things like run in the background (without even being logged in), it will download a file with a single thread.</p>
<p>For both of these needs there is another tool that works as a pretty impressive front-end for the wget command. That tool &#8211; <a title="Multget" href="http://multiget.sourceforge.net/" target="_blank">Multiget</a>. Now, before you assume Multiget is a Linux-only tool, it&#8217;s not. Multiget can be used in Linux, Windows, OS X, and the BSDs. This article, however, is about using Multiget in Linux (in particular &#8211; Ubuntu).</p>
<p><span id="more-17198"></span><strong>Features</strong></p>
<p>Multiget offers the following features:</p>
<ul>
<li>Multi-task/multi-thread/multi-server usage.</li>
<li>User-friendly interface (resembling Flashget).</li>
<li>Multiple language support.</li>
<li>Proxy support.</li>
<li>Extension ignoring/capture.</li>
<li>FTP anonymous pass.</li>
<li>Panel icon.</li>
</ul>
<p><strong>Installation</strong></p>
<p>Fortunately, for Ubuntu users, Multiget can be found in the Universe repository. All you have to do for installation is:</p>
<ol>
<li>Open up your Add/Remove Software tool.</li>
<li>Search for &#8220;multiget&#8221; (no quotes).</li>
<li>Select the results.</li>
<li>Apply to install.</li>
</ol>
<p>That&#8217;s it.</p>
<p><strong>Usage</strong></p>
<div id="attachment_17200" class="wp-caption alignleft" style="width: 310px"><a rel="attachment wp-att-17200" href="http://www.ghacks.net/2009/10/12/p2p-like-downloads-with-multiget/multiget_main/"><img class="size-thumbnail wp-image-17200" src="http://www.ghacks.net/wp-content/uploads/2009/10/multiget_main-300x300.png" alt="Figure 1" width="300" height="300" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>To start up Multiget go to the Internet sub-menu of the Applications menu and you will find the Multiget entry. Open that and the main window will start up (see Figure 1). The first step in downloading a file should be fairly obvious &#8211; you hit the the New Task button (denoted by the &#8220;+&#8221; symbol). Simple.</p>
<p>When you hit the New Task button  a new window will appear that asks for certain information. At least in the Linux release of Multiget, you might find a portion of this window that might stump you. As you can see (in Figure 2) in the Basic Info section you have four bits of information to add. The MAIN URL section is obvious &#8211; you copy and paste a URl into the this section. But wait a minute &#8211; you will find, if copying your URL from your default web browser, that as soon as you right-click a URL, and select Copy Link Location that URL will appear in the MAIN URL section and then automatically moved down to the Mirrors section. This is actually the only means of getting an address into the Mirrors section.</p>
<div id="attachment_17205" class="wp-caption alignright" style="width: 310px"><a rel="attachment wp-att-17205" href="http://www.ghacks.net/2009/10/12/p2p-like-downloads-with-multiget/multiget_new_task/"><img class="size-thumbnail wp-image-17205" src="http://www.ghacks.net/wp-content/uploads/2009/10/multiget_new_task-300x300.png" alt="Figure 2" width="300" height="300" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>With that in mind, let&#8217;s use a few mirrors to quickly download the ISO image of the latest release of Ubuntu. To do this go to the <a title="Karmic Koala" href="http://www.ubuntu.com/testing/karmic/beta" target="_blank">Ubuntu Karmic page page</a>. The first thing you will do is go to the main download page, right click the download link, and click Copy Link Location. Now go back to the main download page and select a mirror and do the same thing. You can add as many mirrors as you like &#8211; understanding the more mirrors you add, the faster the download will happen.</p>
<p>Once you have all of your URLs added (make sure you still have a URL in the MAIN URL section) configure the rest of the window (you should configure the SaveTo section at least) and then click OK.</p>
<p>As your file is downloading click on the Progress section in the bottom and you will see how the pieces of the download are coming together. As you can see (in Figure 3) I have five threads running to download the Ubuntu 9.10 ISO image. You can also see the overall progress bar as the green bar starting right under the icon toolbar.</p>
<div id="attachment_17211" class="wp-caption alignleft" style="width: 310px"><a rel="attachment wp-att-17211" href="http://www.ghacks.net/2009/10/12/p2p-like-downloads-with-multiget/multiget_downloading/"><img class="size-thumbnail wp-image-17211" src="http://www.ghacks.net/wp-content/uploads/2009/10/multiget_downloading-300x300.png" alt="Figure 3" width="300" height="300" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>During an active session you can increase or decrease the amount of threads given to a download. This, of course, can speed up your download. Naturally if you give too many threads to a download you might see your overall performance of either your machine or your general network connection degrade. At this point you can decrease the number of threads given to a download. To increase or decrease the number of threads go to the Task menu and select the appropriate entry.</p>
<p>During the download you can click on the Running section to see the information of your download. You can also pause your download by clicking the Pause button.</p>
<p><strong>Final thoughts</strong></p>
<p>Multiget is an outstanding tool to download large files using muliple mirrors and threads. As well it is just an overall outstanding front end for the wget command.</p>

	Tags: <a href="http://www.ghacks.net/tag/download-threads/" title="download threads" rel="tag">download threads</a>, <a href="http://www.ghacks.net/tag/downloads/" title="downloads" rel="tag">downloads</a>, <a href="http://www.ghacks.net/tag/iso-images-ubuntu/" title="iso images. Ubuntu" rel="tag">iso images. Ubuntu</a>, <a href="http://www.ghacks.net/tag/wget/" title="wget" rel="tag">wget</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/03/26/what%e2%80%99s-your-take-on-downloading/" title="What’s Your Take on Downloading? (March 26, 2008)">What’s Your Take on Downloading?</a> (17)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/12/p2p-like-downloads-with-multiget/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Backup your Linux box with rsync</title>
		<link>http://www.ghacks.net/2009/10/11/backup-your-linux-box-with-rsync/</link>
		<comments>http://www.ghacks.net/2009/10/11/backup-your-linux-box-with-rsync/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 14:13:15 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[automated backup]]></category>
		<category><![CDATA[backup]]></category>
		<category><![CDATA[linux backup]]></category>
		<category><![CDATA[secure shell]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17157</guid>
		<description><![CDATA[In this Linux backup series we have taken a look at Flyback (&#8221;Quick and easy backups with Flyback&#8220;), Backerupper (&#8221;Simple gui backup tool Backerupper&#8220;), and Back In Time (&#8221;Linux Back In Time: Backup made easy&#8220;). But what Linux series would be complete without a command line entry? Not this one.
There is one thing that most [...]]]></description>
			<content:encoded><![CDATA[<p>In this Linux backup series we have taken a look at Flyback (&#8221;<a title="Flyback" href="http://www.ghacks.net/2009/10/08/quick-and-easy-backups-with-flyback/" target="_blank">Quick and easy backups with Flyback</a>&#8220;), Backerupper (&#8221;<a title="Backerupper" href="http://www.ghacks.net/2009/10/09/simple-gui-backup-tool-backerupper/" target="_blank">Simple gui backup tool Backerupper</a>&#8220;), and Back In Time (&#8221;<a title="Back In Time" href="http://www.ghacks.net/2009/10/10/linux-back-in-time-backup-made-easy/" target="_blank">Linux Back In Time: Backup made easy</a>&#8220;). But what Linux series would be complete without a command line entry? Not this one.</p>
<p>There is one thing that most Linux backup tools have in common and that is their underlying technologies. In most cases one of the tools that make the GUI backup tools possible is the venerable rsync. Rsync is an incredibly fast and lightweight file copy tool that can not only copy files to and from a local machine, it can also copy over a network connection &#8211; which makes rsync an ideal candidate for user-generated backup scripts or cron jobs.</p>
<p>In this tutorial you will learn how easy it is to use rysnc to not only back up specified directories to an external usb drive, but also to backup over a network connection via ssh.</p>
<p><span id="more-17157"></span><strong>Command structure</strong></p>
<p>The structure of the rsync command is:</p>
<p>rsync [OPTIONS] <strong>SOURCE</strong> <em>DESTINATION</em></p>
<p>Where SOURCE is the location of the directory to be backed up and DESTINATION is where the backup will be placed.</p>
<p>Now the structure of the command changes when you are employing a network facility such as ssh. At that point the command structure would look like:</p>
<p>rsync [OPTIONS] ssh <strong>SOURCE </strong><em>user@destination:/directory</em></p>
<p>Where <em>user </em>is the user name on the remote machine, <em>destination</em> would be either an IP address or domain, and <em>/directory</em> is the explicit path to the directory you want to back up to.</p>
<p><strong>Usage</strong></p>
<p>For the first example we are going to backup the directory <strong>/home/jlwallen/Documents</strong> to the directory <strong>/media/disk/BACKUPS</strong>. This destination is a directory located on an external USB drive obviously mounted to <strong>/media/disk</strong>. The command for this backup will be:</p>
<p><code>rsync -avh /home/jlwallen/Documents /media/disk/BACKUPS</code></p>
<p>This is where we run into our first &#8220;gotcha&#8221;. What happens with the above command is that any subdirectory in <strong>/home/jlwallen/Documents</strong> will be created on <strong>/media/disk/BACKUPS</strong>. So if you want to create a similar directory structure on the destination you should first create a parent directory similar to that of the source. So before you run the rsync command issue this command:</p>
<p><em>mkdir /media/disk/BACKUPS/Documents</em></p>
<p>The new rsync command would be:</p>
<p><code>rsync -avh /home/jlwallen/Documents /media/disk/BACKUPS/Documents</code></p>
<p>The options used in the above command are:</p>
<ul>
<li>a: Archive mode</li>
<li>v: Verbose mode</li>
<li>h: Output in human readable format.</li>
</ul>
<p>Now let&#8217;s backup the same source to a remote location with the help of secure shell. It will help your cause to first make sure you can log into the remove machine via ssh. Once you have that working you are ready to backup. Using our same example we are going to backup to user jlwallen at the IP address 192.168.1.10 to the directory <strong>/home/jlwallen/BACKUPS/Documents</strong>. To do this the command would look like:</p>
<p><code>rsync -avhe ssh /home/jlwallen/Documents jlwallen@192.168.1.10:/home/jlwallen/BACKUPS/Documents</code></p>
<p>The added option is e which allows you to specify the remote shell to use.</p>
<p>You will be prompted for the remote users&#8217; password and then the coping will begin. But what if you don&#8217;t want to have to use a password? If you are wanting to set up automated, remote backups you will have to allow this process to happen without entering a password. To do this you have to create an SSH key without a password. Here are the steps for this:</p>
<p>create an ssh key on the source machine with the command:</p>
<p><em>ssh-keygen -t dsa</em></p>
<p>Press enter when prompted for a password.</p>
<p>Once the key is created copy that key to the destination key with the following command:</p>
<p><code>ssh-copy-id -i .ssh/id_dsa.pub username@destination</code></p>
<p>Where username is the user on the remote machine and destination is the IP or domain of the remote machine.</p>
<p>Now rsync copying can be done without having to enter a password.</p>
<p><strong>Final thoughts</strong></p>
<p>The nice thing about this setup is you can now use rsync to create a cron job for backup automation. Rsync is an incredibly flexible and reliable means for backing up your directories and files. It should be since it is the foundation that so many other backup tools were based on.</p>

	Tags: <a href="http://www.ghacks.net/tag/automated-backup/" title="automated backup" rel="tag">automated backup</a>, <a href="http://www.ghacks.net/tag/backup/" title="backup" rel="tag">backup</a>, <a href="http://www.ghacks.net/tag/linux-backup/" title="linux backup" rel="tag">linux backup</a>, <a href="http://www.ghacks.net/tag/secure-shell/" title="secure shell" rel="tag">secure shell</a>, <a href="http://www.ghacks.net/tag/ssh/" title="ssh" rel="tag">ssh</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/02/17/get-to-know-linux-secure-shell/" title="Get To Know Linux: Secure Shell (February 17, 2009)">Get To Know Linux: Secure Shell</a> (4)</li>
	<li><a href="http://www.ghacks.net/2007/02/17/zip-encrypt-ftp-backups/" title="Zip Encrypt Ftp Backups (February 17, 2007)">Zip Encrypt Ftp Backups</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/10/03/yadis-backup-software/" title="Yadis! Backup Software (October 3, 2009)">Yadis! Backup Software</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/04/24/windows-backup-software-backup-maker/" title="Windows Backup Software: Backup Maker (April 24, 2009)">Windows Backup Software: Backup Maker</a> (18)</li>
	<li><a href="http://www.ghacks.net/2008/10/02/windows-backup-software-deltacopy/" title="Windows Backup Software DeltaCopy (October 2, 2008)">Windows Backup Software DeltaCopy</a> (11)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/11/backup-your-linux-box-with-rsync/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Install and use Ubuntu One</title>
		<link>http://www.ghacks.net/2009/10/06/install-and-use-ubuntu-one/</link>
		<comments>http://www.ghacks.net/2009/10/06/install-and-use-ubuntu-one/#comments</comments>
		<pubDate>Tue, 06 Oct 2009 01:36:47 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Desktop Manager]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Online Services]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[file syncing]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[Ubuntu One]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=16963</guid>
		<description><![CDATA[Recently I previewed the up and coming release of Ubuntu, Karmic Koala (&#8221;Ubuntu Karmic Koala Preview&#8220;.) In that article I covered some of the new features in the upcoming release. Once of those features is the new Ubuntu One. Ubuntu One is much like the familar DropBox that people of nearly all platforms enjoy. Ubuntu [...]]]></description>
			<content:encoded><![CDATA[<p>Recently I previewed the up and coming release of Ubuntu, Karmic Koala (&#8221;<a title="Karmic Koala Preview" href="http://www.ghacks.net/2009/10/04/ubuntu-karmic-koala-preview/" target="_blank">Ubuntu Karmic Koala Preview</a>&#8220;.) In that article I covered some of the new features in the upcoming release. Once of those features is the new <a title="Ubuntu One" href="http://one.ubuntu.com" target="_blank">Ubuntu One</a>. Ubuntu One is much like the familar DropBox that people of nearly all platforms enjoy. Ubuntu One allows you to share and sync files between Ubuntu desktops. But don&#8217;t think you have to wait until 9.10 is released to enjoy Ubuntu One. If you are enjoying a 9.04 release, you can certainly take advantage of this outstanding service.</p>
<p>Much like DropBox, with Ubuntu One you do have to sign up for a service. And, as I mentioned in the previous article, Ubuntu One has two levels:</p>
<ul>
<li>Free: The free account offers 2 Gigs of storage space.</li>
<li>Paid: The paid account offers you 50 Gigs of storage space for $10.00 USD per month.</li>
</ul>
<p>Once you have signed up with an account, you can then install the client, and finally enjoy all the syncing between Ubuntu computers you need. In this article you will see just how to install the client and begin using Ubuntu One.</p>
<p><span id="more-16963"></span><strong>Signing up</strong></p>
<p>Before we get to the installation process, we must first visit the sign up process. It&#8217;s actually quite easy. Go to the <a title="Ubuntu One Plans" href="https://one.ubuntu.com/plans/" target="_blank">Ubuntu One Plan page</a> and select your plan. Once you have signed up for your plan, you then can proceed to the installation process.</p>
<p><strong>Installation</strong></p>
<p>After you have signed up you can then install the software. I will assume you are using Ubuntu 9.04 for this installation. The first thing you need to do is make sure your 9.04 is up to date. So run the Update Manager (found in the Administration sub-menu of the System menu). Once that is done you need to add the correct repositories to your <strong>/etc/apt/sources.list </strong>file. There is a very simple way to add these repositories to your sources file. If you click on this link allow GDebi to install the .deb file which will create a file in <strong>/etc/apt/sources.list.d </strong>called ubuntuone-beta-sources.list with the following contents:</p>
<p><code># Ubuntu One Beta PPA sources<br />
deb http://ppa.launchpad.net/ubuntuone/beta/ubuntu jaunty main<br />
deb-src http://ppa.launchpad.net/ubuntuone/beta/ubuntu jaunty main</code></p>
<p>Or you could add the above code to your <strong>/etc/apt/sources.list</strong> file.</p>
<p>I would suggest going with the automatic method, because it will also add the GPG key for you.</p>
<p>Once you have done that you can open up Synaptic (Not the Add/Remove Software tool) with the command <em>sudo synaptic</em> and follow these steps:</p>
<ol>
<li>Search for &#8220;<em>ubuntuone-client-gnome&#8221; </em>(No quotes).</li>
<li>Accept all of the dependencies.</li>
<li>Click Apply to install.</li>
</ol>
<p>Once installed you fill find the Ubuntu One entry in the Internet sub-menu of the Applications menu.</p>
<p><strong>Using Ubuntu One</strong></p>
<div id="attachment_16966" class="wp-caption alignleft" style="width: 352px"><a rel="attachment wp-att-16966" href="http://www.ghacks.net/2009/10/06/install-and-use-ubuntu-one/ubuntu_one_prefs/"><img class="size-full wp-image-16966" src="http://www.ghacks.net/wp-content/uploads/2009/10/ubuntu_one_prefs.png" alt="Figure 1" width="342" height="299" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>When you start Ubuntu One for the first time it will also start your browser to the Ubuntu One page. From this page you will need to create an account or sign in to your account. After you sign in you will then have to add the computer you are using to the account. You can add as many accounts as you need. After you add the computer the Ubuntu One icon residing in your GNOME panel will appear, show your files being updated (if there are any), and then the icon will disappear. If you want the icon to remain on the panel you just need to start the application again where you can then configure the icon to appear at all times (see Figure 1).</p>
<p>Here you can also configure Ubuntu One to start upon login as well as limit bandwidth usage.</p>
<p>If you find that the Ubuntu One icon does not show up after the initial sync, make sure you have it set up to connect automatically on start,  log out, and then log back in. You should then see the Ubuntu One icon in your panel (see Figure 2).</p>
<div id="attachment_16969" class="wp-caption alignright" style="width: 332px"><a rel="attachment wp-att-16969" href="http://www.ghacks.net/2009/10/06/install-and-use-ubuntu-one/ubuntuone_icon/"><img class="size-full wp-image-16969" src="http://www.ghacks.net/wp-content/uploads/2009/10/ubuntuone_icon.png" alt="Figure 2" width="322" height="32" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>The Ubuntu One icon you see in Figure 2 is the second from the left (between the Google Desktop icon and the DropBox icon).</p>
<p>You are ready to use Ubuntu One. You will find a new directory created in your ~/ directory called <strong>Ubuntu One</strong>. Any file you place in this folder will be sync&#8217;d with your Ubuntu One account. As soon as you add a file to this folder you will see it automatically start to sync with your Ubuntu One account.</p>
<p><strong>Final thoughts</strong></p>
<p>Ubuntu One certainly one-ups DropBox for simplicity. This tool will make using Ubuntu on the business level all the more easier. You will be able to easily sync all of your files between home and work. Give Ubuntu One a try.</p>

	Tags: <a href="http://www.ghacks.net/tag/dropbox/" title="dropbox" rel="tag">dropbox</a>, <a href="http://www.ghacks.net/tag/file-syncing/" title="file syncing" rel="tag">file syncing</a>, <a href="http://www.ghacks.net/tag/ubuntu/" title="ubuntu" rel="tag">ubuntu</a>, <a href="http://www.ghacks.net/tag/ubuntu-one/" title="Ubuntu One" rel="tag">Ubuntu One</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/10/04/ubuntu-karmic-koala-preview/" title="Ubuntu Karmic Koala preview (October 4, 2009)">Ubuntu Karmic Koala preview</a> (23)</li>
	<li><a href="http://www.ghacks.net/2008/09/14/dropbox-is-available-for-everyone/" title="DropBox Is Available For Everyone (September 14, 2008)">DropBox Is Available For Everyone</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/10/30/with-ubuntu-9-10-arrives-wubi-9-10/" title="With Ubuntu 9.10 Arrives Wubi 9.10 (October 30, 2009)">With Ubuntu 9.10 Arrives Wubi 9.10</a> (2)</li>
	<li><a href="http://www.ghacks.net/2006/12/20/why-you-should-switch-your-parents-pc-to-ubuntu/" title="Why you should switch your parents pc to ubuntu (December 20, 2006)">Why you should switch your parents pc to ubuntu</a> (20)</li>
	<li><a href="http://www.ghacks.net/2009/04/02/which-ubuntu-derivative-is-right-for-you/" title="Which Ubuntu Derivative Is Right For You? (April 2, 2009)">Which Ubuntu Derivative Is Right For You?</a> (16)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/06/install-and-use-ubuntu-one/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Use this iptables script for Web/Mail server security</title>
		<link>http://www.ghacks.net/2009/10/03/use-this-iptables-script-for-webmail-server-security/</link>
		<comments>http://www.ghacks.net/2009/10/03/use-this-iptables-script-for-webmail-server-security/#comments</comments>
		<pubDate>Sat, 03 Oct 2009 21:15:59 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[ubuntu server]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=16909</guid>
		<description><![CDATA[Security. Ah, security. It&#8217;s the make or break for administrators on so many levels. For the Linux operating system you could go in so many directions with your security. You could go the graphical front-end and make life easy but lose some flexibility. Or you could go the far more challenging route and use the [...]]]></description>
			<content:encoded><![CDATA[<p>Security. Ah, security. It&#8217;s the make or break for administrators on so many levels. For the Linux operating system you could go in so many directions with your security. You could go the graphical front-end and make life easy but lose some flexibility. Or you could go the far more challenging route and use the command line <em>iptables. </em>I will say the GUI tools have come a long way, but in some instances the ease of use the offer gets in the way of being able to granularly configure your server/network security.</p>
<p>When you spend a lot of time creating and administering the web/mail server combination, it&#8217;s always good to have a solution that is easy to put in place. I have found one that I have used for a while now and trust its security and ease of use. This &#8220;system&#8221; uses a fairly complex iptables script that has just a single line that you will need to modify in order to have sound security for a web/mail server that serves up web pages via Apache on port 80 and mail via SMTP on port 25 and IMAP via port 143. Included in this script is the inclusion of port 25 for secure shell access.</p>
<p><span id="more-16909"></span>You will be surprised how simple this script is to use. I have uploaded the script to a pastebin site which you can access using <a title="iptables script on pastebin" href="http://pastebin.com/f7ae155ad" target="_blank">this address</a>. Copy that script to your Linux server (for the sake of simplicity save it in <strong>~/scripts</strong>, which you will create) and you are ready to set the system up.</p>
<p><strong>Configuration</strong></p>
<p>The only line you need to configure (unless you need to change the networking device name and/or want to include extra ports or remove ports from the script) is line 8. This line looks like:</p>
<p><code>SCRIPT_DIR="/PATH/TO/DIRECTORY"</code></p>
<p>What you want to have there is the location that will be filled with any IP address blocked by the firewall. For the purposes of this tutorial it will be saved in <strong>~/scripts</strong>.</p>
<p>Once you have that edited you can save the file and call it <em>start_iptables.sh</em>. Now give the file executable permission with the command:</p>
<p><em>chmod u+x start_iptables.sh</em></p>
<p>Now create a new file called <em>stop_iptables.sh</em>. The contents of that file will be:</p>
<p><code>iptables -F<br />
iptables -X<br />
iptables -t nat -F<br />
iptables -t nat -X<br />
iptables -t mangle -F<br />
iptables -t mangle -X<br />
iptables -P INPUT ACCEPT<br />
iptables -P OUTPUT ACCEPT<br />
iptables -P FORWARD ACCEPT</code></p>
<p>Make that file executable with the command:</p>
<p><em>chmod u+x stop_iptables.sh</em></p>
<p>The former script will start your firewall, the latter script will stop it.</p>
<p><strong>Starting this script</strong></p>
<p>You can start and stop this script any time you feel like with the command:</p>
<p><em>sudo ~/scripts/start_iptables.sh</em></p>
<p>If there are no errors you should see something like:</p>
<p><em>Starting IPv4 Wall&#8230;</em></p>
<p>You can also check to see by listing all of your iptables chains with the command:</p>
<p><em>sudo iptables -L</em></p>
<p>Stopping the firewall is done with the command:</p>
<p><em>sudo ~/scripts/stop_iptables.sh</em></p>
<p><strong>Start at bootup</strong></p>
<p>Now let&#8217;s make it such that the firewall script starts upon boot of the server (should the need arise).  Open up the <strong>/etc/rc.local </strong>file and add the line:</p>
<p>/PATH/TO/scripts/start_iptables.sh</p>
<p>before the &#8220;exit 0&#8243; line.</p>
<p>Where /PATH/TO/ is the explicit path to the <strong>~/scripts</strong> directory (you can&#8217;t use &#8220;~/&#8221; in rc.local).</p>
<p>The script will now start at boot.</p>
<p><strong>Final thoughts</strong></p>
<p>This easy to install firewall will add a level of saftey to your web/mail server that would be hard to come by with a GUI tool. And if you are using a headless (console only) server, it&#8217;s the only way to go.</p>

	Tags: <a href="http://www.ghacks.net/tag/firewall/" title="firewall" rel="tag">firewall</a>, <a href="http://www.ghacks.net/tag/iptables/" title="iptables" rel="tag">iptables</a>, <a href="http://www.ghacks.net/tag/ubuntu-server/" title="ubuntu server" rel="tag">ubuntu server</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/09/15/firestarter-simple-to-use-powerful-desktop-firewall/" title="Firestarter: Simple to use, powerful desktop firewall (September 15, 2009)">Firestarter: Simple to use, powerful desktop firewall</a> (6)</li>
	<li><a href="http://www.ghacks.net/2009/03/27/configure-a-linux-firewall-with-webmin/" title="Configure a Linux Firewall with Webmin (March 27, 2009)">Configure a Linux Firewall with Webmin</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/03/25/build-a-quick-and-reliable-firewall-with-fwbuilder/" title="Build a Quick and Reliable Firewall with fwbuilder (March 25, 2009)">Build a Quick and Reliable Firewall with fwbuilder</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/10/13/zonealarm-pro-firewall-2010-promotion/" title="Zonealarm Pro Firewall 2010 Promotion (October 13, 2009)">Zonealarm Pro Firewall 2010 Promotion</a> (5)</li>
	<li><a href="http://www.ghacks.net/2008/08/15/windows-vista-firewall-control/" title="Windows Vista Firewall Control (August 15, 2008)">Windows Vista Firewall Control</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/03/use-this-iptables-script-for-webmail-server-security/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install Prism on Linux for easy to use web apps</title>
		<link>http://www.ghacks.net/2009/09/26/install-prism-on-linux-for-easy-to-use-web-apps/</link>
		<comments>http://www.ghacks.net/2009/09/26/install-prism-on-linux-for-easy-to-use-web-apps/#comments</comments>
		<pubDate>Sat, 26 Sep 2009 18:02:18 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Browsing]]></category>
		<category><![CDATA[Desktop Manager]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[prism]]></category>
		<category><![CDATA[web apps]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=16684</guid>
		<description><![CDATA[If you are a web junkie, or depend upon various web sites and services daily you know how quickly your browser can fill up with tabs. Wouldn&#8217;t it be nice if you can just use small web apps for these needs? And since that seems to be the way the computing is evolving, it only [...]]]></description>
			<content:encoded><![CDATA[<p>If you are a web junkie, or depend upon various web sites and services daily you know how quickly your browser can fill up with tabs. Wouldn&#8217;t it be nice if you can just use small web apps for these needs? And since that seems to be the way the computing is evolving, it only makes sense that even your every day tools migrate to &#8211; as much as it pains me to say it &#8211; Cloud Computing. Although I have been against cloud computing since back in the days of thin clients, I am starting to see the value of these tools.</p>
<p>Thanks to the <a title="Mozilla Labs" href="http://labs.mozilla.com" target="_blank">Mozilla Labs</a> there is <a title="Prism" href="http://labs.mozilla.com/blog/2007/10/prism/" target="_blank">Prism</a>. Prism is unlike other proprietary solutions like Silverlight. Prism is basically a way to split web apps from the browser and run them directly on the desktop. Although not always as small as, say, a Google Gadget, Prism tools are far more functional and do not strip features from the tools you use. For example, if you are using the Prism Google Document tool, you will have a fully functioned instance of whatever app you are using. In this tutorial you will learn how to install Prism and some of the apps as well as configure shortcuts for your menu.</p>
<p><span id="more-16684"></span><strong>Installing</strong></p>
<p>As you would expect, Prism can be found in your distributions&#8217; repository. So to install, follow these steps:</p>
<ol>
<li><span style="background-color: #ffffff">Open up your Add/Remove Software tool.</span></li>
<li><span style="background-color: #ffffff">Search for &#8220;prism&#8221; (no quotes).</span></li>
<li><span style="background-color: #ffffff">Select Prism (and any apps you will want installed) for installation.</span></li>
<li><span style="background-color: #ffffff">Click Apply to install.</span></li>
</ol>
<p>Once installed you have a number of options available to you for starting applications. If you look in your Internet sub-menu in your Application menu you will most like find a number of Prism-enabled applications already there. You will also find an entry for the Prism tool itself. This tool is really the best place to start if your app isn&#8217;t found in the menu.</p>
<p>If, however, the app you want to use is found in the Internet menu go ahead and fire it up. You will notice that the Prism-enabled apps look and feel exactly as if they were in your browser &#8211; minus the browser menus, toolbars, address bars, etc.</p>
<p>But if you do not find the app you want to use worry not, most likely you will be able to get it working through Prism. Let&#8217;s use an Apple Web app as an example. If you take a visit to the<a title="Apple Web Apps" href="http://www.apple.com/webapps/" target="_blank"> Apple web application site</a> you will find numerous applications you can use. Let&#8217;s use the <a title="DataCalc" href="http://www.apple.com/webapps/calculate/datacalc.html" target="_blank">DataCalc</a> app as an example. When you visit the DataCalc page you will find the app URL &#8211; this is the URL you are going to use for the Prism app.</p>
<div id="attachment_16695" class="wp-caption alignleft" style="width: 273px"><a rel="attachment wp-att-16695" href="http://www.ghacks.net/2009/09/26/install-prism-on-linux-for-easy-to-use-web-apps/prism/"><img class="size-full wp-image-16695 " src="http://www.ghacks.net/wp-content/uploads/2009/09/prism.png" alt="Figure 1" width="263" height="213" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>Now, go to the Internet sub-menu and click on the Prism entry. This will open up a blank Prism window with a smaller configuration window (see Figure 1). Enter the DataCalc URL in the URL text area and enter</p>
<div id="attachment_16696" class="wp-caption alignright" style="width: 291px"><a rel="attachment wp-att-16696" href="http://www.ghacks.net/2009/09/26/install-prism-on-linux-for-easy-to-use-web-apps/data_calc/"><img class="size-full wp-image-16696 " src="http://www.ghacks.net/wp-content/uploads/2009/09/data_calc.png" alt="Figure 2" width="281" height="346" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>DataCalc for the Name. Finally click the checkbox next to Desktop to add a clickable icon to your desktop. Click the OK button and the icon will appear on your desktop and a Prism window will appear with your web app running (see Figure 2). NOTE: You may have to set the icon as Trusted when you double click it. This will not only enable the icon to be clickable, it will also change the icon appearance. When you close out this Prism App, all you have to do to restart it is to double click the icon.</p>
<p>I have yet to find a means to add a Prism app menu entry when the app is installed in this manner. All Prism apps that are installed via Synaptic will have menu entries.</p>
<p><strong>Final thoughts</strong></p>
<p>We all know the desktop is trying desperately to evolve into a web app-based cloud. If you&#8217;re interested in getting a feel for what this is like, give Prism a try.</p>

	Tags: <a href="http://www.ghacks.net/tag/cloud-computing/" title="cloud computing" rel="tag">cloud computing</a>, <a href="http://www.ghacks.net/tag/prism/" title="prism" rel="tag">prism</a>, <a href="http://www.ghacks.net/tag/web-apps/" title="web apps" rel="tag">web apps</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/08/05/the-reinventing-of-the-operating-system/" title="The reinventing of the Operating System (August 5, 2009)">The reinventing of the Operating System</a> (16)</li>
	<li><a href="http://www.ghacks.net/2009/06/12/opera-will-reinvent-the-internet-on-june-16/" title="Opera Will Reinvent The Internet On June 16 (June 12, 2009)">Opera Will Reinvent The Internet On June 16</a> (13)</li>
	<li><a href="http://www.ghacks.net/2009/05/09/mozilla-prism-10-beta/" title="Mozilla Prism 1.0 Beta (May 9, 2009)">Mozilla Prism 1.0 Beta</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/10/23/lotus-symphony-on-linux-install-a-part-of-ibms-smart-work/" title="Lotus Symphony on Linux: Install a part of &#8220;IBM&#8217;s Smart Work&#8221; (October 23, 2009)">Lotus Symphony on Linux: Install a part of &#8220;IBM&#8217;s Smart Work&#8221;</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/03/07/google-docs-shares-documents-without-permisson/" title="Google Docs Shares Documents Without Permisson (March 7, 2009)">Google Docs Shares Documents Without Permisson</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/09/26/install-prism-on-linux-for-easy-to-use-web-apps/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Manage your ssh connections with SecPanel</title>
		<link>http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/</link>
		<comments>http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/#comments</comments>
		<pubDate>Fri, 25 Sep 2009 19:25:42 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[remote management]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh connections]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=16656</guid>
		<description><![CDATA[I do a lot of work with secure shell. There are times when I am connected, via ssh, to multiple machines. Managing these connections can be a real hassle (especially when you have to try to remember numerous IP addresses). Sure you can create bash aliases to make these connections easier to remember, but if [...]]]></description>
			<content:encoded><![CDATA[<p>I do a lot of work with secure shell. There are times when I am connected, via ssh, to multiple machines. Managing these connections can be a real hassle (especially when you have to try to remember numerous IP addresses). Sure you can create bash aliases to make these connections easier to remember, but if you can have a GUI tool to handle this wouldn&#8217;t ssh administration be so much easier? Well, you&#8217;re in luck. <a title="SecPanel" href="http://secpanel.net/" target="_blank">SecPanel</a> is such a tool</p>
<p>With SecPanel you can create a profile for each of your ssh connections so that connecting is just a matter of opening up the tool, selecting the connection you want from a list, and clicking the Connect button. And for each profile you create, you can associate numerous configuration options. In this tutorial you will learn how to install and use SecPanel to manage your secure shell connections.</p>
<p><span id="more-16656"></span></p>
<p><strong>Features</strong></p>
<p>SecPanel hosts a number of useful features:</p>
<ul>
<li>X11 tunneling  control</li>
<li>SCP management</li>
<li>IPv4/6 support</li>
<li>SSH1/2 support</li>
<li>Keypair management</li>
<li>Trace window</li>
</ul>
<p>and more.</p>
<p><strong>Installing</strong></p>
<p>Like most modern Linux applications SecPanel can be installed by following these simple steps:</p>
<ol>
<li>Open up your Add/Remove Software utility.</li>
<li>Search for &#8220;secpanel&#8221; (no quotes).</li>
<li>Mark SecPanel for installation.</li>
<li>Click Apply to install.</li>
<li>Okay any dependencies.</li>
</ol>
<p>That&#8217;s it.</p>
<p><strong>Running SecPanel</strong></p>
<div id="attachment_16667" class="wp-caption alignleft" style="width: 285px"><a rel="attachment wp-att-16667" href="http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/secpanel_main_window/"><img class="size-full wp-image-16667 " src="http://www.ghacks.net/wp-content/uploads/2009/09/secpanel_main_window.png" alt="Figure 1" width="275" height="233" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>You will find SecPanel in the Internet sub-menu of your Applications menu. When you click that entry to start up the application you will see the main window (see Figure 1) where you can start to add connections. You will notice in Figure 1 there are already profiles listed. Be default there will be none (you have to create them first.) So let&#8217;s illustrate how Profiles are created.</p>
<div id="attachment_16669" class="wp-caption alignright" style="width: 353px"><a rel="attachment wp-att-16669" href="http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/secpanel_new_profile/"><img class="size-full wp-image-16669 " src="http://www.ghacks.net/wp-content/uploads/2009/09/secpanel_new_profile.png" alt="Figure 2" width="343" height="341" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>To create a new Profile click on the New button. This will open up the Profile editor (see Figure 2). In this window the only required options are:</p>
<ul>
<li>Profile Name: The name you want to give your profile.</li>
<li>Title: This is the name that appears in the Connections listing window.</li>
<li>Host: The address you want to associate with this profile.</li>
<li>User: You can either supply a username that is associated with this connection or configure the connection to ask each time a connection is made.</li>
</ul>
<p>With regards to the username: If you always connect to this server with the same username, go ahead and configure a user. If, however, you connect to this server with different usernames (depending upon what job or service you are tackling) check the &#8220;Ask&#8221; checkbox. With this configuration a small box will open, when you go to connect, asking you to first input a username.</p>
<p>Other important options to consider are:</p>
<ul>
<li>No agent forwarding: Do not allow public-key authentication.</li>
<li>No X11 forwarding: Do not allow X11 tunneling (you will not be able to remotely run GUI tools).</li>
</ul>
<p>When you have your profile configured to your liking click the Save button to save your profile. In order to connect to this profile you have to go back to the main window (click the far left icon under the menu bar), select the profile you want to connect to, and click the Connect button.</p>
<p><strong>Keypair</strong></p>
<p>You can also manage keypairs for ssh connections, from within SecPanel. To do this click on the Lock icon from within the main window. When this new window opens you can do things like delete hostkeys, generate keypairs, distribute public keys, add identities, and more. One of the more important tasks you can take care of is the generation of keypairs. The generation of keypairs with this tool is extremely simple. Even distributing public keypairs is made simple with this tool.  Note, however, you can only distribute your keypairs to the machines in your profiles. If a server is not in one of your profiles, you can not distribute a keypair to it.</p>
<p><strong>Multi</strong></p>
<p>If you have an application installed (like MultiXter or ClusterSSH) you can connect to multiple servers at once which is good for such tasks as sending the same command to clustered servers. You will first have to have a supported tool installed.</p>
<p><strong>Final thoughts</strong></p>
<p>If you manage a lot of ssh connections SecPanel is a tool you should certainly look into. If you are used to PuTTY on a Windows machine, you will be very happy with SecPanel.</p>

	Tags: <a href="http://www.ghacks.net/tag/putty/" title="putty" rel="tag">putty</a>, <a href="http://www.ghacks.net/tag/remote-management/" title="remote management" rel="tag">remote management</a>, <a href="http://www.ghacks.net/tag/ssh/" title="ssh" rel="tag">ssh</a>, <a href="http://www.ghacks.net/tag/ssh-connections/" title="ssh connections" rel="tag">ssh connections</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2006/11/18/top-xp-freeware-that-every-user-needs-part-3/" title="Top Xp Freeware that every user needs part 3 (November 18, 2006)">Top Xp Freeware that every user needs part 3</a> (5)</li>
	<li><a href="http://www.ghacks.net/2008/11/17/my-encrypted-tunnel/" title="My Encrypted Tunnel (November 17, 2008)">My Encrypted Tunnel</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/02/05/fun-things-to-do-with-putty-and-linux-routers/" title="Fun Things to do with PuTTy and Linux-Routers (February 5, 2008)">Fun Things to do with PuTTy and Linux-Routers</a> (7)</li>
	<li><a href="http://www.ghacks.net/2008/07/09/control-servers-from-mobile-phones-via-ssh/" title="Control Servers from Mobile Phones via SSH (July 9, 2008)">Control Servers from Mobile Phones via SSH</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/02/09/about-putty-and-tutorials-including-a-putty-tutorial/" title="About PuTTy and Tutorials, including a PuTTy Tutorial. (February 9, 2008)">About PuTTy and Tutorials, including a PuTTy Tutorial.</a> (3)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/09/25/manage-your-ssh-connections-with-secpanel/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Mail relaying made simple with Postfix</title>
		<link>http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/</link>
		<comments>http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/#comments</comments>
		<pubDate>Wed, 23 Sep 2009 01:17:26 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networks]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[mail relaying]]></category>
		<category><![CDATA[mail server]]></category>
		<category><![CDATA[Postfix]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=16586</guid>
		<description><![CDATA[Have you installed the Postfix as an easier to use, more secure alternative to Sendmail only to find yourself having trouble with the old &#8220;unable to relay&#8221; errors? This can be very frustrating and have you pulling out your hair in no time.
MTAs (Mail Transfer Agents) can be a tricky lot to set up. Add [...]]]></description>
			<content:encoded><![CDATA[<p>Have you installed the Postfix as an easier to use, more secure alternative to Sendmail only to find yourself having trouble with the old &#8220;unable to relay&#8221; errors? This can be very frustrating and have you pulling out your hair in no time.</p>
<p>MTAs (Mail Transfer Agents) can be a tricky lot to set up. Add in to the mix something like relaying and you have all the ingredients for an installation NOT working. Fortunately <a title="Postfix" href="http://www.postfix.org/" target="_blank">Postfix</a> isn&#8217;t nearly as complicated as Sendmail, so relaying isn&#8217;t something you need guru-level access to solve. In this tutorial I am going to show you how to set up Postfix for easy relaying. You can always add this to the Ubuntu Server series that started with the article &#8220;<a title="Installing Ubuntu Server 9.04" href="http://www.ghacks.net/2009/09/03/installing-ubuntu-server-9-04/" target="_blank">Installing Ubuntu Server 9.04</a>&#8220;.</p>
<p><span id="more-16586"></span><strong>Installing Postfix</strong></p>
<p>Just in case you haven&#8217;t already, you can install Postfix on your already running Ubuntu Server install with the command:</p>
<p><em>sudo apt-get install postfix</em></p>
<p>But I am going to assume you already have Postfix up and running already. And if you&#8217;re looking into relaying with Postfix, your problem is that you can receive mail, you just can&#8217;t send it. Let&#8217;s fix that problem.</p>
<p><strong>Configure Postfix</strong></p>
<p>The file you need to first take care of is <strong>/etc/postfix/main.cf</strong>. You will need sudo access so open this file with the command:</p>
<p><em>sudo nano /etc/postfix/main.cf</em></p>
<p>Now add this to the bottom of that file:</p>
<p><code># SMTP Authentication<br />
smtp_sasl_auth_enable = yes<br />
smtpd_sasl_type = dovecot<br />
smtpd_sasl_path = private/auth<br />
smtpd_recipient_restrictions = permit_mynetworks, permit_sasl_authenticated, reject_unauth_destination smtp_sasl_password_maps = hash:/etc/postfix/sasl/sasl_passwd</code></p>
<p>NOTE: The portion starting with &#8220;smtpd_recipient_restrictions&#8221; and ending with &#8220;reject_unauth_destination&#8221; is actually one line.</p>
<p>NOTE: The portion starting with &#8220;reject_unauth&#8221; and ending with &#8220;sasl_passwd&#8221; is also only one line.</p>
<p>NOTE: The above assumes you are using Dovecot as your IMAP server.</p>
<p>The last line of the above should give you a hint as to what is next. Yes, you have to create a file, <strong>sasl_passwd</strong>, for Postfix to use as a password file. This file will be located in <strong>/etc/postfix/sasl/</strong> and will look like the following:</p>
<p>address.for.relaying   username:password</p>
<p>Where<em>:</em></p>
<ul>
<li><em>address.for.relaying </em>is the actual mail server you will use for relaying.</li>
<li><em>username</em> is the username for authentication on the relaying mail server.</li>
<li><em>password</em> is the password for authentication on the relaying mail server.</li>
</ul>
<p>The next step is to create the the sasl_passwd DB file so that Postfix has something it can read. To do this, issue the command:</p>
<p><em>sudo postmap hash:/etc/postfix/sasl/sasl_passwd</em></p>
<p>You should now see a new file in the <strong>/etc/postfix/sasl </strong>directory called <strong>sasl_passwd.db.</strong></p>
<p>One file step before restarting Postfix. Because the password file is plaintext it should be secured so that it can not be read by just any user. Say, for instance, you want Postfix to only be read by the root user. For this issue the command:</p>
<p><em>sudo chown root:root /etc/postfix/sasl/sasl_passwd &amp;&amp; chmod 600 /etc/postfix/sasl/sasl_passwd</em></p>
<p>Do the same thing with the <strong>sasl_passwd.db </strong>file like so:</p>
<p><em>sudo chown root:root /etc/postfix/sasl/sasl_passwd.db &amp;&amp; chmod 600 /etc/postfix/sasl/sasl_passwd.db</em></p>
<p>NOTE: If you have need for a different user, you can chown the file to whatever user you want&#8230;just make sure it is a secure user.</p>
<p>You&#8217;re finished. All that is left is to restart Postfix with the command:</p>
<p><em>sudo /etc/init.d/postfix restart</em></p>
<p>Open up your mail client and text to see if relaying is now working for you.</p>
<p><strong>Final thoughts</strong></p>
<p>Gone are the days of the overly complicated (and insecure) Sendmail configurations. Setting up relaying is simple when you are using Postfix.</p>

	Tags: <a href="http://www.ghacks.net/tag/mail-relaying/" title="mail relaying" rel="tag">mail relaying</a>, <a href="http://www.ghacks.net/tag/mail-server/" title="mail server" rel="tag">mail server</a>, <a href="http://www.ghacks.net/tag/postfix/" title="Postfix" rel="tag">Postfix</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/10/24/install-postfix-for-reliable-email-delivery/" title="Install Postfix for reliable email delivery (October 24, 2009)">Install Postfix for reliable email delivery</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/05/01/use-spamassassin-for-better-spam-detection/" title="Use Spamassassin for better SPAM detection (May 1, 2009)">Use Spamassassin for better SPAM detection</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/10/26/stop-spam-in-postfix-with-spamassassin/" title="Stop SPAM in Postfix with Spamassassin (October 26, 2009)">Stop SPAM in Postfix with Spamassassin</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/05/19/quickly-check-mails-without-downloading-them/" title="Quickly check mails without downloading them (May 19, 2008)">Quickly check mails without downloading them</a> (8)</li>
	<li><a href="http://www.ghacks.net/2009/06/05/make-sendmail-accept-mail-from-external-sources/" title="Make Sendmail accept mail from external sources (June 5, 2009)">Make Sendmail accept mail from external sources</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/09/23/mail-relaying-made-simple-with-postfix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Create your own Certificate Authority with TinyCA</title>
		<link>http://www.ghacks.net/2009/09/16/create-your-own-certificate-authority-with-tinyca/</link>
		<comments>http://www.ghacks.net/2009/09/16/create-your-own-certificate-authority-with-tinyca/#comments</comments>
		<pubDate>Wed, 16 Sep 2009 19:16:56 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Security]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[CAs]]></category>
		<category><![CDATA[certificate authority]]></category>
		<category><![CDATA[server security]]></category>
		<category><![CDATA[SubCAs]]></category>
		<category><![CDATA[web server security]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=16402</guid>
		<description><![CDATA[If you run any sort of server that is accessible by the public, you know the importance of certificate authorities (CAs). These certificates give your users a bit of insurance that your site is actually what it claims to be and not a spoofed version of your site waiting to either snag some data or [...]]]></description>
			<content:encoded><![CDATA[<p>If you run any sort of server that is accessible by the public, you know the importance of certificate authorities (CAs). These certificates give your users a bit of insurance that your site is actually what it claims to be and not a spoofed version of your site waiting to either snag some data or drop a small payload onto an unsuspecting users&#8217;s machine.</p>
<p>The problem with CAs is that they can be a bit costly &#8211; especially for the administrator running a free service, or even a small business without the budget for purchasing CAs. Fortunately you don&#8217;t have to shell out the money for CAs, because you can create them for free on your Linux machine with an easy to use application called <a title="TinyCA" href="http://tinyca.sm-zone.net/" target="_blank">TinyCA</a>.</p>
<p><span id="more-16402"></span><strong>Features</strong></p>
<ul>
<li><span style="background-color: #ffffff">Create as many CAs and sub-CAs as you need.</span></li>
<li><span style="background-color: #ffffff">Creation and revocation of x509 S/MIME certificates.</span></li>
<li><span style="background-color: #ffffff">PKCS#10 requests can be imported and signed.</span></li>
<li><span style="background-color: #ffffff">Both server and client CAs can be exported in multiple formats.</span></li>
</ul>
<p>TinyCA works as a user-friendly front-end for openssl, so you don&#8217;t have to issue all of the necessary commands to create and manage your CAs.</p>
<p><strong>Installing TinyCA</strong></p>
<p>You won&#8217;t find TinyCA in your distribution&#8217;s repositories. You can either add the necessary repository to your <strong>/etc/apt/sources.list</strong> file or you can install fro<span style="background-color: #ffffff">m one of the binaries found on the main page. Let&#8217;s use Ubuntu and Debian as an example for installation.</span></p>
<p>If you want to install using apt-get you will need to first add the repository file to your sources.list file.  So open up the <strong>/etc/apt/sources.list</strong> file with your favorite editor and add the following line:<br />
<code>deb http://ftp.de.debian.org/debian sid main</code></p>
<p>NOTE: Replace &#8220;sid&#8221; with the version you are using. If you are using Ubuntu 9.04 the example above will work.</p>
<p>Now run the command:</p>
<p><em>sudo apt-get update</em></p>
<p>You will notice that apt-get complains about the lack of a gpg key. That&#8217;s okay because we are going to install using the command line. Now issue the command:</p>
<p><em>sudo apt-get install tinyca</em></p>
<p>This should install TinyCA without complaint. You might have to okay the installation of some dependencies.</p>
<p><strong>Using TinyCA</strong></p>
<div id="attachment_16411" class="wp-caption alignleft" style="width: 417px"><a rel="attachment wp-att-16411" href="http://www.ghacks.net/2009/09/16/create-your-own-certificate-authority-with-tinyca/tinyca_create-2/"><img class="size-full wp-image-16411 " src="http://www.ghacks.net/wp-content/uploads/2009/09/tinyca_create1.png" alt="Figure 1" width="407" height="281" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>To run TinyCA issue the command <em>tinyca2</em> and the main window will open. Upon your first run you will be greeted by the Create CA window (see Figure 1). When you already have CAs this window will not open automatically. In this window you will create a new CA.</p>
<div id="attachment_16414" class="wp-caption alignright" style="width: 351px"><a rel="attachment wp-att-16414" href="http://www.ghacks.net/2009/09/16/create-your-own-certificate-authority-with-tinyca/tinyca_cert_set/"><img class="size-full wp-image-16414 " src="http://www.ghacks.net/wp-content/uploads/2009/09/tinyca_cert_set.png" alt="Figure 2" width="341" height="319" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>The information you have to enter should be fairly apparent as well as unique to your needs. After you fill out the information click OK which will open up a new window (see Figure 2). This new window will contain configurations that are passed onto SSL during the creation of the certificate. Like the first window, these configurations will be unique to your needs.</p>
<p>After you fill this information out click the OK button and the CA will be created. Depending on the speed of your machine, the process could take a bit of time. Most likely the process will be completed within 30-60 seconds.</p>
<p><strong>Managing your CAs</strong></p>
<div id="attachment_16415" class="wp-caption alignleft" style="width: 370px"><a rel="attachment wp-att-16415" href="http://www.ghacks.net/2009/09/16/create-your-own-certificate-authority-with-tinyca/tinyca_manage/"><img class="size-full wp-image-16415  " src="http://www.ghacks.net/wp-content/uploads/2009/09/tinyca_manage.png" alt="Figure 3" width="360" height="230" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>When your CA is complete you will be taken back to the management window (see Figure 3). In this window you can create SubCAs for your main CA, you can import CAs, open CAs, create new CAs, and (most importantly) export CAs. You can&#8217;t see the Export button in Figure 3, but if you were to click the down arrow on the upper right portion of the window you would see another button you can click to export a CA.</p>
<p>Of course you have just created a Root Certificate. This certificate will only be used for:</p>
<ul>
<li>create new sub-CA:s</li>
<li>revoke sub-CA:s</li>
<li>renew sub-CA:s</li>
<li>export the root-CA:s certificate</li>
</ul>
<p>For anything other than the above you would want to create a SubCA. We&#8217;ll discuss creating a SubCA that can actually be used for your website in the next article.</p>
<p><strong>Final thoughts</strong></p>
<p>TinyCA takes a lot of work out of the creation and management of certificate authorities. For anyone that manages more than one web site or server, this tool is certainly a must have.</p>

	Tags: <a href="http://www.ghacks.net/tag/cas/" title="CAs" rel="tag">CAs</a>, <a href="http://www.ghacks.net/tag/certificate-authority/" title="certificate authority" rel="tag">certificate authority</a>, <a href="http://www.ghacks.net/tag/server-security/" title="server security" rel="tag">server security</a>, <a href="http://www.ghacks.net/tag/subcas/" title="SubCAs" rel="tag">SubCAs</a>, <a href="http://www.ghacks.net/tag/web-server-security/" title="web server security" rel="tag">web server security</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li>No related posts.</li>
	</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/09/16/create-your-own-certificate-authority-with-tinyca/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>
