<?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; Linux</title>
	<atom:link href="http://www.ghacks.net/category/operating-systems/linux/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>Mon, 09 Nov 2009 23:09:50 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Basic postgresql server setup</title>
		<link>http://www.ghacks.net/2009/11/10/basic-postgresql-server-setup/</link>
		<comments>http://www.ghacks.net/2009/11/10/basic-postgresql-server-setup/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 23:09:50 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[database]]></category>
		<category><![CDATA[database user]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[postgresql]]></category>
		<category><![CDATA[ubuntu server]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=18345</guid>
		<description><![CDATA[So many tool require databases. If you are a web administrator or a company with large stores of information, then you know the importance of databases. One of the most oft-used databases available is MySQL. But that is not the only player on the court. Another cross platform object-relational database management tool is PostgreSQL. Many [...]]]></description>
			<content:encoded><![CDATA[<p>So many tool require databases. If you are a web administrator or a company with large stores of information, then you know the importance of databases. One of the most oft-used databases available is MySQL. But that is not the only player on the court. Another cross platform object-relational database management tool is <a title="PostgreSQL" href="http://www.postgresql.org/" target="_blank">PostgreSQL</a>. Many people refer to PostgreSQL as the Oracle of the open source world. That is because PostgreSQL is dense with features but not as fast as MySQL. And where MySQL is a simple to use database management tool, PostgreSQL is often seen as overly complicated.</p>
<p>Of course there are variations on that opinion. But that is neither here nor there. The purpose of this tutorial is to help you get a PostgreSQL server up and running quickly and easily. To make this simple we will make this a part of our Ubuntu Server series, so all you have to do is have your Ubuntu Server up and running (see my 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; to get started.) Once you have that server up and running you are ready to get your PostgreSQL server up.</p>
<p><span id="more-18345"></span><strong>Installation</strong></p>
<p>The first thing you need to do is to install the necessary software. Since this is Ubuntu, it&#8217;s quite easy. Open up a terminal window and issue the command:</p>
<p><em>sudo apt-get install postgresql</em></p>
<p>Once the software is installed you are ready to set it all up.</p>
<p><strong>Change the default user password</strong></p>
<p>One of the first steps you want to take is to change the default password for the user postgres. Sine we are using Ubuntu you will have to use the sudo command to change to the postgres user like so:</p>
<p><em>sudo su &#8211; postgres</em></p>
<p>You will have to enter your sudo password after which you will now be issuing commands as the user postgres. The next step is to gain access to the postgresql command prompt with the command:</p>
<p><em>psql</em></p>
<p>Your new command prompt will look like:</p>
<p><em>postgres=#</em></p>
<p>NOTE: The only user that can open the PostgreSQL prompt without defining a database to work with is the user postgres. Other users would have to gain access to the command prompt with a command like:</p>
<p><em>psql DB_NAME</em></p>
<p>Where <em>DB_NAME </em>is the name of an existing database.</p>
<p>Changing the password is as simple as issuing the command:</p>
<p><em>\password postgres</em></p>
<p>You will then be asked to enter a password and then verify that password.</p>
<p>Your default password has not been changed. You can exit from the PostgreSQL prompt by issuing the command:</p>
<p><em>\q</em></p>
<p><strong>Create a database</strong></p>
<p>Now, while still logged in as the postgres user, let&#8217;s create a database. For this you do not have to be logged into the PostgreSQL command prompt. Instead just issue the command:</p>
<p><em>createdb testdb</em></p>
<p>Where <em>testdb</em> is the name of the database you want to create. To check to make sure that database was created go back to the PostgreSQL command prompt (remember, the command <em>psql</em>) and enter:</p>
<p><em>\l</em></p>
<p>You should see a listing for your new database like:</p>
<p><code>testdb | postgres | UTF8 | en_US.UTF-8  | en_US.UTF-8</code></p>
<p>Once again, log out of the PostgreSQL command prompt with the command:</p>
<p><em>\q</em></p>
<p><strong>Create a user</strong></p>
<p>By default, the only user that can connect to a database is the postgres user. This will be of no help when you need to connect with another user. To create a new user (that can connect to databases) you would issue the command (as the user <em>postgres</em>):</p>
<p><em>createuser &#8211;superuser USERNAME</em></p>
<p>Where <em>USERNAME </em>is the name of the user you want to create.</p>
<p><strong>Final thoughts</strong></p>
<p>Now you should have a basic PostgreSQL installation with a test database and a user, besides postgres, that can work with the tools. Next time we work with PostgreSQL we&#8217;ll discuss more challenging issues with this outstanding database tool.</p>

	Tags: <a href="http://www.ghacks.net/tag/database/" title="database" rel="tag">database</a>, <a href="http://www.ghacks.net/tag/database-user/" title="database user" rel="tag">database user</a>, <a href="http://www.ghacks.net/tag/mysql/" title="mysql" rel="tag">mysql</a>, <a href="http://www.ghacks.net/tag/postgresql/" title="postgresql" rel="tag">postgresql</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/04/09/set-up-mysql-database-replication/" title="Set up MySQL database replication (April 9, 2009)">Set up MySQL database replication</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/12/20/install-phpmyadmin-for-easy-mysql-administration/" title="Install phpmyadmin for easy MySQL administration (December 20, 2008)">Install phpmyadmin for easy MySQL administration</a> (6)</li>
	<li><a href="http://www.ghacks.net/2008/11/05/have-wordpress-back-ups-emailed/" title="Have WordPress back-ups emailed (November 5, 2008)">Have WordPress back-ups emailed</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/07/30/database-monitoring-software-db2rss/" title="Database Monitoring Software Db2rss (July 30, 2009)">Database Monitoring Software Db2rss</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/01/12/backup-mysql-databases-in-linux-regularly/" title="Backup MySQL Databases In Linux Regularly (January 12, 2009)">Backup MySQL Databases In Linux Regularly</a> (11)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/10/basic-postgresql-server-setup/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install OpenGoo for in house collaboration tools</title>
		<link>http://www.ghacks.net/2009/11/08/install-opengoo-for-in-house-collaboration-tools/</link>
		<comments>http://www.ghacks.net/2009/11/08/install-opengoo-for-in-house-collaboration-tools/#comments</comments>
		<pubDate>Sun, 08 Nov 2009 19:42:26 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Online Services]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[The Web]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[Web Development]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[collaboration]]></category>
		<category><![CDATA[google documents]]></category>
		<category><![CDATA[mobile office]]></category>
		<category><![CDATA[office suite]]></category>
		<category><![CDATA[online office]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=18315</guid>
		<description><![CDATA[Do you use Google for your collaboration tools? Gmail? Google Documents? Contacts? Although the Google suite is a very nice suite of tools that has grown exponentially in popularity, there is something to be said about keeping your collaboration tools in-house. There are plenty of tools that will allow you to set up such a [...]]]></description>
			<content:encoded><![CDATA[<p>Do you use Google for your collaboration tools? <a href="http://www.ghacks.net/2009/02/09/gmail-90-tools-and-tips-to-make-you-a-gmail-pro/">Gmail</a>? Google Documents? Contacts? Although the Google suite is a very nice suite of tools that has grown exponentially in popularity, there is something to be said about keeping your collaboration tools in-house. There are plenty of tools that will allow you to set up such a collaboration suite. Some of these tools are costly, some of them are overly-complex to use or install, and some of them just don&#8217;t offer all of the tools you need.</p>
<p>And then there&#8217;s <a title="OpenGoo" href="http://www.opengoo.org" target="_blank">OpenGoo</a>. OpenGoo is an open source collaboration tool that is fully web-based, easy to use, simple to install, and free to use. But is OpenGoo for you and your company? This tutorial will show you how to get an OpenGoo installation up and running so you can kick the tires and find out if it is exactly what you need.</p>
<p><span id="more-18315"></span><strong>Features</strong></p>
<p>OpenGoo offers all of the standard features of a business-level collaboration suite:</p>
<ul>
<li>Text documents</li>
<li>Spreadsheets (coming soon)</li>
<li>Presentations</li>
<li>Task Lists</li>
<li>E-mails</li>
<li>Calendars</li>
<li>Web Links</li>
<li>Contacts</li>
</ul>
<p>All you need to install an OpenGoo server is:</p>
<ul>
<li><span style="background-color: #ffffff">Apache &gt;= 2.0</span></li>
<li><span style="background-color: #ffffff">MySQL &gt;= 5.0 (5.2 recommended)</span></li>
<li><span style="background-color: #ffffff">MySQL &gt;= 4.1 with InnoDB support</span></li>
</ul>
<p>Now, let&#8217;s get on with that installation.</p>
<p><strong>Install</strong></p>
<p>This installation will be done on a Ubuntu 9.10 setup. I have installed this on both desktop and server installation, but regardless of which you have installed, you will need a LAMP server running.</p>
<p>The first thing you need to do is to download the zip file from the <a title="OpenGoo download" href="http://sourceforge.net/projects/opengoo/files/" target="_blank">OpenGoo download page</a>. I downloaded and installed the 1.6 beta version which works nicely.</p>
<p>Once that file is downloaded, move that file to <strong>/var/www. </strong>Now, change to the <strong>/var/www/</strong> directory and then unzip it with the command:<span style="background-color: #ffffff"> </span></p>
<p><span style="background-color: #ffffff"><em>sudo unzip opengoo_1.6.beta-2.zip</em></span></p>
<p><span style="background-color: #ffffff">NOTE: If you downloaded a different release, edit that command to reflect the release number.</span></p>
<p><span style="background-color: #ffffff">Once that files is unzipped rename the directory with the command:</span></p>
<p><span style="background-color: #ffffff"><em>sudo mv opengoo_1.6.beta-2.zip opengoo</em></span></p>
<p><span style="background-color: #ffffff">Now change into the <strong>/var/www/opengoo</strong> directory and issue the following commands:</span></p>
<p><span style="background-color: #ffffff"><em>sudo chmod -R ugo+w /var/www/opengoo/config</em></span></p>
<p><span style="background-color: #ffffff"><em>sudo chmod -R ugo+w /var/www/opengoo/cache</em></span></p>
<p><span style="background-color: #ffffff"><em>sudo chmod -R ugo+w /var/www/opengoo/upload</em></span></p>
<p><span style="background-color: #ffffff"><em>sudo chmod -R ugo+w /var/www/opengoo/tmp</em></span></p>
<p><span style="background-color: #ffffff">With all the right permissions in play, it is time to create the database. I like to use PhpMyAdmin to make database creation simple. For more information about installing this tool check out my article &#8220;<a title="Install phpmyadmin for easy MySQL administration" href="http://www.ghacks.net/2008/12/20/install-phpmyadmin-for-easy-mysql-administration/" target="_blank">Install PhpMyAdmin for easy MySQL administration</a>&#8220;. Use this tool to create a database called &#8220;opengoo&#8221; (No quotes).</span></p>
<p><span style="background-color: #ffffff">Time to begin the web-based installation.</span></p>
<p><span style="background-color: #ffffff">Fire up your browser and point it to:</span></p>
<p><span style="background-color: #ffffff"><em>http://IP_TO_SERVER/opengoo</em></span></p>
<p><span style="background-color: #ffffff">Where IP_TO_SERVER is the actual IP Address of your OpenGoo server. You will be greeted with usual welcome screen that will tell you exactly what is going to happen during the installation. Click the Next button to continue on.</span></p>
<p><span style="background-color: #ffffff">The second screen will run the environment checks. If everything gets and OK (and it should be if your LAMP server is up and running and you&#8217;ve taken care of all the permissions) click the Next button to continue on.</span></p>
<p><span style="background-color: #ffffff"> </span></p>
<div id="attachment_18316" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-18316" href="http://www.ghacks.net/?attachment_id=18316"><img class="size-thumbnail wp-image-18316 " src="http://www.ghacks.net/wp-content/uploads/2009/11/opengoo_install_3-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>The third page of the installation (see Figure 1) is the first step that should require you to input any data.</p>
<p>The information should be fairly self explanatory. There is one point of note: If you plan on allowing access to your local LAN you will need to change the Absolute script URL to reflect the proper IP address (or domain).</p>
<p>Once you have all of this information in place, click the Next button which will take you to the congratulations screen where you only need click the Finish button to assume you&#8217;ve completed the installation.</p>
<div id="attachment_18317" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-18317" href="http://www.ghacks.net/?attachment_id=18317"><img class="size-thumbnail wp-image-18317 " src="http://www.ghacks.net/wp-content/uploads/2009/11/opengoo_install_5-300x300.png" alt="Figure 2" width="180" height="180" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>Ah, but there is one more step. Figure 2 shows the final step for the installation. Here you need to create an administrator for your installation.</p>
<p>Setup your administrative user and click Submit. You can now log in to your OpenGoo server with your administrative user.</p>
<p><strong>The basic interface</strong></p>
<p>You will log into your OpenGoo server by entering the same address you did for the installation. When you log in you will be at the OpenGoo Getting Started Page (see Figure 3).</p>
<div id="attachment_18318" class="wp-caption alignleft" style="width: 310px"><a rel="attachment wp-att-18318" href="http://www.ghacks.net/?attachment_id=18318"><img class="size-thumbnail wp-image-18318" src="http://www.ghacks.net/wp-content/uploads/2009/11/opengoo_main_page-300x300.png" alt="Figure 3" width="300" height="300" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>The OpenGoo installation will offer a very simple information page that will help you get started on your decision. But as you can see, the interface is laid out quite well. The tools are accessible and very user-friendly.</p>
<p>After using OpenGoo for a while I can assure you if you like Google&#8217;s suite of tools, you will like OpenGoo.</p>
<p><strong>Final thoughts</strong></p>
<p>If you are looking for a very cost effect collaboration solution look no further than the open source OpenGoo suite of tools. Not only is it easy to use, it&#8217;s simple to install, and free of charge.</p>

	Tags: <a href="http://www.ghacks.net/tag/collaboration/" title="collaboration" rel="tag">collaboration</a>, <a href="http://www.ghacks.net/tag/google-documents/" title="google documents" rel="tag">google documents</a>, <a href="http://www.ghacks.net/tag/mobile-office/" title="mobile office" rel="tag">mobile office</a>, <a href="http://www.ghacks.net/tag/office-suite/" title="office suite" rel="tag">office suite</a>, <a href="http://www.ghacks.net/tag/online-office/" title="online office" rel="tag">online office</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/05/05/open-office-31/" title="Open Office 3.1 (May 5, 2009)">Open Office 3.1</a> (17)</li>
	<li><a href="http://www.ghacks.net/2008/10/10/open-office-3-final/" title="Open Office 3 Final (October 10, 2008)">Open Office 3 Final</a> (21)</li>
	<li><a href="http://www.ghacks.net/2009/05/12/microsoft-sharedview/" title="Microsoft SharedView (May 12, 2009)">Microsoft SharedView</a> (0)</li>
	<li><a href="http://www.ghacks.net/2008/09/02/microsoft-office-migration-planning-manager/" title="Microsoft Office Migration Planning Manager (September 2, 2008)">Microsoft Office Migration Planning Manager</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/02/26/konolive-getting-things-done-software/" title="KonoLive Getting Things Done Software (February 26, 2009)">KonoLive Getting Things Done Software</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/08/install-opengoo-for-in-house-collaboration-tools/feed/</wfw:commentRss>
		<slash:comments>2</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>
<p><em><strong><span style="font-style: normal"><span style="font-weight: normal"><strong><span style="font-weight: normal"> </span><br />
</strong></span></span></strong></em></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> (6)</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>0</slash:comments>
		</item>
		<item>
		<title>Mandriva 2010 installation walk through</title>
		<link>http://www.ghacks.net/2009/11/06/mandriva-2010-installation-walk-through/</link>
		<comments>http://www.ghacks.net/2009/11/06/mandriva-2010-installation-walk-through/#comments</comments>
		<pubDate>Fri, 06 Nov 2009 20:42:17 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[linux installation]]></category>
		<category><![CDATA[live cd]]></category>
		<category><![CDATA[mandriva linux]]></category>
		<category><![CDATA[mandriva one]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=18202</guid>
		<description><![CDATA[Mandriva is another one of the Linux distributions that has been around for quite some time. Beginning as Mandrake Linux, the company MandrakeSoft was forced to change its name when sued by the Hearst Corporation because of the claims that Mandrake Linux was inspired by their comic character &#8220;Mandrake the Magician&#8221;. So the change in [...]]]></description>
			<content:encoded><![CDATA[<p>Mandriva is another one of the Linux distributions that has been around for quite some time. Beginning as Mandrake Linux, the company MandrakeSoft was forced to change its name when sued by the Hearst Corporation because of the claims that Mandrake Linux was inspired by their comic character &#8220;Mandrake the Magician&#8221;. So the change in name happened in 2005, but the name change wasn&#8217;t the only change in 2005. At the same time Mandriva acquired Lycoris and Conectiva. So Mandriva Linux became a combination of Mandrake Linux and Conectiva Linux.</p>
<p>Because of these changes, the Mandriva of today is not the Mandrake of yesterday. The latest version of Mandriva (named 2010) is a modern take on the Linux distribution and in this article you are going to be treated to a walk through of the installation. NOTE: This installation will be done via VirtualBox, so some of the information you might see may or may not apply to your installation.</p>
<p><span id="more-18202"></span>This installation will be accomplished with the help of the Live CD. You can download the Live CD from the <a title="Mandriva download page" href="http://www2.mandriva.com/downloads/" target="_blank">Mandriva download page</a>. You will notice, on that page, there are a number of different downloads. For this installation the download you want is the <a title="One 2010" href="http://www2.mandriva.com/downloads/?p=linux-one" target="_blank">One 2010 download</a>. Once you have downloaded that Live CD and burned it onto disk, put that disk in your target machine&#8217;s disk drive and reboot the machine.</p>
<p>Unlike most Live CDs, with the Mandriva Live CD you will have to answer some questions as well as agree to a EULA. This always takes me by surprise, but it&#8217;s a necessity if you want to boot up Mandriva. So agree to that EULA and boot up the Live distro.</p>
<p>Once you are up and running you will see the Install icon on the desktop. Double click that icon to begin the installation. And, of course, the first screen you will see is the inevitable &#8220;Welcome&#8221; screen. You can just click the Next button to actually begin the installation.</p>
<div id="attachment_18203" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-18203" href="http://www.ghacks.net/2009/11/06/mandriva-2010-installation-walk-through/mandriva_install_2/"><img class="size-thumbnail wp-image-18203 " src="http://www.ghacks.net/wp-content/uploads/2009/11/mandriva_install_2-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p><span style="background-color: #ffffff"><strong>Partitioning</strong></span></p>
<p>The first work you will have to take care of is the partitioning of your drive. Figure 1 shows the user-friendly configuration tool. With this tool you can either choose to use the free space (the easiest method), or you can create your own, custom partition configuration. As you can see (in Figure 1) this is being installed on a Virtual hard drive 16 Gigs in size. Since this space hasn&#8217;t been partitioned, it sees it as free space. So I will select the Free Space option and click the Next button.</p>
<p><strong>Unused hardware support</strong></p>
<div id="attachment_18204" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-18204" href="http://www.ghacks.net/2009/11/06/mandriva-2010-installation-walk-through/mandriva_install_3/"><img class="size-thumbnail wp-image-18204 " src="http://www.ghacks.net/wp-content/uploads/2009/11/mandriva_install_3-300x300.png" alt="Figure 2" width="180" height="180" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>This is a feature unique to the Mandriva installation. Once you have partitioned the hard drive the installation will compare the available hardware against the installable packages. Any packages that would not be used by the available hardware are not installed. This ensures your kernel will not be loading unused modules which will only slow down boot process, take up space, and use battery. Figure 2 shows the this screen. Just click Next and allow this process to happen. This will take some time (depending upon the speed of your hardware and the amount of packages that will not be installed).</p>
<div id="attachment_18205" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-18205" href="http://www.ghacks.net/2009/11/06/mandriva-2010-installation-walk-through/mandriva_install_4/"><img class="size-thumbnail wp-image-18205 " src="http://www.ghacks.net/wp-content/uploads/2009/11/mandriva_install_4-300x300.png" alt="Figure 3" width="180" height="180" /></a><p class="wp-caption-text">Figure 3</p></div>
<p><strong>Installation progress</strong></p>
<p>After you hit the Next button you will immediately see the installation progress window (see Figure 3). Depending upon your hardware, this could take some time. Of course you will also be greeted by different information windows during this step. You will learn nothing new by watching&#8230;so grab yourself a soda or go play some WoW for a bit and come back when the installation progress reaches its goal.</p>
<div id="attachment_18206" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-18206" href="http://www.ghacks.net/2009/11/06/mandriva-2010-installation-walk-through/mandriva_install_5/"><img class="size-thumbnail wp-image-18206 " src="http://www.ghacks.net/wp-content/uploads/2009/11/mandriva_install_5-300x300.png" alt="Figure 4" width="180" height="180" /></a><p class="wp-caption-text">Figure 4</p></div>
<p><strong>Bootloader</strong></p>
<p>After all of the packages have been installed you will have to deal with the bootloader installation. Your best bet is to stick with the defaults. If you load the bootloader on the wrong disk your installation will not boot.</p>
<p>As soon as you click the Next button you can then add, delete, or modify all of the entries in your boot menu. This is another section of the installation process that you should leave to the defaults. The only reason you would want to modify any of this information is if you are dual booting or you need to pass specific parameters to Grub for one of your entries. But more than likely, this step will be left to the defaults, so just click the Next button in this window as well.</p>
<p>The final installation window is the bookend for the Welcome screen &#8211; the Congratulation screen. This window will inform you to remove your Live CD and reboot your machine. Do this to complete the installation process.</p>
<p><strong>Final steps</strong></p>
<div id="attachment_18207" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-18207" href="http://www.ghacks.net/2009/11/06/mandriva-2010-installation-walk-through/mandriva_install_9/"><img class="size-thumbnail wp-image-18207 " src="http://www.ghacks.net/wp-content/uploads/2009/11/mandriva_install_9-300x300.png" alt="Figure 5" width="180" height="180" /></a><p class="wp-caption-text">Figure 5</p></div>
<p>Of course you are not completely finished. Did you notice something missing from the installation process? No root password was created and no users were created. Both of these steps are taken care of post-installation. In fact, both configurations are taken care of in one screen (see Figure 5).</p>
<p>After you complete this step, click the Next button only to find yourself on one more screen. This final screen wants you to register with Mandriva, take a survey, and contribute to Mandriva. You can decline all of this if you like by scrolling down and clicking the Decline buton.</p>
<p>After you either decline or complete the various optional information you will finally get to log into your newly installed Mandriva 2010 Linux installation. congratulations, you are the proud user of an outstanding, user-friendly Linux box.</p>

	Tags: <a href="http://www.ghacks.net/tag/linux-installation/" title="linux installation" rel="tag">linux installation</a>, <a href="http://www.ghacks.net/tag/live-cd/" title="live cd" rel="tag">live cd</a>, <a href="http://www.ghacks.net/tag/mandriva-linux/" title="mandriva linux" rel="tag">mandriva linux</a>, <a href="http://www.ghacks.net/tag/mandriva-one/" title="mandriva one" rel="tag">mandriva one</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2005/11/11/why-every-windows-user-needs-a-linux-live-cd/" title="Why Every Windows User Needs a Linux Live CD (November 11, 2005)">Why Every Windows User Needs a Linux Live CD</a> (0)</li>
	<li><a href="http://www.ghacks.net/2009/01/03/ubuntu-privacy-remix/" title="Ubuntu Privacy Remix (January 3, 2009)">Ubuntu Privacy Remix</a> (3)</li>
	<li><a href="http://www.ghacks.net/2006/11/23/testdisk-a-free-data-recovery-cd/" title="Testdisk &#8211; A Free Data Recovery CD (November 23, 2006)">Testdisk &#8211; A Free Data Recovery CD</a> (0)</li>
	<li><a href="http://www.ghacks.net/2008/09/23/run-linux-live-cds-in-windows/" title="Run Linux Live CDs In Windows (September 23, 2008)">Run Linux Live CDs In Windows</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/09/14/remastersys-outstanding-solution-for-backup-and-custom-live-cds/" title="Remastersys: Outstanding solution for backup and custom Live CDs (September 14, 2009)">Remastersys: Outstanding solution for backup and custom Live CDs</a> (2)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/06/mandriva-2010-installation-walk-through/feed/</wfw:commentRss>
		<slash:comments>1</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> (1)</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> (19)</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> (15)</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>Starting services at boot in Linux</title>
		<link>http://www.ghacks.net/2009/11/04/starting-services-at-boot-in-linux/</link>
		<comments>http://www.ghacks.net/2009/11/04/starting-services-at-boot-in-linux/#comments</comments>
		<pubDate>Wed, 04 Nov 2009 17:25:40 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[boot services]]></category>
		<category><![CDATA[init]]></category>
		<category><![CDATA[linux boot]]></category>
		<category><![CDATA[rc.local]]></category>
		<category><![CDATA[runlevels]]></category>
		<category><![CDATA[sysV]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=18116</guid>
		<description><![CDATA[There are plenty of times when you may want to add a new service to start when your Linux machine boots. Or you may want to stop a service from starting upon boot. And, like nearly every aspect of Linux, there are many ways to deal with this scenario. And different distributions handle this in [...]]]></description>
			<content:encoded><![CDATA[<p>There are plenty of times when you may want to add a new service to start when your Linux machine boots. Or you may want to stop a service from starting upon boot. And, like nearly every aspect of Linux, there are many ways to deal with this scenario. And different distributions handle this in different ways. So what is the best way for you to manage this task?</p>
<p>Because different distributions handle this task differently, we will examine how Fedora (and friends) handle the task and how Ubuntu (and friends) handle the task. As well we will also examine a neutral method that can always work in a pinch. All three methods will be command line, so stretch out those fingers and get ready to type.</p>
<p><span id="more-18116"></span><strong>Fedora (and friends)</strong></p>
<p>The Fedora distribution uses the <em>chkconfig</em> command to update and query system run-level information for system services. The usage of this command is:</p>
<p><em>chkconfig OPTIONS SERVICE ON/OF</em></p>
<p>Where:</p>
<ul>
<li><span style="background-color: #ffffff">OPTIONS are the various options the command offers.</span></li>
<li><span style="background-color: #ffffff">SERVICE is the service you want to add at startup.</span></li>
<li><span style="background-color: #ffffff">ON/OFF is either on or off &#8211; depending on if you want the s<span style="background-color: #ffffff">ervice to start or not.</span></span></li>
</ul>
<p><span style="background-color: #ffffff">The confusion with the <em>chkconfig </em>command generally boils down to runlevel. The typical Linux runlevels are:</span></p>
<ul>
<li><span style="background-color: #ffffff">0 &#8211; Halt</span></li>
<li><span style="background-color: #ffffff">1 &#8211; Single user mode</span></li>
<li><span style="background-color: #ffffff">2 &#8211; Multi user mode</span></li>
<li><span style="background-color: #ffffff">3 &#8211; Multi user mode with networking</span></li>
<li><span style="background-color: #ffffff">4 &#8211; Not used</span></li>
<li><span style="background-color: #ffffff">5 &#8211; X11</span></li>
<li><span style="background-color: #ffffff">6 &#8211; Reboot</span></li>
</ul>
<p><span style="background-color: #ffffff">So with <em>chkconfig </em>you can also define at which point the service starts. So let&#8217;s say you want Apache to start at boot and you want it to start for levels 3, 4, and 5. For this you would issue the command (as the root user):</span></p>
<p><span style="background-color: #ffffff"><em>chkconfig &#8211;level 345 httpd on</em></span></p>
<p><span style="background-color: #ffffff">Now, if you don&#8217;t want Apache to run at boot you could issue the command:</span></p>
<p><span style="background-color: #ffffff"><em>chkconfig httpd off</em></span></p>
<p><span style="background-color: #ffffff">If you want to know what services are running at boot you can issue the command:</span></p>
<p><span style="background-color: #ffffff"><em>chkconfig &#8211;list</em></span></p>
<p><span style="background-color: #ffffff">The above command will list out all services that are starting at boot time.</span></p>
<p><span style="background-color: #ffffff"><strong>Ubuntu (and friends)</strong></span></p>
<p><span style="background-color: #ffffff">Ubuntu (and friends) takes a totally different route to the same destination. Instead of using <em>chkconfig </em>Ubuntu uses the <em>update-rc.d</em> command. This command makes things pretty simple. The command structure is:</span></p>
<p><em>update-rc.d SERVICE OPTIONS</em></p>
<p>Where OPTIONS are available options and SERVICE is the service you want to start.</p>
<p>With <em>update-rc.d</em> there is an option that makes it simple: <em>defaults.</em> So to add sshd to the start up process, you would issue the command:</p>
<p><em>sudo update-rc.d sshd defaults</em></p>
<p>To remove the same service from start up you would issue the following command:</p>
<p><em>sudo update-rc.d sshd remove</em></p>
<p>Now let&#8217;s take a look at a fail safe, nearly-universal method</p>
<p><strong>rc.local</strong></p>
<p>There is another means of getting a service to start. I recommend using either of the two above before you try this means. The <strong>rc.local</strong> file is a file that is executed at the end of the multiuser runlevel. By default, this script does nothing, but you can add to it so that it does.</p>
<p>Say you want Apache to start at boot up, and you want to do so from <strong>rc.local</strong>. You can do this by adding one of the following lines at the end of your <strong>/etc/rc.local</strong> file.</p>
<p>Fedora:</p>
<p><em>/etc/init.d/rc.d/httpd star</em>t</p>
<p>Ubuntu:</p>
<p><em>/etc/init.d/apache2 start</em></p>
<p>Save that file and you should be good to go. If you change your mind and do not want that service to start at boot, just remove the line you added.</p>
<p><strong>Final thoughts</strong></p>
<p>The above should allow you get that service that needs to start at boot working correctly. Make sure, however, you use the distribution-prescribed method before you use the <strong>rc.local</strong> method.</p>

	Tags: <a href="http://www.ghacks.net/tag/boot-services/" title="boot services" rel="tag">boot services</a>, <a href="http://www.ghacks.net/tag/init/" title="init" rel="tag">init</a>, <a href="http://www.ghacks.net/tag/linux-boot/" title="linux boot" rel="tag">linux boot</a>, <a href="http://www.ghacks.net/tag/rclocal/" title="rc.local" rel="tag">rc.local</a>, <a href="http://www.ghacks.net/tag/runlevels/" title="runlevels" rel="tag">runlevels</a>, <a href="http://www.ghacks.net/tag/sysv/" title="sysV" rel="tag">sysV</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/04/04/get-to-know-linux-the-etcinitd-directory/" title="Get To Know Linux: The /etc/init.d Directory (April 4, 2009)">Get To Know Linux: The /etc/init.d Directory</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/04/starting-services-at-boot-in-linux/feed/</wfw:commentRss>
		<slash:comments>5</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/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>
	<li><a href="http://www.ghacks.net/2009/02/15/quick-archiving-in-gnome/" title="Quick Archiving in GNOME (February 15, 2009)">Quick Archiving in GNOME</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>Installing CentOS 5.4</title>
		<link>http://www.ghacks.net/2009/11/02/installing-centos-5-4/</link>
		<comments>http://www.ghacks.net/2009/11/02/installing-centos-5-4/#comments</comments>
		<pubDate>Mon, 02 Nov 2009 14:55:52 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Operating Systems]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[CentOS]]></category>
		<category><![CDATA[enterprise linux]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[Red Hat Linux]]></category>
		<category><![CDATA[RHEL]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17980</guid>
		<description><![CDATA[CentOS has not received much attention here on Ghacks, so I thought I would remedy that by introducing this outstanding flavor of Linux not by way of a Live CD (CentOS does have a Live CD, but you can not install from that CD), but by way of traditional means. Because of this you will [...]]]></description>
			<content:encoded><![CDATA[<p><a title="CentOS" href="http://centos.org/" target="_blank">CentOS</a> has not received much attention here on Ghacks, so I thought I would remedy that by introducing this outstanding flavor of Linux not by way of a Live CD (CentOS does have a Live CD, but you can not install from that CD), but by way of traditional means. Because of this you will have  tutorial. But first, a little history (which might divulge reason for you to use CentOS).</p>
<p>CentOS is a community-driven spin off of Red Hat Enterprise Linux. This is different from Fedora in that it is not: 1) Not bleeding edge and 2) Geared toward Enterprise and not average desktop usage. CentOS is built to be 100% compatible with its bigger brother Red Hat Enterprise Linux while remaining a completely free operating system. In a nutshell CentOS is Red Hat Enterprise Linux without the branding and graphics. So, if you&#8217;re looking for an enterprise-class desktop operating system, and you do not want to spend the cash necessary for RHEL, CentOS is the distribution you&#8217;ve been looking for.</p>
<p>But how easily does it install? If you have ever installed Linux using the traditional installation disk method you will be just fine. It will, however, require some patience &#8211; and a torrent client.</p>
<p><span id="more-17980"></span><strong>Download and burn</strong></p>
<p>The first, and arguably the lengthiest, step is to download the installation DVD (or you can download the 6 installation CDs if you do not have a DVD burner. Navigate your browser to the <a title="CentOS Downloads" href="http://mirror.centos.org/centos/5/isos/" target="_blank">CentOS download page</a> and navigate to the architecture you want to download. Once there you will click on the DVD torrent link which should hopefully open up your torrent client to begin the download. Once the torrent download is done (and the DVD is pieced together) burn the image to disk and you are ready to install.</p>
<p><strong>Begin the installation</strong></p>
<p>Obviously the first thing you will need to do is insert the DVD into the machine you wish to install CentOS on and then reboot. When you do you will be greeted with a text-based screen offering a few choices, since we are just going to go straight to the installation, hit Enter when prompted for installation. Anaconda will start up and the first graphical window will appear &#8211; the ever-pointless &#8220;Welcome&#8221; screen. Hit Next to finally begin your installation.</p>
<p>The next two windows are all self-explanatory (and not worth wasting screenshots on). You have:</p>
<ul>
<li>Language selection</li>
<li>Keyboard selection</li>
</ul>
<div id="attachment_18022" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-18022" href="http://www.ghacks.net/2009/11/02/installing-centos-5-4/centos_1/"><img class="size-thumbnail wp-image-18022" src="http://www.ghacks.net/wp-content/uploads/2009/11/centOS_1-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>Now we get to the meat of the installation: The partitioner. The first phase of the partitioner (see Figure 1) requires you to:</p>
<ul>
<li>Choose a partition layout.</li>
<li>Decide if you want the system encrypted.</li>
<li>Select the drive(s) to use.</li>
<li>Choose advanced storage options (Add iSCSI or disable dmraid).</li>
<li>Review the partitioning layout.</li>
</ul>
<p>When you select Next, depending on your choice of partition layout, you may be warned about deleting data. If you are unsure, make sure you go over the choices and dismiss the warning.</p>
<p>The next window requires you to set up networking. You have two choices: DHCP or Manual. The configuration of either choice is very simple. If you do set up your networking manually take note of the hostname. You can leave the default (localhost.localdomain) or you can be creative and add a descriptive hostname. Just don&#8217;t use an FQDN here as that could cause networking issues.</p>
<p>The new few windows are also self explanatory:</p>
<ul>
<li>Timezone</li>
<li>Root password</li>
</ul>
<p>Remember, this is not a Ubuntu-based installation. The root password is very important. Do NOT base this on a dictionary word. Use your best judgement for administrator passwords here.</p>
<div id="attachment_18023" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-18023" href="http://www.ghacks.net/2009/11/02/installing-centos-5-4/centos_2/"><img class="size-thumbnail wp-image-18023" src="http://www.ghacks.net/wp-content/uploads/2009/11/centOS_2-300x300.png" alt="Figure 2" width="180" height="180" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>The next screen (see Figure 2) is the package selection screen. You can go with the default, which will create a standard GNOME-based desktop installation. Your choices in this window are:</p>
<ul>
<li>Desktop &#8211; GNOME</li>
<li>Desktop &#8211; KDE</li>
<li>Server</li>
<li>Server &#8211; GUI</li>
<li>Virtualization</li>
<li>Clustering</li>
<li>Clustering &#8211; Storage</li>
</ul>
<p>I will opt to shy away from the standard install and go with a KDE desktop (later I will deal with other options). You can also add additional repositories at this point and choose to customize now or later.  If you choose to add new repositories you will have to have an active network connection.</p>
<p>When you click Next the installation will check all dependencies and then move on with the install. When the dependency check passes (and it should), click Next and the installation of packages will begin. Depending upon how many packages you have selected (as well as the power of your machine) the installation time will vary.</p>
<p>Finally, once all packages are installed, you will be asked to Reboot your system. Click the Reboot button and remove the install DVD (the installer will auto-eject when able). The system will then reboot and you will have a working CentOS 5.4 installation. Oddly enough, if you go with KDE you will be surprised to find out CentOS has not updated to KDE 4.</p>
<p>Of course, upon first boot, you will have to take care of some house keeping. Included in this house keeping is:</p>
<ul>
<li>Enabling/configuring a firewall</li>
<li>Setting up SELinux</li>
<li>Setting time/date</li>
<li>Creating a user</li>
<li>Sound card test</li>
<li>Install additional software (if applicable)</li>
</ul>
<p><strong>Final thoughts</strong></p>
<p>Although the CentOS installation isn&#8217;t nearly as easy as installing from a Live CD, the installation process doesn&#8217;t require a degree in engineering to get through. And when you&#8217;re done, you will have a fine (although outdated in some instances) working Linux distribution that is geared toward (but not only for) enterprise use.</p>
<p>We&#8217;ll deal with CentOS more in the future (as well as other distributions). But for now, enjoy your installation.</p>

	Tags: <a href="http://www.ghacks.net/tag/centos/" title="CentOS" rel="tag">CentOS</a>, <a href="http://www.ghacks.net/tag/enterprise-linux/" title="enterprise linux" rel="tag">enterprise linux</a>, <a href="http://www.ghacks.net/tag/kde/" title="KDE" rel="tag">KDE</a>, <a href="http://www.ghacks.net/tag/red-hat-linux/" title="Red Hat Linux" rel="tag">Red Hat Linux</a>, <a href="http://www.ghacks.net/tag/rhel/" title="RHEL" rel="tag">RHEL</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/01/29/leave-no-trace-in-kde-with-sweeper/" title="Leave No Trace in KDE with Sweeper (January 29, 2009)">Leave No Trace in KDE with Sweeper</a> (6)</li>
	<li><a href="http://www.ghacks.net/2009/10/27/konqueror-tips-and-tricks/" title="Konqueror tips and tricks (October 27, 2009)">Konqueror tips and tricks</a> (2)</li>
	<li><a href="http://www.ghacks.net/2009/03/03/get-to-know-linux-the-pager/" title="Get To Know Linux: The Pager (March 3, 2009)">Get To Know Linux: The Pager</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/02/23/get-to-know-linux-process-management/" title="Get To Know Linux: Process Management (February 23, 2009)">Get To Know Linux: Process Management</a> (1)</li>
	<li><a href="http://www.ghacks.net/2008/12/09/get-to-know-linux-desktop-environment-vs-window-manager/" title="Get To Know Linux: Desktop Environment vs. Window Manager (December 9, 2008)">Get To Know Linux: Desktop Environment vs. Window Manager</a> (6)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/02/installing-centos-5-4/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Scanning in Linux with iscan and XSane</title>
		<link>http://www.ghacks.net/2009/11/01/scanning-in-linux-with-iscan-and-xsane/</link>
		<comments>http://www.ghacks.net/2009/11/01/scanning-in-linux-with-iscan-and-xsane/#comments</comments>
		<pubDate>Sun, 01 Nov 2009 15:04:58 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Advice]]></category>
		<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[Espon]]></category>
		<category><![CDATA[flatbed scanners]]></category>
		<category><![CDATA[linux scanning]]></category>
		<category><![CDATA[scanning]]></category>
		<category><![CDATA[usb scanners]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17986</guid>
		<description><![CDATA[If you are one of those that depends upon a scanner for your daily work, and you want to handle this task using the Linux operating system, you are in luck. In the past, Linux has had some serious issues with scanning tools. When USB scanners replaced the old parallel port scanners it seemed nothing [...]]]></description>
			<content:encoded><![CDATA[<p>If you are one of those that depends upon a scanner for your daily work, and you want to handle this task using the Linux operating system, you are in luck. In the past, Linux has had some serious issues with scanning tools. When USB scanners replaced the old parallel port scanners it seemed nothing would work. But, as usual, Linux caught up and USB scanner support started appearing. Now many scanners are supported under Linux and the tools available for scanning have improved greatly. The improvements in scanner support have been made possible by the <a title="Sane Project" href="http://www.sane-project.org" target="_blank">Sane Project</a>.</p>
<p>The first thing you will want to do is check the <a title="Supported Scanners" href="http://www.sane-project.org/sane-mfgs.html#SCANNERS" target="_blank">Sane supported scanner listing</a> on the Sane Project site. But don&#8217;t let your scanner not being on that list stop you. My Epson Perfection V30 was not on the list and I still managed to get it working with the help of iscan. The iscan package is a simple scanning tool for Epson scanners.  You can find the iscan tool within Synaptic. The iscan tool also integrates perfectly into The GIMP, so all your image needs can be met within one tool. But iscan is not the only option. There is also the Xsane tool, which is far more powerful than iscan. Let&#8217;s take a look at both of these scanning utilities to see how scanning is handled under the Linux operating system.</p>
<p><span id="more-17986"></span>NOTE: This article is not going to cover getting your scanner to work under Linux. If your scanner is not listed in the Sane hardware listing, your best bet is to google your model numer and your distribution. For example, in my case I would google <em>epson perfection v30 ubuntu 9.10</em>. You should come up with results that will tell you what approximate drivers to use to get your scanner working.</p>
<p><strong>iscan</strong></p>
<div id="attachment_17989" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17989" href="http://www.ghacks.net/2009/11/01/scanning-in-linux-with-iscan-and-xsane/iscan/"><img class="size-thumbnail wp-image-17989" src="http://www.ghacks.net/wp-content/uploads/2009/11/iscan-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>We&#8217;ll first look at iscan. This tool is, by far, the easier of the two tools to use. And, like its bigger brother XSane, it integrates perfectly with The GIMP. That doesn&#8217;t mean you have to use iscan from within The GIMP. Once installed you will find iscan within the Graphics sub menu of the Applications menu. The entry will be called &#8220;Image Scan!&#8221; (No quotes). Or, if you&#8217;d rather, you can start iscan from within The Gimp by going to the File menu, then to the Create sub menu, and selecting the &#8220;Scanning (iscan)&#8221; entry. Both will start the iscan interface.</p>
<p>When you fire up iscan you will notice how simple the interface is (see Figure 1). This scanner utility is just as easy to use as any Windows or Mac utility. The only configuration option for iscan is your print command. That is how simple this tool is.</p>
<p>With your picture in your scanner hit the Preview button to first get a preview of your image. Once the image is up you can then select the portion of the image you want to scan, select the Destination (either file or printer), and click the Scan button. When you click the Scan button you will be asked to give the file a name. The scanner will then do it&#8217;s job and save the file for you. It&#8217;s that simple.</p>
<p><strong>XSane</strong></p>
<div id="attachment_17992" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-17992" href="http://www.ghacks.net/2009/11/01/scanning-in-linux-with-iscan-and-xsane/xsane/"><img class="size-thumbnail wp-image-17992" src="http://www.ghacks.net/wp-content/uploads/2009/11/xsane-300x300.png" alt="Figure 2" width="180" height="180" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>XSane can be found in your distributions repositories. So whether you use Ubuntu or Fedoar (or anything in between), you should be able to open up your distributions Add/Remove Software tool and find XSane easily. XSane, like iscan, is a graphical frontend for the Sane project. But XSane is a bit more serious of a tool. You can see (in Figure 2) there is much more to XSane than your average scanning tool. In Figure 2 you see the standard windows that open along with the Main window. Pictured are the  Main windows (far left), Preview window (center), Standard Options window (top right), and Histogram (lower right). You can also include an Advanced Options window, and a Batch Scan window.</p>
<p>But even with all of the extra options, acquiring a scan with XSane is just as simple as with iscan. Follow these directions:</p>
<ol>
<li>Place your photo on the scanner.</li>
<li>Open XSane.</li>
<li>Click the Aquire preview button in the Preview window.</li>
<li>Adjust the size, rotation, and scale at the bottom of the Preview window.</li>
<li>Adjust the color in the Main window.</li>
<li>Select the file type in the Main window.</li>
<li>Adjust the scan resultion in the Main window.</li>
<li>Click the Scan button in the Main window.</li>
</ol>
<p>When the scan is complete a new window will open that allows you to further adjust your image. In this window you can apply a despeckle or blur filter, adjust the geometry, rotate the image, clone image, do optical character  recognition, and save the image.</p>
<p>And what about the Histogram window? This window allows you to fine-tune the color of your image. You use this tool after you preview and before you scan. You will be suprised at how well you can perfect the color of your scans with this tool.</p>
<p><strong>Final thoughts</strong></p>
<p>For my preferences, I lean toward XSane to handle my scanning tasks. But iscan does the job quite well. Either tool will allow you to take advantage of that flatbed scanner you have in your office while using Linux. One less excuse to continue using Windows. ;-)</p>
<p><strong><br />
</strong></p>

	Tags: <a href="http://www.ghacks.net/tag/espon/" title="Espon" rel="tag">Espon</a>, <a href="http://www.ghacks.net/tag/flatbed-scanners/" title="flatbed scanners" rel="tag">flatbed scanners</a>, <a href="http://www.ghacks.net/tag/linux-scanning/" title="linux scanning" rel="tag">linux scanning</a>, <a href="http://www.ghacks.net/tag/scanning/" title="scanning" rel="tag">scanning</a>, <a href="http://www.ghacks.net/tag/usb-scanners/" title="usb scanners" rel="tag">usb scanners</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/01/07/document-scanning-with-digital-cameras/" title="Document Scanning With Digital Cameras (January 7, 2009)">Document Scanning With Digital Cameras</a> (5)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/01/scanning-in-linux-with-iscan-and-xsane/feed/</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>Gmail at your fingertips on the Linux desktop</title>
		<link>http://www.ghacks.net/2009/11/01/gmail-at-your-fingertips-on-the-linux-desktop/</link>
		<comments>http://www.ghacks.net/2009/11/01/gmail-at-your-fingertips-on-the-linux-desktop/#comments</comments>
		<pubDate>Sat, 31 Oct 2009 23:39:24 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Email]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Online Services]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[desktop email]]></category>
		<category><![CDATA[gmail]]></category>
		<category><![CDATA[gmail applets]]></category>
		<category><![CDATA[prism]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17898</guid>
		<description><![CDATA[When Gmail first came out I wasn&#8217;t a fan. But after a year of use I have found Google Mail to be a very valuable tool. Because I use Gmail mostly for work-related issues, I do not always like to check it within a browser. Instead I use various applications that enable me to have [...]]]></description>
			<content:encoded><![CDATA[<p>When <a href="http://www.ghacks.net/2009/02/09/gmail-90-tools-and-tips-to-make-you-a-gmail-pro/">Gmail</a> first came out I wasn&#8217;t a fan. But after a year of use I have found Google Mail to be a very valuable tool. Because I use Gmail mostly for work-related issues, I do not always like to check it within a browser. Instead I use various applications that enable me to have my Gmail account at the ready on the Linux desktop.</p>
<p>There are a number of possible applications that can take care of this task. In this article I am going to illustrate a few of those tools for you so you can choose which one is the right one for you.  So, without further adieu, let&#8217;s get on with the installation and usage. NOTE: All of these tools can be found and installed using the new Ubuntu Software Center. For more information on that tool, take a look at my article &#8220;<a title="The new Ubuntu Software Center" href="http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/" target="_blank">The new Ubuntu Software Center</a>&#8220;.</p>
<p><span id="more-17898"></span><strong>Gmail Notifier</strong></p>
<div id="attachment_17948" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17948" href="http://www.ghacks.net/2009/11/01/gmail-at-your-fingertips-on-the-linux-desktop/gmail_notifier-2/"><img class="size-thumbnail wp-image-17948" src="http://www.ghacks.net/wp-content/uploads/2009/10/gmail_notifier-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>The Gmail Notify  is a very innocuous panel applet that also pops up warnings when you have calendar event notifications set up . The setup of this applet is simple. When you first run the Gmail Notifier a windows will appear (see Figure 1) where you enter your Gmail username/password and configure any options you want. But ultimately all this little applet does is reside in your panel and checks your Gmail Account for new email and pops up alerts.</p>
<p>Make sure, during the configuration, you set your Browser path or when select &#8220;Go To Inbox&#8221; from the right click menu, no action will be taken.</p>
<p>This entry in the Gmail Linux desktop apps is one of the less flashy, but also less intrusive as, say, the Prism take on desktop Gmail.</p>
<p><strong>Check Gmail</strong></p>
<p>This entry in the desktop Gmail space is one of my favorites. One of the main reasons why I like this one so much is that it only takes a simple mouse over on the panel applet to see a full listing of your Gmail inbox. Now, before you even try to start this application up there is a problem. Out of the box the Check Gmail applet will not be able to log into your account. You will go batty trying to make sure you type in your password correctly. The problem is the executable file in <strong>/usr/bin</strong>. I&#8217;m not sure why the developer has not fixed this (the error has been known since 2007), but here&#8217;s the fix:</p>
<p><code>wget http://checkgmail.svn.sourceforge.net/viewvc/*checkout*/checkgmail/checkgmail<br />
sudo mv checkgmail /usr/bin/<br />
sudo chmod +x /usr/bin/checkgmail</code></p>
<div id="attachment_17960" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-17960" href="http://www.ghacks.net/2009/11/01/gmail-at-your-fingertips-on-the-linux-desktop/check_gmail_right_click/"><img class="size-thumbnail wp-image-17960" src="http://www.ghacks.net/wp-content/uploads/2009/10/check_gmail_right_click-300x215.png" alt="Figure 2" width="180" height="129" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>Once you have done that, Check Gmail will be able to log into your account. Once logged in you will see a tiny red and white applet in your panel that you can right click to get a menu of items to select from (see Figure 2) or you can hover your mouse over to see the first few emails in your inbox and the first couple of upcoming events in your calendar (see Figure 3).</p>
<div id="attachment_17961" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17961" href="http://www.ghacks.net/2009/11/01/gmail-at-your-fingertips-on-the-linux-desktop/check_gmail_popup/"><img class="size-thumbnail wp-image-17961" src="http://www.ghacks.net/wp-content/uploads/2009/10/check_gmail_popup-300x300.png" alt="Figure 3" width="180" height="180" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>If you do a single left click on the icon your browser window will open for you to log into Gmail. If you right click and select Compose Mail you will also be first taken to the sign in page. Even if you configure Check Gmail to save your password you will still have to sign in to your account before you can read or compose. This is a bit of a frustration and should not be a default behavior. This even happens if you already have a Gmail window open that is authenticated to your account.It would also be nice if you could set the background of the pop up to be transparent so it would be a bit less intrusive, but the application is very usable.</p>
<p><strong>Gmail Prism</strong></p>
<p>What would be a listing of Gmail Apps without including an actual web-based app. I mentioned Prism in my article &#8220;<a title="Install Prism on Linux for easy to use web apps" href="http://www.ghacks.net/2009/09/26/install-prism-on-linux-for-easy-to-use-web-apps/" target="_blank">Install Prism on Linux for easy to use web apps</a>&#8220;. You will find the Prism app listed in Synaptic as <em>Google Mail</em> or <em>Prism for Google Mail</em>. Very little needs to be said about the Prism app other than it&#8217;s nothing more than a stripped-down browser window that logs you into your Gmail account. There is no applet to remain out of your way &#8211; just a window.</p>
<p><strong>Which is best?</strong></p>
<p>From my experience (and for my preference) Check Gmail gets the vote. Although it has some issues that must be overcome before it will work, once it is working it is the usable of the Gmail applications available. If you rely on Gmail, and check it regularly, you would do well to at least give one of the above a try.</p>

	Tags: <a href="http://www.ghacks.net/tag/desktop-email/" title="desktop email" rel="tag">desktop email</a>, <a href="http://www.ghacks.net/tag/gmail/" title="gmail" rel="tag">gmail</a>, <a href="http://www.ghacks.net/tag/gmail-applets/" title="gmail applets" rel="tag">gmail applets</a>, <a href="http://www.ghacks.net/tag/prism/" title="prism" rel="tag">prism</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/06/16/two-quick-email-tips-to-save-the-day/" title="Two Quick Email Tips To Save The Day (June 16, 2009)">Two Quick Email Tips To Save The Day</a> (19)</li>
	<li><a href="http://www.ghacks.net/2009/01/29/offline-gmail-buzz/" title="Offline Gmail Buzz (January 29, 2009)">Offline Gmail Buzz</a> (12)</li>
	<li><a href="http://www.ghacks.net/2009/04/22/gmail-ui-for-thunderbird/" title="Gmail UI For Thunderbird (April 22, 2009)">Gmail UI For Thunderbird</a> (3)</li>
	<li><a href="http://www.ghacks.net/2008/12/27/are-you-up-for-an-email-client-with-unique-features-read-on/" title="Are You Up For An Email Client With Unique Features? Read On! (December 27, 2008)">Are You Up For An Email Client With Unique Features? Read On!</a> (16)</li>
	<li><a href="http://www.ghacks.net/2007/03/28/yahoo-to-offer-unlimited-email-storage/" title="Yahoo to offer unlimited Email Storage (March 28, 2007)">Yahoo to offer unlimited Email Storage</a> (8)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/11/01/gmail-at-your-fingertips-on-the-linux-desktop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>The new Ubuntu Software Center</title>
		<link>http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/</link>
		<comments>http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/#comments</comments>
		<pubDate>Fri, 30 Oct 2009 17:28:03 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[add/remove software]]></category>
		<category><![CDATA[gdebi]]></category>
		<category><![CDATA[installing software]]></category>
		<category><![CDATA[Karmic Koala]]></category>
		<category><![CDATA[Synaptic]]></category>
		<category><![CDATA[ubuntu 9.10]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17900</guid>
		<description><![CDATA[You may remember my mention of the Ubuntu Software Center in my article &#8220;Ubuntu Karmic Koala preview&#8220;. Well, Karmic Koala is now officially Ubuntu 9.10 and is on the streets. I have installed the release and am as pleased as I expected I would be. One aspect of 9.10 that I was most interested in [...]]]></description>
			<content:encoded><![CDATA[<p>You may remember my mention of the Ubuntu Software Center in my article &#8220;<a title="Ubuntu Karmic Koala preview" href="http://www.ghacks.net/2009/10/04/ubuntu-karmic-koala-preview/" target="_blank">Ubuntu Karmic Koala preview</a>&#8220;. Well, Karmic Koala is now officially Ubuntu 9.10 and is on the streets. I have installed the release and am as pleased as I expected I would be. One aspect of 9.10 that I was most interested in was the new Ubuntu Software Center. I have always been a big fan of apt-get and Synaptic, so I was curious as to how Ubuntu could possibly improve on either of these tools. I have used the Software Center a few times already and I can see why Ubuntu migrated to this new system: It&#8217;s very user friendly (more so than the original Add/Remove Software tool), it&#8217;s reliable, it&#8217;s easier to add new repositories, and it has a much cleaner interface.</p>
<p>But can this tool take the place of the original tools? Can the Ubuntu Software Center usurp both Add/Remove Software and Synaptic? Let&#8217;s examine the tool and draw our conclusions.</p>
<p><span id="more-17900"></span>The ultimate goal for the Ubuntu Software Center is to become a single point of focus for software management in Ubuntu. Effectively, the Software Center is going to become the Ubuntu version of the iPhone App Store. Here are the current and planned features:</p>
<ul>
<li><span style="background-color: #ffffff">Install open source/free software (Version 1).</span></li>
<li><span style="background-color: #ffffff">Install commercial/non-free software (Version 3).</span></li>
<li><span style="background-color: #ffffff">Rate and review software (Version 2).</span></li>
<li><span style="background-color: #ffffff">Replace Synaptic and Gdebi (Version 2).</span></li>
</ul>
<p>So by Version 3 the Ubuntu Software Center will be a total one-stop shop for Linux software installation in Ubuntu. Exciting times indeed. But right now we&#8217;re at Version 1 and the big question is, does it stand up to previous tools. Let&#8217;s take a look.</p>
<p><strong>The interface</strong></p>
<div id="attachment_17901" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17901" href="http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/ubuntu_software_center/"><img class="size-thumbnail wp-image-17901 " src="http://www.ghacks.net/wp-content/uploads/2009/10/ubuntu_software_center-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>When you fire up the Ubuntu Software Center (done by clicking on the entry in the Applications menu) the main window is laid out very clearly (see Figure 1)<span style="background-color: #ffffff"> will be the Banshee (since it has been referenced a number of times on Ghacks.)</span></p>
<p>To locate Banshee either click on the Sound &amp; Video category (from the main page) or enter &#8220;banshee&#8221; (no quotes) in the search field and hit Enter.</p>
<div id="attachment_17902" class="wp-caption alignright" style="width: 190px"><a rel="attachment wp-att-17902" href="http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/ubuntu_software_center_select/"><img class="size-thumbnail wp-image-17902 " src="http://www.ghacks.net/wp-content/uploads/2009/10/ubuntu_software_center_select-300x300.png" alt="Figure 2" width="180" height="180" /></a><p class="wp-caption-text">Figure 2</p></div>
<p>When the listing appears, select the entry, and click on the right-pointing arrow that appears (see Figure 2). When you click that arrow you will be presented with an information window that allows you to either install the software or visit the software&#8217;s web page.</p>
<div id="attachment_17904" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17904" href="http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/ubuntu_software_center_app_info/"><img class="size-thumbnail wp-image-17904 " src="http://www.ghacks.net/wp-content/uploads/2009/10/ubuntu_software_center_app_info-300x300.png" alt="Figure 3" width="180" height="180" /></a><p class="wp-caption-text">Figure 3</p></div>
<p>In order to install the selected software, click on the Install button (see Figure 3) which will require you to enter your sudo password. Upon entering your password a new pane will open up showing the progress of the installation. Depending upon the size of the application, this progress could take a while. The speed of the download will also be directly effected by the newness of the 9.10 release and how busy the repositories are.</p>
<p>Once the software is installed you will be returned to the information window that will look a bit different. Where the &#8220;Install&#8221; button was is now a &#8220;Remove&#8221; button and, if available, a screenshot will appear.</p>
<p><strong>Adding repositories</strong></p>
<p>Where adding new software sources in Synaptic could be somewhat confusing to new users, adding these same sources in the Software Center has become incredibly easy. All you have to do is follow these steps:</p>
<ol>
<li><span style="background-color: #ffffff">Click on the Edit menu. </span></li>
<li><span style="background-color: #ffffff">Click the Software Sources entry.</span></li>
<li><span style="background-color: #ffffff">Enter your password if you haven&#8217;t already authenticated.</span></li>
<li><span style="background-color: #ffffff">Click on the Other Software tab in the Sources window.</span></li>
<li><span style="background-color: #ffffff">Click the Add button.</span></li>
<li><span style="background-color: #ffffff">Enter the entire line (the same line you would add to the <strong>/etc/apt/sources.list</strong> file in the text area).</span></li>
<li><span style="background-color: #ffffff">Click the Add Source button.</span></li>
</ol>
<p>You&#8217;re done. You no longer have to enter multiple pieces of information for a repository to be added.</p>
<p><strong>Final thoughts</strong></p>
<p>At first I was skeptical about the new Software Center. But after using the tool, and seeing where the tool is heading, I like what I am seeing (and using). I think Ubuntu is going to have a major hit on their hands with the Software Center.</p>

	Tags: <a href="http://www.ghacks.net/tag/addremove-software/" title="add/remove software" rel="tag">add/remove software</a>, <a href="http://www.ghacks.net/tag/gdebi/" title="gdebi" rel="tag">gdebi</a>, <a href="http://www.ghacks.net/tag/installing-software/" title="installing software" rel="tag">installing software</a>, <a href="http://www.ghacks.net/tag/karmic-koala/" title="Karmic Koala" rel="tag">Karmic Koala</a>, <a href="http://www.ghacks.net/tag/synaptic/" title="Synaptic" rel="tag">Synaptic</a>, <a href="http://www.ghacks.net/tag/ubuntu-9-10/" title="ubuntu 9.10" rel="tag">ubuntu 9.10</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/03/08/adding-repositories-to-synaptic/" title="Adding Repositories to Synaptic (March 8, 2009)">Adding Repositories to Synaptic</a> (1)</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> (1)</li>
	<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> (22)</li>
	<li><a href="http://www.ghacks.net/2009/07/20/synaptic-tips-and-tricks/" title="Synaptic tips and tricks (July 20, 2009)">Synaptic tips and tricks</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/05/04/installing-flash-in-ubuntu-904-with-firefox/" title="Installing Flash in Ubuntu 9.04 with Firefox (May 4, 2009)">Installing Flash in Ubuntu 9.04 with Firefox</a> (23)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/30/the-new-ubuntu-software-center/feed/</wfw:commentRss>
		<slash:comments>10</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>Xbox Media Center on Linux</title>
		<link>http://www.ghacks.net/2009/10/28/xbox-media-center-on-linux/</link>
		<comments>http://www.ghacks.net/2009/10/28/xbox-media-center-on-linux/#comments</comments>
		<pubDate>Wed, 28 Oct 2009 16:04:09 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Hardware]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Music and Video]]></category>
		<category><![CDATA[Tutorials Advanced]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[media center]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[video playback]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17827</guid>
		<description><![CDATA[The Xbox Media Center arrived in 2004 and became popular so quickly that it became clear more ports would be needed. So the XBMC team allowed this tool to evolve into a cross platform media center that would run on just about anything you can think of.  But, of course, the purpose of this article [...]]]></description>
			<content:encoded><![CDATA[<p>The <a title="XBMC" href="http://xbmc.org/" target="_blank">Xbox Media Center</a> arrived in 2004 and became popular so quickly that it became clear more ports would be needed. So the XBMC team allowed this tool to evolve into a cross platform media center that would run on just about anything you can think of.  But, of course, the purpose of this article is to install XBMC on Linux. Although XBMC can be installed on most Linux distributions, the Ubuntu installation is the least painful. I&#8217;ll first illustrate the installation on Ubuntu and then on Fedora. Once installed, you will find XBMC meets many (if not all) of your media center needs similar to that of Windows Media Center.</p>
<p>Of course, ideally, you will want to install XBMC on a machine intended for multi-media use. It will work on lower-end video cards, but the interface will be somewhat slower. For a complete listing of supported hardware check out the <a title="XBMC supported hardware" href="http://xbmc.org/wiki/?title=Supported_hardware" target="_blank">XBMC hardware page</a>. Now, let&#8217;s get on with the installation.</p>
<p><span id="more-17827"></span></p>
<p><strong>Ubuntu</strong></p>
<p>I will give you a warning here: The most recently supported Ubuntu is 8.10. That does not, however, mean it will not install on anything later. I have XBMC installed and working fine on Ubuntu 9.04. With that in mind here are the installation steps for Ubuntu.</p>
<p>Open up your <strong>/etc/apt/sources.list</strong> file and add the following to the end:<br />
<code>deb http://ppa.launchpad.net/team-xbmc-hardy/ubuntu hardy main<br />
deb-src http://ppa.launchpad.net/team-xbmc-hardy/ubuntu hardy main</code></p>
<p>Save that file and then issue the command:</p>
<p><em>sudo apt-get update</em></p>
<p>Once the update is complete issue the following command:<br />
<em> </em></p>
<p><em>sudo apt-get install xbmc</em></p>
<p>If you want to install extra skins, issue this command:</p>
<p><em>sudo apt-get install xbmc-skin-*</em></p>
<div id="attachment_17833" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17833" href="http://www.ghacks.net/2009/10/28/xbox-media-center-on-linux/xbmc/"><img class="size-thumbnail wp-image-17833" src="http://www.ghacks.net/wp-content/uploads/2009/10/xbmc-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>You will find the XBMC menu entry in the Sound And Video sub-menu of the Applications menu. When XBMC opens you will see a very user-friendly interface (see Figure 1).</p>
<p>Now it&#8217;s time for a less than user-friendly installation. Because there have been no rpm files created for Fedora, the installation requires a number of steps which will lead you to compiling XBMC. These steps will work for Fedora 8, 9, and 10 as well as CentOS 5.2. Here we go. NOTE: You will need to be the root user for this installation.</p>
<p>If you don&#8217;t already have Subversion install, do so now with the command:</p>
<p><em>yum install subversion</em></p>
<p>Once Subversion is installed, check out XBMC from subversion with the command:</p>
<p><em>svn co https://xbmc.svn.sourceforge.net/svnroot/xbmc/trunk</em></p>
<p>Now install the rpmfusion repository with one of the following commands:</p>
<p>Fedora:</p>
<p><em>rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm</em></p>
<p>and</p>
<p><em>rpm -Uvh http://download1.rpmfusion.org/nonfree/fedora/rmpfusion-nonfree-release-stable.noarch.r</em>pm</p>
<p>CentOS 5 (32 bit):<br />
<em>rpm -Uvh http://apt.sw.be/redhat/e15/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.e15.rf.i386.rpm</em></p>
<p>CentOS 5 (64 bit):</p>
<p><em>rpm -Uvh http://apt.sw.be/redhat/e15/en/x86_64/rpmforge/RPMS/rpmforge-release-0.3.6-1.e15.rf.x86_64.rpm</em></p>
<p>Now the fun begins. This installation command is all one line:<br />
<code>yum install SDL* glew glew-devel libmad-devel tre tre-devel libogg libogg-devel libvorbis libvorbis-devel boost boost-devel bzip2-devel bzip2-libs fribidi* lzo lzo-devel mysql-libs mysql-devel jasper jasper-devel faac faac-devel enca enca-devel hal hal-devel hal-libs cmake gperf nasm libXmu-devel fontconfig-devel freetype-devel libXinerama-devel pcre-devel gcc-c++ sqlite-devel curl-devel mysql-devel libcdio-devel libmms-devel faad2-devel flac-devel libsmbclient-devel libXtst-devel</code></p>
<p>The next step creates a symbolic link for the libmysqlclient.so file. The command is one of these two (depending upon your architecture):</p>
<p>For i386:</p>
<p><em>sudo ln -s /usr/lib/mysql/libmysqlclient.so.15.0.0 /usr/lib/libmysqlclient.so </em></p>
<p>For x64:<br />
<em>sudo ln -s /usr/lib64/mysql/libmysqlclient.so.15.0.0 /usr/lib64/libmysqlclient.so</em></p>
<p>Now cd into the XBMC directory (should be in the directory you are currently working in) and issue the following commands:</p>
<p><em>./bootstrap</em></p>
<p>and</p>
<p><em>./configure</em></p>
<p>and</p>
<p><em>make</em></p>
<p>If you see an error related to jpegint.h, then you might have to issue the following command:</p>
<p><em>cp XBMC/xbmx/lib/cximage-6.0/jpeg/jpegint.h /usr/include</em></p>
<p>If you have to issue the above command, then issue the <em>make </em>command again.</p>
<p>Finally issue the command:</p>
<p><em>make install</em></p>
<p>And XBMC will install.</p>
<p>On Fedora distributions you might have an issue with SELinux. If so you will need to issue the following commands:<br />
<code>chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avutil-50-i486-linux.so'<br />
chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avcodec-52-i486-linux.so'<br />
chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/avformat-52-i486-linux.so'<br />
chcon -t textrel_shlib_t '/usr/local/share/xbmc/system/players/dvdplayer/swscale-0.6.1-i486-linux.so'</code></p>
<p>That&#8217;s it for the Fedora/CentOS installation. You should find XBMC in your Video menu. If you can&#8217;t seem to find a menu entry you can always enter <em>xbmc </em>in either a terminal window or the run dialog.</p>
<p><strong>Final thoughts</strong></p>
<p>XBMC is an outstanding media center software. It will play your CDs and DVDs flawlessly. If you have the hardware for this software, it is a much better solution than most other Linux video solutions.</p>

	Tags: <a href="http://www.ghacks.net/tag/media-center/" title="media center" rel="tag">media center</a>, <a href="http://www.ghacks.net/tag/multimedia/" title="multimedia" rel="tag">multimedia</a>, <a href="http://www.ghacks.net/tag/video-playback/" title="video playback" rel="tag">video playback</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2008/08/14/xbox-media-center-cross-platform-alpha/" title="Xbox Media Center Cross Platform Alpha (August 14, 2008)">Xbox Media Center Cross Platform Alpha</a> (2)</li>
	<li><a href="http://www.ghacks.net/2008/11/20/xbmc-media-center-final/" title="XBMC Media Center Final (November 20, 2008)">XBMC Media Center Final</a> (13)</li>
	<li><a href="http://www.ghacks.net/2006/09/02/the-perfect-multimedia-device/" title="The perfect multimedia device (September 2, 2006)">The perfect multimedia device</a> (3)</li>
	<li><a href="http://www.ghacks.net/2006/04/09/ten-video-sharing-services-compared/" title="Ten Video Sharing Services Compared (April 9, 2006)">Ten Video Sharing Services Compared</a> (1)</li>
	<li><a href="http://www.ghacks.net/2007/09/08/smplayer-0551/" title="SMPlayer 0.5.51 (September 8, 2007)">SMPlayer 0.5.51</a> (17)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/28/xbox-media-center-on-linux/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Konqueror tips and tricks</title>
		<link>http://www.ghacks.net/2009/10/27/konqueror-tips-and-tricks/</link>
		<comments>http://www.ghacks.net/2009/10/27/konqueror-tips-and-tricks/#comments</comments>
		<pubDate>Tue, 27 Oct 2009 18:32:11 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Browsing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Online Services]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[Search Engines]]></category>
		<category><![CDATA[Tutorials Basic]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[file manager]]></category>
		<category><![CDATA[KDE]]></category>
		<category><![CDATA[kio_slaves]]></category>
		<category><![CDATA[Konqueror]]></category>
		<category><![CDATA[split view browser]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17789</guid>
		<description><![CDATA[If you are familar with KDE you know Konqueror. Konqueror used to be one of the finest file managers on the PC desktop &#8211; period. But now KDE has migrated toward a simpler, more user-friendly file manager (Dolphin) and pushed Konqueror to serve as a web-browser only. That does not mean Konqueror can not be [...]]]></description>
			<content:encoded><![CDATA[<p>If you are familar with KDE you know Konqueror. Konqueror used to be one of the finest file managers on the PC desktop &#8211; period. But now KDE has migrated toward a simpler, more user-friendly file manager (Dolphin) and pushed Konqueror to serve as a web-browser only. That does not mean Konqueror can not be used as a file manager. It can. In fact, Konqueror can do many things. From file management, to secure shell gui, to imap connections, and many more tricks. Konqueror is one of those Swiss Army Knife tools that many people over look. Well, we&#8217;re not going to overlook this outstanding tool.</p>
<p>In this article I am going to show you a few tips and tricks that you can apply to the Konqueror web browser to make your Konqueror (and KDE) experience even more flexible and powerful than it already is.</p>
<p><span id="more-17789"></span></p>
<p><strong>KIO Slaves</strong></p>
<p>KDE Input/Output slaves allows Konqueror to take advantage of external applications making it far more usable. Depending on what kio_slave you want to use the input for Konqueror will be different. Let&#8217;s take a look at some of the more useful slaves.</p>
<p><em>fish://</em></p>
<p>If you start an address with <em>fish://</em> you are telling Konqueror to make use of the ssh protocol. With this you can connect to a remote ssh server and even copy/paste to that server from within Konqueror. To do this you would enter an address like:</p>
<p><em>fish://USERNAME@ADDRESS</em></p>
<p>Where USERNAME is an actual username on the remote machine and ADDRESS is the actual address of the remote machine. You will be prompted for a password, unless you already have this connection set up for passwordless secure shell connections (see &#8220;<a title="Five handy secure shell tips and tricks" href="http://www.ghacks.net/2009/10/17/five-handy-secure-shell-tips-and-tricks/" target="_blank">Five handy secure shell tips and tricks</a>&#8220;).</p>
<p>imaps://USER@PASSWORD@ADDRESS:PORT</p>
<p>Where:</p>
<ul>
<li><span style="background-color: #ffffff">USER is the actual user name.</span></li>
<li><span style="background-color: #ffffff">PASSWORD is the users password.</span></li>
<li><span style="background-color: #ffffff">ADDRESS is the address of the imap server.</span></li>
<li><span style="background-color: #ffffff">PORT is the port used for the imap server.</span></li>
</ul>
<p><strong>Quick search</strong></p>
<p>If you enter <em>gg: linux</em> in the Konqueror address bar you will get a page with the Google results of the string &#8220;linux&#8221;. Konqueror has a lot of pre-configured quick search shortcuts like this. For example:</p>
<ul>
<li><span style="background-color: #ffffff">gg &#8211; Google</span></li>
<li><span style="background-color: #ffffff">fm &#8211; Freshmeat</span></li>
<li><span style="background-color: #ffffff">froogle &#8211; Froogle</span></li>
<li><span style="background-color: #ffffff">msdn &#8211; Microsoft Developer Network</span></li>
<li><span style="background-color: #ffffff">odp &#8211; Open Dictionary</span></li>
<li><span style="background-color: #ffffff">tr &#8211; Technorati</span></li>
<li><span style="background-color: #ffffff">wp &#8211; Wikipedia</span></li>
</ul>
<p>You can also create your own by issuing the command <em>kcmshell4 ebrowsing </em>in either the run dialog or a terminal window. In the new window click the New button and then fill out the following information:</p>
<ul>
<li><span style="background-color: #ffffff">Search Provider Name: Give your shortcut a name.</span></li>
<li><span style="background-color: #ffffff">Search URI: The URI the site you are adding uses.</span></li>
<li><span style="background-color: #ffffff">URI Shortcuts: Comma delineated list of shortcuts.</span></li>
</ul>
<p>So let&#8217;s say I want to create a short cut for searching amazon.com. To do that I would enter the following information:</p>
<ul>
<li><span style="background-color: #ffffff">Name: Amazon</span></li>
<li><span style="background-color: #ffffff">URI: http://www.amazon.com/s?url=search-alias%3Daps&amp;field-keywords=\{@}</span></li>
<li><span style="background-color: #ffffff">URI Shorcuts: az,amazon</span></li>
</ul>
<p>So now if I want to do a search for the string &#8220;Linux&#8221; on amazon.com I would just enter:</p>
<p><em>az: Linux</em></p>
<p>In the address bar.</p>
<p><strong>Split views</strong></p>
<div id="attachment_17796" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17796" href="http://www.ghacks.net/2009/10/27/konqueror-tips-and-tricks/konq_split/"><img class="size-thumbnail wp-image-17796 " src="http://www.ghacks.net/wp-content/uploads/2009/10/konq_split-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>Not only can Konqueror do tabs, it can do split windows. Say you want to do some comparing of windows, or just want to be able to see more than one window at a time. With Konqueror you can split the view either horizontally or vertically by going to the Windows menu and selecting either Horizontal or Vertical and you can have two windows open at once for simple viewing. NOTE: Whichever window has the focus is the window that the address bar will effect. In other words, if you want to change the page on the right pane, click on the right pane and then enter the url in the address bar. If you want to close a pane &lt;Ctrl&gt;&lt;Shift&gt;R will close the active window.</p>
<p><strong>Final thoughts</strong></p>
<p>Konqueror is a very powerful, flexible tool that can be extended well beyond its intentions. Have you found a cool trick that applies to Konqueror as either a web browser or file manager? If so, share it with your fellow Ghacks readers.</p>

	Tags: <a href="http://www.ghacks.net/tag/file-manager/" title="file manager" rel="tag">file manager</a>, <a href="http://www.ghacks.net/tag/kde/" title="KDE" rel="tag">KDE</a>, <a href="http://www.ghacks.net/tag/kio_slaves/" title="kio_slaves" rel="tag">kio_slaves</a>, <a href="http://www.ghacks.net/tag/konqueror/" title="Konqueror" rel="tag">Konqueror</a>, <a href="http://www.ghacks.net/tag/split-view-browser/" title="split view browser" rel="tag">split view browser</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2006/08/17/windows-file-manager-free-commander/" title="Windows File Manager Free Commander (August 17, 2006)">Windows File Manager Free Commander</a> (3)</li>
	<li><a href="http://www.ghacks.net/2009/02/25/scandir-directory-lists-manager/" title="ScanDir Directory Lists Manager (February 25, 2009)">ScanDir Directory Lists Manager</a> (1)</li>
	<li><a href="http://www.ghacks.net/2009/01/29/leave-no-trace-in-kde-with-sweeper/" title="Leave No Trace in KDE with Sweeper (January 29, 2009)">Leave No Trace in KDE with Sweeper</a> (6)</li>
	<li><a href="http://www.ghacks.net/2009/11/02/installing-centos-5-4/" title="Installing CentOS 5.4 (November 2, 2009)">Installing CentOS 5.4</a> (4)</li>
	<li><a href="http://www.ghacks.net/2009/03/03/get-to-know-linux-the-pager/" title="Get To Know Linux: The Pager (March 3, 2009)">Get To Know Linux: The Pager</a> (4)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/27/konqueror-tips-and-tricks/feed/</wfw:commentRss>
		<slash:comments>2</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>File Synchronization With Free File Sync</title>
		<link>http://www.ghacks.net/2009/10/26/file-synchronization-with-free-file-sync/</link>
		<comments>http://www.ghacks.net/2009/10/26/file-synchronization-with-free-file-sync/#comments</comments>
		<pubDate>Mon, 26 Oct 2009 08:08:51 +0000</pubDate>
		<dc:creator>Martin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[file sync]]></category>
		<category><![CDATA[file synchronization]]></category>
		<category><![CDATA[free file sync]]></category>
		<category><![CDATA[linux software]]></category>
		<category><![CDATA[Open Source]]></category>
		<category><![CDATA[windows software]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17718</guid>
		<description><![CDATA[File synchronization can come in handy in several situations. Think of users with multiple computer systems, e.g. a desktop PC and a laptop or netbook. File synchronization can help them to synchronize emails, bookmarks, spreadsheets and every other kind of data that was created or changed on one of the computer systems. It can also [...]]]></description>
			<content:encoded><![CDATA[<p>File synchronization can come in handy in several situations. Think of users with multiple computer systems, e.g. a desktop PC and a laptop or netbook. File synchronization can help them to synchronize emails, bookmarks, spreadsheets and every other kind of data that was created or changed on one of the computer systems. It can also be used for backup services by automatically synchronizing the data of the main computer system with a backup server or external storage device.</p>
<p>Free File Sync is an Open Source file synchronization software that&#8217;s above everything else super-easy to use. The main interface is separated into a left and right column. Directories can be added to each column. The two main actions offered by Free File Sync are to compare or synchronize the directories and the files residing in them. A click on the Compare button at the top will generate a directory and file listing for every directory that has been added to the application.</p>
<p><span id="more-17718"></span>All files and directories are displayed in both columns with a blank row in the opposite column if the file or directory does not exist there. Information about each file including its name, size and modification date are displayed in the table as well. Arrows in the middle indicate the action (e.g. overwrite file in the left column, copy file to the right column) are taken if the Synchronize button is pressed.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/10/file_synchronization-500x327.jpg" alt="file synchronization" title="file synchronization" width="500" height="327" class="alignnone size-medium wp-image-17719" /></p>
<p>Statistics for each column are displayed in the footer listing the number of directories, files and the size of the data conveniently. There are also general statistics about the total number of files and folders that would be created if the user would synchronize the files. Several advanced options are available. The file synchronization program supports file filters and several different ways of comparing and synchronizing files. Files are initially compared by name, size and date which can be changed to a file content comparison instead.</p>
<p>Four different file synchronization options are provided by Free File Sync as well with automatic synchronization of both sides selected by default. This can be changed to mirror files that reside in the left folder to the right folder, copy or update files from the left to the right folder or a two way synchronization which synchronizes both sides simultaneously.</p>
<p><img src="http://www.ghacks.net/wp-content/uploads/2009/10/file_sync-500x454.jpg" alt="file sync" title="file sync" width="500" height="454" class="alignnone size-medium wp-image-17720" /></p>
<p>A batch job can be created using the parameters configured before. Batch jobs can be executed by starting the file synchronization software with the file name of the batch job as a parameter. This makes it also possible to add the file patronization as a scheduled task in the Windows Task Scheduler.</p>
<p>Free File Sync is easy to use. It takes only a few minutes the most to compare or synchronize files and another few to create a batch file to sync files regularly with little to no user interaction. The program is <a href="http://sourceforge.net/projects/freefilesync/">available</a> at the Sourceforge website where it is available for 32-bit editions of Windows and Ubuntu.</p>

	Tags: <a href="http://www.ghacks.net/tag/file-sync/" title="file sync" rel="tag">file sync</a>, <a href="http://www.ghacks.net/tag/file-synchronization/" title="file synchronization" rel="tag">file synchronization</a>, <a href="http://www.ghacks.net/tag/free-file-sync/" title="free file sync" rel="tag">free file sync</a>, <a href="http://www.ghacks.net/tag/linux-software/" title="linux software" rel="tag">linux software</a>, <a href="http://www.ghacks.net/tag/open-source/" title="Open Source" rel="tag">Open Source</a>, <a href="http://www.ghacks.net/tag/windows-software/" title="windows software" rel="tag">windows software</a><br />

	<h4>Related posts</h4>
	<ul class="st-related-posts">
	<li><a href="http://www.ghacks.net/2009/07/07/vlc-media-player-1-0-released/" title="VLC Media Player 1.0 Released (July 7, 2009)">VLC Media Player 1.0 Released</a> (9)</li>
	<li><a href="http://www.ghacks.net/2009/10/22/open-office-4-kids/" title="Open Office 4 Kids (October 22, 2009)">Open Office 4 Kids</a> (11)</li>
	<li><a href="http://www.ghacks.net/2009/05/05/open-office-31/" title="Open Office 3.1 (May 5, 2009)">Open Office 3.1</a> (17)</li>
	<li><a href="http://www.ghacks.net/2009/05/20/music-management-software-jajuk/" title="Music Management Software Jajuk (May 20, 2009)">Music Management Software Jajuk</a> (6)</li>
	<li><a href="http://www.ghacks.net/2008/11/04/metamorphose-file-and-folder-renamer/" title="Metamorphose File And Folder Renamer (November 4, 2008)">Metamorphose File And Folder Renamer</a> (1)</li>
</ul>

]]></content:encoded>
			<wfw:commentRss>http://www.ghacks.net/2009/10/26/file-synchronization-with-free-file-sync/feed/</wfw:commentRss>
		<slash:comments>8</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> (0)</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> (0)</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>Lotus Symphony on Linux: Install a part of &#8220;IBM&#8217;s Smart Work&#8221;</title>
		<link>http://www.ghacks.net/2009/10/23/lotus-symphony-on-linux-install-a-part-of-ibms-smart-work/</link>
		<comments>http://www.ghacks.net/2009/10/23/lotus-symphony-on-linux-install-a-part-of-ibms-smart-work/#comments</comments>
		<pubDate>Fri, 23 Oct 2009 17:49:42 +0000</pubDate>
		<dc:creator>Jack Wallen</dc:creator>
				<category><![CDATA[Desktop Manager]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile Computing]]></category>
		<category><![CDATA[companies]]></category>
		<category><![CDATA[software]]></category>
		<category><![CDATA[cloud computing]]></category>
		<category><![CDATA[ibm]]></category>
		<category><![CDATA[lotus]]></category>
		<category><![CDATA[smart work]]></category>
		<category><![CDATA[symphony]]></category>
		<category><![CDATA[windows alternative]]></category>

		<guid isPermaLink="false">http://www.ghacks.net/?p=17626</guid>
		<description><![CDATA[IBM recently announced they are pairing up with Cannonical and Red Hat to develop a Windows 7 alternative (see &#8220;IBM Client for Smart Work&#8220;). This pairing makes perfect sense as IBM has been a supporter of open source and Linux for some time now. Not only that but IBM released their office suite, Lotus Symphony, [...]]]></description>
			<content:encoded><![CDATA[<p>IBM recently announced they are pairing up with Cannonical and Red Hat to develop a <a href="http://windows7news.com/">Windows 7</a> alternative (see &#8220;<a title="IBM Client for Smart Work" href="http://www-01.ibm.com/software/lotus/openclient/" target="_blank">IBM Client for Smart Work</a>&#8220;). This pairing makes perfect sense as IBM has been a supporter of open source and Linux for some time now. Not only that but IBM released their office suite, Lotus Symphony, a few years ago. Back when this suite was released I did some technical journals on it only to find it difficult to install, rather buggy, and not well supported. That was then, this is now.</p>
<p><span id="more-17626"></span></p>
<p>Now IBM sees a developing market for more cost-effective solutions to the Microsoft Windows/Office combination. This solution (for which I hope they find a better name than &#8220;IBM Client for Smart Work&#8221;) will consist of:</p>
<ul>
<li><span style="background-color: #ffffff">Lotus Symphony</span></li>
<li><span style="background-color: #ffffff">Lotus Live</span></li>
<li><span style="background-color: #ffffff">Lotus Notes</span></li>
</ul>
<p>The difference between the Red Hat and Ubuntu versions is quite interesting. On the Ubuntu side the Lotus tools will be doled out via cloud. On the Red Hat side all tools will be on the desktop. To me this is smart marketing because it brings both Linux distributions together to work on a single project, but doesn&#8217;t pit each distribution against one another.</p>
<p>I believe that both of these solutions seems sound as well as outstanding alternatives to the current Windows environment. But what about the meat of the issue &#8211; the office suite? Does it work? Can it stand up to all the competition? This is where you decided. I will show you how this office suite is installed/used and you can kick those tires and see if it is a worthy opponent.</p>
<p><strong>Installing</strong></p>
<p>The first thing you need to do is go to the <a title="Lotus Symphony" href="http://www14.software.ibm.com/webapp/download/nochargesearch.jsp?cat=&amp;q0=&amp;pf=&amp;k=ALL&amp;pn=&amp;pid=&amp;rs=&amp;S_TACT=104CBW71&amp;status=Active&amp;S_CMP=&amp;b=&amp;sr=1&amp;q=symphony+1.3&amp;ibm-search=Search" target="_blank">Symphony download page</a> and download the version of the suite for your distribution. You will have to agree to a license as well as enter your name, email address, etc.</p>
<p>You can download for Windows, OS X, or Linux (Ubuntu, Red Hat, SuSE). The Ubuntu file will be a .deb file and both the Red Hat and SuSE files will be .rpm files.</p>
<p>Once you have downloaded the file you will open a terminal window, change into the directory containing the file, and issue one of these commands:</p>
<ul>
<li><span style="background-color: #ffffff">sudo dpkg -i symphony*</span></li>
<li><span style="background-color: #ffffff">rpm install -ivh symphony*</span></li>
</ul>
<p>The former command for Ubuntu and the latter command for either Red Hat or SuSE.</p>
<p>You will have to agree to a license during the install, but other than that the installation is a piece of cake.</p>
<p><strong>Post installation</strong></p>
<p>Once Symphony is installed, you can start the suite from the command line by issuing the command:</p>
<p><em>symphony</em></p>
<p>Or you will find a menu entry in the Office sub-menu of the Applications menu.</p>
<p>Symphony consists of three parts:</p>
<ul>
<li><span style="background-color: #ffffff">Word processor</span></li>
<li><span style="background-color: #ffffff">Spreadsheet</span></li>
<li><span style="background-color: #ffffff">Presentations</span></li>
</ul>
<div id="attachment_17630" class="wp-caption alignleft" style="width: 190px"><a rel="attachment wp-att-17630" href="http://www.ghacks.net/2009/10/23/lotus-symphony-on-linux-install-a-part-of-ibms-smart-work/symphony_desktop/"><img class="size-thumbnail wp-image-17630 " src="http://www.ghacks.net/wp-content/uploads/2009/10/symphony_desktop-300x300.png" alt="Figure 1" width="180" height="180" /></a><p class="wp-caption-text">Figure 1</p></div>
<p>You can not start the tools separately (reminiscent of the old Star Office suite) so when Symphony starts you will be presented with the Symphony desktop (see Figure 1).</p>
<p>From this desktop you can pretty much do anything you need. From creating a new file (click the icon associated with the type of file you want to work with) or open an existing file from the File menu.</p>
<p>I&#8217;m fairly confident that anyone reading this site can work their way around the basics of an office suite, so I won&#8217;t go into the details of how to use Symphony. In later articles I will discuss some of the &#8220;power features&#8221; of Lotus Symphony.</p>
<p><strong>Final thoughts</strong></p>
<p>If IBM plays their cards right they can take the Smart Work desktop and turn it into something that could seriously compete with Windows. This of course would be more in line with enterprise usage and not home/personal usage. I look forward to seeing how IBM continues their presence on the Linux desktop.</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/ibm/" title="ibm" rel="tag">ibm</a>, <a href="http://www.ghacks.net/tag/lotus/" title="lotus" rel="tag">lotus</a>, <a href="http://www.ghacks.net/tag/smart-work/" title="smart work" rel="tag">smart work</a>, <a href="http://www.ghacks.net/tag/symphony/" title="symphony" rel="tag">symphony</a>, <a href="http://www.ghacks.net/tag/windows-alternative/" title="windows alternative" rel="tag">windows alternative</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/09/26/install-prism-on-linux-for-easy-to-use-web-apps/" title="Install Prism on Linux for easy to use web apps (September 26, 2009)">Install Prism on Linux for easy to use web apps</a> (7)</li>
	<li><a href="http://www.ghacks.net/2008/02/03/hard-disk-low-level-format/" title="Hard Disk Low Level Format (February 3, 2008)">Hard Disk Low Level Format</a> (15)</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/10/23/lotus-symphony-on-linux-install-a-part-of-ibms-smart-work/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>
	</channel>
</rss>
