<?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>Lynxworks &#187; Ubuntu</title>
	<atom:link href="http://blog.lynxworks.eu/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.lynxworks.eu</link>
	<description>I don&#039;t think there are any dragons here</description>
	<lastBuildDate>Sat, 31 Mar 2012 12:42:41 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>A quick thank you</title>
		<link>http://blog.lynxworks.eu/2012/03/packaging/</link>
		<comments>http://blog.lynxworks.eu/2012/03/packaging/#comments</comments>
		<pubDate>Sun, 18 Mar 2012 19:34:00 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[CAS]]></category>
		<category><![CDATA[Mathematics]]></category>
		<category><![CDATA[Maxima]]></category>
		<category><![CDATA[Packaging]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Thanks]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=2246</guid>
		<description><![CDATA[I needed wxMaxima but the version in the repositories is a little older (one major revision). Compiling from source is straightforward but a recent discussion I had with students showed they shied away from it. So I figured I&#8217;d try &#8230; <a href="http://blog.lynxworks.eu/2012/03/packaging/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I needed <a href="http://andrejv.github.com/wxmaxima/">wxMaxima</a> but the version in the repositories is a little older (one major revision). Compiling from source is straightforward but a recent discussion I had with students showed they shied away from it.</p>
<p>So I figured I&#8217;d try packaging and a couple of hours later and I&#8217;ve a copy in my PPA. I&#8217;m unsure who maintains the <a href="https://wiki.ubuntu.com/PackagingGuide/Complete">packaging guide</a> so I wanted to say thank you on Ubuntu Planet hoping those involved see it. Its great when you want to try something, find comprehensive instructions and can wrap it up in a few hours.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2012/03/packaging/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Assumption</title>
		<link>http://blog.lynxworks.eu/2011/11/assumption/</link>
		<comments>http://blog.lynxworks.eu/2011/11/assumption/#comments</comments>
		<pubDate>Sun, 20 Nov 2011 14:46:30 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Rant]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Rants]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1989</guid>
		<description><![CDATA[Someone asked me yesterday &#8220;You&#8217;re good with computers, can you give me a copy of Photoshop?&#8220;. Aside from the fact I run Linux on most of my computers, I&#8217;m not keen on being accused of software piracy on the basis that &#8230; <a href="http://blog.lynxworks.eu/2011/11/assumption/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Someone asked me yesterday &#8220;<em>You&#8217;re good with computers, can you give me a copy of Photoshop?</em>&#8220;. Aside from the fact I run Linux on most of my computers, I&#8217;m not keen on being accused of software piracy on the basis that I&#8217;m &#8220;good with computers&#8221; or any other reason. I made the mistake of asking why he needed it, he wanted to resize some pictures &#8211; so I suggested Paint.net.</p>
<p>His answer? <em>&#8220;Oh no that&#8217;s free, it&#8217;s bound to be rubbish.&#8221;</em></p>
<p>Strange, I thought he wanted Photoshop <em>free</em>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/11/assumption/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Best Linux comment ever</title>
		<link>http://blog.lynxworks.eu/2011/10/best-linux-comment-ever/</link>
		<comments>http://blog.lynxworks.eu/2011/10/best-linux-comment-ever/#comments</comments>
		<pubDate>Mon, 17 Oct 2011 19:56:22 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1976</guid>
		<description><![CDATA[Extract from an article over at &#8220;The Art of Manliness&#8221; that gives instructions on editing hosts to block time wasting sites: Linux If you’re using Linux, you’re probably a geek and don’t need some guy who blogs about manliness to &#8230; <a href="http://blog.lynxworks.eu/2011/10/best-linux-comment-ever/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Extract from an <a href="http://artofmanliness.com/2011/10/17/how-to-quit-mindlessly-surfing-the-internet-and-actually-get-stuff-done/ ">article</a> over at &#8220;The Art of Manliness&#8221; that gives instructions on editing hosts to block time wasting sites:</p>
<blockquote><p><strong>Linux</strong><br />
If you’re using Linux, you’re probably a geek and don’t need some guy who blogs about manliness to tell you how to edit your host file.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2011/10/best-linux-comment-ever/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux is not a get of jail free card</title>
		<link>http://blog.lynxworks.eu/2010/12/linux-is-not-a-get-of-jail-free-card/</link>
		<comments>http://blog.lynxworks.eu/2010/12/linux-is-not-a-get-of-jail-free-card/#comments</comments>
		<pubDate>Thu, 16 Dec 2010 17:15:43 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Rant]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Rants]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1649</guid>
		<description><![CDATA[I&#8217;ve been having line problems with my ISP &#8211; British Telecom. To cut a long story short we see a 75% speed drop, phone BT, jump through umpteen hoops and they reset the profile at the exchange. The fault is &#8230; <a href="http://blog.lynxworks.eu/2010/12/linux-is-not-a-get-of-jail-free-card/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been having line problems with my ISP &#8211; British Telecom. To cut a long story short we see a 75% speed drop, phone BT, jump through umpteen hoops and they reset the profile at the exchange. The fault is with the line and it&#8217;s intermittent.</p>
<p>That doesn&#8217;t really bother me. The customer support agent told me to use BT&#8217;s speed diagnostic tool. Now aside from why their tool would be better, its not really an option as its a poorly written Java applet that doesn&#8217;t seem to work with Firefox or Chromium in Linux. Now I dare say I could get it to work but why spend the energy? When I mentioned it to the agent, he told me BT doesn&#8217;t officially support Linux and helpfully suggested I keep a Windows laptop handy.</p>
<p>Are you kidding? Keep a Windows laptop handy? There are reasons why I use Linux, there are reasons people use Macs and Windows too &#8211; they chose to. What the hell has that got to do with my ISP? I have no software from them, it&#8217;s a wireless access point they provide. Do you know what operating system <em>it</em> runs? Linux.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2010/12/linux-is-not-a-get-of-jail-free-card/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Samsung ML-1915 with Ubuntu</title>
		<link>http://blog.lynxworks.eu/2010/11/samsung-ml-1915-with-ubuntu/</link>
		<comments>http://blog.lynxworks.eu/2010/11/samsung-ml-1915-with-ubuntu/#comments</comments>
		<pubDate>Wed, 03 Nov 2010 12:10:32 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1555</guid>
		<description><![CDATA[I picked up a cheap laser printer, a Samsung ML-1915. It isn&#8217;t automatically configured by Ubuntu 10.10 as it requires the Samsung Unified Linux Print Driver. The page explains what to do but in synopsis, you need to add the &#8230; <a href="http://blog.lynxworks.eu/2010/11/samsung-ml-1915-with-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I picked up a cheap laser printer, a Samsung ML-1915. It isn&#8217;t automatically configured by Ubuntu 10.10 as it requires the <a href="http://www.bchemnet.com/suldr/index.html">Samsung Unified Linux Print Driver</a>.</p>
<p>The page explains what to do but in synopsis, you need to add the repository and install two packages, obviously check out the site before blindly following me:</p>
<p>Add the repository to /etc/apt/sources.list:</p>
<pre>deb http://www.bchemnet.com/suldr/ debian extra</pre>
<p>Now, I know Ubuntu has the <code>apt-add-repository</code> command, however it will create a source entry too, which will give you an error:</p>
<pre>W: Failed to fetch http://www.bchemnet.com/suldr/dists/debian/Release
Unable to find expected entry  extra/source/Sources in Meta-index file
(malformed Release file?)</pre>
<p>If you did then you need to remove the offending <code>deb-src http://www.bchemnet.com/suldr/ debian extra</code> entry.</p>
<p>That done, add the GPG key and update the apt cache.</p>
<pre>wget -O - http://www.bchemnet.com/suldr/suldr.gpg | sudo apt-key add -
sudo apt-get update
sudo apt-get install samsungmfp-driver samsungmfp-data</pre>
<p>It will then pick up and install when you plug it in. Samsung themselves provide a 30 odd Mb driver file, <a href="http://www.samsung.com/uk/support/detail/supportPrdDetail.do?menu=SP01&amp;prd_mdl_cd=&amp;prd_mdl_name=ML-1915&amp;prd_ia_sub_class_cd=P">here</a>. There are a whole list of the differences <a href="http://www.bchemnet.com/suldr/repository.html">here</a> but for me, I prefer Debian compliance and not installing anything I don&#8217;t need.</p>
<p>Oh and a big thank you to everyone who sent me suggestions of what to do in San Diego. People can be surprisingly open and friendly &#8211; especially within our community.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2010/11/samsung-ml-1915-with-ubuntu/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Any colour will do</title>
		<link>http://blog.lynxworks.eu/2010/10/a-bike-shed-any-colour-will-do-on-greener-grass/</link>
		<comments>http://blog.lynxworks.eu/2010/10/a-bike-shed-any-colour-will-do-on-greener-grass/#comments</comments>
		<pubDate>Mon, 18 Oct 2010 16:45:09 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1483</guid>
		<description><![CDATA[I hope Dustin Kirkland wont mind me re-posting this but it&#8217;s so insightful I felt I must. Poul-Henning Kamp posted this concerning Free BSD development over eleven years ago&#8230;]]></description>
			<content:encoded><![CDATA[<p>I hope Dustin Kirkland wont mind me <a href="http://blog.dustinkirkland.com/2010/10/introducing-bikeshed-package.html">re-posting</a> this but it&#8217;s so insightful I felt I must. Poul-Henning Kamp posted <a href="http://www.freebsd.org/cgi/getmsg.cgi?fetch=506636+517178+/usr/local/www/db/text/1999/freebsd-hackers/19991003.freebsd-hackers">this</a> concerning Free BSD development over eleven years ago&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2010/10/a-bike-shed-any-colour-will-do-on-greener-grass/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Twitter vulnerabilities, using Windows, studying and new WordPress themes.</title>
		<link>http://blog.lynxworks.eu/2010/09/twitter-vulnerabilities-using-windows-and-studying/</link>
		<comments>http://blog.lynxworks.eu/2010/09/twitter-vulnerabilities-using-windows-and-studying/#comments</comments>
		<pubDate>Sun, 26 Sep 2010 13:17:15 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Coding]]></category>
		<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Open University]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>
		<category><![CDATA[Wordpress]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1420</guid>
		<description><![CDATA[Graham Cluley, a Senior Technology Consultant at Sophos, has a nice blog piece on the Twitter worm from earlier this week. To cut a long story short, he reminds us of the importance of sanitizing inputs. Still, it was more &#8230; <a href="http://blog.lynxworks.eu/2010/09/twitter-vulnerabilities-using-windows-and-studying/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Graham Cluley, a Senior Technology Consultant at Sophos, has a <a href="http://www.sophos.com/blogs/gc/g/2010/09/22/names-faces-twitter-worm-attack/">nice blog piece</a> on the Twitter worm from earlier this week. To cut a long story short, he reminds us of the importance of <a href="http://xkcd.com/327/">sanitizing inputs</a>.</p>
<p><a href="http://blog.lynxworks.eu/wp-content/uploads/2010/09/exploits_of_a_mom.png"><img class="alignnone size-full wp-image-1609" title="exploits_of_a_mom" src="http://blog.lynxworks.eu/wp-content/uploads/2010/09/exploits_of_a_mom.png" alt="" width="666" height="205" /></a></p>
<p>Still, it was more productive than my week with my <a href="http://www.open.ac.uk/">Open University</a> module that starts in October &#8211; T175 (<a href="http://www3.open.ac.uk/study/undergraduate/course/t175.htm">Networked living: exploring information and communication technologies</a>). The OU can be very Windows dependent but this course seems to be pretty much delivered in Virtual Learning Environment (what the OU calls Moodle). I ran the course DVD, which is a Windows Flash standalone thing which got me to revive the <a href="https://launchpad.net/~open-university-ubuntu">OU Ubuntu Users group</a>, sending out emails, starting a mailing list and trying to get things going again.</p>
<p>So why was it unproductive? Well, I haven&#8217;t booted Windows in ages &#8211; there were a million updates, one of which was for the wireless driver. Update completely borked the wireless and I wound up restoring the drive. That aside, one thing I really like about Ubuntu (and most distributions) is a centralised update manager &#8211; Windows has Adobe, Java, Windows Update, Firefox and McAfee all trying to pull updates at the same time. It makes the system completely unusable for the first ten minutes it&#8217;s on!</p>
<p>Any way, I decided to build a new WordPress theme. Same colour scheme, more rounded edges &#8211; should be available in the next few days.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2010/09/twitter-vulnerabilities-using-windows-and-studying/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Bash</title>
		<link>http://blog.lynxworks.eu/2010/09/bash/</link>
		<comments>http://blog.lynxworks.eu/2010/09/bash/#comments</comments>
		<pubDate>Sat, 18 Sep 2010 10:13:12 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Howto]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1412</guid>
		<description><![CDATA[Two things that improve my bash productivity &#8211; stopping the cursor keys inserting characters in vim and history search in bash. Edit ~/.vimrc or /etc/vim/vimrc (for system wide) and add turn off vi compatibility: set nocompatible The latter can be &#8230; <a href="http://blog.lynxworks.eu/2010/09/bash/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Two things that improve my bash productivity &#8211; stopping the cursor keys inserting characters in vim and history search in bash.</p>
<p>Edit ~/.vimrc or /etc/vim/vimrc (for system wide) and add turn off vi compatibility:</p>
<p><code>set nocompatible</code></p>
<p>The latter can be improved by editing ~/.inputrc (or /etc/inputrc for everyone). Pressing the up key scrolls through all the commands you&#8217;ve typed but by adding:</p>
<p><code>"\e[A":history-search-backward<br />
"\e[B":history-search-forward</code></p>
<p>You can type the first letter or two and get the command you need, so if you typed &#8220;mysql -u root -p&#8221; last Tuesday but can&#8217;t remember the options, typing &#8220;my&#8221; and pressing the up key will find it.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2010/09/bash/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Install web applications locally on Ubuntu</title>
		<link>http://blog.lynxworks.eu/2010/09/install-web-applications-locally-on-ubuntu/</link>
		<comments>http://blog.lynxworks.eu/2010/09/install-web-applications-locally-on-ubuntu/#comments</comments>
		<pubDate>Thu, 02 Sep 2010 11:46:56 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Computing]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Coding]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1351</guid>
		<description><![CDATA[I was talking with someone yesterday who is hacking a WordPress theme together. If you work with web sites, being able to run a site locally allows testing, experimentation, developing new themes and even just checking that a software update &#8230; <a href="http://blog.lynxworks.eu/2010/09/install-web-applications-locally-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was talking with someone yesterday who is hacking a <a href="http://wordpress.org/extend/themes/">WordPress theme</a> together. If you work with web sites, being able to run a site locally allows testing, experimentation, developing new themes and even just checking that a software update isn&#8217;t going to break your site. You might want to keep a web application on a local network and away from the Internet &#8211; such as StatusNet, a Wiki or a project management application. All we need is to install a LAMP stack &#8211; Linux Apache MySQL and PHP. We&#8217;ve already got the &#8220;L&#8221;! So let&#8217;s walk through installing WordPress.<span id="more-1351"></span></p>
<p>Synaptic (<em>System→Administration→Synaptic Package Manager</em>) lets you install common groups of packages (<em>Edit-&gt;Mark packages by task&#8230;</em>) in this case a LAMP server. You can do the same from a command line using &#8220;<em>sudo tasksel install lamp-server</em>&#8220;. Since Ubuntu 10.10, you need to install tasksel to install by task either way &#8211; &#8220;sudo apt-get install tasksel&#8221;.</p>
<p><a href="http://blog.lynxworks.eu/wp-content/uploads/2010/09/install-web-applications-locally-on-ubuntu-01.png"><img class="alignnone size-medium wp-image-1626" title="install-web-applications-locally-on-ubuntu-01" src="http://blog.lynxworks.eu/wp-content/uploads/2010/09/install-web-applications-locally-on-ubuntu-01-300x271.png" alt="" width="300" height="271" /></a></p>
<p><a href="http://blog.lynxworks.eu/wp-content/uploads/2010/09/install-web-applications-locally-on-ubuntu-02.png"><img class="alignnone size-medium wp-image-1627" title="install-web-applications-locally-on-ubuntu-02" src="http://blog.lynxworks.eu/wp-content/uploads/2010/09/install-web-applications-locally-on-ubuntu-02-300x256.png" alt="" width="300" height="256" /></a></p>
<p>Once the components are installed, you&#8217;ll be asked for a root password &#8211; this is used by MySQL and is not the system&#8217;s root password.</p>
<p>The default web root is <code>/var/www</code> &#8211; if you check it now there is an index.html. Open a browser and goto <a href="http://localhost">http://localhost</a>, you&#8217;ll be greeted with the contents of that file so we know the system is working. So how do we get our own files up?</p>
<p>You need to consider permissions, this is the casue of &#8220;Forbidden/You don&#8217;t have permission to access / on this server&#8221; error messages . There are a couple of ways but I recommend using the www-data group. You could use a folder in your home folder, however I have never got this will not work with encrypted home folders. I would leave /var/www in root&#8217;s ownership and add each subsite as belonging to www-data then give that group write access:﻿</p>
<p><code>sudo mkdir /var/www/wordpress; sudo chown :www-data wordpress; sudo chmod g+w wordpress</code></p>
<p>The first user will have been added to this group during installation (you may need to logout) but further users can be added using System→Administration→Users and Groups or by:</p>
<p><code>sudo useradd -G www-data username</code></p>
<p>Apache uses virtual hosts &#8211; multiple sites on the same server. Each site is defined by a configuration file in <em>/etc/apache2/sites-available</em>. If you look there now, you&#8217;ll see the default site, we can use this as a template for a new site:</p>
<p><code>sudo cp /etc/apache2/sites-available/default /etc/apache2/sites-available/wordpress<br />
gksu gedit /etc/apache2/sites-available/wordpress</code></p>
<p>You need to add a <em>ServerName</em>, change the <em>VirtualHost</em>, <em>DocumentRoot</em> and <em>Directory</em> to point to the folder your site is going to be in, changes are in <span style="color: #ff0000;">red</span>.<br />
<code>&lt;VirtualHost <span style="color: #ff0000;">wordpress</span>:80&gt;<br />
ServerAdmin webmaster@localhost<br />
<span style="color: #ff0000;"> ServerName wordpress</span><br />
DocumentRoot <span style="color: #ff0000;">/var/www/wordpress</span><br />
&lt;Directory /&gt;<br />
Options FollowSymLinks<br />
AllowOverride None<br />
&lt;/Directory&gt;<br />
&lt;Directory <span style="color: #ff0000;">/var/www/wordpress</span>&gt;<br />
Options Indexes FollowSymLinks MultiViews<br />
AllowOverride None<br />
Order allow,deny<br />
allow from all<br />
&lt;/Directory&gt;<br />
ScriptAlias /cgi-bin/ /usr/lib/cgi-bin/<br />
&lt;Directory "/usr/lib/cgi-bin"&gt;<br />
AllowOverride None<br />
Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch<br />
Order allow,deny<br />
Allow from all<br />
&lt;/Directory&gt;<br />
ErrorLog ${APACHE_LOG_DIR}/error.log<br />
# Possible values include: debug, info, notice, warn, error, crit,<br />
# alert, emerg.<br />
LogLevel warn<br />
CustomLog ${APACHE_LOG_DIR}/access.log combined<br />
Alias /doc/ "/usr/share/doc/"<br />
&lt;Directory "/usr/share/doc/"&gt;<br />
Options Indexes MultiViews FollowSymLinks<br />
AllowOverride None<br />
Order deny,allow<br />
Deny from all<br />
Allow from 127.0.0.0/255.0.0.0 ::1/128<br />
&lt;/Directory&gt;<br />
&lt;/VirtualHost&gt;</code><br />
You can then add &#8220;<em>wordpress</em>&#8221; to <em>/etc/hosts</em> (change the line that reads <em>127.0.0.1 localhost</em> to <em>127.0.0.1 localhost wordpress</em>) and use the address &#8220;<em>http://wordpress</em>&#8221; to access your site.</p>
<p>Apache needs to know about the site:</p>
<p><code>sudo a2ensite wordpress; sudo /etc/init.d/apache2 reload</code></p>
<p>Now with the letter &#8220;A&#8221; out of the way we can deal with the &#8220;M&#8221;. Most web applications need at least one database. Remember that MySQL password?</p>
<p><code>mysql -u root -p</code></p>
<p>A good example is installing WordPress. <a href="http://wordpress.org/download/">Download</a> and extract the contents to /var/www/wordpress &#8211; remember the wordpress folder already exists so put the <em>contents</em> in there. Create a new database called &#8220;<em>wordpress</em>&#8220;, with a user called &#8220;<em>wordpress</em>&#8221; and a password of &#8220;<em>wordpress</em>&#8221; by entering each command at the prompt:</p>
<p><code>create database wordpress;<br />
grant usage on wordpress.* to wordpress@localhost identified by 'wordpress';<br />
grant all privileges on wordpress.* to wordpress@localhost;</code></p>
<p><a href="http://blog.lynxworks.eu/wp-content/uploads/2010/09/install-web-applications-locally-on-ubuntu-04.png"><img class="alignnone size-medium wp-image-1629" title="install-web-applications-locally-on-ubuntu-04" src="http://blog.lynxworks.eu/wp-content/uploads/2010/09/install-web-applications-locally-on-ubuntu-04-300x197.png" alt="" width="300" height="197" /></a></p>
<p>Type &#8220;<em>\q</em>&#8221; to exit then open a browser and go to your site, for me that&#8217;s <em>http://localhost/dougie</em>.</p>
<p>So lastly we get on to the &#8220;P&#8221; &#8211; PHP. Apache will recognise and run PHP, however be aware of a caveat I&#8217;ve noticed in Ubuntu. If you try to use your system hostname instead of localhost in Firefox, it will try to download rather than run PHP files. I believe this is due to the system hostname resolving to 127.0.1.1, a solution to <a href="http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=316099">Debian bug #316099</a>.</p>
<p>PHP applications often have their own installation scripts, which WordPress does. Enter the database details we just created on the WordPress install screen:</p>
<p><a href="http://blog.lynxworks.eu/wp-content/uploads/2010/09/install-web-applications-locally-on-ubuntu-05.png"><img class="alignnone size-medium wp-image-1630" title="install-web-applications-locally-on-ubuntu-05" src="http://blog.lynxworks.eu/wp-content/uploads/2010/09/install-web-applications-locally-on-ubuntu-05-300x217.png" alt="" width="300" height="217" /></a></p>
<p>Once the rest of the screens are complete, you&#8217;ll have WordPress installed.</p>
<p>So to summarise:</p>
<ol>
<li>Install a LAMP stack &#8211; <code>sudo tasksel install lamp-serve</code>r</li>
<li>Create a folder and set the correct permissions &#8211; <code>sudo mkdir /var/www/wordpress; sudo chown :www-data wordpress; sudo chmod g+w wordpress</code></li>
<li>Download WordPress and put the contents in /var/www/wordpress</li>
<li>Open mysql:<code>mysql -u root -p</code></li>
<li>Set up database: <code>create database wordpress; grant usage on wordpress.* to wordpress@localhost identified by 'wordpress'; grant all privileges on wordpress.* to wordpress@localhost; \q</code></li>
<li>Run <a href="http://wordpress/install.php">http://wordpress/install.php</a></li>
</ol>
<p>So to recap, all we need to do to add an application is create a virtual host so Apache can serve it up; create a database for it to store data; and configure the application &#8211; often via a browser interface. Now you can hack away at those WordPress themes to your heart&#8217;s content.</p>
<p>More information is available from the <a href="https://help.ubuntu.com/10.04/serverguide/C/lamp-applications.html">Ubuntu Server Guide</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2010/09/install-web-applications-locally-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Huawei E1550 in Ubuntu 10.04.1</title>
		<link>http://blog.lynxworks.eu/2010/08/huawei-e1550-in-ubuntu-10-04-1/</link>
		<comments>http://blog.lynxworks.eu/2010/08/huawei-e1550-in-ubuntu-10-04-1/#comments</comments>
		<pubDate>Sun, 29 Aug 2010 14:27:09 +0000</pubDate>
		<dc:creator>Dougie</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Planet Ubuntu]]></category>

		<guid isPermaLink="false">http://blog.lynxworks.eu/?p=1330</guid>
		<description><![CDATA[Judging by my server logs, there are lots of people trying to use the Huawei E1550 with Ubuntu. I posted a howto around this time last year but have been getting a lot of mail on it recently so thought &#8230; <a href="http://blog.lynxworks.eu/2010/08/huawei-e1550-in-ubuntu-10-04-1/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Judging by my server logs, there are lots of people trying to use the Huawei E1550 with Ubuntu. I posted a <a href="http://blog.lynxworks.eu/20090830/huawei-e1550-on-ubuntu">howto</a> around this time last year but have been getting a lot of mail on it recently so thought I&#8217;d look at it again. I was going to mention it in the system help, under troubleshooting but can&#8217;t remember if I pushed a patch or not.<span id="more-1330"></span></p>
<h2>Mode-switching &#8211; method one</h2>
<p>Thanks to OdyX (who maintains usb-modeswitch) this is the simplest method.﻿</p>
<p>Open a terminal (Applications-&gt;Accessories-&gt;Terminal) and type:</p>
<p><code>sudo apt-get install usb-modeswitch usb-modeswitch-data</code></p>
<h2>Mode-switching &#8211; method two</h2>
<p>On inserting the device, if you open a terminal (Applications-&gt;Accessories-&gt;Terminal) and type &#8220;dmesg&#8221; you&#8217;ll see something like this:</p>
<p><a href="http://blog.lynxworks.eu/wp-content/uploads/2010/08/1.png"><img title="1" src="http://blog.lynxworks.eu/wp-content/uploads/2010/08/1-300x161.png" alt="" width="300" height="161" /></a></p>
<p>The device has a small amount of storage space and identifies itself (on Windows) as a mass storage device, installs the driver and away you go. The problem is Ubuntu does what it is told to, it thinks its a mass storage device. The switch is never made in software because the software isn&#8217;t for Linux. We need to manually switch it using a little program that has been installed by default for a while now &#8211; &#8220;modem-modeswitch&#8221;. You need to pass it some parameters but we want the system to do this automatically when we insert the device &#8211; so we will configure a udev rule instead.</p>
<p>Open a new file to store the rule by typing &#8220;<code>gksu gedit /etc/udev/rules.d/15-huawei-e1550.rules</code>&#8221; and paste in the following code:</p>
<p><code>SUBSYSTEM=="usb",SYSFS{idProduct}=="1446",SYSFS{idVendor}=="12d1",RUN+="/lib/udev/modem-modeswitch --vendor 0x12d1 --product 0x1446 --type option-zerocd"</code></p>
<p>Save the file and close the editor. Remove and re-insert the device. You should notice that service providers icon has popped up on the desktop &#8211; don&#8217;t worry about it as it is just the storage part of the device being recognised.</p>
<h2>Configuring the connection</h2>
<p>If you now click on the network-manager icon in the notification area, you&#8217;ll see a new option, &#8220;New Mobile Broadband (GSM) connection&#8221;</p>
<p><a href="http://blog.lynxworks.eu/wp-content/uploads/2010/08/2.png"><img class="alignnone size-full wp-image-1623" title="2" src="http://blog.lynxworks.eu/wp-content/uploads/2010/08/2.png" alt="" width="238" height="300" /></a></p>
<p>Click it and on the splash screen click &#8220;Forward&#8221; and choose your country and operator. Mine is 3UK so I&#8217;ll pick &#8220;Britain (UK)&#8221;, &#8220;3&#8243; and importantly from the next screen choose &#8220;Handsets&#8221;. Obviously this will require the correct information, so if your network is not listed and you cannot obtain the necessary values the please contact your provider. Click &#8220;Apply&#8221; and you should see the connection appear.</p>
<p><a href="http://blog.lynxworks.eu/wp-content/uploads/2010/08/3.png"><img class="alignnone size-full wp-image-1624" title="3" src="http://blog.lynxworks.eu/wp-content/uploads/2010/08/3.png" alt="" width="300" height="59" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://blog.lynxworks.eu/2010/08/huawei-e1550-in-ubuntu-10-04-1/feed/</wfw:commentRss>
		<slash:comments>48</slash:comments>
		</item>
	</channel>
</rss>

