<?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>Ubuntu Linux Help &#187; server</title> <atom:link href="http://ubuntulinuxhelp.com/tag/server/feed/" rel="self" type="application/rss+xml" /><link>http://ubuntulinuxhelp.com</link> <description>Tips, Tricks and How To&#039;s for the Ubuntu Linux User</description> <lastBuildDate>Thu, 19 Jan 2012 13:15:19 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=</generator> <item><title>Building a Business Network Using Ubuntu &#8211; Introduction</title><link>http://ubuntulinuxhelp.com/building-a-business-network-using-ubuntu-introduction/</link> <comments>http://ubuntulinuxhelp.com/building-a-business-network-using-ubuntu-introduction/#comments</comments> <pubDate>Fri, 15 Jan 2010 20:21:01 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[How To]]></category> <category><![CDATA[10.04]]></category> <category><![CDATA[9.04]]></category> <category><![CDATA[desktop]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[linux]]></category> <category><![CDATA[opensource]]></category> <category><![CDATA[server]]></category> <category><![CDATA[ubuntu]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1815</guid> <description><![CDATA[This post begins the first (an introduction) in a series of several posts, discussing the benefits that Ubuntu Linux provides to business owners. Naturally, by default, I&#8217;ll be touching on several open source applications and server packages throughout the series. Hopefully I can also dispel some of the myth and uncertainty, for business owners who [...]]]></description> <content:encoded><![CDATA[<p>This post begins the first (an introduction) in a series of several posts, discussing the benefits that Ubuntu Linux provides to business owners. Naturally, by default, I&#8217;ll be touching on several open source applications and server packages throughout the series. Hopefully I can also dispel some of the myth and uncertainty, for business owners who have never used Ubuntu before.</p><p>The idea for this series was borne out of the excessive questions from clients in my work life. Some have made the switch to Ubuntu, many are interested and some don&#8217;t know enough, because they&#8217;ve never tried working with a Linux based operating system like Ubuntu.</p><p>The two Ubuntu versions I used (in my own business as well as suggest to clients) are:</p><p><a
href="http://www.ubuntu.com/getubuntu/download-server" title="Download Ubuntu Server Edition"  target="_blank">Ubuntu Server Edition</a>.<br
/> The server edition is where various business related packages are installed. Such as print servers, web servers, billing systems, firewalls, and so on.</p><p><a
href="http://www.ubuntu.com/GetUbuntu/download" title="For your desktop or laptop - download Ubuntu"  target="_blank">Ubuntu Desktop Edition</a>.<br
/> The desktop edition (also used on laptops) is where various applications are installed and used to access the resources on the server.</p><p><strong>Note:</strong> The newest Ubuntu version &#8220;Lucid&#8221; 10.04 is scheduled for release in April of 2010 and will be an LTS (&#8220;Long Term Support&#8221;) version. At which time, I&#8217;d suggest this as the version to use.</p><p>For business owners not familiar with Ubuntu, please check<span
id="more-1815"></span> the official FAQ found at: <a
href="http://www.ubuntu.com/aboutus/faq" title="Frequently Asked Questions"  target="_blank">http://www.ubuntu.com/aboutus/faq</a></p><p>If you need to purchase support (or other services), that can be obtained by visiting the <a
href="http://www.ubuntu.com/support/services" title="Ubuntu services from Canonical"  target="_blank">Ubuntu services from Canonical</a> section of their web site. And to obtain local support, you can again visit the official Ubuntu <a
href="http://webapps.ubuntu.com/marketplace/" title="Ubuntu marketplace"  target="_blank">Ubuntu Marketplace</a> section of their site.</p><p>Please make sure you do spend some time reading the material on the <a
href="http://ubuntu.com" title="Ubuntu"  target="_blank">official Ubuntu web site</a> as it will provide a valuable resource to this simple introductory post.</p><p>To address the most common questions I receive from the business owners I work with, I can sum many of them into one common threaded question &#8220;<strong>What&#8217;s in it for me?</strong>&#8221;</p><p>To answer, the biggest benefit I&#8217;ve personally experienced and Ubuntu business users also express is &#8220;<strong>Reduced ownership costs!</strong>&#8221;</p><p>In general, I find that the following specifics provide business owners with some very tangible points:</p><p><strong>Maintenance costs are lower</strong> as a result of simpler installation and package management.<br
/> <strong>Advanced security</strong> is provided by regular updates as well more flexible configuration.<br
/> <strong>Faster and easier updating</strong> as a result of superior package management applications.<br
/> <strong>Saves a lot of money</strong> as a result of using free and open source based applications and other packages.<br
/> System operation is generally <strong>faster and more efficien</strong>t as there is no bloatware or like packages preinstalled with the desktop version.<br
/> Superior reliability in that the <strong>server system is a very stable robust</strong>. In fact the &#8220;<a
href="http://www.iaps.com/2008-server-reliability-survey.html" title="2008 Server OS REliability Survey"  target="_blank">2008 Server OS Reliability Survey</a>&#8221; states that Ubuntu only had 1.1 hour of per server of downtime per year. That&#8217;s incredible!</p><p>As I alluded, this series (hopefully) will provide you with the knowledge on <strong><span
style="color: #ff0000;">how to set up your own business network using Ubuntu</span></strong>, or at the very least, provide you with enough information you can use to discuss with an ubuntu support professional.</p><p>Needless to say, your comments, input and suggestions are most welcome!</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/building-a-business-network-using-ubuntu-introduction/feed/</wfw:commentRss> <slash:comments>6</slash:comments> </item> <item><title>Faster Internet With an Old Laptop &#8211; Revisited</title><link>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-revisited/</link> <comments>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-revisited/#comments</comments> <pubDate>Tue, 01 Dec 2009 18:26:58 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[8.04]]></category> <category><![CDATA[access]]></category> <category><![CDATA[acl]]></category> <category><![CDATA[caching]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[fwebmin]]></category> <category><![CDATA[hosts]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[internet]]></category> <category><![CDATA[proxy]]></category> <category><![CDATA[server]]></category> <category><![CDATA[speed]]></category> <category><![CDATA[squid]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssl]]></category> <category><![CDATA[web]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1777</guid> <description><![CDATA[One of my earlier posts, Faster Internet With an Old Laptop – Ubuntu and Squid, discussed how to install Squid and Webmin on an old laptop. The premise being that having a proxy server on the network helped speed up web browsing (because of the caching capabilities), reduced external bandwidth usage, etc. In that post, [...]]]></description> <content:encoded><![CDATA[<p>One of my earlier posts, <a
href="http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/" title="Faster Internet With an Old Laptop – Ubuntu and Squid"  target="_self">Faster Internet With an Old Laptop – Ubuntu and Squid</a>, discussed how to<strong> install Squid and Webmin</strong> on an old laptop. The premise being that having a proxy server on the network helped <strong>speed up web browsin</strong>g (because of the caching capabilities), reduced external bandwidth usage, etc.</p><p>In that post, I was careful to <strong>install Squid3 first</strong>, so that Webmin would use it (in the management interface) instead of the older Squid 2.x; and that the installation would be smoother. One thing I noticed was that <strong>webmin was using an older version of squid</strong>:</p><p><em><span
style="color: #3366ff;">&#8220;&#8230;I noticed that webmin (for some strange reason) thought squid 2.6 was installed&#8230;&#8221;</span></em></p><p>One of our readers (<strong>atass</strong>) provided a <a
href="http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/comment-page-1/#comment-3729" title="Comment from atass"  target="_self">useful comment in that post</a>:</p><p><em><span
style="color: #3366ff;">&#8220;The reason is that you have also installed squid3 AND 2.6. 2.6 was installed via webmin because it is not configured by default to find squid3</span></em></p><p><span
style="color: #3366ff;"><em>I think you should correct this procedure so that you correctly configure webmin to use squid3 by going to module configuration and changing to squid3 paths. Avoid installing Squid via webmin cause it will install Squid 2.6 regardless if you have squid 3 installed&#8221;</em></span></p><p>So this needed fixing, here are the settings (below) I changed to get Squid3 going. Above all, remember to back up data or settings before changing anything.<span
id="more-1777"></span></p><p>Log into your webmin interface and select &#8220;<strong>Squid Proxy Server</strong>&#8221; from the left side navigation menu.<br
/> At the top select &#8220;<strong>Module Config</strong>&#8220;.<br
/> Change the following values:</p><p>Full path to squid config file: <span
style="color: #008000;">/etc/squid3/squid.conf</span><br
/> Squid executable: <span
style="color: #008000;">squid3</span><br
/> Full path to squid cache directory: <span
style="color: #008000;">/var/spool/squid3</span><br
/> Full path to squid log directory: <span
style="color: #008000;">/var/log/squid3</span></p><p>Now remember to stop <strong>squid and start squid3</strong>, via ssh (substituting for your IP address instead of mine):</p><p><strong><span
style="color: #ff6600;">ssh root@192.168.1.200</span></strong></p><p><strong><span
style="color: #ff6600;">sudo /etc/init.d/squid3 restart</span></strong></p><p><strong><span
style="color: #ff6600;">sudo /etc/init.d/squid stop</span></strong></p><p>Now try surfing with your <strong>web browser configured to use the Squid3</strong> proxy. If you get an error message (like I did):</p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p><span
style="color: #3366ff;">The requested URL could not be retrieved</span></p><p><span
style="color: #3366ff;">While trying to retrieve the URL: http://ubuntulinuxhelp.com/</span></p><p><span
style="color: #3366ff;">The following error was encountered:</span></p><p><span
style="color: #3366ff;">* Access Denied. Access control configuration prevents your request from being allowed at this time. Please contact your service provider if you feel this is incorrect.</span></p><p><span
style="color: #3366ff;">Your cache administrator is xxxx@xxxx.com.</span></p><p><span
style="color: #3366ff;">Generated Tue, 01 Dec 2009 17:44:31 GMT by squidbox (squid/3.0.STABLE1)</span></p><p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p><p>Double check your Access Control in the &#8220;Squid Proxy Server&#8221;, <strong>Select the padlock icon that says &#8220;Access Control&#8221;.</strong></p><p><strong>Mirror the original settings</strong> you had in the Access Control <strong>for the older version of Squid</strong>. Then select the<strong> &#8220;Proxy Restrictions&#8221; tab</strong>, and again <strong>mirror the settings.</strong></p><p>Then I restarted Squid3</p><p><strong><span
style="color: #ff6600;">sudo /etc/init.d/squid3 restart</span></strong></p><p>And tried to surf the web&#8230; and everything works!</p><p>Big thanks to the reader that pointed out the issue. That&#8217;s appreciated! :)</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-revisited/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing a Web Server on Your Old Laptop</title><link>http://ubuntulinuxhelp.com/installing-a-web-server-on-your-old-laptop/</link> <comments>http://ubuntulinuxhelp.com/installing-a-web-server-on-your-old-laptop/#comments</comments> <pubDate>Sun, 05 Jul 2009 14:49:18 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[8.04]]></category> <category><![CDATA[apache]]></category> <category><![CDATA[ftm]]></category> <category><![CDATA[hardy]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[laptop]]></category> <category><![CDATA[mail]]></category> <category><![CDATA[mysql]]></category> <category><![CDATA[pop]]></category> <category><![CDATA[proftp]]></category> <category><![CDATA[server]]></category> <category><![CDATA[smtp]]></category> <category><![CDATA[webserver]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1709</guid> <description><![CDATA[In an earlier post to this series, I talked about converting an old ancient IBM Thinkpad T22 Laptop into a proxy server (using Squid). While this did substantially improve my web surfing speed, it occurred to me that the laptop could be put to more use. One example is to install MediaWiki on it (to [...]]]></description> <content:encoded><![CDATA[<p>In an earlier post to this series, I talked about <a
href="http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/" title="Faster Internet With an Old Laptop – Ubuntu and Squid"  target="_self">converting an old ancient IBM Thinkpad T22 Laptop into a proxy server</a> (using Squid). While this did substantially improve my web surfing speed, it occurred to me that the laptop could be put to more use. One example is to<a
href="http://www.mediawiki.org/wiki/MediaWiki" title="MediaWiki is a free software wiki package written in PHP"  target="_blank"> install MediaWiki</a> on it (to replace the Tomboy Notes application I use). In reality, I was surprised at the performance given the lack of hardware resources on this laptop, as such, I knew it could be put to more use.</p><p>One thing you&#8217;ll notice in this post is that the command line does not use &#8220;sudo&#8221;. This is because the last post configured the server to permit root logins via SSH. In fact, there is a lot of information in the last post that directly relates to (or effects) what we&#8217;ll do in this one, again, please read it: <a
href="http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/" title="Faster Internet With an Old Laptop – Ubuntu and Squid"  target="_self">Faster Internet With an Old Laptop – Ubuntu and Squid</a>. Otherwise some of us might get a bit lost trying to complete the hands-on activities in this post. Also a reminder that this is an Ubuntu server 8.04 LTS, if using other versions of Ubuntu (or other Debian based distributions, you&#8217;ll probably need to make a few adjustments).</p><p>In order to make this old laptop even more useful, in addition to the previously installed Squid proxy server, we&#8217;re going to add an Apache webserver with PHP, MySQL database server and Mail server (SMTP/POP3). The mailserver is just for the future in the event it&#8217;s needed or any PHP based package requires it (so you can skip that if you don&#8217;t need it). More importantly, Apache and MySQL are needed so I can successfully install and use MediaWiki.</p><p>First SSH into your server. The command for me is:</p><p><span
style="color: #ff6600;"><strong>ssh root@squid.localdomain</strong></span> (You&#8217;ll need to substitute the hostname you chose for your server).</p><p>Let&#8217;s get some packages for  compiling, zip, perl, ssl, certificates and so on. Remember, because you logged in as root, you don&#8217;t have to <span
id="more-1709"></span>&#8220;sudo&#8221;.</p><p><span
style="color: #ff6600;"><strong>aptitude install binutils cpp fetchmail flex gcc libarchive-zip-perl libc6-dev libcompress-zlib-perl libdb4.3-dev libpcre3 libpopt-dev lynx m4 make ncftp nmap openssl perl perl-modules unzip zip zlib1g-dev autoconf automake1.9 libtool bison autotools-dev g++ build-essential</strong></span></p><p>Let&#8217;s get the database server installed and configured;</p><p><strong><span
style="color: #ff6600;">aptitude install mysql-server mysql-client libmysqlclient15-dev</span></strong></p><p>During the installation of MySQL, you&#8217;ll be asked to  provide and confirm a new MySQL root password. <strong>DO NOT FORGET IT!</strong> (as the MySQL root password is not going to be the same as your system root password &#8211; Right?) You can use upper case and lower case letters, numbers and special characters. To check that MySQL is listening for connections, use the netstat command:</p><p><span
style="color: #3366ff;">root@squid:~# </span><span
style="color: #ff6600;"><strong>netstat -tap | grep mysql</strong></span><br
/> <span
style="color: #3366ff;">tcp    0      0 localhost.localdo:mysql *:*      LISTEN      28746/mysqld </span></p><p>See how MySQL is only listening on localhost?</p><p>For future projects, I don&#8217;t want the database server to listen only on the localhost, I want it to listen on any interfaces. This is simple to do when editing the configuration file:</p><p><span
style="color: #ff6600;"><strong>nano /etc/mysql/my.cnf</strong></span></p><p>Look for: bind-address = 127.0.0.1<br
/> And comment out (#) that line. The line should now look like this:</p><p><strong># bind-address = 127.0.0.1 </strong></p><p>Doing this does make it less secure, but this is on an internal network, not a public one. Also, note that the default port is 3306, if you ever need to change the port, this is the file you can edit. However, to keep it simple, leave the default port as is.</p><p>When done editing, Ctrl o will save the file and Ctrl x will exit nano.</p><p>Restart MySQL so the new setting takes effect:</p><p><span
style="color: #ff6600;"><strong>/etc/init.d/mysql restart</strong></span></p><p>Let&#8217;s check to see if our settings work:</p><p><span
style="color: #ff6600;"><strong>netstat -tap | grep mysql</strong></span></p><p>You should see something similar to this:</p><p><span
style="color: #3366ff;">root@squid:~# netstat -tap | grep mysql<br
/> tcp    0   0 *:mysql   *:*   LISTEN      28895/mysqld </span></p><p>Note that there is no mention of localhost!</p><p>I like using phpMyAdmin to manage the DB server via Firefox:</p><p><span
style="color: #ff6600;"><strong>aptitude install phpmyadmin</strong></span></p><p>When prompted, select the option &#8220;<strong>apache2</strong>&#8221;</p><p>After the install, you can visit the URL: <strong>squid.localdomain/phpmyadmin</strong> (substitute you own URL, which may be different from mine).</p><p>Use the login credentials that you created when installing and configuring MySQL:</p><p>Username = root<br
/> Password = The MySQL password (not the normal root password used to login).</p><p><strong>If you&#8217;ve forgotten the MySQL root password, you can reset it</strong>. Here are the steps to fix the &#8220;forgot root MySQL password&#8221; issue (this has happened to me a few times):</p><p>Stop the DB server:<br
/> <span
style="color: #ff6600;"><strong>/etc/init.d/mysql stop</strong></span></p><p>Restart MySQL without it accessing the user information (user tables):<br
/> <span
style="color: #ff6600;"><strong>mysql mysqld_safe &#8211;skip-grant-table &amp;</strong></span></p><p>Now connect to MySQL using the MySQL root account (you won&#8217;t need a password):<br
/> <span
style="color: #ff6600;"><strong>mysql -u root</strong></span></p><p>Finally change the password via these commands:<br
/> <span
style="color: #ff6600;"><strong>use mysql;<br
/> UPDATE user SET password=PASSWORD(&#8216;enter-new-password-here&#8217;) WHERE user = &#8216;root&#8217;;<br
/> flush privileges;<br
/> exit;</strong></span></p><p>Currently I only intend to run MediaWiki to replace Tomboy notes (which I&#8217;ve probably mentioned <span
style="text-decoration: line-through;">a few</span> too many  times now), but perhaps I might add a couple other PHP based sites in the future. Some of them may require email connectivity. Let&#8217;s put something in place now (Postfix, Courier).</p><p><span
style="color: #ff6600;"><strong>aptitude install postfix procmail</strong></span></p><p>When issuing the above command, I received the following output:</p><p><span
style="color: #3366ff;">root@squid:~# aptitude install postfix procmail<br
/> Reading package lists&#8230; Done<br
/> Building dependency tree<br
/> Reading state information&#8230; Done<br
/> Reading extended state information<br
/> Initializing package states&#8230; Done<br
/> Building tag database&#8230; Done<br
/> The following packages are BROKEN:<br
/> sendmail<br
/> The following packages will be automatically REMOVED:<br
/> sendmail-bin<br
/> The following packages have been kept back:<br
/> apt apt-utils cron dash initscripts libcurl3-gnutls libkrb53 libssl0.9.8<br
/> libvolume-id0 linux-image-2.6.24-23-server linux-image-server<br
/> linux-server linux-ubuntu-modules-2.6.24-23-server python-apt sudo<br
/> sysv-rc sysvutils tasksel tasksel-data tzdata udev update-manager-core<br
/> The following NEW packages will be installed:<br
/> postfix<br
/> The following packages will be REMOVED:<br
/> sendmail-bin<br
/> 0 packages upgraded, 1 newly installed, 1 to remove and 22 not upgraded.<br
/> Need to get 1160kB of archives. After unpacking 799kB will be used.<br
/> The following packages have unmet dependencies:<br
/> sendmail: Depends: sendmail-bin but it is not installable<br
/> Resolving dependencies&#8230;<br
/> The following actions will resolve these dependencies:</span></p><p>Remove the following packages:<br
/> sendmail</p><p>Score is 121</p><p>Accept this solution? [Y/n/q/?]</p><p>I selected Y (yes) to remove the (broken) sendmail package and install the remainder. After accepting the above solution, I saw the following (further) output:</p><p><span
style="color: #3366ff;">Accept this solution? [Y/n/q/?] Y<br
/> The following packages are unused and will be REMOVED:<br
/> procmail sensible-mda<br
/> The following packages will be automatically REMOVED:<br
/> sendmail sendmail-bin<br
/> The following packages have been kept back:<br
/> apt apt-utils cron dash initscripts libcurl3-gnutls libkrb53 libssl0.9.8<br
/> libvolume-id0 linux-image-2.6.24-23-server linux-image-server<br
/> linux-server linux-ubuntu-modules-2.6.24-23-server python-apt sudo<br
/> sysv-rc sysvutils tasksel tasksel-data tzdata udev update-manager-core<br
/> The following NEW packages will be installed:<br
/> postfix<br
/> The following packages will be REMOVED:<br
/> sendmail sendmail-bin<br
/> 0 packages upgraded, 1 newly installed, 4 to remove and 22 not upgraded.<br
/> Need to get 1160kB of archives. After unpacking 102kB will be freed.<br
/> Do you want to continue? [Y/n/?] </span></p><p>The install will give you some prompts (questions) to answer. Here&#8217;s how I answered them:</p><p>General type of mail configuration:<br
/> <strong>Internet Site</strong></p><p>System mail name:<br
/> <strong>squid.localdomain</strong> (Your&#8217;s may be different, so make sure you input the correct name).</p><p>I noticed that the installation for procmail did not go through, so:</p><p><span
style="color: #ff6600;"><strong>aptitude install procmail</strong></span></p><p>We can always configure postfix later when needed, but let&#8217;s do a quick tweak of it now:</p><p><span
style="color: #ff6600;"><strong>dpkg-reconfigure postfix</strong></span></p><p>For &#8220;General type of mail configuration&#8221;, leave the setting we already made (<strong>Internet Site</strong>).</p><p>Also leave our &#8220;System mail name&#8221; as the one we just defined (<strong>squid.localdomain</strong>) &#8211; Again, your name may have been different.</p><p>For the &#8220;Root and postmaster mail recipient&#8221;, we don&#8217;t want to add any aliases, therefore leave this blank.</p><p>In the next prompt we see &#8220;Other destination to accept mail for (blank for none)&#8221;. It should be pre-populated with something like this:</p><p><span
style="color: #3366ff;">squid.localdomain, localhost.localdomain, , localhost</span></p><p>Yes, let&#8217;s add this (by selecting &#8220;<strong>ok</strong>&#8220;).</p><p><strong>No</strong>, we <strong>do not</strong> want to &#8220;Force synchronous updates on mail queue&#8221;.</p><p>The next section that asks about &#8220;Local Networks&#8221;, populating the input fields with something like this:</p><p><span
style="color: #3366ff;">127.0.0.0/8 [::ffff:127.0.0.0]/104 [::1]/128</span></p><p>Select &#8220;<strong>ok</strong>&#8220;.</p><p>&#8220;Use procmail for local delivery&#8221; &#8211; Select <strong>Yes</strong>!</p><p>We don&#8217;t need a limit on mailbox files. In the next windows make sure the entry is &#8220;<strong>0</strong>&#8221; and select &#8220;<strong>ok</strong>&#8220;.</p><p>&#8220;Local address extension character&#8221; prepopulated with &#8220;<strong>+</strong>&#8220;, leave it as is, select &#8220;<strong>ok</strong>&#8220;.</p><p>Finally, &#8220;Internet protocols to use&#8221;, select &#8220;<strong>all</strong>&#8221; and &#8220;<strong>ok</strong>&#8220;.</p><p>Start Postfix with <strong>/etc/init.d/postfix start</strong>, however if you need to make changes manually (to /etc/postfix/main.cf), remember to reload postfix with <strong>/etc/init.d/postfix reload</strong></p><p>Installing courier:</p><p><span
style="color: #ff6600;"><strong>aptitude install courier-authdaemon courier-base courier-imap courier-pop gamin libgamin0 libglib2.0-0 </strong></span></p><p>During the installation, you&#8217;ll receive a prompt asking &#8220;Create directories for web-based administration&#8221;, select &#8220;<strong>No</strong>&#8220;.</p><p>Quick tweak: Let&#8217;s configure postfix to drop mail to the users Maildir. We can issue the following command to do this:</p><p><span
style="color: #ff6600;"><strong>postconf -e &#8216;home_mailbox = Maildir/&#8217; &amp;&amp; postconf -e &#8216;mailbox_command =&#8217; &amp;&amp; /etc/init.d/postfix restart</strong></span></p><p>Finally let&#8217;s get Apache and PHP installed. I&#8217;m going to install PHP as a module, not as CGI, because I want to be able to easily change the configuration settings using directives in Apache configuration files (such as httpd.conf) and .htaccess files.</p><p>First, let&#8217;s get Apache going:</p><p><span
style="color: #ff6600;"><strong>aptitude install apache2 apache2-doc apache2-mpm-prefork apache2-utils libexpat1 ssl-cert</strong></span></p><p>I received some errors in the output:</p><p><span
style="color: #3366ff;">.<br
/> .<br
/> .<br
/> Get:3 http://ca.archive.ubuntu.com hardy/main libaprutil1 1.2.12+dfsg-3 [70.0kB]<br
/> Err http://ca.archive.ubuntu.com hardy-updates/main apache2-utils 2.2.8-1ubuntu0.5<br
/> 404 Not Found [IP: 91.189.88.46 80]<br
/> Err http://security.ubuntu.com hardy-security/main apache2-utils 2.2.8-1ubuntu0.5<br
/> 404 Not Found<br
/> Err http://security.ubuntu.com hardy-security/main apache2.2-common 2.2.8-1ubuntu0.5<br
/> 404 Not Found<br
/> Err http://security.ubuntu.com hardy-security/main apache2-mpm-prefork 2.2.8-1ubuntu0.5<br
/> 404 Not Found<br
/> Err http://security.ubuntu.com hardy-security/main apache2 2.2.8-1ubuntu0.5<br
/> 404 Not Found<br
/> Err http://security.ubuntu.com hardy-security/main apache2-doc 2.2.8-1ubuntu0.5<br
/> 404 Not Found<br
/> Fetched 478kB in 2s (180kB/s)<br
/> Selecting previously deselected package libapr1.<br
/> .<br
/> .<br
/> .</span></p><p>If you get this error, try updating the repositiries like this:</p><p><span
style="color: #ff6600;"><strong>aptitude update</strong></span></p><p>The reissue the installation command.</p><p>Now that Apache is installed, let&#8217;s get PHP and related packages:</p><p><span
style="color: #ff6600;"><strong>aptitude install libapache2-mod-php5 libapache2-php5 php5-common php5-curl php5-dev php5-gd php5-idn php-pear php5-imagick php5-imap php5-mcrypt php5-memcache php5-mhash php5-ming php5-mysql php5-pspell php5-recode php5-snmp php5-sqlite php5-tidy php5-xmlrpc php5-xsl</strong></span></p><p>From dealing with other web servers, I&#8217;ve often found that I need to add the appropriate directives to Apache&#8217;s dir.conf file (because they will not all be included):</p><p><span
style="color: #ff6600;"><strong>nano /etc/apache2/mods-available/dir.conf</strong></span></p><p>You should see this line:</p><p><span
style="color: #3366ff;">DirectoryIndex index.html index.cgi index.pl index.php index.xhtml index.htm</span></p><p>Change it to this:</p><p><span
style="color: #3366ff;">DirectoryIndex index.html index.shtml index.xhtml index.htm index.php index.php3 index.pl index.cgi</span></p><p>We also need to enable the rewrite, include and SSL modules:</p><p><span
style="color: #ff6600;"><strong>a2enmod rewrite &amp;&amp; a2enmod include &amp;&amp; a2enmod ssl</strong></span></p><p>You&#8217;ll get a prompt that tells you to run the command:</p><p><span
style="color: #ff6600;"><strong>/etc/init.d/apache2 force-reload</strong></span></p><p>You should get a success message like:</p><p><span
style="color: #3366ff;">root@squid:~# /etc/init.d/apache2 force-reload<br
/> * Reloading web server config apache2   [ OK ]</span></p><p><strong>Side note:</strong> If you need to disable a module, the command would be a2dismod, and an example would look something like: <strong>a2dismod ssl &amp;&amp; /etc/init.d/apache2 force-reload</strong> I generally prefer to disable instead of delete as one never know if a module might be needed in the future (or if disabling causes an error). It&#8217;s usually a simpler fix to re-enable a module.</p><p>Lets get FTP going:</p><p><span
style="color: #ff6600;"><strong>aptitude install proftpd</strong></span></p><p>You&#8217;ll see a prompt asking you how to &#8220;Run proftpd&#8221;. I&#8217;m selecting &#8220;Standalone&#8221; because I want the ability to restart proftpd (or stop it) if needed. It will create the directory <strong>/home/ftp</strong> on your server. Here&#8217;s some of the output of that command:</p><p><span
style="color: #3366ff;">Adding system user `proftpd&#8217; (UID 114) &#8230;<br
/> Adding new user `proftpd&#8217; (UID 114) with group `nogroup&#8217; &#8230;<br
/> Not creating home directory `/var/run/proftpd&#8217;.<br
/> Adding system user `ftp&#8217; (UID 115) &#8230;<br
/> Adding new user `ftp&#8217; (UID 115) with group `nogroup&#8217; &#8230;<br
/> Creating home directory `/home/ftp&#8217; &#8230;<br
/> `/usr/share/proftpd/templates/welcome.msg&#8217; -&gt; `/home/ftp/welcome.msg.proftpd-new&#8217;<br
/> ProFTPd is started from inetd/xinetd.</span></p><p><strong>Side note:</strong> If you ever need to restart the FTP server (after changing a configuration), the command would usually be: <strong>/etc/init.d/proftpd restart</strong></p><p>For those who followed on from the original Squid installation post, we now need to access Webmin. For me the Firefox URL is:</p><p><strong>http://squid.localdomain:26395/</strong> (remember, use your server&#8217;s correct url and port number).</p><p>After logging in, select &#8220;<strong>Refresh Modules</strong>&#8221; and see an output similar to mine below:</p><p><span
style="color: #3366ff;">Checking for usable Webmin modules ..<br
/> .. found 58 with installed applications, 46 not installed.</span></p><p>Now select &#8220;<strong>Servers</strong>&#8221; and you should see that:</p><p><span
style="color: #3366ff;">Apache Webserver<br
/> Fetchmail Mail Retrieval<br
/> MySQL Database Server<br
/> Postfix Mail Server<br
/> ProFTPD Server<br
/> Procmail Mail Filter<br
/> </span><br
/> have been added to the list. (Originally there was only Read User mail, SSH Server and Squid Proxy Server).</p><p>Finally, visit the URL of your nifty web server on Ubuntu, my URL would be:</p><p><strong>squid.localdomain</strong> (once again, substitute the URL of your server).</p><p>And you&#8217;ll see the &#8220;<strong>It works!</strong>&#8221; message.</p><p>By default root is denied the ability to log in via FTP. Because this is my local network, I&#8217;ll allow root to access FTP. <span
style="color: #ff0000;"><strong>DO NOT do this is a public environment! </strong></span></p><p>Still in Webmin, select &#8220;<strong>ProFTPD Server</strong>&#8221; (listed under &#8220;<strong>Servers</strong>&#8220;), then select the &#8220;<strong>Denied FTP Users</strong>&#8221; icon. This will open<strong> /etc/ftpusers</strong>, and display the following directives:</p><p><span
style="color: #3366ff;"># /etc/ftpusers: list of users disallowed FTP access. See ftpusers(5).  root daemon bin sys sync games man lp mail news uucp nobody</span></p><p>Find: <strong>root</strong></p><p>and remove it from the list. Click &#8220;<strong>Save</strong>&#8220;.</p><p>Now we&#8217;ll need to allow root in the proftpd.conf via our command line, like this:</p><p><span
style="color: #ff6600;"><strong>nano /etc/proftpd/proftpd.conf</strong></span></p><p>Look for:</p><p><span
style="color: #3366ff;"># Set the user and group that the server normally runs at.<br
/> User                proftpd<br
/> Group                nogroup</span></p><p>And underneath the above add:</p><p><span
style="color: #3366ff;"># Permit root logins<br
/> RootLogin on</span></p><p><strong>Side note:</strong> If you ever need to reconfigure proftpd (to use inetd instead of standalone for example), the command is: <strong>dpkg-reconfigure proftpd</strong></p><p>In your terminal, restart FTP so that root will now be allowed:</p><p><span
style="color: #ff6600;"><strong>/etc/init.d/proftpd restart</strong></span></p><p>root can now login and transfer files via FTP.</p><p>To change pages that Apache serves, you should be uploading files to:</p><p><strong>/var/www</strong></p><p>Guess what? We&#8217;re done!</p><p>While in the Webmin interface I noticed that I had to fix an issue from the last post:</p><p><strong>Error:</strong> <span
style="color: #3366ff;">The Squid cache manager program /usr/lib/cgi-bin/cachemgr.cgi was not found on your system. Maybe your module configuration is incorrect. </span></p><p>I encountered this error when trying to access the &#8220;<strong>Cache Manager Statistics</strong>&#8221; under &#8220;<strong>Squid Proxy Serve</strong>r&#8221;.<br
/> /usr/local/squid/etc/squid.conf</p><p><strong>Fix:</strong></p><p><span
style="color: #ff6600;"><strong>aptitude install squid-cgi</strong></span></p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/installing-a-web-server-on-your-old-laptop/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Using Built-in Policy Installer in Firewall Builder</title><link>http://ubuntulinuxhelp.com/using-built-in-policy-installer-in-firewall-builder/</link> <comments>http://ubuntulinuxhelp.com/using-built-in-policy-installer-in-firewall-builder/#comments</comments> <pubDate>Wed, 17 Jun 2009 16:32:36 +0000</pubDate> <dc:creator>Vadim Kurland</dc:creator> <category><![CDATA[How To]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[firewall]]></category> <category><![CDATA[fwbuilder]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[iptables]]></category> <category><![CDATA[security]]></category> <category><![CDATA[server]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1622</guid> <description><![CDATA[This article continues the series of articles on Firewall Builder, a graphical firewall configuration and management tool that supports many Open Source firewall platforms as well as Cisco IOS access lists and Cisco ASA (PIX). Firewall Builder was introduced on this site earlier with articles Getting Started With Firewall Builder and Using Built-in Policy Importer [...]]]></description> <content:encoded><![CDATA[<p>This article continues the series of articles on Firewall Builder,     a graphical firewall configuration and management tool that     supports many Open Source firewall platforms as well as Cisco IOS     access lists and Cisco ASA (PIX).  Firewall Builder was introduced     on this site earlier with articles <a
href="http://ubuntulinuxhelp.com/getting-started-with-firewall-builder/" title="Getting Started with Firewall Builder"  target="_self"> Getting Started With Firewall Builder</a> and <a
href="http://ubuntulinuxhelp.com/using-built-in-policy-importer-in-firewall-builder/" title="Using Built-in Policy Importer in Firewall Builder"  target="_blank">Using Built-in Policy Importer in Firewall Builder</a>.</p><p>More information on Firewall Builder, pre-built binary packages     and source code, documentation and <strong>Firewall Builder     Cookbook</strong> can be found on the project web site     at <a
href="http://www.fwbuilder.org/" title="www.fwbuilder.org"  target="_blank"> www.fwbuilder.org</a>. Watch <a
href="http://blog.fwbuilder.org/" title="Project blog"  target="_blank">Project Blog</a> for announcements and articles on all aspects of using     Firewall Builder.</p><p>After firewall configuration has been generated by     one of the policy compilers and saved in a file on     disk in the format required by the target firewall,     it needs to be transferred to the firewall machine     and activated. This function is performed by the     component we call &#8220;Policy Installer&#8221; which is part     of the Firewall Builder GUI.</p><p>Starting with version 2.0, Firewall Builder comes with built-in     installer that uses SSH to communicate with the     firewall. Installer works on all OS where Firewall Builder is     available: Linux, FreeBSD, Windows and Mac OS X.  On Linux, *BSD     and Mac OS X it uses standard ssh client that comes with the     system; on Windows it uses putty.</p><p>Installer needs to be able to copy generated firewall script to     the firewall and then run it there. In order to do so, it uses     secure shell. The program does not include ssh code, it uses     external ssh client.  On Linux, BSD and Mac OS X it uses standard     ssh client <strong>ssh</strong> and secure shell file copy     program <strong>scp</strong> that come with the system; <span
id="more-1622"></span>on Windows it     uses <strong>plink.exe</strong> and <strong>pscp.exe</strong>.  Full directory path to     ssh client program can be configured in the Preferences dialog     (accessible via Edit/Preferences menu), however if you are on     Linux, *BSD or Mac and use standard ssh client that is available     via your PATH environment variable, you do not need to change     default value there.</p><p>Installer works differently depending on the targert platform. In     case of Linux and BSD based firewalls it uses <strong>scp</strong> to copy     generated configuration files to the firewall machine and then     uses <strong>ssh</strong> to log in and run the script. In case of Cisco     routers or ASA appliance (PIX), it logs in, switched     to <strong>enable</strong> and then <strong>configuration</strong> mode and executes     configuration commands one by one in a manner similar     to <strong>expect</strong> scripts. It inspects router&#8217;s replies looking for     errors and stops if it detects one. In the end, it issues     command <strong>write mem</strong> to store new configuration in memory and     logs out.</p><p>Built-in policy installer has been designed to work with dedicated     firewall machine, that is, when computer where you run Firewall     Builder GUI and actual firewall are different     machines. Nevertheless, it can be used when they are the same     machine as well. The only difference is that in all commands below     you would use the name or address of the machine where you run     Firewall Builder instead of the name or address of the dedicated     firewall. SSH client will then connect back to the same machine     where it runs and everything will work exactly the same as if it     was different computer.</p><h2>How does installer decide what address to use to connect to the firewall</h2><p>Installer does not use the name of the firewall to     connect to, it always connects to its IP address. It     starts by scanning interfaces of the firewall object     looking for one that is marked as <em>&#8220;Management       interface&#8221;</em> using checkbox in the interface     object dialog. Installer will use address of this     interface to connect to. The <em>&#8220;management       interface&#8221;</em> checkbox looks like shown on the     next screenshot:</p><p><img
class="alignnone size-full wp-image-1624" title="Management interface" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/management_interface.png?9d7bd4" alt="Management interface" width="472" height="220" /></p><p>If your firewall has multiple addresses and you want     to use the one that is not assigned to its interface     in the fwbuilder object, then you can overwrite the     address using entry field in     the <em>&#8220;installer&#8221;</em> tab of the &#8220;advanced&#8221;     firewall object settings dialog, like this:</p><p><img
class="alignnone size-full wp-image-1625" title="Alternative firewall address" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/alternative_fw_address.png?9d7bd4" alt="Alternative firewall address" width="472" height="242" /></p><p>More about other input fields in this dialog below.</p><p>Finally you can overwrite the address on one-time     basis just for the install session using entry field     in the installer options dialog. This is the same     dialog where you enter password:</p><p><img
class="alignnone size-full wp-image-1626" title="Alternative FW address" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/alternative_fw_address_2.png?9d7bd4" alt="Alternative FW address" width="472" height="236" /></p><p>This works for all supported firewall     platforms, i.e. iptables on Linux, pf on OpenBSD and     FreeBSD, ipfw on FreeBSD and Mac OS X, ipfilter on     FreeBSD, Cisco IOS access lists and Cisco ASA     (PIX). Regardless of the platform, installer follows     the rules described here to determine what address     it should use to connect to the firewall.</p><h2>Configuring installer on Windows</h2><p>You can skip this section if you run Firewall     Builder GUI on Linux, *BSD or Mac OS X.</p><p>Here is the link to <a
href="http://www.fwbuilder.org/slideshows/using_putty/slide_1.html" title="How to configure built-in installer to use PuTTY ssh client on Windows."  target="_blank"> slide show </a> that demonstrates the process.</p><p>Download and install putty.exe, plink.exe and pscp.exe     somewhere on your machine (say, in     C:putty). Download URL is <a
href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/" title="PuTTY: A Free Telnet/SSH Client"  target="_blank">http://www.chiark.greenend.org.uk/~sgtatham/putty/</a></p><p>Installer does not use <strong>putty.exe</strong> but it will be     very useful for troubleshooting and for setting up     sessions and ssh keys.</p><p>In the Edit/Preferences dialog, in the &#8220;SSH&#8221; tab,     use &#8220;Browse&#8221; buttons to locate <strong>plink.exe</strong>.     Hit &#8220;OK&#8221; to save preferences. If you installed it     in <strong>C:putty</strong>, then you should end up     with <strong>C:puttyplink.exe</strong> in this entry     field. Do the same to configure path to <strong>pscp.exe</strong>.</p><p>You may log in to the firewall using regular user account or as root. See instructions below for an explanation how to configure sudo if you use regular user accounts. This part of the configuration does not depend on the OS you run Firewall Builder.</p><p>Before you try to use fwbuilder installer with plink.exe and pscp.exe, test it from the command line to make sure you can log in to your firewall. If this is the first time you try to log in to the firewall machine using putty.exe, plink.exe or pscp.exe, then it will discover new host key and ask you if it is correct and if you want to save it in cache. There are lots of resources on the Internet that explain what does this mean and how you should verify key accuracy before you accept it. If the key is already known to the program it will not ask you about it and will just proceed to the part where it asks you to enter password. Enter the password and hit &#8220;Return&#8221; to see if you can log in and see command line prompt from the firewall.</p><p>Here is the command (assuming you use account &#8220;fwadmin&#8221; to manage     firewall &#8220;guardian&#8221;):</p><p><strong><span
style="color: #ff6600;">C:Usersvadim&gt;c:PuTTYplink.exe -l fwadmin guardian</span></strong></p><p><img
class="alignnone size-full wp-image-1627" title="plink login" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/plink_login.png?9d7bd4" alt="plink login" width="472" height="201" /></p><p><strong>NOTE:</strong> Built-in installer does not use GUI ssh     client <strong>putty.exe</strong>, it uses command line     utilities that come from the same     author <strong>plink.exe</strong> and <strong>pscp.exe</strong>. You can     test with <strong>putty.exe</strong> but do not enter path to it     in the SSH tab of the Preferences dialog in fwbuilder,     it won&#8217;t work.</p><p>Configuring installer to use regular user account to manage the firewall:</p><p>Before v3.0.4 built-in installer could only use     regular account to activate policy if this account was     configured on the firewall to use sudo without     password. Starting with v3.0.4 this is not necessary     anymore because installer can recognize sudo password     prompts and enter password when needed.</p><ul><li> Create an account on the firewall (say,       &#8220;fwadmin&#8221;), create a group &#8220;fwadmin&#8221; and make       this user a member of this group. Most modern       Linux systems automatically create group with       the name the same as the name of the user       account.<p
class="command"><strong><span
style="color: #ff6600;">useradd fwadmin </span></strong></p></li><li> Create directory /etc/fw/ on the firewall, make       it belong to group fwadmin, make it group       writable<p
class="command"><strong><span
style="color: #ff6600;">mkdir /etc/fw<br
/> chgrp fwadmin /etc/fw<br
/> chmod g+w fwadmin /etc/fw</span></strong></li><li>Configure sudo to permit user fwadmin execute         firewall script and a couple of other commands         used by fwbuilder policy installer.  Run <strong>visudo</strong> on the firewall to edit file <strong>/etc/sudoers</strong> as follows:<p
class="command"><strong><span
style="color: #ff6600;">Defaults:%fwbadmin   !lecture , passwd_timeout=1 , timestamp_timeout=1<br
/> # User alias specification<br
/> %fwbadmin  ALL = PASSWD: /etc/fw/&lt;FWNAME&gt;.fw , /usr/bin/pkill , /sbin/shutdown</span></strong></p><p>here &lt;FWNAME&gt; is the name of the firewall.         Installer will log in to the firewall as user         fwadmin, copy firewall script to file         /etc/fw/&lt;FWNAME&gt;.fw and then use the         following command to execute it:</p><p
class="command"><strong><span
style="color: #ff6600;">ssh fwadmin@firewall sudo -S /etc/fw/&lt;FWNAME&gt;.fw </span></strong></p><p>Installer needs to be able to run <strong>pkill           shutdown</strong> to kill <strong>shutdown</strong> command         that may be running if you tried to install         policy in <strong>testing mode</strong> before. In         testing mode installer copies firewall         script to temporary directory <strong>/tmp</strong> then runs command <strong>shutdown -r           timeout</strong> to schedule reboot in a few         minutes and finally runs firewall script. To         cancel scheduled reboot you need to install         policy again, with test mode checkbox turned         off. In this case installer will copy         firewall script to its permanent place and         use <strong>pkill</strong> to kill running shutdown         command to cancel reboot.</li><li> set up ssh access to the firewall. Make sure you       can log in as user fwadmin using ssh from your       management workstation:<p
class="command"><strong><span
style="color: #ff6600;">ssh -l fwadmin &lt;FWNAME&gt; </span></strong></p><p>You may use either password or public key authentication; the       installer will work either way. Use <strong>putty.exe</strong> or <strong>plink.exe</strong> to test ssh access if you are on Windows       (see above for the explanation how to do this on Windows).</li><li> in the &#8220;installer&#8221; tab of the &#8220;firewall settings&#8221;       dialog of the firewall object put user name you use       to log in to the firewall (here it       is <em>&#8220;fwadmin&#8221;</em>): <img
class="alignnone size-full wp-image-1631" title="Installer tab" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/installer_tab_1.png?9d7bd4" alt="Installer tab" width="472" height="140" /><img
src="file:///home/roger/Sites/ubuntulinuxhelp.com/docs/vadim-kurland/using_built_in_installer_fwbuilder/installer_tab_1.png" alt="" /></li><li> if you need to use alternative name or IP       address to communicate with the firewall, put it       in the corresponding field in the same dialog       page</li><li> Make sure entry field &#8220;directory on the firewall       where script should be installed&#8221; is set       to <strong>/etc/fw</strong>. Firewall Builder is not going to       create this directory, so you need to create it       manually before you install firewall policy (see       above).</li><li> Leave &#8220;Policy install script&#8221; and &#8220;Command line options&#8221; fields blank.</li></ul><h2>Configuring installer if you use root account to manage the firewall:</h2><ul><li> Create directory /etc/fw/ on the firewall, make it       belong to root, make it writable</li><li> set up ssh access to the firewall. Make sure you       can log in as root using ssh from your       management workstation:<p
class="command"><strong><span
style="color: #ff6600;">ssh -l root &lt;firewall_name&gt; </span></strong></p><p>You may use either password or public key       authentication; the installer will work either       way.</li><li> in the &#8220;installer&#8221; tab of the &#8220;firewall       settings&#8221; dialog of the firewall object put       &#8220;root&#8221; as the user name you use to log in to the       firewall</li><li> Make sure entry field &#8220;directory on the firewall       where script should be installed&#8221; is set       to <strong>/etc/fw</strong></li><li> Leave &#8220;Policy install script&#8221; and &#8220;Command line options&#8221; fields are blank</li></ul><h2>Configuring installer if you regularly switch between Unix and Windows workstations using the same .fwb file and want to manage the firewall from both</h2><p>First of all, the .fwb file is portable and can be     copied back and forth between Linux/BSD and windows     machines. Even comments and object names entered in     local language should be preserved since the GUI     uses UTF-8 internally.</p><p>Built-in installer relies on path settings for ssh     and scp in Edit/Preferences/SSH.  Since preferences     are stored outside of the .fwb file, the installer     should work just fine when .fwb file is copied from     Unix to Windows and back. Just configure path to ssh     program in preferences on each system using default     settings &#8220;ssh&#8221; on Linux and path to plink.exe on windows     and give it a try.</p><p></p><h2>Always permit SSH access from the management workstation to the firewall</h2><p>One of the typical errors that even experienced     administrators make sometimes is block ssh access to     the firewall from the management workstation. You need     your workstation to be able to communicate with the     firewall in order to be able to make changes to the     policy, so you always need to add a rule to permit     this.  Firewall Builder can simplify this and generate     this rule automatically if you put an IP address of     your workstation in the entry field on the first page     of firewall settings dialog. Here is the screenshot     that illustrates this setting for an iptables     firewall; management station has an IP address     192.168.1.100</p><p><img
class="alignnone size-full wp-image-1632" title="Backup access" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/backup_access.png?9d7bd4" alt="Backup access" width="472" height="521" /></p><h2>Using putty sessions on Windows</h2><p>putty allows one to store destination host name or     address, user name and bunch of other parameters in     a session so that they all can be called up at     once. If you wish to use sessions, do the following:</p><ul><li> Configure putty as usual, create and test session         for the firewall, test it using putty outside of         the Firewall Builder. When you use session,         firewall host name and user name are stored in the         session file. Firewall Builder allows you to enter         session name in the entry field in the firewall         settings dialog where you would normally enter         alternative address of the firewall. Comment next         to the entry field reminds you about this.  Just         type session name in that field, leave user name         field blank and save the settings.</li><li> Once you start the installer, do not enter user         name in the &#8220;User name&#8221; field on the first page of         installer wizard, however you need to enter the         login and enable passwords. Configure the rest of         installer options as usual, they do not change         when you use putty sessions.</li></ul><h2>How to configure installer to use alternative ssh     port number</h2><p>If ssh daemon on your firewall is listening on an     alternative port, then you need to configure     built-installer so that it will run <strong>scp</strong> and <strong>ssh</strong> clients with command line parameters     that would make them connect to this port. This is     done in the &#8220;installer&#8221; tab of the firewall object     &#8220;advanced&#8221; settings dialog as shown on the following     screenshot (here we set the port to &#8220;2222&#8243;):</p><p><img
class="alignnone size-full wp-image-1633" title="Different SSH paot" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/different_ssh_port.png?9d7bd4" alt="Different SSH paot" width="472" height="309" /></p><p>On Unix command line option that specifies port number     is different for <strong>ssh</strong> and <strong>scp</strong>. It is     lowercase <strong>-p</strong> for <strong>ssh</strong> and     uppercase <strong>-P</strong> for <strong>scp</strong>.  If you     use <strong>putty</strong> tools <strong>plink.exe</strong> and <strong>pscp.exe</strong> on Windows, the option to specify     alternative port number is <strong>-P</strong> (capital &#8220;P&#8221;) for     both.</p><p>You can use the same input fields in this dialog to     add any other command line parameters for <strong>ssh</strong> and <strong>scp</strong>, for example this is where you can     confiugre parameters to make it use alternative     identity file (private keys). This information is     saved with a firewall object rather than globally     because you may need to use different parameters for     different firewall machines, such as different key     files or ports.</p><h2>How to configure installer to use ssh private keys     from a special file</h2><p>You can use the same entry fields in this dialog to     provide other additional command line parameters for <strong>ssh</strong> and <strong>scp</strong>, for example to use keys     from a different identity file. Here is how it looks     like:</p><p><img
class="alignnone size-full wp-image-1634" title="Different SSH keys" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/different_ssh_keys.png?9d7bd4" alt="Different SSH keys" width="472" height="63" /></p><p>Here I configure <strong>ssh</strong> and <strong>scp</strong> to use     alternative port and alternative identity     file <strong>~/.ssh/fwadmin_identity</strong>. The command line     parameter for the port is different for <strong>ssh</strong> and <strong>scp</strong>, but parameter for the identity file is     the same <strong>-i</strong> for both utilities.</p><p>On Windows, the simplest way (or may be the only way)     to use alternative keys is to use putty sessions.</p><h2>Troubleshooting ssh access to the firewall</h2><p>Built-in policy installer will not work if ssh access     to the firewall is not working. Test it using this     command on Linux if use you user &#8220;fwadmin&#8221; to manage     firewall:</p><p
class="command"><strong><span
style="color: #ff6600;">ssh -l fwadmin firewall </span></strong></p><p>If you use root account to manage the firewall, the     command becomes</p><p
class="command"><strong><span
style="color: #ff6600;">ssh -l root firewall </span></strong></p><p>On Windows use <strong>putty.exe</strong> or <strong>plink.exe</strong> to     do this:</p><p
class="command"><strong><span
style="color: #ff6600;">C:Usersvadim&gt;c:PuTTYplink.exe -l fwadmin firewall </span></strong></p><p
class="command"><strong><span
style="color: #ff6600;">C:Usersvadim&gt;c:PuTTYplink.exe -l root firewall </span></strong></p><p>If you can not log in using ssh at this point, verify     that ssh daemon is working on the firewall, that     existing firewall policy does not block ssh access and     ssh daemon configuration in /etc/ssh/sshd_config     permits login for root (if you plan to use root     account to manage the policy).</p><p></p><h2>Running built-in installer to copy generated     firewall policy to the firewall machine and activate     it there.</h2><p>Now that all preparations are complete, we can move on and     actually try to install newly generated firewall policy. Select     firewall object in the object tree in Firewall Builder GUI, click     right mouse button and use menu item &#8220;Install&#8221;. The program will     recompile the policy and open installer dialog.</p><p><img
class="alignnone size-full wp-image-1635" title="Installer IPtables" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/installer_iptables.png?9d7bd4" alt="Installer IPtables" width="472" height="499" /></p><p>(This how installer options dialog looks like for     iptables, pf, ipfilter and ipfw firewalls).</p><p>Here the program already entered user     name <strong>fwadmin</strong> in the &#8220;User Name&#8221; field, but     you can change it for one installation session if     you wish. Next you need to enter the password for     this user. <strong><em>This is the password of user         fwadmin on the firewall machine</em></strong>. Address     that will be used to comunicate with the firewall is     also entered by the program automatically, it is     taken from the firewall settings. You can change it     for one installation session as well.</p><p>Other installer parameters do the following:</p><ul><li><strong>Quiet install</strong>: as the name implies,         this checkbox suppresses all progress output of         the installer</li><li><strong>Verbose</strong>: this checkbox has the opposite         action, it makes the installer print a lot of         debugging information, including ssh client debug         output.</li><li><strong>Store a copy of fwb file on the           firewall</strong>: if this checkbox is on, the         installer will copy not only generated firewall         configuration files to the directory on the         firewall machine which is configured in the         &#8220;installer&#8221; tab of the firewall object dialog,         but also original .fwb data file as well. <strong>Use           of this option is discouraged if you manage many           firewalls from the same .fwb file because           distributing file that contains security policy           of multiple firewalls to all of them is a bad           idea</strong>.</li><li><strong>Test run</strong>: if this checkbox is on,         policy installer will copy firewall         configuration files to a temporary directory on         the firewall and will run them from there. The         intent is to test generated configuration         without making it permanent. If firewall machine         reboots, it will activate previous firewall         policy. Installer uses subdirectory <strong>&#8220;tmp&#8221;</strong> inside installation directory on the firewall         machine which is configured in the &#8220;installer&#8221;         tab of the firewall object dialog. If         installation directory configured there         is <strong>/etc/fw</strong> (as in the screenshot earlier         in this HOWTO), then installer will put files in         the directory <strong>/etc/fw/tmp</strong> when test         install option is in effect. <strong><em>You need to             create this directory on the firewall before             using this installation mode</em></strong>.</li><li> <strong>Schedule reboot in&#8230; </strong>: If this option is         on, installer schedules firewall reboot after         given time in minutes. This can be used as a         measure of last resort to protect against lost         of communication with the firewall which may         happen if there is an error in the new firewall         policy which makes it block ssh access from the         management machine. Installer uses         command <strong>shutdown -r +10min</strong> to schedule         reboot in 10 min. If installation has been         successfull and everything works right, you need         to repeat installation with options &#8220;test         install&#8221; and &#8220;Schedule reboot&#8221; turned off to         cancel reboot and install new policy         permanently.</li></ul><p>After all parameters are set and the password     entered, hit &#8220;OK&#8221; to start installation.</p><p>If this is the first time your management machine is     logging in to the firewall via ssh, it will find out     that ssh host key of the firewall is unknown to it     and will present you with a dialog:</p><p><img
class="alignnone size-full wp-image-1636" title="New SSH host key" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/new_ssh_host_key_dlg.png?9d7bd4" alt="New SSH host key" width="472" height="189" /></p><p>Here is says that it does not know host key of the     firewall &#8220;crash&#8221;. This is nothing more than a copy     of the warning message presented by the ssh     client. You should verify the host key manually and     if it matches, click &#8220;Yes&#8221;. If you click &#8220;No&#8221; in the     dialog, installation process will be interrupted.</p><blockquote><p>Installer only recognizes ssh client warning message     about unknown public host keys. If you rebuld your     firewall machine, which means its host key changes,     ssh will print different warning message which     fwbuilder installer does not recognise. In this case     you will see this message in the installer progress     window, but installation process will get stuck. You     need to use ssh client (<strong>ssh</strong> on Unix     or <strong>putty.exe</strong> on Windows) to update host key     before you can use fwbuilder policy installer with     this firewall again.</p></blockquote><p>After this, installer copies files to the firewall     and runs policy script there. You can monitor its     progress in the dialog as shown on the screenshot:</p><p><img
class="alignnone size-full wp-image-1637" title="Install dialogue overview" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/install_dialog_overview.png?9d7bd4" alt="Install dialogue overview" width="472" height="515" /></p><p>This is an example of successfull installation     session. Installer records the status in the left     hand side panel of the dialog. If you use installer     to update several firewall machines in one session,     their names and corresponding status of the     installation session for each will be shown in the     panel on the left. You can save installer log to a     file using &#8220;Sabe log to file&#8221; button, this can be     useful for documentation or troubleshooting.</p><p></p><h2>Running built-in installer to copy generated     firewall policy to Cisco router or ASA (PIX)</h2><p>From the user&#8217;s point of view the installer works the     same when you manage Cisco router or ASA firewall,     with only few minor differences. First of all, the     first screen of the installer, where you enter the     password, offers another input field for     the <strong>enable</strong> password as well.</p><p>You should be able to use IPv6 address to communicate     with the router.</p><p><img
class="alignnone size-full wp-image-1638" title="Cisco install dialogue" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/install_dialog_cisco.png?9d7bd4" alt="Cisco install dialogue" width="472" height="507" /></p><p>Most of the options and parameters in this dialog are     the same as those for Linux firewalls (see above). The     following parameters work differently for Cisco     devices:</p><ul><li><strong>Test run</strong>: if this checkbox is on, policy         installer will copy new access lists configuration         to the router or ASA appliance but will not         issue <strong>write mem</strong> command in the end.</li><li> <strong>Schedule reboot in&#8230; </strong>: If this option is         on, installer issues command <strong>reload in NNN</strong> after new configuration has been loaded. This         schedules reboot in NNN minutes. In combination         with &#8220;test run&#8221; option this can serve as a         roll-back mechanism in case of complete loss of         contact with the router or firewall because of an         error in the policy. Since &#8220;test run&#8221; does not         perform <strong>&#8220;write mem&#8221;</strong> in the end, the         original access list stays in startup         configuration of the router and will be loaded         after reboot.</li><li> <strong>Cancel reboot if policy activation was           successful</strong>: If this option is on, installer         issues command <strong>reload cancel</strong> in the end of         the policy activation process to cancel previously         scheduled reboot.</li></ul><p>Here is a screenshot of installation session to a     Cisco router. Note the output at the very top of the     log that shows how installer detected previously     unknown RSA host key and accepted it after the user     clicked &#8220;Yes&#8221; in the pop-up dialog (not shown on the     screenshot). It then logged into the router; you can     see the <strong>banner motd</strong> output from the     router. After this, installer switched     to <strong>enable</strong> mode, set terminal width and turned     off terminal pagination using <strong>terminal length 0</strong> command and finally switched to the <strong>configuration       mode</strong>. It then started enterig generated     configuration line by line.</p><p><img
class="alignnone size-full wp-image-1639" title="Cisco install progress" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/install_cisco_progress.png?9d7bd4" alt="Cisco install progress" width="472" height="735" /></p><p>The final part of the installation session looks like     this:</p><p><img
class="alignnone size-full wp-image-1640" title="Cisco install ends" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/install_cisco_progress_end.png?9d7bd4" alt="Cisco install ends" width="472" height="449" /></p><p>This was a successful installation session, with no     errors. Installer finished entering configuration     lines and issued <strong>exit</strong> command to exit     configuration mode, then <strong>wr mem</strong> command to save     configuration to memory and finally <strong>exit</strong> again     to log out.</p><p></p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/using-built-in-policy-installer-in-firewall-builder/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Faster Internet With an Old Laptop &#8211; Ubuntu and Squid</title><link>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/</link> <comments>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/#comments</comments> <pubDate>Tue, 02 Jun 2009 16:47:56 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[8.04]]></category> <category><![CDATA[access]]></category> <category><![CDATA[acl]]></category> <category><![CDATA[caching]]></category> <category><![CDATA[configure]]></category> <category><![CDATA[fwebmin]]></category> <category><![CDATA[hosts]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[internet]]></category> <category><![CDATA[proxy]]></category> <category><![CDATA[server]]></category> <category><![CDATA[speed]]></category> <category><![CDATA[squid]]></category> <category><![CDATA[ssh]]></category> <category><![CDATA[ssl]]></category> <category><![CDATA[web]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/?p=1517</guid> <description><![CDATA[I&#8217;ve posted more than once about tips we can complete to improve our web surfing. This morning I was cleaning out some old hardware (to take to the recycling centre) when I happened upon one of the last old laptops I had. It&#8217;s an older IBM Thinkpad T22, Type 2647 with 256MB of RAM and [...]]]></description> <content:encoded><![CDATA[<p>I&#8217;ve posted more than once about tips we can complete to improve our web surfing. This morning I was cleaning out some old hardware (to take to the recycling centre) when I happened upon one of the last <strong>old laptops</strong> I had.</p><p>It&#8217;s an older IBM Thinkpad T22, Type 2647 with 256MB of RAM and a 20GB hard drive. A couple years ago, I had 2o of these units, bought from a recycling depot. I sold them all on eBay, and only have a couple left now.</p><p><img
class="alignnone size-full wp-image-1518" title="IBM Thinkpad T22" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/06/thinkpad.jpg?9d7bd4" alt="IBM Thinkpad T22" width="472" height="354" /></p><p>Whilst packing up the stuff to cart off, it occurred to me that I could put this old laptop to work by <strong>installing a proxy / caching server</strong> on it, and have my we browsers, pull much of the regularly requested web content off a locally cached network server. This means <strong>installing Squid</strong>. Not sure what Squid is: <a
rel="nofollow" href="http://en.wikipedia.org/wiki/Squid_cache" title="Squid (Software)"  target="_blank">Squid (software)</a>, from their site:</p><p><span
style="color: #3366ff;"><em>&#8220;&#8230;Squid is a proxy server and web cache daemon. It has a wide variety of uses, from speeding up a web server by caching repeated requests, to caching web, DNS and other computer network lookups for a group of people sharing network resources, to aiding security by filtering traffic. Although primarily used for HTTP and FTP, Squid includes limited support for several other protocols including TLS, SSL, Internet Gopher and HTTPS. The development version of Squid (3.1) includes IPv6 and ICAP support&#8230;&#8221;</em></span></p><p>Needless, as I currently enjoy using Ubuntu, that&#8217;s what I used as the OS for this project. Installing a Squid server on the network, provided me with a few important benefits:</p><ul><li>Less bandwidth usage.</li><li>Faster web surfing.</li><li>Network cached copies of pages I regularly visit (if the original server is down).</li></ul><p>Firstly, make sure you&#8217;ve<span
id="more-1517"></span><strong> installed a copy of Ubuntu 8.04 Server (Hardy) on the old laptop</strong>. Not sure how to do that? Here&#8217;s a guide:<a
href="http://howtoforge.com/perfect-server-ubuntu8.04-lts" title="The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server)"  target="_blank"> The Perfect Server &#8211; Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server)</a>. In my case I skipped (did not install) Apache, MySQL, Postfix, BIND9, Proftpd, POP3/IMAP and Webalizer. I don&#8217;t need those, I only need the Squid proxy / caching server. I also installed Webmin (see below), so that I can easily manage this server remotely. A word to the wise however, I found out (about 2 years ago) to <strong>install Squid first</strong>! &#8211; That way the Webmin installation goes much smoother (I was using Debian for the server  at that time, and Ubuntu in another instance). Also, for those of you who have been following my blog (and for my welcomed new readers), I also played with Squid and Ubuntu about a year ago, in this post: <a
href="http://ubuntulinuxhelp.com/speed-up-and-improve-web-surfing-with-an-ubuntu-squid-server/" title="Speed Up and Improve Web Surfing With an Ubuntu Squid Server."  target="_self">Speed Up and Improve Web Surfing With an Ubuntu Squid Server</a>. My earlier Ubuntu, Squid post was based on Ubuntu 6.06LTS and Squid 2.6 &#8211; Things have changed and applications, etc. have improved, so I though a revisit and reinstallation of the Squid server was in order.</p><p>I downloaded and burned a copy of the <strong>Ubuntu 8.04 LTS Server</strong> from Ubuntu&#8217;s official site at: <a
href="http://www.ubuntu.com/getubuntu/download-server" title="Download Ubuntu 8.04 LTS Server"  target="_blank">http://www.ubuntu.com/getubuntu/download-server</a>. The bare minimum requirements are:</p><p>300 MHz x86 processor<br
/> 64 MB of system memory (RAM)<br
/> At least 4 GB of disk space (for full installation and swap space)<br
/> VGA graphics card capable of 640&#215;480 resolution<br
/> CD-ROM drive or network card</p><p>256MB of RAM, made the install slower than I&#8217;m used to. You can find more requirements info for Ubuntu Server (Hardy) at <a
href="https://help.ubuntu.com/community/Installation/SystemRequirements" title="Ubuntu System Requirements"  target="_blank">Ubuntu System Requirements</a>.</p><p>After downloading, and burning a copy of the ubuntu-8.04.2-server-i386 CD, complete a base install of Ubuntu server (using the howtoforge.com guide above as a reference). I also installed an SSH server so that I could tuck the old laptop away and complete everything else in  comfort,  using my desktop.</p><p><strong><span
style="color: #ff6600;">sudo aptitude install ssh openssh-server</span></strong></p><p>will get the ssh server up and running for you.</p><p>Throughout this post, you&#8217;ll need to substitute your IP addresses and names to match those in your own network. After the installation of the base server is complete, open a terminal from your (comfortable) desktop and enter:</p><p><span
style="color: #ff6600;"><strong>ssh root@192.168.1.200</strong></span></p><p>192.168.1.200 is the address of  there server I just installed.</p><p>Use the command:</p><p><span
style="color: #ff6600;"><strong>su</strong></span></p><p>to enter root. That way I don&#8217;t have to keep typing &#8220;sudo&#8221;.</p><p>Install Squid usingthe command:</p><p><span
style="color: #ff6600;"><strong>aptitude install squid3</strong></span></p><p>After Squid has finished installing and you&#8217;ve rebooted the system, you may want to install Webmin, a GUI interface to manage that server, still in terminal, you can download a copy of the webmin package into and directory you like. The command to download is:</p><p><span
style="color: #ff6600;"><strong>wget http://prdownloads.sourceforge.net/webadmin/webmin-1.470.tar.gz</strong></span></p><p>Untar it like this:</p><p><span
style="color: #ff6600;"><strong>tar xzvf webmin-1.470.tar.gz</strong></span></p><p>Webmin needs perl to run, so I installed some packages:</p><p><span
style="color: #ff6600;"><strong>aptitude install install libauthen-pam-perl libnet-ssleay-perl libpam-runtime openssl perl perl-modules</strong></span></p><p>Enter my extracted contents of the webmin-1.470.tar.gz package  by:</p><p><span
style="color: #ff6600;"><strong>cd webmin-1.470</strong></span></p><p>And run the installation for webmin:</p><p><span
style="color: #ff6600;"><strong>./setup.sh </strong></span></p><p>I changed the port number away from 10000 to <strong>26395</strong>. I changed the admin account to &#8220;root&#8221;, and entered a new password.</p><p>At the end of the webmin installation, I got the success message that include the URL: <strong>http://squid.localdomain:26395/</strong></p><p>On my local PC, I had to edit my hosts file like this:</p><p><span
style="color: #ff6600;"><strong>sudo gedit /etc/hosts<br
/> </strong></span><br
/> Then added the following line:</p><p><span
style="color: #ff6600;"><strong>192.168.1.200 squid.localdoman    squid</strong></span></p><p>Now we want to reboot the squid server using:</p><p><span
style="color: #ff6600;"><strong>shutdown -r now</strong></span></p><p>After rebooting the server and logging back in (via ssh), you can see if the webmin service is running by using the command:</p><p><span
style="color: #ff6600;"><strong>sudo /etc/init.d/webmin status</strong></span></p><p>You should see something like:</p><p><span
style="color: #3366ff;">webmin (pid 4573) is running</span></p><p>To see if it is listening on the correct port number, the command to check that is:</p><p><span
style="color: #ff6600;"><strong>sudo netstat -tap</strong></span></p><p>You should find a line in the output of the above command that says something like:</p><p><span
style="color: #3366ff;">tcp    0    0 *:26395    *:*    LISTEN    4573/perl</span></p><p>(Remember, port 26395 was the one we chose to tun webmin on &#8211; And webmin uses perl).</p><p>Now open a web browser and visit webmin. The URL I would use is:</p><p><strong>http://squid.localdomain:26395/</strong></p><p>(Again, remember that I <strong>added the appropriate information to my hosts file</strong> so that the browser can find the URL).</p><p>I chose not to enable SSL for logging into webmin (as I don&#8217;t need it in this LAN). After logging in, we want to configure squid. Look for something (on the left) that says &#8220;<strong>Unused Modules</strong>&#8221; and look for &#8220;<strong>Squid Proxy Server</strong>&#8220;, click that link. You will see an option to install the squid (webmin) module. <strong>Select that link to install it</strong>.</p><p>After installing, look on the left side menu and under &#8220;<strong>Servers</strong>&#8221; you will see &#8220;<strong>Squid Proxy Server</strong>&#8220;. Select &#8220;Squid Proxy Server&#8221; and then select the &#8220;<strong>Ports and Networking</strong>&#8221; option.</p><p>Note that squid is running on the <strong>default port 3128</strong>. Now return back to the squid module page by clicking &#8220;Module Index&#8221; (at the top of the page). Select the &#8220;<strong>Access Control</strong>&#8221; icon and see a button at the bottom of the page that says &#8220;Browser Regexp&#8221; &#8211; That contains a drop down list. Use the drop down list to select &#8220;<strong>Client Address</strong>&#8221; then click the button that says &#8220;<strong>Create new ACL</strong>&#8220;.</p><p>Enter your values in the form. I used the following:</p><p>ACL Name: localdomain<br
/> From IP: 192.168.1.0<br
/> To IP: 192.168.1.255<br
/> Netmask: 255.255.255.0</p><p>I didn&#8217;t change anything else and clicked on &#8220;Save&#8221;.</p><p>Now click the tab (at the top) that says &#8220;<strong>Proxy restrictions</strong>&#8220;. Click (at the bottom) &#8220;<strong>Add proxy restrictions</strong>&#8221; and look for the new ACL name you just created (mine was called &#8220;localdomain&#8221;) <span
style="color: #ff0000;">*** Make sure you are looking under the column that says &#8220;Match ACLS&#8221; ***</span> and click on that name. Now click the radio button that says &#8220;<strong>Allow</strong>&#8220;. Then select &#8220;save&#8221; at the bottom.</p><p>In the new screen that display, use the up arrow to <span
style="color: #ff0000;">move &#8220;localdomain&#8221; (or whatever you called your new ACL rule) so that it is just above the line that says &#8220;Deny all&#8221;</span>. If you don&#8217;t, your browsers will not be able to get access.</p><p>Now in your ssh window, use the command:</p><p><span
style="color: #ff6600;"><strong>shutdown -r now</strong></span></p><p>This will restart the server and squid3 (along with then new configuration). I noticed that webmin (for some strange reason) thought squid 2.6 was installed. Therefore, webmin was unable to start the server. But after rebooting the system, the &#8220;Stop Squid&#8221; button appeared &#8211; so I assume the webmin module has started working properly (no need for me to play with webmin again, as I&#8217;ll use SSH to access and reboot, etc., so I did not try).</p><p>As a final step, <strong>make sure that you set the proxy server address in your web browser</strong>. In my case the information to enter as a proxy server for each web browser is:</p><p><strong>192.168.1.200:3128</strong></p><p><strong>Update, July 03, 2009: </strong>I found a problem when trying to access statistics. Here&#8217;s the issue and fix&#8230;</p><p>Issue:  When trying to access the &#8220;Cache Manager Statistics&#8221; under &#8220;Squid Proxy Server&#8221;, the following error displays:</p><p><em><span
style="color: #3366ff;">&#8220;The Squid cache manager program /usr/lib/cgi-bin/cachemgr.cgi was not found on your system. Maybe your module configuration is incorrect.&#8221;</span></em></p><p>Fix:  <span
style="color: #ff6600;"><strong>aptitude install squid-cgi</strong></span></p><p>Cache manager statistics will now work.</p><p>Other sites with related information:</p><ul><li><a
rel="nofollow" href="http://shibuvarkala.blogspot.com/2008/11/howto-block-websites-using-squid-proxy.html" title="Howto Block websites using Squid Proxy in Ubuntu Linux"  target="_blank">Howto Block websites using Squid Proxy in Ubuntu Linux</a></li><li><a
rel="nofollow" href="http://shibuvarkala.blogspot.com/2008/11/howto-block-port-in-squid-proxy-ubuntu.html" title="Howto Block a Port in Squid Proxy , Ubuntu Linux"  target="_blank">Howto Block a Port in Squid Proxy , Ubuntu Linux</a></li><li><a
href="http://en.kioskea.net/faq/sujet-804-ubuntu-installing-an-http-proxy-server-squid" title="[Ubuntu]Installing an HTTP proxy server (Squid)"  target="_blank">[Ubuntu]Installing an HTTP proxy server (Squid)</a></li><li><a
href="http://chrisjohnston.org/2008/installing-squid-proxy-using-webmin-on-ubuntu-server-8041" title="Installing Squid Proxy using Webmin on Ubuntu Server 8.04.1"  target="_blank">Installing Squid Proxy using Webmin on Ubuntu Server 8.04.1</a></li><li><a
href="http://www.linuxjournal.com/article/10407" title="Paranoid Penguin - Building a Secure Squid Web Proxy, Part I"  target="_blank">Paranoid Penguin &#8211; Building a Secure Squid Web Proxy, Part I</a></li></ul><p>Enjoy faster web surfing as less external files are requested for pages you commonly visit and local cached copies are delivered to your browser. I hope you ladies and gents have fun playing with this, as I hope this post helps you out. Questions, suggestions, corrections, even additions?&#8230;. Please feel free to add them to you comments!</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/feed/</wfw:commentRss> <slash:comments>9</slash:comments> </item> <item><title>Full Circle Magazine &#8211; Issue #14 is Out</title><link>http://ubuntulinuxhelp.com/full-circle-magazine-issue-14-is-out/</link> <comments>http://ubuntulinuxhelp.com/full-circle-magazine-issue-14-is-out/#comments</comments> <pubDate>Fri, 27 Jun 2008 13:11:01 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Editorials]]></category> <category><![CDATA[full circle magazine]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[plug n play]]></category> <category><![CDATA[server]]></category> <category><![CDATA[zone]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/full-circle-magazine-issue-14-is-out/</guid> <description><![CDATA[I received an email this morning from Full Circle Magazine (they are a &#8220;&#8230;FREE Independent Magazine (and podcast) for the Ubuntu Linux Community&#8230;&#8221;) saying that the latest publication is out; and was happy to see that one of my posts, Make Your Own Plug ‘N Play Zone Using Ubuntu Linux!, was featured in the latest [...]]]></description> <content:encoded><![CDATA[<p>I received an email this morning from <a
href="http://fullcirclemagazine.org/"  title="http://fullcirclemagazine.org/" target="_blank">Full Circle Magazine</a> (they are a &#8220;&#8230;FREE Independent Magazine (and podcast) for the Ubuntu Linux Community&#8230;&#8221;) saying that the latest publication is out; and was happy to see that one of my posts, <a
href="http://ubuntulinuxhelp.com/make-your-own-plug-n-play-zone-using-ubuntu-linux/"  title="http://ubuntulinuxhelp.com/make-your-own-plug-n-play-zone-using-ubuntu-linux/">Make Your Own Plug ‘N Play Zone Using Ubuntu Linux!</a>, was featured in the latest Issue #14!  :)</p><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/fcm-issue14.jpg?9d7bd4" alt="Full Circle Magazine - Issue #14" /></p><p>You can download and read the latest publication (which includes the &#8220;Make Your Own Plug ‘N Play Zone Using Ubuntu Linux!&#8221; post)  here: <a
href="http://fullcirclemagazine.org/2008/06/26/issue-14-is-out/"  title="http://fullcirclemagazine.org/2008/06/26/issue-14-is-out/" target="_blank">Issue 14 is out!</a></p><p>For those not aware, I posted a follow-up to the original about a month later, where I finalized some extra issues and information. You can find that post here: <a
href="http://ubuntulinuxhelp.com/ubuntu-linux-plug-n-play-zone-revisited/"  title="http://ubuntulinuxhelp.com/ubuntu-linux-plug-n-play-zone-revisited/">Ubuntu Linux Plug ‘N Play Zone Revisited</a></p><p>As always&#8230; Have fun :)</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/full-circle-magazine-issue-14-is-out/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> <item><title>Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI &#8211; Hardware Installation.</title><link>http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/</link> <comments>http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/#comments</comments> <pubDate>Fri, 20 Jun 2008 15:00:21 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[How To]]></category> <category><![CDATA[64bit]]></category> <category><![CDATA[amd]]></category> <category><![CDATA[bios]]></category> <category><![CDATA[desktop]]></category> <category><![CDATA[fix]]></category> <category><![CDATA[flash]]></category> <category><![CDATA[hardware]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[lamp]]></category> <category><![CDATA[marvell]]></category> <category><![CDATA[modeprobe]]></category> <category><![CDATA[network]]></category> <category><![CDATA[nvidia]]></category> <category><![CDATA[server]]></category> <category><![CDATA[shuttle]]></category> <category><![CDATA[sn68sg2]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/</guid> <description><![CDATA[As mentioned in the introduction (where I listed the hardware and software I used for this hands-on project), we need to ensure that our hardware is set-up and working before moving on. To recap, here is the list of hardware used: Shuttle SN68SG2 Socket AM2 Barebone &#8211; NVIDIA 7025, Audio, Video, PCI Express, Gigabit LAN, [...]]]></description> <content:encoded><![CDATA[<p>As mentioned in the <a
href="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-introduction/"  title="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-introduction/">introduction</a> (where I listed the hardware and software I used for this hands-on project), we need to ensure that our hardware is set-up and working before moving on.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>To recap, here is the list of hardware used:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p><font
color="#3366ff">Shuttle SN68SG2 Socket AM2 Barebone &#8211; NVIDIA 7025, Audio, Video, PCI Express, Gigabit LAN, USB 2.0, Firewire, Serial ATA, 250 Watt Power Supply.</font><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p><font
color="#3366ff">AMD Athlon 64 X2 4200+ Processor ADA4200CUBOX &#8211; 2.20GHz, 1MB Cache, 1000MHz (2000 MT/s) FSB, Windsor, Dual-Core, Retail, Socket AM2, Processor with Fan.</font><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p><font
color="#3366ff">Kingston 1024MB PC5400 DDR2 667MHz Memory (2 of these for 2GB).</font><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p><font
color="#3366ff">Western Digital Caviar SE16 500GB Hard Drive &#8211; 7200, Browser Problems &#8211; Creating a Linux Based Virtual Box &#8211; Part 1 of 2 16MB, SATA-300, OEM.</font><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p><font
color="#3366ff">DVD burner: LG GSA H55N Super-Multi Disk Drive 20×20×12</font><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>Putting the actual pieces together was very straight  forward (use the guide that comes with the Shuttle package). However, I did make one mistake in ordering the hardware&#8230;<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>The Shuttle SN68SG2 comes with it&#8217;s own heat sink and cooling system. The metal fins are inserted right behind the fan of the power supply, so that the outbound air blows over the fins and draws heat away from the CPU.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /> (I thought that was an innovative design idea when building such a small-footprint unit). As such, I did not need to order the retail version of the CPU (there&#8217;s no use or place, for the fan). Instead, I should have ordered the OEM version of the CPU (without the fan).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>Also, after following the instructions that come with the shuttle unit, you may wish to flash the BIOS. I found that I was able to reboot the system with no problem, but whenever I powered it down and then back up (cold start), the PC always tries to boot off the network (until I  use the ctrl-alt-del combo to restart it), the shuttle site indicated the fix was BIOS related.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /> It&#8217;s probably better to flash the BIOS prior to moving forward (if you&#8217;re even interested in fixing this issue). You can fix it with Shuttle&#8217;s Flash Utility (awdflash) and the new BIOS (bin file) here: <a
href="http://global.shuttle.com/download03.jsp?PI=647"  title="http://global.shuttle.com/download03.jsp?PI=647" target="_blank">http://global.shuttle.com/download03.jsp?PI=647</a>. Flashing the BIOS is not in the scope of this post, but one guide that gives you the basics of flashing is here: <a
href="http://howflow.com/tricks/flash_your_award_bios_with_linux"  title="http://howflow.com/tricks/flash_your_award_bios_with_linux" target="_blank">http://howflow.com/tricks/flash_your_award_bios_with_linux</a>. Please remember that<span
id="more-1292"></span> <font
color="#ff0000"><strong>flashing a BIOS is serious</strong></font>, if you make a mistake (or power fails while flashing) <strong><font
color="#ff0000">you might damage the BIOS</font></strong> and have to buy a new motherboard! Be warned! ;) I chose not to flash the bios as (for now) the cold-start issue is just a minor thing.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>I didn&#8217;t specify a monitor in the list above (I&#8217;m sure most would work), but I&#8217;ve had no problems using an Acer AL1916W.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /> It&#8217;s a 19 inch wide screen (1440 x 900 &#8211; 16:10).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>Make sure that you have a USB keyboard and USB mouse.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /> I didn&#8217;t pay attention the first time and had to exchange the keyboard for a USB one.  ;)<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>During the installation you&#8217;ll find two issues:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><ol><li>Video may not display clearly (it&#8217;s a driver issue).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></li><li>The network card may not work properly (it&#8217;s also driver issue).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></li></ol><p>Here&#8217;s one trick I did to resolve this (and make my server install much smoother!)<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>After putting the hardware together, I did a quick install of  Ubuntu 8.04 LTS Desktop Edition (64-bit) as I wanted to see if there were any issues.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /> The most critical one I found was that network card appeared not to be working. By fixing this now, I found out I didn&#8217;t have to do it during the server install! I&#8217;d suggest (strongly) that you also do a quick desktop OS install as well, just to make sure everything is working as it should.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /> (Besides, I don&#8217;t mind doing reinstalls as it helps me prepare and get a bit more exposure to some issues.)  ;)<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p><strong>Fixing the Network Drivers:</strong></p><p>To get the network card working properly took a bit of searching the learn that it was a Marvell.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /> Once I had this information, I opened a terminal and tried:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p><code>sudo modeprobe marvell<br
/> sudo modeprobe marvell 88e1116</code></p><p>After (88E1116 was the model) the commands completed, I found the network card was able to connect and I could surf the web.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /> I installed the desktop OS twice more and the server OS three times more (because I messed things up), but I never had to modeprobe the network card again &#8211; it always worked.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p><strong>Fixing the Video Drivers:</strong><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>Each time you install the OS (Server or Desktop), you&#8217;ll need to ensure you install the nVidia driver. To get the video drivers working, in terminal:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p><code>sudo apt-get install envyng-gtk</code><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>The above will install a tool in your desktop GUI. Use it to install the nVidia drivers. This solution came from: <a
href="http://www.albertomilone.com/nvidia_scripts1.html"  title="http://www.albertomilone.com/nvidia_scripts1.html" target="_blank">http://www.albertomilone.com/nvidia_scripts1.html</a><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /></p><p>That&#8217;s it for this entry.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif?9d7bd4" /> The next post in this 12 part series, will have us rolling our sleeves up and installing the LAMP server software. :)</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>Browser Problems &#8211; Creating a Linux Based Virtual Box &#8211; Part 2 of 2</title><link>http://ubuntulinuxhelp.com/browser-problems-creating-a-linux-based-virtual-box-part-2-of-2/</link> <comments>http://ubuntulinuxhelp.com/browser-problems-creating-a-linux-based-virtual-box-part-2-of-2/#comments</comments> <pubDate>Fri, 23 May 2008 19:42:43 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Applications]]></category> <category><![CDATA[Hands On]]></category> <category><![CDATA[How To]]></category> <category><![CDATA[driver]]></category> <category><![CDATA[envyng]]></category> <category><![CDATA[install]]></category> <category><![CDATA[marvel]]></category> <category><![CDATA[nvidia]]></category> <category><![CDATA[server]]></category> <category><![CDATA[virtual]]></category> <category><![CDATA[virtualbox]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/browser-problems-creating-a-linux-based-virtual-box-part-2-of-2/</guid> <description><![CDATA[Earlier this month, I posted Part 1 of &#8220;Browser Problems &#8211; Creating a Linux Based Virtual Box&#8221; where the issue of being able to load different environments to test web site development was discussed. In this post (Part 2), I&#8217;ve received all the hardware (Shuttle SN68SG2) and am happy to note that the unit is [...]]]></description> <content:encoded><![CDATA[<p>Earlier this month, I posted Part 1 of &#8220;<a
href="http://ubuntulinuxhelp.com/browser-problems-creating-a-linux-based-virtual-box-part-1-of-2/"  title="http://ubuntulinuxhelp.com/browser-problems-creating-a-linux-based-virtual-box-part-1-of-2/ ">Browser Problems &#8211; Creating a Linux Based Virtual Box</a>&#8221; where the issue of being able to load different environments to test web site development was discussed.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> In this post (Part 2), I&#8217;ve received all the hardware (Shuttle SN68SG2) and am happy to note that the unit is Linux compatible. I&#8217;ve installed Ubuntu Linux 8.04 x64 (Hardy) on it.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>I did have two issues to fix after the initial install.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>1) The integrated network card did not seem to work.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> 2) The integrated video was showing poor graphics.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>The fix to get ethernet working was easy.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> Here&#8217;s how I got it functioning:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><span
id="more-1289"></span></p><p>The specifications of the Shuttle SN68SG2 said that the embedded network card was a Marvell 88E1116.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>We can use modeprobe in a terminal to try loading it:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo modprobe marvell<br
/> sudo modprobe marvell 88e1116</code></p><p>After the above command, the network card started to work and I was able to connect to the network.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>The second issue, poor video because the drivers were not loaded, had already been solved by Alberto Milone in Italy.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> I found his solution, on his web site: <a
href="http://www.albertomilone.com/nvidia_scripts1.html"  title="http://www.albertomilone.com/nvidia_scripts1.html" target="_blank">http://www.albertomilone.com/nvidia_scripts1.html</a>.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> And I used the instructions to install EnvyNG via apt-get (for this Ubuntu Linux 8.04 &#8211; Hardy installation).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>As indicated, I needed to ensure the &#8220;universal&#8221; repository was enabled (and it was by default) and then ran the commands:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo apt-get install envyng-gtk<br
/> </code><br
/> After the install, I found the &#8220;EnvyNG&#8221; configuration application in System tools (Under applications in the GUI). I selected the nVidia drivers and the script completed successfully. Both the network and the video issues were easily fixed.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>Now I&#8217;m ready to install VirtualBox, so that I can virtually host testing environments for different operating systems, browsers, applications, etc.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> The terminal command:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo apt-get install virtualbox</code></p><p>will download and install the package. After the installation is complete, you will find &#8220;VirtualBox OSE&#8221; within Application -&gt; System Tools in your GUI (in the same place the launcher for EnvyENG was found).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> Just launch VirtualBox and follow the prompts.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> Easy!<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>The above may seem like it&#8217;s over simplified, perhaps it is, but only in the respect that I&#8217;ve not included the many different fixes I tried.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> Instead, I&#8217;ve just posted the network card and video card fixes that worked (without subjecting you to a lengthy rendition of what did not work).  ;)</p><p>Needless to say, I&#8217;ll soon be installing various virtual environments with this great new tool.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>I hope this post and the &#8220;Part 1&#8243; post are of help to some of you!<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> Enjoy&#8230;<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> :)</p><p>[tags]shuttle, linux ,ubuntu, video, network, drivers, fix, how to, SN68SG2, ethernet, virtualbox, marvell, envyeng, nvidia[/tags]</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/browser-problems-creating-a-linux-based-virtual-box-part-2-of-2/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Automate Your Web Site Backup!</title><link>http://ubuntulinuxhelp.com/automate-your-web-site-backup/</link> <comments>http://ubuntulinuxhelp.com/automate-your-web-site-backup/#comments</comments> <pubDate>Mon, 05 May 2008 14:39:13 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[How To]]></category> <category><![CDATA[automate]]></category> <category><![CDATA[backup]]></category> <category><![CDATA[cron]]></category> <category><![CDATA[data]]></category> <category><![CDATA[hosting]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[redundancy]]></category> <category><![CDATA[rsync]]></category> <category><![CDATA[safe]]></category> <category><![CDATA[server]]></category> <category><![CDATA[website]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/automate-your-web-site-backup/</guid> <description><![CDATA[During the weekend (Saturday), UbuntuLinuxHelp was down for almost 12 hours. Fortunately the hosting provider had data backups and there was no data loss. In any event, I also keep backups, so the added redundancy helps to protect the content. Up to now, the server has been configured to create a daily backup of databases [...]]]></description> <content:encoded><![CDATA[<p>During the weekend (Saturday), UbuntuLinuxHelp was down for almost 12 hours.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> Fortunately the hosting provider had data backups and there was no data loss. In any event, I also keep backups, so the added redundancy helps to protect the content. Up to now, the server has been configured to create a daily backup of databases and certain directories; and those (.gz files) are downloaded manually to another location later.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>But, what if there were no backups? What if your hosting provider cannot restore  data at their end? To be blunt, you&#8217;d be back to square one! Developing a whole new site or blog from the beginning!<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> That&#8217;s a chilling thought, to lose everything and start again.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>For peace of mind and data (intellectual property) , today&#8217;s post will highlight some of the steps we&#8217;ve taken to fully automate the backup process. Hopefully this will help many of you who may encounter the same issues, or are simply looking for a proactive, automated backup system for your web sites, blogs, ecommerce sites, etc.</p><p>We&#8217;ll need 5 things to ensure this system works:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><span
id="more-1280"></span></p><ul><li>The remote host (your web hosting server).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></li><li>The local host (your Ubuntu or other Linux based desktop).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></li><li>The open source Rsync package.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></li><li>OpenSSH.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></li><li>Cron.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></li></ul><p>Let&#8217;s start with our desktop,<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> which is the &#8216;localhost&#8217;. In my case the desktop is Ubuntu Linux 7.10, but this can be any Linux based system. This could also be another Linux server, if you tweak this a bit more. ;) <img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>I know &#8216;cron&#8217; is enabled (because it&#8217;s part of the default installation) of my Linux desktop. I also know SSH is installed (because it&#8217;s installed by default and I&#8217;ve used it), but I&#8217;m not sure if &#8216;rsych&#8217; is there and if it works over SSH.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>Side note:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> For those not familiar with Rsync, &#8220;<em>rsync is an open source utility that provides fast incremental file transfer. rsync is freely available under the GNU General Public License and is currently being maintained by Wayne Davison.</em>&#8221; Source: <a
href="http://samba.anu.edu.au/rsync/"  title="http://samba.anu.edu.au/rsync/" target="_blank">http://samba.anu.edu.au/rsync/</a></p><p>To see if rsych is installed, use the following terminal command:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>apt-cache search rsync</code></p><p>If you see it&#8217;s installed,<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> to determine if rsync works over SSH, open a terminal and type the following command (substituting your correct information):<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>rsync -avz -e ssh Your Remote Username@Your Remote Server Host:/The Remote/dir /Your Local/dir/</code></p><p>Here is what the switches mean:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>a: Use &#8216;archive&#8217; mode.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> v: Use &#8216;verbose&#8217; output.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> z: Use &#8216;compression&#8217; during file transfer.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> e: Specify the &#8216;command&#8217; to run. In this case SSH.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>In my case the command could look something like this:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>rsync -avz -e ssh backupadmin@ubuntulinuxhelp.com :/backupdir/daily /home/ubplay/sitebackups</code></p><p>After entering the above command, I&#8217;m prompted to enter the password and the file transfer begins.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>In my case this is simple because the hosting provider uses &#8216;The&#8217; industry standard software (Linux) as the standard applications, openssh, rsych, cron, etc.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> And my local Linux system already had the tools installed. Now that I&#8217;ve determined it works, cron can automate the system. However, before moving to cron, make sure your server is configured to backup the files and databases on a daily (or other) schedule.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>If you&#8217;re using industry standard hosting services, you&#8217;ll be on a Linux box using cPanel.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> Personally, I&#8217;ve tried several others including Plesk, ISPConfig, etc, however in my opinion, they don&#8217;t have the amount of flexibility or options that cPanel does. In terms of a LAN however, in my opinion nothing beats Webmin. Webmin has the greatest flexibility and options. However, I&#8217;m going off topic here, back to the subject at hand!&#8230;<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> Log into your hosting control panel and use the interface to configure your scheduled backups to occur during low-traffic periods. Make a note of the directory the backups are saved to. WHM/cPanel is great for this as it&#8217;s configured via a simple GUI, and is easy to use. :) In my case the server backs up the web site files and databases and stores them in /backupdir (so that my cron job can download any files in this directory later).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> For privacy issues, I&#8217;m not going to post the script as it contains a username and password among other &#8220;exposures&#8221;.</p><p>Before moving to cron itself,<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> I needed to configure a script that will rsync over the SSH connection. Here are some example I found on the rsync site: <a
href="http://samba.anu.edu.au/rsync/examples.html"  title="http://samba.anu.edu.au/rsync/examples.html" target="_blank">Rsync Examples</a>. Another great resource we found is here: <a
href="http://colas.nahaboo.net/software/rsync-incr/"  title="http://colas.nahaboo.net/software/rsync-incr/" target="_blank">resync-incr</a>. On this site you&#8217;ll see another methodology and example scripts. And finally another great backup scripting resource here: <a
href="http://wiki.splitbrain.org/wiki:tips:backup_script"  title="http://wiki.splitbrain.org/wiki:tips:backup_script" target="_blank">Backup Script</a>. I&#8217;m sure some of you have other great sites and resources listed, please comment below and add them. :) <img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>After you&#8217;ve set up your script, however you want it (there are hundreds of ways!),<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> use cron to run it. Setting up the cron job is not very difficult:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>0 2 * * * /home/ubplay/cron/rsync-ubuntulinuxhelp</code></p><p>This (above) downloads the backup at 2am every day. Remember to ensure that your server has finished creating its backup by this time.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> Otherwise you&#8217;ll not be downloading the files you expect. In my case I use nano to create the file called &#8220;rsync-ubuntulinuxhelp&#8221; placed in the &#8230;/cron director. The file named rsync-ubuntulinuxhelp contains the actual bash script. To create the cron job itself (that calls the script), complete the following in a terminal:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo crontab -e</code></p><p>and use the following parameters:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>* * * * * path to script/command to be executed and script/command<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> -   &#8211;   &#8211;   &#8211;   -<br
/> |   |   |   |   |<br
/> |   |   |   |   &#8212; Day of week (0 &#8211; 7)<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> |   |   |   &#8212;&#8212;- Month (1 &#8211; 12)<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> |   |   &#8212;&#8212;&#8212; Day of month (1 &#8211; 31)<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> |   &#8212;&#8212;&#8212;&#8211; Hour (0 &#8211; 23)<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> &#8212;&#8212;&#8212;&#8212;- Minute (0 &#8211; 59)<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>(&#8216;*&#8217; means &#8216;every&#8217;).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>Side note: to view your existing cron jobs, in a terminal, type:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo cron -l</code></p><p>to delete a cron job:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo cron -r</code></p><p>As usual, I hope this helps some of you!<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>Enjoy :)</p><p>[tags]linux, ubuntu, automatic, backup, website, cron, rsync, how to, openssh, save website[/tags]</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/automate-your-web-site-backup/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Create a Linux Antivirus Server to Protect eMail &#8211; A Brief How to</title><link>http://ubuntulinuxhelp.com/create-a-linux-antivirus-server-to-protect-email-a-brief-how-to/</link> <comments>http://ubuntulinuxhelp.com/create-a-linux-antivirus-server-to-protect-email-a-brief-how-to/#comments</comments> <pubDate>Tue, 08 Apr 2008 17:14:18 +0000</pubDate> <dc:creator>Roger Wheatley</dc:creator> <category><![CDATA[Hands On]]></category> <category><![CDATA[How To]]></category> <category><![CDATA[antivirus]]></category> <category><![CDATA[clamav]]></category> <category><![CDATA[email]]></category> <category><![CDATA[how to]]></category> <category><![CDATA[install]]></category> <category><![CDATA[protection]]></category> <category><![CDATA[scan]]></category> <category><![CDATA[server]]></category><guid
isPermaLink="false">http://ubuntulinuxhelp.com/create-a-linux-antivirus-server-to-protect-email-a-brief-how-to/</guid> <description><![CDATA[Last month we posted &#8220;Does Ubuntu Linux Really Need Antivirus Software?&#8221; Where there was a bit of discussion as to whether Linux needed antivirus software installed. There were some very informative comments from readers, which showed that in reality it would be very difficult to develop Linux based viruses, and that the real use would [...]]]></description> <content:encoded><![CDATA[<p>Last month we posted &#8220;<a
href="http://ubuntulinuxhelp.com/does-ubuntu-linux-really-need-antivirus-software/"  title="http://ubuntulinuxhelp.com/does-ubuntu-linux-really-need-antivirus-software/">Does Ubuntu Linux Really Need Antivirus Software?</a>&#8221; Where there was a bit of discussion as to whether Linux needed antivirus software installed.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /><br
/> There were some very informative comments from readers, which showed that in reality it would be very difficult to develop Linux based viruses, and that the real use would be to protect Windows users. After some thought and a bit of playing, I was introduced to <a
href="http://www.clamav.net/"  title="http://www.clamav.net/" target="_blank">ClamAV</a>.  For those not familiar, their site description says:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>&#8220;<em>&#8230;Clam AntiVirus is an open source (GPL) anti-virus toolkit for UNIX, designed especially for email scanning on mail gateways. It provides a number of utilities including a flexible and scalable multi-threaded daemon, a command line scanner and advanced tool for automatic database updates. The core of the package is an anti-virus engine available in a form of shared library&#8230;</em>&#8220;<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>For me at least, this was a clear challenge to roll up my sleeves and create a small antivirus server (used to scan email). This would be useful to the small business owner, school, club or hobbyists in general. I&#8217;m not going to<span
id="more-1269"></span> post the setup of the mail server for this (there are tons of tutorials on line), I&#8217;ll just be writing about the installation of clamAV on the server.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>Depending on your platform, you should see the appropriate documentation here: <a
href="http://www.clamav.org/download/packages/packages-linux"  title="http://www.clamav.org/download/packages/packages-linux" target="_blank">http://www.clamav.org/download/packages/packages-linux</a>. However, as I&#8217;m using Ubuntu Linux, I&#8217;ll simply run the following command on the mail server to install the package:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo apt-get install clamav clamav-daemon clamav-docs</code></p><p><img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/04/clam001.jpg?9d7bd4" alt="ClamAV Install" /></p><p>clamav is the software and clamav-daemon is the service that will run the mail server modules that checks email attachments. The daemon will also ensure that the virus definitions are automatically updated. Be aware that the command will also install:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>clamav-base<br
/> clamav-freshclam (Run by the daemon to keep the definitions updated).<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p>After the installation is complete, you&#8217;ll be able to scan files manually using:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo clamscan -r /&lt;whatever-directory-name-your-mailserver-uses-to-store-email&gt;</code></p><p>Or&#8230; better to have it run automatically using cron like this:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>sudo vi crontab -e</code></p><p>(you can use nano, vi, whatever, it does not matter &#8211; just as long as it&#8217;s a pure text editor) and add the following code to the cronjob:<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /></p><p><code>*/10 * * * * sudo clamscan -r /&lt;whatever-directory-name-your-mailserver-uses-to-store-email&gt;</code></p><p>The above will scan the mail directory every 10 minutes.</p><p>Again, I&#8217;m not espousing that Linux &#8220;needs&#8221; anti virus protection. Rather, I&#8217;m suggesting one method we could use to protect all members, (by attempting to reduce virus transmission) to Windows and other platforms.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> If you need to remove this solution (because you&#8217;re just trying this out), the command to do so would be:</p><p><code>sudo apt-get autoremove clamav clamav-daemon clamav-docs</code></p><p>The &#8220;autoremove&#8221; statement will also remove the dependencies that were installed with clamav.</p><p>You can of course use this solution for your desktops and have it automatically scan the Thunderbird email folder via cron too.<img
src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif?9d7bd4" /> ;)</p><p>As always, I hope this is helpful to some of you!<br
/> :)</p> ]]></content:encoded> <wfw:commentRss>http://ubuntulinuxhelp.com/create-a-linux-antivirus-server-to-protect-email-a-brief-how-to/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> </channel> </rss>
<!-- Served from: ubuntulinuxhelp.com @ 2012-02-10 16:48:06 by W3 Total Cache -->
