<?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; Hands On</title>
	<atom:link href="http://www.ubuntulinuxhelp.com/category/hands-on/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.ubuntulinuxhelp.com</link>
	<description></description>
	<lastBuildDate>Thu, 31 Jan 2013 23:23:02 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.2</generator>
		<item>
		<title>Faster Internet With an Old Laptop &#8211; Revisited</title>
		<link>http://www.ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-revisited/</link>
		<comments>http://www.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 ...]]></description>
				<content:encoded><![CDATA[<p>One of my earlier posts, <a title="Faster Internet With an Old Laptop – Ubuntu and Squid" href="http://ubuntulinuxhelp.com/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 title="Comment from atass" href="http://ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/comment-page-1/#comment-3729" 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! <img src='http://www.ubuntulinuxhelp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading"> Sharing is loving!</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="Faster+Internet+With+an+Old+Laptop+%26%238211%3B+Revisited" data-count="horizontal" data-text="Faster Internet With an Old Laptop &#8211; Revisited" data-url="http://www.ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-revisited/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Ffaster-internet-with-an-old-laptop-revisited%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.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://www.ubuntulinuxhelp.com/installing-a-web-server-on-your-old-laptop/</link>
		<comments>http://www.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 ...]]></description>
				<content:encoded><![CDATA[<p>In an earlier post to this series, I talked about <a title="Faster Internet With an Old Laptop – Ubuntu and Squid" href="http://ubuntulinuxhelp.com/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 title="MediaWiki is a free software wiki package written in PHP" href="http://www.mediawiki.org/wiki/MediaWiki" 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 title="Faster Internet With an Old Laptop – Ubuntu and Squid" href="http://ubuntulinuxhelp.com/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>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading">Do you love to share?</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="Installing+a+Web+Server+on+Your+Old+Laptop" data-count="horizontal" data-text="Installing a Web Server on Your Old Laptop" data-url="http://www.ubuntulinuxhelp.com/installing-a-web-server-on-your-old-laptop/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Finstalling-a-web-server-on-your-old-laptop%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntulinuxhelp.com/installing-a-web-server-on-your-old-laptop/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Faster Internet With an Old Laptop &#8211; Ubuntu and Squid</title>
		<link>http://www.ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/</link>
		<comments>http://www.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) ...]]></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" 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 title="Squid (Software)" href="http://en.wikipedia.org/wiki/Squid_cache" 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 title="The Perfect Server - Ubuntu Hardy Heron (Ubuntu 8.04 LTS Server)" href="http://howtoforge.com/perfect-server-ubuntu8.04-lts" 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 title="Speed Up and Improve Web Surfing With an Ubuntu Squid Server." href="http://ubuntulinuxhelp.com/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 title="Download Ubuntu 8.04 LTS Server" href="http://www.ubuntu.com/getubuntu/download-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 title="Ubuntu System Requirements" href="https://help.ubuntu.com/community/Installation/SystemRequirements" 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 title="Howto Block websites using Squid Proxy in Ubuntu Linux" href="http://shibuvarkala.blogspot.com/2008/11/howto-block-websites-using-squid-proxy.html" target="_blank">Howto Block websites using Squid Proxy in Ubuntu Linux</a></li>
<li><a title="Howto Block a Port in Squid Proxy , Ubuntu Linux" href="http://shibuvarkala.blogspot.com/2008/11/howto-block-port-in-squid-proxy-ubuntu.html" target="_blank">Howto Block a Port in Squid Proxy , Ubuntu Linux</a></li>
<li><a title="[Ubuntu]Installing an HTTP proxy server (Squid)" href="http://en.kioskea.net/faq/sujet-804-ubuntu-installing-an-http-proxy-server-squid" target="_blank">[Ubuntu]Installing an HTTP proxy server (Squid)</a></li>
<li><a title="Installing Squid Proxy using Webmin on Ubuntu Server 8.04.1" href="http://chrisjohnston.org/2008/installing-squid-proxy-using-webmin-on-ubuntu-server-8041" target="_blank">Installing Squid Proxy using Webmin on Ubuntu Server 8.04.1</a></li>
<li><a title="Paranoid Penguin - Building a Secure Squid Web Proxy, Part I" href="http://www.linuxjournal.com/article/10407" 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>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading"> Sharing is loving!</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="Faster+Internet+With+an+Old+Laptop+%26%238211%3B+Ubuntu+and+Squid" data-count="horizontal" data-text="Faster Internet With an Old Laptop &#8211; Ubuntu and Squid" data-url="http://www.ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Ffaster-internet-with-an-old-laptop-ubuntu-and-squid%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntulinuxhelp.com/faster-internet-with-an-old-laptop-ubuntu-and-squid/feed/</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>How to Use the Second Network Port on Your Computer</title>
		<link>http://www.ubuntulinuxhelp.com/how-to-use-the-second-network-port-on-your-computer/</link>
		<comments>http://www.ubuntulinuxhelp.com/how-to-use-the-second-network-port-on-your-computer/#comments</comments>
		<pubDate>Fri, 15 May 2009 13:26:24 +0000</pubDate>
		<dc:creator>Roger Wheatley</dc:creator>
				<category><![CDATA[Hands On]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[bonding]]></category>
		<category><![CDATA[cable]]></category>
		<category><![CDATA[connection]]></category>
		<category><![CDATA[dial-up]]></category>
		<category><![CDATA[dls]]></category>
		<category><![CDATA[eth0]]></category>
		<category><![CDATA[eth1]]></category>
		<category><![CDATA[ethernet]]></category>
		<category><![CDATA[ifconfig]]></category>
		<category><![CDATA[ifenslave]]></category>
		<category><![CDATA[isp]]></category>
		<category><![CDATA[lan]]></category>
		<category><![CDATA[miimon]]></category>
		<category><![CDATA[mode]]></category>
		<category><![CDATA[modprobe]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[round-robin]]></category>
		<category><![CDATA[wan]]></category>
		<category><![CDATA[wifi]]></category>

		<guid isPermaLink="false">http://ubuntulinuxhelp.com/?p=1447</guid>
		<description><![CDATA[The PC I use has two network (ethernet) ports in the back. For years I&#8217;ve always had one cable plugged into it, leaving the second (RJ45) port unused. Recently however ...]]></description>
				<content:encoded><![CDATA[<p>The PC I use has <strong>two network (ethernet) ports</strong> in the back. For years I&#8217;ve always had one cable plugged into it, leaving the second (RJ45) port unused. Recently however there&#8217;s been a second ISP provider added.</p>
<p>It got me thinking about the old days &#8211; When I was on dial-up and we used to &#8220;join&#8221; two modems together to improve our web surfing speed. This caused a spark as I realized that I could potentially increase my surfing speed by configuring both ethernet ports to appear as one connection (to my applications) &#8211; Meaning that the physical ports are combined to appear as one logical (interface) port to applications (such as Firefox, etc). I could also provide <strong>load balancing and fault toleranc</strong>e to my PC&#8217;s network functions. Doing so would allow my PC (Ubuntu 8.04) to manage the connection, and my applications to enjoy the faster Internet speeds.</p>
<p>This  logical interface provides more than one benefit:</p>
<p>Fault tolerance, if one port or network (WAN) fails, the other is still working. This occurs in a<strong> graceful manner</strong> so that you don&#8217;t have to tweak or configure settings when the failure occurs.</p>
<p>Load balancing, the OS will ensure that theres an even flow across both physical ethernet ports (via the single logical interface). The key benefit is that you can balance your traffic load between independent WAN networks (like 2 ISPs), even including other WiFi access points (used with the permission of the WiFi subscriber). You could even mix DLS, Cable or <span id="more-1447"></span>dial-up connections. (In my case it&#8217;s two different Cable networks I&#8217;m connecting to).</p>
<p>The common term for this is called port trunking or link aggregation. <a title="Link aggregation" href="http://en.wikipedia.org/wiki/Port_trunking" target="_blank">According to Wikipedia</a>, this is defined as:</p>
<p><span style="color: #0000ff;"><em>&#8220;&#8230;Link aggregation or IEEE 802.1AX-2008, is a computer networking term which describes using multiple network cables/ports in parallel to increase the link speed beyond the limits of any one single cable or port, and to increase the redundancy for higher availability&#8230;&#8221;</em></span></p>
<p><img class="alignnone size-full wp-image-1448" title="Link Aggregation" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/05/link_aggregation1.jpg" alt="Link Aggregation" width="333" height="140" /></p>
<p>The Linux Foundation web site has a lengthy blurb about this because you have to make sure that your Linux kernel is <a title="Net:Bonding" href="http://www.linuxfoundation.org/en/Net:Bonding" target="_blank">compliled with the &#8220;bonding&#8221; module</a>. From their site:</p>
<p><span style="color: #0000ff;"><em>&#8220;&#8230;The Linux bonding driver provides a method for aggregating multiple network interfaces into a single logical bonded interface. The behavior of the bonded interfaces depends upon the mode; generally speaking, modes provide either hot standby or load balancing services. Additionally, link integrity monitoring may be performed&#8230;&#8221;</em></span></p>
<p>But don&#8217;t worry, most current Linux distributions have this. You&#8217;ll also need the ifenslave package. ifenslave is a tool to attach and detach slave network interfaces to your logical interface.  Don&#8217;t forget that this logical (aggregated or &#8220;bonded&#8221;) interface will behave just like your normal single network connection would do, to the kernel. However, the load balancing will send data packets via the slave (physical) ports using a <a title="What is &quot;round-robin&quot;?" href="http://www.webopedia.com/TERM/R/Round_Robin_DNS.html" target="_blank">round-robin</a> scheduler.</p>
<p>Before doing this though, MAKE SURE you have BACKUPS of any settings, configurations, files, etc. This way you are able to revert back to a working system in case something went wrong.</p>
<p>Again most current distributions should have ifenslave. If not it&#8217;s simple to install. Mine did not have it installed so the command to do this is:</p>
<p><strong><span style="color: #ff6600;">sudo aptitude install ifenslave</span></strong></p>
<p>I have two network cards on my system, called eth0 and eth1. After installing ifenslave using the above command, I need to take down both my network cards (so they are not in use). The command to do that was:</p>
<p><strong><span style="color: #ff6600;">sudo ifdown eth0 &amp;&amp; sudo ifdown eth1</span></strong></p>
<p>Now we need to load the bonding module (we use &#8220;modprobe&#8221; to do that). Here&#8217;s the command to do that:</p>
<p><strong><span style="color: #ff6600;">sudo modprobe bonding mode=0 miimon=100</span></strong></p>
<p>As you can see, two switches are included with the command:</p>
<p><strong>mode=0</strong> specifies that round robin should be used. That way our data is alternated between the two network ports (and therefore routed through the two WANs &#8211; Which speeds up the Internet connection as you are now essentially being served through 2 ISP connections). This mode provides load balancing and fault tolerance. There are other modes, but you can tweak this later.</p>
<p><strong>miimon=100</strong> specifies how many milliseconds to wait between each check of the connections. The &#8220;check&#8221; is to see if the connection has failed. (100 is the default, but you can also change it later)</p>
<p>Now we have to aggregate the ports, in other words create the actual bond. To do this, we can create &#8220;bond0&#8243; (that&#8217;s bond with  a &#8220;zero&#8221; after it) using the following  commands:</p>
<p><strong><span style="color: #ff6600;">sudo ifconfig bond0 xxx.xxx.xxx.xxx</span></strong> (Use the correct IP address for your LAN! In other words, change xxx.xxx.xxx.xxx to an appropriate IP address inside your local area network- Usually that&#8217;s something like 192.168.1.10, as an example)</p>
<p><strong><span style="color: #ff6600;"><code>ifenslave bond0 eth0</code></span></strong></p>
<p><strong><span style="color: #ff6600;"><code>ifenslave bond0 eth1</code></span></strong></p>
<p>The above two commands<strong> connect physical port eth0 and eth1 to the virtual interface called bond0</strong>. Again, ifenslave is just the tool that tool to attaches and detaches slave network devices to a bonding interface.</p>
<p>Your done!</p>
<p>One important thing to keep in mind that <strong>connecting to two WANs does NOT double your connection speed</strong>! I noticed some speed increase however, so please do not think that this is a way to double your connection speed &#8211; It&#8217;s not! More importantly the fault tolerance is a bigger benefit for me. If something is not working through the one physical port, it will through the other.</p>
<p>For those interested in tweaking the modes (<a title="bonding mode" href="http://www.google.ca/search?hl=en&amp;q=bonding+mode&amp;btnG=Search&amp;meta=" target="_blank">Google searching</a> will help with that), but below is a basic outline of the other available modes:</p>
<p><strong>mode 1</strong> =  Active backup. This keeps using one port (adapter) until it fails, then switches to the other one.</p>
<p><strong>mode 2</strong> = Balance XOR (&#8220;XOR&#8221; means &#8220;And Or&#8221;, tries to balance traffic by splitting up outgoing packets between the adapters, using the same adaptor for each specific destination when possible.</p>
<p><strong>mode 3</strong> = Broadcast mode. This simply sends out (transmits) all traffic on every interface. This is fault tolerant.</p>
<p><strong>mode 4</strong> =  Dynamic link aggregation. This creates grouped adapters using an algorithm to aggregate adapters by their speed and other settings (those that use the same speed and settings).</p>
<p><strong>mode 5</strong> = Adaptive transmit load balancing. This redistributes outgoing traffic dynamically based on current conditions. In other words if one adaptor is overloaded, the traffic is transmitted through the other one.</p>
<p><strong>mode 6</strong> = Adaptive load balancing. This does the same as mode 5 but for inbound traffic.</p>
<p>I&#8217;m sure there are tons of &#8220;bonding&#8221; resources available, but I do hope that this helps some of you put that second ethernet port to good use. If anything, at the very least, is nothing else, I hope  it&#8217;s a good exercise to become more familiar with Linux, Linux commands and system configuration.</p>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading"> Sharing is loving!</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="How+to+Use+the+Second+Network+Port+on+Your+Computer" data-count="horizontal" data-text="How to Use the Second Network Port on Your Computer" data-url="http://www.ubuntulinuxhelp.com/how-to-use-the-second-network-port-on-your-computer/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Fhow-to-use-the-second-network-port-on-your-computer%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntulinuxhelp.com/how-to-use-the-second-network-port-on-your-computer/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Building a Web Developer / Designer PC Using Ubuntu Linux &#8211; Revisited</title>
		<link>http://www.ubuntulinuxhelp.com/building-a-web-developer-designer-pc-using-ubuntu-linux-revisited/</link>
		<comments>http://www.ubuntulinuxhelp.com/building-a-web-developer-designer-pc-using-ubuntu-linux-revisited/#comments</comments>
		<pubDate>Tue, 24 Mar 2009 17:31:41 +0000</pubDate>
		<dc:creator>Roger Wheatley</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Hands On]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[8.04]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[file]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[meld]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[synchronization]]></category>
		<category><![CDATA[tkdiff]]></category>
		<category><![CDATA[unison]]></category>
		<category><![CDATA[xvidcap]]></category>

		<guid isPermaLink="false">http://ubuntulinuxhelp.com/?p=1428</guid>
		<description><![CDATA[Recently I posted &#8220;Build a Web Developer PC and Enable Most Media Playback Using Ubuntu Linux&#8221; and received a few messages asking what other tools I use. To save me ...]]></description>
				<content:encoded><![CDATA[<p>Recently I posted &#8220;<a title="Build a Web Developer PC and Enable Most Media Playback Using Ubuntu Linux" href="http://ubuntulinuxhelp.com/build-a-web-developer-pc-and-enable-most-media-playback-using-ubuntu-linux/" target="_self">Build a Web Developer PC and Enable Most Media Playback Using Ubuntu Linux</a>&#8221; and received a few messages asking what other tools I use. To save me time with answering email messages that essentially contain the same information, and to help the maximum number of readers, I thought it would be a good follow up to that earlier post.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>First off, there some other applications I use, namely:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="xvidCap" href="http://xvidcap.sourceforge.net/" target="_blank">xVidCap</a>. This facilitates screen capturing video so that I can create tutorial videos. After which ffmpeg can be used to convert the captured video to flv format for web streaming.  If you&#8217;re interested, they have a couple instructional videos: <a title="xvidCap instructional video 1" href="http://xvidcap.sourceforge.net/instruct-video1.mpeg" target="_blank">Video 1</a> and <a title="xvidCap instructional video 2" href="http://xvidcap.sourceforge.net/instruct-video2.mpeg" target="_blank">Video 2</a>. To install it, the command is:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;">sudo aptitude install xvidcap</span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Also, to be able to quickly find the differences between <span id="more-1428"></span>file versions I use <a title="TkDiff" href="http://sourceforge.net/projects/tkdiff/" target="_blank">TkDiff File Comparison</a> and <a title="Meld" href="http://meld.sourceforge.net/" target="_blank">Meld</a>. Both allow me to open different versions and display where files differ. These are particularly helpful if you access files from different locations and then need to troubleshoot changes. To install:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;">sudo aptitude install tkdiff</span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;">sudo aptitude install meld</span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>In my personal case, this became more useful when I tried out <a title="Unison" href="http://www.cis.upenn.edu/~bcpierce/unison/" target="_blank">Unison</a>. As explained on the Unison web site:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>&#8220;<em><span style="color: #3366ff;">&#8230;Unison is a file-synchronization tool for Unix and Windows. It allows two replicas of a collection of files and directories to be stored on different hosts (or different disks on the same host), modified separately, and then brought up to date by propagating the changes in each replica to the other&#8230;</span></em>&#8220;<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>While I&#8217;m mentioning Unison, I should point out that I had a horrible experience with it (Note: I did not read the manual). In my opinion it&#8217;s a great idea, and I am truly waiting for the latest versions, however I did have issues (which I have not been able to resolve yet):<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>It advertises that synchronization can also occur between Linux and Windows systems (or Linux to Linux systems).<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>My reality with regards to Windows :<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<ul>
<li>Linux can connect to Windows, but then the connection is lost with an error message after supplying the correct password.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Window can connect to Linux and does begin searching for changes, but then the application freezes, becomes unresponsive, network traffic is almost zero and CPU load shoots to 100% if you try to stop.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>For it to work the same version needs to be installed on both machines.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Compiling from source did not work on Ubuntu 8.04 as it indicated there were errors in the make file (yet the <span style="color: #ff6600;">sudo aptitude install unison-gtk</span> command does succeed &#8211; So I know all dependencies and libraries are already available)<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Currently it does not work. (However other solutions like rsync etc. work without any issues or much hair pulling).<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>There is no option to delete a profile.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Importantly, the FTP synchronization option is not available.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
</ul>
<p><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /><br />
I really hope I can get this going &#8211; But it&#8217;s slow as it&#8217;s taken me almost 5 hours to try and get it working &#8211; to no avail. I wish there would be the same updated versions for all platforms available as packaged binaries (I think this would make things easier).<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="imgSeek" href="http://www.imgseek.net/" target="_blank">imgSeek</a> is another useful tool that manages graphic collection and has the unique search capability where you can provide a rough sketch of the image you are looking for &#8211; And the results will be returned. No more having to use tags! In my opinion that is a great feature. You can <a title="imgSeek serach screenshot" href="http://www.imgseek.net/sshot/9814e2bd8884d0d96a7d19c0a42403d5.png" target="_blank">view the screenshot</a> of the search feature.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Many of the other web design and development related tools are also Firefox extensions:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="Codetch Firefox extension" href="https://addons.mozilla.org/en-US/firefox/addon/1002" target="_blank">Codetch</a> allows me to edit files right inside Firefox. It&#8217;s a little bit like Bluefish.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="Copy Plain Text Firefox extension" href="https://addons.mozilla.org/en-US/firefox/addon/134" target="_blank">Copy Plain Text</a> gives you the ability to copy and paste text without all the formatting.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="W3C CSS Validator Firefox extension" href="https://addons.mozilla.org/en-US/firefox/addon/2289" target="_blank">W3C CSS Validator</a> does exactly that &#8211; validate that your CSS is formatted to the correct standards.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="CSSViewer Firefox estension" href="https://addons.mozilla.org/en-US/firefox/addon/2104" target="_blank">CSSViewer</a> allows you to hover your mouse around a web page and see a small box that clearly shows all the CSS element in effect for any object or area.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="EditCSS Firefox extension" href="https://addons.mozilla.org/en-US/firefox/addon/179" target="_blank">EditCSS</a> allows you to edit the CSS of any web page in real time and see the immediate changes, then you can simply copy and paste the change into your final style.css file.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="Firebug Firefox extension" href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">Firebug</a> is a robust extension that allows you to live debug and monitor CSS, HTML, JavaScript, etc. actions and results. It&#8217;s a good tool for troubleshooting issues.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="Web Developer Firefox extension" href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Web Developer</a> provides a tool bar with lots (and lots&#8230;) of development tools! If you&#8217;re only going to check one of these extensions, this is the one to look at!<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Side note: I&#8217;ve often been asked what the &#8220;Ubuntu Firefox Modifications&#8221; extension does (as there is no ability to edit the preferences for it). It&#8217;s function is to allow installation of Firefox add ons via the Ubuntu package manager, however I&#8217;ve not played with that yet.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Finally, one issue I&#8217;ve found very helpful is to tweak how Firefox operates, in other words making it function faster. The video below provides a good guide to tweaking Firefox for speed improvements:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><object width="425" height="344" data="http://www.youtube-nocookie.com/v/wGYggczgyo8&amp;hl=en&amp;fs=1&amp;rel=0" type="application/x-shockwave-flash"><param name="allowFullScreen" value="true" /><param name="allowscriptaccess" value="always" /><param name="src" value="http://www.youtube-nocookie.com/v/wGYggczgyo8&amp;hl=en&amp;fs=1&amp;rel=0" /><param name="allowfullscreen" value="true" /></object><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Hopefully the revisit of this topic helps answer questions as well as improving the web developer and designer productivity in an Ubuntu Linux environment.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading"> Sharing is loving!</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="Building+a+Web+Developer+%2F+Designer+PC+Using+Ubuntu+Linux+%26%238211%3B+Revisited" data-count="horizontal" data-text="Building a Web Developer / Designer PC Using Ubuntu Linux &#8211; Revisited" data-url="http://www.ubuntulinuxhelp.com/building-a-web-developer-designer-pc-using-ubuntu-linux-revisited/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Fbuilding-a-web-developer-designer-pc-using-ubuntu-linux-revisited%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntulinuxhelp.com/building-a-web-developer-designer-pc-using-ubuntu-linux-revisited/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
<enclosure url="http://xvidcap.sourceforge.net/instruct-video1.mpeg" length="9738040" type="video/mpeg" />
<enclosure url="http://xvidcap.sourceforge.net/instruct-video2.mpeg" length="9189134" type="video/mpeg" />
<enclosure url="http://xvidcap.sourceforge.net/instruct-video1.mpeg" length="9738040" type="video/mpeg" />
<enclosure url="http://xvidcap.sourceforge.net/instruct-video2.mpeg" length="9189134" type="video/mpeg" />
		</item>
		<item>
		<title>Build a Web Developer PC and Enable Most Media Playback Using Ubuntu Linux</title>
		<link>http://www.ubuntulinuxhelp.com/build-a-web-developer-pc-and-enable-most-media-playback-using-ubuntu-linux/</link>
		<comments>http://www.ubuntulinuxhelp.com/build-a-web-developer-pc-and-enable-most-media-playback-using-ubuntu-linux/#comments</comments>
		<pubDate>Mon, 16 Mar 2009 19:48:49 +0000</pubDate>
		<dc:creator>Roger Wheatley</dc:creator>
				<category><![CDATA[Applications]]></category>
		<category><![CDATA[Hands On]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[8.04]]></category>
		<category><![CDATA[adobe]]></category>
		<category><![CDATA[aptitude]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[codecs]]></category>
		<category><![CDATA[ctf]]></category>
		<category><![CDATA[developer]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[editor]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[hardy]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[multimedia]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[playback]]></category>
		<category><![CDATA[ttf]]></category>
		<category><![CDATA[virtualbox]]></category>

		<guid isPermaLink="false">http://ubuntulinuxhelp.com/?p=1404</guid>
		<description><![CDATA[For those of you who follow my other blog, you&#8217;ll know that my last Windows PC had a major failure again. You can read some of the specifics in the ...]]></description>
				<content:encoded><![CDATA[<p>For those of you who follow my other blog, you&#8217;ll know that my last Windows PC had a major failure again. You can read some of the specifics in the &#8220;<a title="When Disaster Strikes - Again" href="http://bloggersavvy.com/when-disaster-strikes-again/" target="_blank">When Disaster Strikes &#8211; Again</a>&#8221; post. At that point I decided to install Ubuntu (effectively removing Windows based PC&#8217;s from the network).<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>In some ways I was bothered about this. Why? I work best with Illustrator, Photoshop, After Effects, Dreamweaver, WinSCP, Flash and so on. I felt like I was going to lose all the productivity these applications provided. I enjoy being able to double click media and play it automatically, same goes with DVD movies, etc. In Linux, I&#8217;ve often encountered problems with media playback as the media usually includes restricted formats, MP3 for example. On the developer/designer side, I was not looking forward (nor do I have time) to a steep learning curve.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>This post (hopefully) will show the desktop user <strong>how to enable all the restricted media playbacks</strong> (movie DVD, music MP3, etc.)<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>It will also <strong>show web developers and designers some of the issues, applications and work arounds</strong> &#8211; Or at least the current state of them.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>First off, let&#8217;s deal with the media issues. I built this PC using Ubuntu 8.04 LTS 64Bit (Hardy). I did<span id="more-1404"></span> try installing 8.10 64Bit but found that the network cards did not properly work. After much investigation, I also discovered out that I would benefit best using a release with LTS &#8220;Long Term Support&#8221;, as apparently there was better hardware support &#8211; So I&#8217;m waiting for 9.04 (still in alpha 6 release as of this post).<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>One of my favourite tools is <strong>aptitude</strong>. I used to prefer apt-get, however I found out that <strong>aptitude does a better job in removing applications</strong>. Aptitude will <strong>also remove the dependencies</strong> when a package is removed. apt-get will not do that (and I don&#8217;t think synaptic will either &#8211; someone please correct me if I&#8217;m wrong). I almost always use aptitude, this way my system (and hard drive space) is keep cleaner whenever I use aptitude to remove packages.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>In order to install some of the applications and enable some of the media formats, we&#8217;ll need to edit your sources.list file. You can use nano, gedit, etc. An example terminal command is below:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo gedit /etc/apt/sources.list</code></span></p>
<p>The above command will open a window with the gedit application containing your sources.list file. MAKE SURE that you have no mistakes (syntax or otherwise) in the file. If you do, you&#8217;ll get an error message when using aptitude and will have to edit the file. Therefore, make a BACKUP of the /etc/apt/sources.list file that you can later revert back to BEFORE editing it.</p>
<p>Below is a copy of my sources.list file &#8211; As you may see, I&#8217;ve added some addresses (sources) to it:<br />
<code><br />
<span style="color: #ff6600;"># Main and Restricted<br />
deb http://ca.archive.ubuntu.com/ubuntu/ hardy main restricted<br />
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-security main restricted<br />
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-updates main restricted<br />
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy main restricted<br />
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-security main restricted<br />
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-updates main restricted</span></code></p>
<p><code><span style="color: #ff6600;"># Universe<br />
deb http://ca.archive.ubuntu.com/ubuntu/ hardy universe<br />
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-security universe<br />
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy universe<br />
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-security universe</span></code></p>
<p><code><span style="color: #ff6600;"># Multiverse<br />
deb http://ca.archive.ubuntu.com/ubuntu/ hardy multiverse<br />
deb http://ca.archive.ubuntu.com/ubuntu/ hardy-security multiverse<br />
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy multiverse<br />
deb-src http://ca.archive.ubuntu.com/ubuntu/ hardy-security multiverse</span></code></p>
<p><code><span style="color: #ff6600;"># Canonical<br />
deb http://archive.canonical.com/ubuntu/ hardy partner</span></code></p>
<p><code><span style="color: #ff6600;"># Medibuntu<br />
deb http://packages.medibuntu.org/ hardy free non-free<br />
deb-src http://packages.medibuntu.org/ hardy free non-free</span></code></p>
<p><code><span style="color: #ff6600;"># Third Parties<br />
deb http://download.virtualbox.org/virtualbox/debian hardy non-free </span></code></p>
<p>If you have a repository in your sources.list file (that I do not, remember to make sure that you include it!<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>A couple things about the above edit:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>I use <strong>ca.</strong> within the URL because I&#8217;m in Canada. <strong>Change the ca. to whatever your country is</strong>. Also, Ubuntu Linux 8.04 is called &#8220;Hardy&#8221;, if you are using 8.10 &#8220;Intrepid&#8221; (or earlier versions) then <strong>change &#8220;Hardy&#8221; to the name of your distribution</strong>.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>As seen above, we added the mediabuntu repository source, but we still have to add the public key. If we don&#8217;t we&#8217;ll get a message from aptitude that indicates the source cannot be verified. Here&#8217;s how to <strong>add the public key</strong> via terminal commands:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Download the key:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>wget http://packages.medibuntu.org/medibuntu-key.gpg</code></span></p>
<p>Add the key:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo apt-key add medibuntu-key.gpg</code></span></p>
<p>Now let&#8217;s make sure that we <strong>update the repositories</strong> with this command:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo aptitude update</code></span></p>
<p>And then let&#8217;s <strong>upgrade</strong> everything:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>aptitude full-upgrade</code></span></p>
<p>The above command can also be issued as aptitude dist-upgrade (the old name &#8211; which still works).</p>
<p><span style="color: #ff0000;"><strong>***Warning***</strong></span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /><br />
This command will attempt to upgrade packages. It is <strong>aggressive with solving dependency problems</strong>. It<strong> will install and remove packages until all dependencies are satisfied</strong>. Because of this, it is possible that undesirable things may happen to your system and/or application. Therefore you should be careful when using it! <strong>Back up FIRST</strong>.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Now we&#8217;re ready to start installing some media playback and file sharing capabilities. Particularly:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<ul>
<li>Multimedia Codecs.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>DVD playback.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Java plugin.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>DVD (and CD) burning.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Some Compilers.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>File/Printer sharing.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
</ul>
<p>All the following commands are using aptitude via terminal commands.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Let&#8217;s start with the<strong> codecs</strong>:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo aptitude install ubuntu-restricted-extras &amp;&amp; sudo aptitude install w64codecs</code></span></p>
<p>For 32 Bit users, use substitute this codec command: <span style="color: #ff6600;"> sudo aptitude install w32codecs</span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Don&#8217;t forget to install the restricted extras:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo aptitude install ubuntu-restricted-extras</code></span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Now let&#8217;s get that <strong>DVD movie playing</strong> capability working:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo aptitude install libdvdcss2 &amp;&amp; sudo aptitude install libdvdnav4 &amp;&amp; sudo aptitude install gxine &amp;&amp; sudo aptitude install libxine-main1 &amp;&amp; sudo aptitude install libxine-extracodecs &amp;&amp; sudo aptitude install libxine-ffmpeg &amp;&amp; sudo aptitude install vlc &amp;&amp; sudo aptitude install mplayer</code></span></p>
<p>And some DVD/CD <strong>burning software</strong>. I prefer K3B &#8211; But you can substitute any other one you prefer:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo aptitude install k3b</code></span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Let&#8217;s enable compiling:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo aptitude install build-essential</code></span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>(If you want documentation, install it too: <span style="color: #ff6600;">sudo aptitude install manpages-dev glibc-doc</span>).<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Let&#8217;s install a couple extra things like NFS (Network File Sharing), NTP (Network Time Protocol) and NIS (Network Information System) like so:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo aptitude install nfs-common &amp;&amp; sudo aptitude install ntp &amp;&amp; sudo aptitude install nis</code></span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Were pretty much done with the multimedia, but there are a couple application related things we&#8217;re going to install:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><strong>Flash player</strong> for Firefox can be obtained from Adobe by  <a title="Get and Install Flash" href="http://get.adobe.com/flashplayer/" target="_blank">downloading the .deb version</a> (Adobe Flash Player version 10.0.22.87 as of this post). This will allow you to save a file called &#8220;install_flash_player_10_linux.deb&#8221;. Simply double click the file to begin installation.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>While we&#8217;re working with Firefox, let&#8217;s turn it into a web developer tool with the following extensions:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Installing the <a title="Web Developer Toolbar" href="https://addons.mozilla.org/en-US/firefox/addon/60" target="_blank">Web Developer Toolbar</a>, allows for the inclusion of some productive tools, such as:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<ul>
<li>Editing CSS.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Disabling CSS.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Outlining images or finding broken ones.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Displaying ID and Class details.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>View response headers.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Edit HTML.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Outline tables, elements, etc.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>And tons more!<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
</ul>
<p>Let&#8217;s also <a title="Firebug" href="https://addons.mozilla.org/en-US/firefox/addon/1843" target="_blank">install Firebug</a> so that you can edit, monitor and debug various web site scripting.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>The use of <a title="MeasureIt" href="https://addons.mozilla.org/en-US/firefox/addon/539" target="_blank">MeasureIt</a> helps in that you use it to  obtain width and height form any element you draw in your browser screen. It&#8217;s like a drag and stop (width/height)  ruler.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>When developing or editing files displayed in my browser screen, I often copy and paste content. Unfortunately, Firefox will also copy the formating that&#8217;s been applied to the text. The extension, <a title="Copy Plain Text" href="https://addons.mozilla.org/en-US/firefox/addon/134" target="_blank">Copy Plain Text</a> fixes this for me, now I get exactly what I want &#8211; Text only.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>I do like using <a title="Shutter" href="http://shutter-project.org/" target="_blank">Shutter</a> to <strong>capture full web page screen shots</strong>, so here&#8217;s how we install it according to the Shutter web site like this:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Include the repository and key:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>wget -q http://shutter-project.org/shutter-ppa.key -O- | sudo apt-key add -</code></span></p>
<p>The above is for the stable releases. For more installation information or other methods you can visit <a title="Shutter Downloads" href="http://shutter-project.org/downloads/" target="_blank">Shutter Downloads</a>.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>In terms of development tools, many of them have already been listed in our <a title="Top 100 of the Best (Useful) OpenSource Applications" href="http://ubuntulinuxhelp.com/top-100-of-the-best-useful-opensource-applications/" target="_self">Top 100 of the Best (Useful) OpenSource Applications</a> post. However, there are a few that I&#8217;d particularly mention below.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Blender, Gimp and Inkspace. I&#8217;m not suggesting that Gimp or Inkspace are substitutes for Photoshop or Illustrator, rather they are an option. While they can produce the same resulting artwork, I find they require a steeper learning curve. Particularly steep in that the keyboard shortcuts are different, the names of many of the interface tools are different and/or they function in a different way. I&#8217;ve found several site with some great tutorials for both Gimp and Inkscape, however I don&#8217;t have the time (or motivation) to learn new applications. In my personal opinion, the GIMP interface is a horrid mess, but that is probably because I am used to the Photoshop interface. I think GIMP would be adopted much more readily if they improved the interface to be more intuitive and similar to Photoshop &#8211; But that&#8217;s simply what I think, I&#8217;m not the GIMP expert here.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>One tool I use to enable continued use of Photoshop, etc. is <a title="VirtualBox" href="http://www.virtualbox.org/" target="_blank">VirtualBox</a>.<strong> VirtualBox provides a virtual environment in which I can install a Windows based environment and any applications</strong> I wish (including Flash, etc.) &#8211; Hopefully Adobe will soon release Linux versions of their software as I think it is a huge market for them to tap into. After I&#8217;ve configured that environment, I can <strong>take a snapsho</strong>t. If the virtual Windows installation or applications ever fail or become corrupted, I can <strong>simply restore the snapshot to bring the environment back to a working state</strong> &#8211; Voilà a quick 2 minute fix instead of reinstalling everything. Also, the virtual environment facilitates an optional shared directory on the host OS (that&#8217;s the Ubuntu Linux installation), so that I can access and store input and output files. If the virtually installed OS crashes, I still have that data within the Linux host installation.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>To install VirtualBox, please follow the guide posted here: <a title="Installing VirtualBox 2.0.0 On Ubuntu 8.04 Desktop" href="http://howtoforge.com/installing-virtualbox-2.0.0-on-ubuntu-8.04-desktop" target="_blank">Installing VirtualBox 2.0.0 On Ubuntu 8.04 Desktop</a>. Or use <span style="color: #ff6600;">sudo aptitude install virtualbox</span> as the repository is already in your sources.list file (above).<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>As web development is no longer simple HTML pages, but rather full multimedia, below are more of the development tools I&#8217;d suggest exploring:</p>
<ul>
<li>Bluefish Editor &#8211; Script editor &#8211; <a href="apt:bluefish">apt:bluefish</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Meld Diff Viewer &#8211; <a href="apt:meld">apt:meld</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Ardour &#8211; Audio editor &#8211; <a href="apt:ardour">apt:ardour</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Audacity &#8211; Audio editor &#8211; <a href="apt:audacity">apt:audacity</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Avidmux -Video editor &#8211; <a href="apt:avidmux">apt:avidmux</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Kino -Video editor &#8211; <a href="apt:kino">apt:kino</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Gftp &#8211; FTP client &#8211; <a href="apt:gftp">apt:gftp</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>Kompozer &#8211; Script editor &#8211; <a href="apt:kompozer">apt:kompozer</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
<li>puTTY &#8211; SSH client &#8211; <a href="apt:putty">apt:putty</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></li>
</ul>
<p>The above applications are all available via aptitude or <a title="GetDeb" href="http://www.getdeb.net/browse.php" target="_blank">getdeb.net</a> or by clicking the &#8220;apt&#8221; links above.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Finally, in order to have fonts consistent with Windows (and other) users, we may want to install some of the Windows based fonts like this:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo apt-get install msttcorefonts</code></span><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>This will install the True Type Fonts (TTF).<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>Now simply update the shared font  directories with this command:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><span style="color: #ff6600;"><code>sudo fc-cache -f -v</code></span></p>
<p>If you&#8217;d like CTF (Clear Type Fonts) the <a title="How to Install TTF and CTF Fonts in Ubuntu" href="http://ubuntulinuxhelp.com/how-to-install-ttf-and-ctf-fonts-in-ubuntu/" target="_self">How to Install TTF and CTF Fonts in Ubuntu</a> post will help you with that.<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>This just about covers most everything. These further resources can help you:<img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="Mediabuntu" href="https://help.ubuntu.com/community/Medibuntu" target="_blank">Medibuntu.</a></p>
<p><a title="Converting MP3s to Ogg-Vorbis" href="https://help.ubuntu.com/community/RestrictedFormats/ConvertingToOpen" target="_blank">Converting MP3s to Ogg-Vorbis.</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="Enable 5.1 Surround Sound on Linux - Ubuntu 8.04 Hardy" href="http://ubuntulinuxhelp.com/enable-51-surround-sound-on-linux-ubuntu-804-hardy/" target="_self">Enabling 5.1 Surround Sound.</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p><a title="Playing Blu-Ray and HD DVD Video" href="https://help.ubuntu.com/community/RestrictedFormats/BluRayAndHDDVD" target="_blank">Playing Blu-Ray and HD DVD Video.</a><img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<p>If you think I&#8217;ve missed anything or you&#8217;ve an idea, feel free to comment about it! &#8211; cheers! <img src='http://www.ubuntulinuxhelp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />  <img title="spacer_gif" src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" alt="" /></p>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading">Do you love to share?</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="Build+a+Web+Developer+PC+and+Enable+Most+Media+Playback+Using+Ubuntu+Linux" data-count="horizontal" data-text="Build a Web Developer PC and Enable Most Media Playback Using Ubuntu Linux" data-url="http://www.ubuntulinuxhelp.com/build-a-web-developer-pc-and-enable-most-media-playback-using-ubuntu-linux/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Fbuild-a-web-developer-pc-and-enable-most-media-playback-using-ubuntu-linux%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntulinuxhelp.com/build-a-web-developer-pc-and-enable-most-media-playback-using-ubuntu-linux/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>Getting Started with Firewall Builder</title>
		<link>http://www.ubuntulinuxhelp.com/getting-started-with-firewall-builder/</link>
		<comments>http://www.ubuntulinuxhelp.com/getting-started-with-firewall-builder/#comments</comments>
		<pubDate>Mon, 09 Mar 2009 16:36:20 +0000</pubDate>
		<dc:creator>Vadim Kurland</dc:creator>
				<category><![CDATA[Hands On]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[filters]]></category>
		<category><![CDATA[firewall]]></category>
		<category><![CDATA[fwbuilder]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[iptables]]></category>
		<category><![CDATA[ipv4]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[rules]]></category>
		<category><![CDATA[security]]></category>

		<guid isPermaLink="false">http://ubuntulinuxhelp.com/?p=1331</guid>
		<description><![CDATA[This guide presents an introduction to Firewall Builder. Firewall Builder (also known as fwbuilder), is a GUI firewall configuration and management tool that supports iptables (netfilter), ipfilter, pf, ipfw, Cisco ...]]></description>
				<content:encoded><![CDATA[<p>This guide presents an introduction to Firewall Builder. <strong>Firewall Builder</strong> (also known as <strong>fwbuilder</strong>), is a GUI firewall configuration and management tool that supports <strong>iptables (netfilter), ipfilter, pf, ipfw, Cisco PIX (FWSM, ASA) and Cisco routers extended access lists</strong>. Both professional network administrators and hobbyists managing firewalls with policies more complex that is allowed by simple web based UI can simplify management tasks with the application. The program runs on Linux, FreeBSD, OpenBSD, Windows and Mac OS X and can manage both local and remote firewalls.</p>
<p>Firewall Builder is packaged with most Linux distributions and is available under &#8220;<strong><em>System/Administration</em></strong>&#8221; menu.</p>
<div id="attachment_1333" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1333" title="Access admin" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_011.png" alt="Accessing Firewall Builder" width="465" height="124" /><p class="wp-caption-text">Accessing Firewall Builder</p></div>
<p>If it is not there, then it probably needs to be installed on your system. You need to install the package that has supporting the API library libfwbuilder and the package for  fwbuilder that contains the Firewall Builder GUI and policy compilers. Use apt-get or aptitude to find and <span id="more-1331"></span>install them:</p>
<p><span style="color: #ff6600;"><code># aptitude install libfwbuilder fwbuilder</code></span></p>
<p>On FreeBSD and OpenBSD Firewall Builder is part of ports, you can find it in <strong>/usr/ports/security/fwbuilder</strong>.</p>
<p>Packages shipping with Ubuntu are always one or two minor revisions behind. If you want to try the latest version, you can use the pre-built binary .deb packages offered on the project&#8217;s web site or build from source using our online <a title="Firewall Builder installation instructions" href="http://www.fwbuilder.org/guides/firewall_builder_installation.html" target="_blank">installation instructions</a>. Pre-built binary packages and source code tar.gz archives can be <a title="Download Firewall Builder" href="http://www.fwbuilder.org/docs/firewall_builder_packages.html" target="_blank">downloaded from this page</a>.</p>
<p>If the system menu item is not there or you have built the program from source, you can always launch it from the command line by just typing &#8220;fwbuilder&#8221; on the shell prompt:</p>
<p><span style="color: #ff6600;"><code>$ fwbuilder</code></span></p>
<p>The program starts and opens the main window and greeting dialog. The dialog provides links to the project web site where you can find more tutorials, FAQ, Firewall Builder CookBoook and other documentation, as well as a bug tracking system and links to user forums and the mailing list. Clicking on the link in the dialog opens corresponding web page in your web browser. This works the same on all supported OS: Linux, Windows and Mac OS X. You can always open this dialog later using an item in the main menu &#8220;Help&#8221;.</p>
<div id="attachment_1334" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1334" title="Starting FWbuilder" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_010.png" alt="Starting FWbuilder" width="465" height="407" /><p class="wp-caption-text">Firewall Builder startup greeting</p></div>
<p>Lets create our first firewall object. To do this, we&#8217;ll use the object creation menu that appears when you click on the icon in the small toolbar right above the object tree. Choose menu item &#8220;New Firewall&#8221; from the menu that appears.</p>
<div id="attachment_1336" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1336" title="New firewall" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_020.png" alt="Setup new firewall" width="465" height="326" /><p class="wp-caption-text">Setup new firewall</p></div>
<p>The program presents a wizard-like dialog that will guide you through the process for creation of the new firewall object. In the first page of the wizard you can enter the name for the new firewall object (here it is &#8220;guardian&#8221;), its platform (&#8220;iptables&#8221;) and host OS (&#8220;Linux&#8221;).</p>
<p>There are two ways a new firewall can be created: you can use one of the preconfigured template firewall objects or create it from scratch. This tutorial demonstrates the first method (using template object). To do this, check checkbox &#8220;Use preconfigured template firewall objects&#8221;. The template can be taken from the library of template objects that comes with the Firewall Builder package or from a file provided by the user. The latter is useful when the administrator wants to distribute a library of predefined templates to other users in the enterprise. We are using one of the standard templates in this guide and therefore leave the standard template library path and name in the &#8220;Template file:&#8221; input field. Click &#8220;Next&#8221; to move on to the next page of the wizard.</p>
<p>Note that the template firewall object comes completely configured, including addresses and netmasks of its interfaces and some basic policy and NAT rules. This configuration is intended as a starting point only. You should reconfigure the addresses of interfaces to match those used on your network; and most likely will have to adjust rules to match your security policy.</p>
<div id="attachment_1338" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1338" title="Firewall template" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_030.png" alt="Configure firewall template" width="465" height="284" /><p class="wp-caption-text">Configure firewall template</p></div>
<p>This page of the wizard shows template objects and their configuration. Standard template objects represent firewalls with two or three interfaces, a host with one interface, web server or Cisco router. Choose firewall with three interfaces for this guide. Note that template comes with completely configured firewall objects, including a set of interfaces and their IP addresses &#8211; And some basic firewall policy. You will see how addresses can be changed later on in this guide. Click &#8220;Finish&#8221; to create a new firewall object using the chosen template.</p>
<div id="attachment_1339" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1339" title="Firewall objects" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_040.png" alt="Firewall objects" width="465" height="642" /><p class="wp-caption-text">Firewall objects</p></div>
<p>Here is our new firewall object. Its name is <strong>guardian</strong>, it appears in the object tree in the left hand side of the main window in the folder <strong>Firewalls</strong>. When an object is selected in the tree, a brief summary of its properties appears in the panel under the tree. Double-clicking on the object in the tree opens it in the editor panel at the bottom of the right hand side panel of the main window. The editor for the firewall object allows the user to change its name, platform and host OS and also provides buttons that open dialogs for &#8220;advanced&#8221; settings for the firewall platform and host OS. We will inspect these a little later in this tutorial.</p>
<p>You can always resize the main window to make all columns of the policy view more visible.</p>
<div id="attachment_1341" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1341" title="Guardian/Policy" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_050.png" alt="Guardian/Policy view" width="465" height="394" /><p class="wp-caption-text">Guardian/Policy view</p></div>
<p>Now would be a good time to save the data to a disk file. This is done in a usual way using main menu<strong> File/Save As</strong>.</p>
<p>Lets take a little tour of the network and service objects that come standard with the program. You can use these preconfigured objects to build policy and NAT rules for your firewall.</p>
<p>Objects in the tree are orginized in libraries, you can switch between libraries using the interfaces&#8217; drop-down menu above the tree. Firewall Builder comes with a collection of address, network, service and time interval objects in the library called &#8220;Standard&#8221;. Lets take a look at them. Notice that the background color of the panel that shows objects tree depends on the chosen object library. This makes it easier to keep track of the library currently opened in the program.</p>
<div id="attachment_1342" class="wp-caption alignnone" style="width: 284px"><img class="size-full wp-image-1342" title="Libraries" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_060.png" alt="The libraries" width="274" height="203" /><p class="wp-caption-text">The libraries</p></div>
<p>Folder <strong>Objects/Hosts</strong> contains few host objects used in standard firewall templates. Folder <strong>Objects/Network</strong> contains network objects that represent various standard address ranges and blocks, such as multicast, net 127/8, networks defined in RFC1918 and so on.</p>
<div id="attachment_1344" class="wp-caption alignnone" style="width: 267px"><img class="size-full wp-image-1344" title="Newtork objects" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_070.png" alt="Newtork objects" width="257" height="348" /><p class="wp-caption-text">Network objects</p></div>
<p>Firewall Builder also comes with extensive collection of TCP, UDP and ICMP service objects that describe commonly used protocols. This image shows some TCP objects (all of them do not fit in the screenshot).</p>
<div id="attachment_1345" class="wp-caption alignnone" style="width: 270px"><img class="size-full wp-image-1345" title="TCP objects" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_080.png" alt="TCP (protocol) objects" width="260" height="347" /><p class="wp-caption-text">TCP (protocol) objects</p></div>
<p>Here is an example of a simple TCP service. It defines source and     destination port ranges (in this case source port range is not     defined and there is only one destination port 80). TCP service     object can also define any combination of TCP flags the firewall     should inspect and also which ones of them should be set in order     for a packet to match this object. In the case of the service     &#8220;http&#8221; we do not need to define any flags.</p>
<div id="attachment_1347" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1347" title="TCP service" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_090.png" alt="TCP service" width="465" height="214" /><p class="wp-caption-text">TCP service</p></div>
<p>Now lets take a look at the objects created as part of the new firewall object <strong>guardian</strong>. In order to do this, switch to the library <strong>User</strong> where this object was created. To open an object in the editor panel to inspect or change it, double click on it in the tree. Also, if you click on an object in the policy rule to select it, it will automatically open in the tree on the left.</p>
<div id="attachment_1348" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1348" title="Object Guardian" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_100.png" alt="Object Guardian in user library" width="465" height="393" /><p class="wp-caption-text">Object Guardian in user library</p></div>
<p>First, the firewall object itself.</p>
<p>Every object in fwbuilder has basic attributes such as its name and comment. Other attributes depend on the object type.</p>
<p>Attributes of the firewall object include platform (can be iptables, pf, ipfilter, etc.), version (platform-depended) and host OS. Buttons <strong>Host OS Settings</strong> and <strong>Firewall Settings</strong> open dialogs with many additional attributes that depend on the firewall platform and host OS. More on these later.</p>
<div id="attachment_1350" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1350" title="Object attributes" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_110.png" alt="Object attributes" width="465" height="219" /><p class="wp-caption-text">Object attributes</p></div>
<p>Here are the choices for the firewall platform, version (for iptables) and host OS.</p>
<div id="attachment_1352" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1352" title="Firewall choices" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_103.png" alt="Platform choices for the firewall" width="465" height="389" /><p class="wp-caption-text">Platform choices for the firewall</p></div>
<p>Interfaces of the firewall are represented by objects located below the Firewall object in the tree. We refer to them as &#8220;children&#8221; of the firewall object. This image demonstrates properties of the interface eth0. To open it in the editor double click on it in the tree. If editor panel is already open and shows some object, it is sufficient to select new object in the tree to reveal it in the editor panel (no need to double click).</p>
<p>IP and MAC addresses of interfaces are represented by child objects in the tree located below corresponding interface.</p>
<div id="attachment_1353" class="wp-caption alignnone" style="width: 271px"><img class="size-full wp-image-1353" title="Firewall interfaces" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_120.png" alt="Firewall interfaces" width="261" height="243" /><p class="wp-caption-text">Firewall interfaces</p></div>
<p>Interface object has several attributes that define its function, such as &#8220;Management interface&#8221;, &#8220;external&#8221; etc.</p>
<ul>
<li>Name: the name of the interface object in Firewall Builder must match exactly the name of the interface of the firewall machine it represents. This will be something like &#8220;eth0&#8243;, &#8220;eth1&#8243;, &#8220;en0&#8243;, &#8220;br0&#8243; and so on.</li>
<li>Label: On most OS this ﬁeld is not used and serves the purpose of a descriptive label. Firewall Builder GUI uses a label, if it is not blank, to show interfaces in the tree. One of the suggested uses for this ﬁeld is to mark interfaces to reﬂect the network topology (’outside’, ’inside’) or the purpose (’web frontend’ or ’backup subnet’). The label is mandatory for Cisco PIX though, where it must reﬂect the network topology.</li>
<li>&#8220;Management interface&#8221;: Sometimes the host has several network interfaces in which case one of them can be marked as the ’manaagement interface’. The management interface is used for all communication between Firewall Builder and the host.</li>
<li>&#8220;External interface (insecure)&#8221;: marks an interface that connects to the Internet.</li>
<li>&#8220;Unprotected interface&#8221;: marks interface to which fwbuilder should not assign any access lists (used only with Cisco IOS platform)</li>
<li>&#8220;Regular Interface&#8221;: Use this option if the interface has an IP address assigned to it manually.</li>
<li>&#8220;Address is assigned dynamically&#8221;: Use this option if the interface has a dynamic address (obtained by means of DHCP or PPP or another protocol); in this case an address is unknown at the moment when Firewall Builder generates the ﬁrewall policy.</li>
<li>&#8220;Unnumbered interface&#8221;: Use this option if the interface can never have an IP address, such as the ethernet interface used to run PPPoE communication on some ADSL connections, tunnel endpoint interface, or an interface on a bridging ﬁrewall. See below Section 5.3.1 for more detailed discussion of these different types of interfaces.</li>
<li>&#8220;Bridge port&#8221;: this option is used for port of bridged firewall.</li>
<li>&#8220;Security level&#8221;: security level of this interface, used only with Cisco PIX (ASA)</li>
<li>&#8220;Network zone&#8221;: network zone of this interface, used only with Cisco PIX (ASA). Network zone drop-down list shows all network obejcts and groups of addresses and networks present in the tree. Choose one of them to tell the compiler which networks and blocks of addresses can be reached through this interface. Compiler uses this information to decide which interface each ACL rule should be associated with based on the addresses used in the destination of the rule.</li>
</ul>
<div id="attachment_1354" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1354" title="View interface" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_130.png" alt="View interface" width="465" height="219" /><p class="wp-caption-text">View interface</p></div>
<p>Here is IP address of interface eth0, external interface of the firewall. The address and netmask are attributes of the child object of the type &#8220;IPv4 address&#8221;. Here the address is &#8220;192.0.2.1&#8243; and netmask &#8220;255.255.255.0&#8243;. Button &#8220;DNS Lookup&#8221; can be used to determine IP address using DNS. The program runs DNS query for the &#8220;A&#8221; record for the name of the parent firewall object.</p>
<div id="attachment_1355" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1355" title="IP address eth0" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_140.png" alt="IP address of interface eth0" width="465" height="220" /><p class="wp-caption-text">IP address of interface eth0</p></div>
<p>Lets look at the IP address of the internal interface of the firewall. The address used in the template is &#8220;192.168.1.1&#8243; with netmask &#8220;255.255.255.0&#8243;. This is rather typical address used for small and home networks. Some commercial firewall appliances come preconfigured with this address.</p>
<div id="attachment_1357" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1357" title="Internal interfaces" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_150.png" alt="IP addresses of internal interfaces" width="465" height="583" /><p class="wp-caption-text">IP addresses of internal interfaces</p></div>
<p>If address <strong>192.168.1.0/24</strong> matches address of your local network, you can skip this part of the guide and move to the page 4. Otherwise, you need to reconfigure the address of the internal interface of the firewall object that you just created in fwbuilder and also change address object used in the policy rules. Start with changing address attribute (and possibly netmask, if necessary) of the object <strong>guardian:eth1:ip</strong> as shown in the screenshot:</p>
<div id="attachment_1359" class="wp-caption alignnone" style="width: 310px"><img class="size-full wp-image-1359" title="Change IP address" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_160.png" alt="Change IP address" width="300" height="267" /><p class="wp-caption-text">Change IP address</p></div>
<p>Now we need to change IP address used in the rules. To do this, we create new Network object with correct address and replace object <strong>net-192.168.1.0</strong> in all rules with this new network object.</p>
<p>Use new object menu to create Network object.</p>
<div id="attachment_1360" class="wp-caption alignnone" style="width: 278px"><img class="size-full wp-image-1360" title="New network" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_170.png" alt="Create new network object" width="268" height="212" /><p class="wp-caption-text">Create new network object</p></div>
<p>New Network object is created with default name &#8216;New Network&#8217; and IP address 0.0.0.0.</p>
<div id="attachment_1361" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1361" title="Default network" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_180.png" alt="Default network created" width="465" height="243" /><p class="wp-caption-text">Default network created</p></div>
<p>Edit object name and address, then hit &#8220;Apply&#8221;.</p>
<div id="attachment_1362" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1362" title="Editing object" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_190.png" alt="Editing network object" width="465" height="260" /><p class="wp-caption-text">Editing network object</p></div>
<p>Use menu Object / Find to activate search and replace dialog. The     Find and Replace dialog opens at the bottom of the right hand side     panel in the main window, below the policy rules view.</p>
<div id="attachment_1363" class="wp-caption alignnone" style="width: 337px"><img class="size-full wp-image-1363" title="Object search" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_200.png" alt="Searching for objects" width="327" height="176" /><p class="wp-caption-text">Searching for objects</p></div>
<p>Locate object object <strong>net-192.168.1.0</strong> in any policy rule where it is used or in its location in the tree in library <strong>Standard</strong> and drag and drop it to the left object well in the search and replace dialog as shown on the screenshot:</p>
<div id="attachment_1364" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1364" title="Drag and drop" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_210.png" alt="Drag and drop object" width="465" height="151" /><p class="wp-caption-text">Drag and drop object</p></div>
<p>Change the scope setting to &#8220;Policy of all firewalls&#8221;. If you have many firewalls in the tree, use scope &#8220;policy of the opened firewall&#8221; instead. Locate new Network object you just created in the tree and drag and drop it to the right object well in the search and replace dialog as shown on the screenshot:</p>
<div id="attachment_1368" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1368" title="Change policy scope" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_220.png" alt="Changing scope of all policies" width="465" height="89" /><p class="wp-caption-text">Changing scope of all policies</p></div>
<p>Now hit &#8220;Replace all&#8221; button. Pop-up dialog should appear and report how many replacements the program had to make in all rules of the firewall. Note that the replacement is done not only in the policy rules, but in NAT rules as well.</p>
<div id="attachment_1369" class="wp-caption alignnone" style="width: 264px"><img class="size-full wp-image-1369" title="Replace all" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_230.png" alt="Replace all button results" width="254" height="203" /><p class="wp-caption-text">Replace all button results</p></div>
<p>Now that you have created a new object and replaced old network object with new one in all rules, do not forget to save data to a file using menu <strong>File/Save</strong></p>
<p>Lets inspect properties of the firewall object. Double click on the firewall &#8220;guardian&#8221; in the tree to open it in the editor panel, then click &#8220;Firewall Settings&#8221; button in the editor. This opens new dialog that looks like this. Notice button &#8220;Help&#8221; in this dialog, clicking this button opens help as shown on the image below.</p>
<div id="attachment_1371" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1371" title="IP tables" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_240.png" alt="IP tables advanced settings" width="465" height="513" /><p class="wp-caption-text">IP tables advanced settings</p></div>
<p>Online help explains all attributes and paramaters located in each tab of the firewall settings dialog. I enourage you to explore it as many parameters are important and affect generated iptables script in different ways.</p>
<p>Next few screenshots show other tabs of the firewall settings dialog. You can find detailed explanations of all parameters in the online help.</p>
<div id="attachment_1372" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1372" title="Explanations" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_250.png" alt="Detailed explanation screen" width="465" height="420" /><p class="wp-caption-text">Detailed explanation screen</p></div>
<p>This page defines various parameters for the built-in policy installer. Installer uses ssh client (pscp.exe and plink.exe on Windows) to transfer generated script to the firewall machine and activate it there.</p>
<div id="attachment_1373" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1373" title="Policy installer" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_260.png" alt="Policy installer, script generator" width="465" height="513" /><p class="wp-caption-text">Policy installer, script generator</p></div>
<p>User can define shell commands that will be included in the generated script at the beginning and in the end of it. These commands can do anything you want, such as configure some subsystems, set up routing etc.</p>
<div id="attachment_1374" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1374" title="Shell commands" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_270.png" alt="Include shell command in script generator" width="465" height="514" /><p class="wp-caption-text">Include shell command in script generator</p></div>
<p>Parameters for logging.</p>
<div id="attachment_1375" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1375" title="Logging parameters" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_280.png" alt="Logging parameter settings" width="465" height="240" /><p class="wp-caption-text">Logging parameter settings</p></div>
<p>More options for the script generation. Notice that fwbuilder can produce iptables script in two formats: 1) as a shell script that calls iptables utility to add each rule one by one, or 2) it can use iptables-restore script to activate the whole policy at once. Other parameters are explained in the online help.</p>
<div id="attachment_1376" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1376" title="Script options" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_290.png" alt="Further script generation options" width="465" height="222" /><p class="wp-caption-text">Further script generation options</p></div>
<p>Starting with v3.0 Firewall Builder can generate both IPv4 and IPv6 policy. This tab controls the order in which they are added to the script if user defined rules for both address families in the Policy objects of the firewall.</p>
<div id="attachment_1377" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1377" title="IPv4-IPv6" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_300.png" alt="IPv4 and IPv6 support" width="465" height="126" /><p class="wp-caption-text">IPv4 and IPv6 support</p></div>
<p>Lets take a look at the policy of the template firewall. These rules are intended to be an example, a starting point to help you create your own policy quicker. Most likely you will want to modify them to suite your requirements. Explanation of the rules given here is rather brief because the goal of this guide was only to demonstrate how to use Firewall Builder.</p>
<ul>
<li>Rule 0: this is an anti-spoofing rule. It block incoming packets with source address that matches addresses of the firewall or internal or DMZ networks. The rule is associated with outside interface and has direction set to &#8220;Inbound&#8221;.</li>
<li>Rule 1: this rule permits any packets on loopback interface. This is necessary because many services on the firewall machine communicate back to the same machine via loopback.</li>
<li>Rule 2: permit ssh access from internal network to the firewall machine. Notice service object &#8220;ssh&#8221; in the column &#8220;Service&#8221;. This object can be found in the Standard objects library, folder Services/TCP.</li>
</ul>
<div id="attachment_1379" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1379" title="Policy rules" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_310.png" alt="Policy rules template" width="465" height="243" /><p class="wp-caption-text">Policy rules template</p></div>
<p>Policy rules belong to the object &#8220;Policy&#8221;, which is a child object of the firewall and can be found in the tree right below it. As any other object in Firewall Builder, Policy object has some attributes that you can edit if you double click on it in the tree.</p>
<ul>
<li>Policy can be either IPv4, or IPv4 or combined IPv4 and IPv6. In the latter case you can use a mix of IPv4 and IPv6 addess objects in the same policy (in different rules) and Firewall Builder will automatically figure out which one is which and will sort them out.</li>
<li>Policy can translate to only mangle table, or a combination of filter and mangle tables. Again, in the latter case policy compiler decides which table to use based on the rule action and service object. Some actions, such as &#8220;Tag&#8221; (translates into iptables target MARK) go into mangle table.</li>
<li>&#8220;Top ruleset&#8221; means that compiler will place generated iptables rules into built-in chains INPUT/OUTPUT/FORWARD. If policy is not marked as &#8220;top ruleset&#8221;, generated rules will go into user-defined chain with the name the same as the name of the policy object.</li>
</ul>
<div id="attachment_1380" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1380" title="Policy rules" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_320.png" alt="Policy rules set" width="465" height="236" /><p class="wp-caption-text">Policy rules set</p></div>
<p>Here are preconfigured NAT rules.</p>
<ul>
<li>Rule 0: tells the firewall that no address translation should be done for packets coming from network 192.168.2.0 going to 192.168.1.0 (because Translated Source, Translated Destination and Translated Service are left empty)</li>
<li>Rule 1: packets coming to the firewall from internal and DMZ networks should be translated so that source address will change and become that of the outside interface of the firewall.</li>
<li>Rule 2: packets coming from the Internet to the interface &#8220;outside&#8221; will be translated and forwarded to the internal server on DMZ represented by the host object &#8220;server on dmz&#8221;.</li>
</ul>
<div id="attachment_1381" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1381" title="NAT rules" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_330.png" alt="Preconfigured NAT rules" width="465" height="93" /><p class="wp-caption-text">Preconfigured NAT rules</p></div>
<p>Now we should be ready to compile policy of the firewall guardian and generate iptables script. To do this, select firewall in the tree and click right mouse button. Choose item &#8220;Compile&#8221; in the pop-up menu. The dialog that appears lists all firewall objects defined in the objects tree and lets you select which ones should be compiled. The firewall guardian has just been created and has never been compiled and dialog shows that. Make sure checkbox next to the firewall object guardian is checked and click button &#8220;Next&#8221;.</p>
<div id="attachment_1382" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1382" title="Firewall compilation" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_340.png" alt="Select firewalls for compilation" width="465" height="462" /><p class="wp-caption-text">Select firewalls for compilation</p></div>
<p>Firewall Builder calls policy compiler (which is by the way an external program which can be used on the command line). The next page of the dialog shows compiler progress and result.</p>
<div id="attachment_1383" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1383" title="Compiler progress" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_350.png" alt="Compiler progress" width="465" height="350" /><p class="wp-caption-text">Compiler progress</p></div>
<p>Compiler generates iptables script in the file with the name the same as the name of the firewall object, with extension &#8220;.fw&#8221;. The file is placed in the same directory where the data file .fwb is located.</p>
<p><span style="color: #ff6600;"><code>$ ls -la test2.fwb guardian.fw<br />
-rwxr-xr-x 1 vadim vadim 11253 2009-02-16 16:41 guardian.fw<br />
-rw-r--r-- 1 vadim vadim 24696 2009-02-16 16:41 test2.fwb</code></span></p>
<p>Here is how generated script looks like. This is just a fragment from the middle to show some generated iptables commands.</p>
<p><span style="color: #ff6600;"><code># ================ IPv4</code></span></p>
<p><span style="color: #ff6600;"># ================ Table &#8216;filter&#8217;, automatic rules<br />
$IPTABLES -P OUTPUT  DROP<br />
$IPTABLES -P INPUT   DROP<br />
$IPTABLES -P FORWARD DROP</span></p>
<p><span style="color: #ff6600;">cat /proc/net/ip_tables_names | while read table; do<br />
$IPTABLES -t $table -L -n | while read c chain rest; do<br />
if test &#8220;X$c&#8221; = &#8220;XChain&#8221; ; then<br />
$IPTABLES -t $table -F $chain<br />
fi<br />
done<br />
$IPTABLES -t $table -X<br />
done</span></p>
<p><span style="color: #ff6600;">$IPTABLES -A INPUT   -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT<br />
$IPTABLES -A OUTPUT  -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT<br />
$IPTABLES -A FORWARD -m state &#8211;state ESTABLISHED,RELATED -j ACCEPT</span></p>
<p><span style="color: #ff6600;"># ================ Table &#8216;nat&#8217;,  rule set NAT<br />
# NAT compiler errors and warnings:<br />
#<br />
#<br />
# Rule 0 (NAT)<br />
#<br />
echo &#8220;Rule 0 (NAT)&#8221;<br />
#<br />
# no need to translate<br />
# between DMZ and<br />
# internal net<br />
$IPTABLES -t nat -A POSTROUTING   -s 192.168.2.0/24 -d 172.16.22.0/24 -j ACCEPT<br />
$IPTABLES -t nat -A PREROUTING   -s 192.168.2.0/24 -d 172.16.22.0/24 -j ACCEPT<br />
#</span></p>
<p>Now you can transfer it to the firewall and execute it there to install iptables rules. However it is much more convenient to use built-in policy installer to do this. To use installer, click right mouse button on the firewall object in the tree and use menu item Install. Firewall Builder will compile the policy if necessary and then open dialog where you can configure parameters of the installer. Here you need to enter password to authenticate to the firewall. Once you click OK, installer will connect to the firewall using ssh client. First, it will copy generated script to the directory /etc on the firewall (or different one, if configured in the Installer tab of firewall settings dialog), then it will run this script and check for errors. Its progress will be visible in the panel of the installer wizard, just like the progress of policy compiler.</p>
<div id="attachment_1385" class="wp-caption alignnone" style="width: 475px"><img class="size-full wp-image-1385" title="Install options" src="http://ubuntulinuxhelp.com/wp-content/uploads/2009/03/pict_370.png" alt="Install options for firewall guardian" width="465" height="491" /><p class="wp-caption-text">Install options for firewall &#39;guardian&#39;</p></div>
<p>This guide walked you step by step through the process of creating of a firewall object, making some minor changes in its parameters and policy rules, compiling the policy and activating it on the firewall machine. This guide did not touch advanced topics such as built-in revision control system, working with multiple data files, working with multiple firewall objects, IPv6. You can find documentation and guides on these topics and more on our project web site at <a title="Firewall Builder" href="http://www.fwbuilder.org" target="_blank">http://www.fwbuilder.org</a>.</p>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading"> Care to Share?</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="Getting+Started+with+Firewall+Builder" data-count="horizontal" data-text="Getting Started with Firewall Builder" data-url="http://www.ubuntulinuxhelp.com/getting-started-with-firewall-builder/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Fgetting-started-with-firewall-builder%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntulinuxhelp.com/getting-started-with-firewall-builder/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; Installation of OpenSSH.</title>
		<link>http://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh/</link>
		<comments>http://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh/#comments</comments>
		<pubDate>Thu, 17 Jul 2008 14:50:26 +0000</pubDate>
		<dc:creator>Roger Wheatley</dc:creator>
				<category><![CDATA[Hands On]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[8.04]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[codecs]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[ioncube]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh server]]></category>
		<category><![CDATA[ssi]]></category>
		<category><![CDATA[usermin]]></category>
		<category><![CDATA[webmin]]></category>

		<guid isPermaLink="false">http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh/</guid>
		<description><![CDATA[In the last installment, I covered what was done to install LAMP on the server. But remember that we did not install SSH. Why is SSH important? It allows us ...]]></description>
				<content:encoded><![CDATA[<p>In the last installment, I covered what was done to <a href="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/" title="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/">install LAMP</a> on the server. But remember that we did not install SSH.  Why is SSH important? It allows us to remotely connect to the server using tools such as PuTTY,  so that we can execute commands, install software, etc.</p>
<p>The command is simple:</p>
<p><code>sudo aptitude install openssh-server</code></p>
<p>Installing an SSH client? PuTTY:<span id="more-1301"></span></p>
<p><code>sudo aptitude install putty</code></p>
<p>I decided to install the SSH Server via aptitude after LAMP, because I found out (the first time I did this)  that  updating the SSH Server would cause me to have to update the certificates as well. Doing it this way, saves me extra steps.</p>
<p>Needless to say, this step was very simple, but very powerful in that it allows me to manage the server remotely, in comfort. <img src='http://www.ubuntulinuxhelp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading">Do you love to share?</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="Installing+an+Ubuntu+Linux+Hardy+8.04+LAMP+and+FFMpeg+Server+With+a+GUI+%26%238211%3B+Installation+of+OpenSSH." data-count="horizontal" data-text="Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI &#8211; Installation of OpenSSH." data-url="http://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Finstalling-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-installation-of-openssh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI &#8211; LAMP installation with cgi-bin</title>
		<link>http://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/</link>
		<comments>http://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/#comments</comments>
		<pubDate>Wed, 25 Jun 2008 19:03:58 +0000</pubDate>
		<dc:creator>Roger Wheatley</dc:creator>
				<category><![CDATA[Hands On]]></category>
		<category><![CDATA[How To]]></category>
		<category><![CDATA[8.04]]></category>
		<category><![CDATA[cgi]]></category>
		<category><![CDATA[codecs]]></category>
		<category><![CDATA[configure]]></category>
		<category><![CDATA[dvd]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[fonts]]></category>
		<category><![CDATA[ftp]]></category>
		<category><![CDATA[gui]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[ioncube]]></category>
		<category><![CDATA[lamp]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opensource]]></category>
		<category><![CDATA[openssh]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[ssi]]></category>
		<category><![CDATA[usermin]]></category>
		<category><![CDATA[webmin]]></category>

		<guid isPermaLink="false">http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/</guid>
		<description><![CDATA[The last post I covered the hardware installation for this project. For this section, we&#8217;re going to use Ubuntu Linux (8.04 LTS Server Edition 64-bit) to install the LAMP (Linux, ...]]></description>
				<content:encoded><![CDATA[<p><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/ubuntu-server-64-cd.jpg" alt="Ubuntu 8.04 LTS Server Edition (64-bit)" align="left" hspace="10" vspace="5" /> The last post I covered the <a href="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/" title="http://ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/">hardware installation</a> for this project.  For this section, we&#8217;re going to use Ubuntu Linux (8.04 LTS Server Edition 64-bit) to install the LAMP (Linux, Apache, MySQL, PHP) server. If you don&#8217;t have that software available, you can get it using the following venues:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>1. Download the iso image from: <a href="http://www.ubuntu.com/getubuntu/download" title="http://www.ubuntu.com/getubuntu/download" target="_blank">http://www.ubuntu.com/getubuntu/download</a> and burn it to a CD.<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>2. Order the CD from  <a href="https://shipit.ubuntu.com/login-server" title="https://shipit.ubuntu.com/login-server" target="_blank">https://shipit.ubuntu.com/login-server</a>.</p>
<p>Once you have a copy, make sure the BIOS on the PC is set to boot off the CD drive. Put the CD in the drive and simply restart the unit. It should now boot off the CD and display the &#8220;select language&#8221; screen as seen below.<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /><span id="more-1294"></span></p>
<p><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/ubuntu-install-001.jpg" alt="Select Language - Ubuntu Server 8.04 install" /><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>After you&#8217;ve selected the language, you&#8217;ll be presented with the installation menu. Simply select &#8220;Install Ubuntu Server&#8221;, as seen below.<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/ubuntu-install-002.jpg" alt="Installation menu" /><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>Remember that this is a server, ideally we&#8217;d like to have a static IP address for this server. There is a selectable boot option called &#8220;F6 &#8211; Other Options&#8221; where you could enter the following command to disable DHCP:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p><code>netcfg/disable_dhcp=true</code><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>At which point you will be required to manually configure the network settings. I am going to include that information below. However, for some reason I was not able to set up the network card after the installation (I could not see it) , so I used this work around instead&#8230;<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>I logged into the router and checked the logs so that I could get the MAC address of the network card. I then configured a DHCP reservation in the LAN/DHCP setting of the router so that the MAC address of the network card would always get the same IP address. Because I did not want to install a DNS server (my ISP made me take the DNS server down last time I set it up), I then, simply added the IP to hostname record, into the host file of each unit I wanted to connect to the web server.<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>During the installation (just follow the prompts it gives you), you will need to provide the following (among other obvious questions/answers):<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<ol>
<li>A hostname for your web server (the hostname is independent of whatever domain name you&#8217;re going to use. For example, the hostname of this server is &#8220;webbox&#8221; and the domain I&#8217;ll use to access the web server on it is &#8220;local.ubuntulinuxhelp.com&#8221;).</li>
<li>I selected to use the &#8220;Guided &#8211; use entire disk&#8221; when prompted for the partitioning.</li>
<li>A username and password that you are going to remember.</li>
</ol>
<p>You&#8217;ll eventually come to a prompt for the type of server (Software Selection), select LAMP, like the image below.<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/ubuntu-install-003.jpg" alt="Ubuntu server install software selection" /><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>I chose to install the other components later, because I found out it will reduce some of the tweaking and updating later. During the software installation, you will be asked for a MySQL password. Write it down or don&#8217;t forget it! (You&#8217;ll need it later to use phpMyAdmin). The remainder is very straight forward, but as I mentioned earlier, here&#8217;s the static network configuration information. Remember, your network configuration addresses will probably be different from mine.<br />
<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /><br />
Because there is no GUI yet, we&#8217;ll be using the command line to configure the network.<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>Login after rebooting.<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>You can use a simple text editor like nano, vi, etc.<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p><code>sudo nano /etc/network/interfaces</code><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>For those who left DHCP enabled, look for this:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<blockquote><p>auto eth0<br />
iface eth0 inet dhcp</p></blockquote>
<p><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>and change it to this:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<blockquote><p>auto eth0<br />
iface eth0 inet static</p></blockquote>
<p><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>Under the line that says &#8220;iface eth0 inet static&#8221;, you&#8217;ll enter your network information. An example of mine is:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<blockquote><p>address 72.138.51.130<br />
netmask 255.255.255.0<br />
network 72.138.51.0<br />
broadcast 72.138.51.255<br />
gateway 72.138.50.1</p></blockquote>
<p><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>So the file would look something like this:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<blockquote><p>auto eth0<br />
iface eth0 inet static<br />
address 72.138.51.130<br />
netmask 255.255.255.0<br />
network 72.138.51.0<br />
broadcast 72.138.51.255<br />
gateway 72.138.50.1</p></blockquote>
<p><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>Additionally, I made sure the host file contained the following information:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<blockquote><p>127.0.0.1 localhost webbox<br />
172.138.51.130 local.ubuntulinuxhelp.com webbox</p></blockquote>
<p><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>After configuring the network interface, restart the network using the following command:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p><code>sudo /etc/init.d/networking restart</code><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/03/spacer_gif.gif" /></p>
<p>The basic LAMP installation should be complete. <img src='http://www.ubuntulinuxhelp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading"> Sharing is loving!</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="Installing+an+Ubuntu+Linux+Hardy+8.04+LAMP+and+FFMpeg+Server+With+a+GUI+%26%238211%3B+LAMP+installation+with+cgi-bin" data-count="horizontal" data-text="Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI &#8211; LAMP installation with cgi-bin" data-url="http://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Finstalling-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-lamp-installation-with-cgi-bin/feed/</wfw:commentRss>
		<slash:comments>5</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://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/</link>
		<comments>http://www.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 ...]]></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" /></p>
<p>To recap, here is the list of hardware used:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif" /></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" /></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" /></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" /></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" /></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" /></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" /></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" /> (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" /></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" /> 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! <img src='http://www.ubuntulinuxhelp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' />  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" /></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" /> 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" /></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" /> I didn&#8217;t pay attention the first time and had to exchange the keyboard for a USB one.  <img src='http://www.ubuntulinuxhelp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif" /></p>
<p>During the installation you&#8217;ll find two issues:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif" /></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" /></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" /></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" /></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" /> 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" /> (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://www.ubuntulinuxhelp.com/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> <img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif" /></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" /> Once I had this information, I opened a terminal and tried:<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif" /></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" /> 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" /></p>
<p><strong>Fixing the Video Drivers:</strong><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif" /></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" /></p>
<p><code>sudo apt-get install envyng-gtk</code><img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif" /></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" /></p>
<p>That&#8217;s it for this entry.<img src="http://ubuntulinuxhelp.com/wp-content/uploads/2008/06/UbuntuLinuxHelp.com.gif" /> The next post in this 12 part series, will have us rolling our sleeves up and installing the LAMP server software. <img src='http://www.ubuntulinuxhelp.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div class="tweetandlike-box"><h4 id="tweetandlike-heading"> Care to Share?</h4><ul id="tweetandlike-buttons"><li><a href="http://twitter.com/share" data-title="Installing+an+Ubuntu+Linux+Hardy+8.04+LAMP+and+FFMpeg+Server+With+a+GUI+%26%238211%3B+Hardware+Installation." data-count="horizontal" data-text="Installing an Ubuntu Linux Hardy 8.04 LAMP and FFMpeg Server With a GUI &#8211; Hardware Installation." data-url="http://www.ubuntulinuxhelp.com/installing-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation/" data-lang="eng" data-via="@UbuntuLinuxHelp" class="twitter-share-button">Tweet</a><script type="text/javascript" src="http://platform.twitter.com/widgets.js"></script></li><li><iframe src="http://www.facebook.com/plugins/like.php?href=http%3A%2F%2Fwww.ubuntulinuxhelp.com%2Finstalling-an-ubuntu-linux-hardy-804-lamp-and-ffmpeg-server-with-a-gui-hardware-installation%2F&send=on&layout=standard&show_faces=true&action=like&font=arial&colorscheme=light&width=350&scrolling="no" frameborder="0" style="border:none; overflow:hidden; width:350px; height:25px;" allowTransparency="true" ></iframe></li></ul></div>]]></content:encoded>
			<wfw:commentRss>http://www.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>
	</channel>
</rss>
