<?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>ForLinux Blog</title>
	<atom:link href="http://www.forlinux.co.uk/expertise/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.forlinux.co.uk/expertise/blog</link>
	<description>Blogs about technology relating to Managed Hosting and Support Services</description>
	<lastBuildDate>Mon, 14 May 2012 11:04:27 +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>Vim Masterclass Part #3: Abbreviations</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/#comments</comments>
		<pubDate>Mon, 14 May 2012 11:03:56 +0000</pubDate>
		<dc:creator>Paul</dc:creator>
				<category><![CDATA[Managed Hosting]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=447</guid>
		<description><![CDATA[This next post in the &#8216;Vim Masterclass&#8217; will focus on a handy feature of Vim called Abbreviations. Abbreviations are a string of text which when typed are transformed into another string of text. This is done with the :abbr command. &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>This next post in the &#8216;Vim Masterclass&#8217; will focus on a handy feature of Vim called Abbreviations. Abbreviations are a string of text which when typed are transformed into another string of text. This is done with the :abbr command. The format is:</p>
<p>:abbr text newtext</p>
<p>So, an example of this would be:</p>
<p>:abbr fl ForLinux</p>
<p>When in insert mode in Vim, type &#8216;fl&#8217; followed by a space, and watch it expand. The abbreviation must be followed by a space so Vim knows that the word has finished and isn&#8217;t part of a bigger word.</p>
<p>To see the current abbreviations, use the command:</p>
<p>:ab</p>
<p>To remove an abbreviation, use the :anu command, followed by the abbreviation:</p>
<p>:una fl</p>
<p>To remove all abbreviations, use:</p>
<p>:abc</p>
<p>Abbreviations are especially useful when combined with some of Vims other control codes. A line break can be added to the abbreviation with the &lt;CR&gt; code:</p>
<p>:abbr php &lt;?php&lt;CR&gt;?&gt;</p>
<p>When &#8216;php&#8217; is typed into the document, it outputs:<br />
&lt;?php<br />
?&gt;</p>
<p>Unfortunately, the cursor is now at the end of the php tags. To counter that, the &lt;Up&gt; control can be added to the end of the output which will move the cursor after the abbreviation:</p>
<p>:abbr php &lt;?php&lt;CR&gt;&lt;CR&gt;?&gt;&lt;Up&gt;</p>
<p>This will now output:</p>
<p>&lt;?php</p>
<p>?&gt;</p>
<p>With the cursor placed on the line between the two tags.</p>
<p>The following abbreviation offers a html 5 skeleton outline, leaving Vim in insert mode within the title tag in the header waiting for your input:</p>
<p>:abbr html &lt;!DOCTYPE html&gt;&lt;CR&gt;&lt;html&gt;&lt;CR&gt;&lt;head&gt;&lt;CR&gt;&lt;title&gt;&lt;/title&gt;&lt;CR&gt;&lt;/head&gt;&lt;CR&gt;<br />
&lt;body&gt;&lt;CR&gt;&lt;CR&gt;&lt;/body&gt;&lt;CR&gt;&lt;/html&gt;&lt;esc&gt;5&lt;Up&gt;2&lt;Right&gt;i</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Vim+Masterclass+Part+%233%3A+Abbreviations+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D447" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Vim+Masterclass+Part+%233%3A+Abbreviations+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D447" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;title=Vim+Masterclass+Part+%233%3A+Abbreviations" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;title=Vim+Masterclass+Part+%233%3A+Abbreviations" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;t=Vim+Masterclass+Part+%233%3A+Abbreviations" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;t=Vim+Masterclass+Part+%233%3A+Abbreviations" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;title=Vim+Masterclass+Part+%233%3A+Abbreviations&amp;summary=This+next+post+in+the+%27Vim+Masterclass%27+will+focus+on+a+handy+feature+of+Vim+called+Abbreviations.+Abbreviations+are+a+string+of+text+which+when+ty...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;title=Vim+Masterclass+Part+%233%3A+Abbreviations&amp;summary=This+next+post+in+the+%27Vim+Masterclass%27+will+focus+on+a+handy+feature+of+Vim+called+Abbreviations.+Abbreviations+are+a+string+of+text+which+when+ty...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;title=Vim+Masterclass+Part+%233%3A+Abbreviations" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;title=Vim+Masterclass+Part+%233%3A+Abbreviations" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;title=Vim+Masterclass+Part+%233%3A+Abbreviations" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/&amp;title=Vim+Masterclass+Part+%233%3A+Abbreviations" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/05/14/vim-masterclass-part-3-abbreviations/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LocationMatch</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/#comments</comments>
		<pubDate>Fri, 11 May 2012 09:40:12 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Managed Hosting]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=444</guid>
		<description><![CDATA[Those of us who use apache on a daily basis often have to modify the apache conf file, but I am sure, like myself, we don&#8217;t even use half of the directives available. For a full list you can check &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Those of us who use apache on a daily basis often have to modify the apache conf file, but I am sure, like myself, we don&#8217;t even use half of the directives available. For a full list you can check them out here:</p>
<p><a href="http://httpd.apache.org/docs/2.0/mod/core.html" target="_blank">http://httpd.apache.org/docs/2.0/mod/core.html</a></p>
<p>One interesting one I have started using is LocationMatch. This basically allows you to create an if statement in the virtualhost.</p>
<p>The first time I needed to do this was to ignore a mod security rule for a single file that was 3rd party code and was being blocked by mod security.</p>
<p>I didn&#8217;t want to disable the rule entirely so I used this basic rule</p>
<p>If file ==file<br />
ignore rule<br />
endif</p>
<p>or in apache</p>
<p>&lt;LocationMatch “[filename]”&gt;<br />
SecRuleRemoveById [rule id]<br />
&lt;/LocationMatch&gt;</p>
<p>restart apache and now that rule will be ignored for that one file.</p>
<p>On top of this you can use regex for the match so you can build one rule that will catch multiple file names.</p>
<p>And after matching the file you can pretty much apply anything that apache can do without affecting the rest of the virtualhost.</p>
<p>One advantage to this is that you can do things which would normally be put into htaccess files. This keeps your special configuration all within the apache conf to make trouble shooting easier at a later date (how often have you found yourself trawling through directories looking for htaccess files), meaning that new people to a project only need to check the virtual host instead of hunting for other changes in the directory structure.</p>
<p>Anyway, I am sure other folks will have better ideas than me on how to use this as I am still coming up with useful tweeks on this one!</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=LocationMatch+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D444" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=LocationMatch+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D444" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;title=LocationMatch" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;title=LocationMatch" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;t=LocationMatch" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;t=LocationMatch" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;title=LocationMatch&amp;summary=Those+of+us+who+use+apache+on+a+daily+basis+often+have+to+modify+the+apache+conf+file%2C+but+I+am+sure%2C+like+myself%2C+we+don%27t+even+use+half+of+the+di...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;title=LocationMatch&amp;summary=Those+of+us+who+use+apache+on+a+daily+basis+often+have+to+modify+the+apache+conf+file%2C+but+I+am+sure%2C+like+myself%2C+we+don%27t+even+use+half+of+the+di...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;title=LocationMatch" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;title=LocationMatch" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;title=LocationMatch" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/&amp;title=LocationMatch" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/05/11/locationmatch/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creepy!</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/#comments</comments>
		<pubDate>Wed, 09 May 2012 10:29:48 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Web Security]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=435</guid>
		<description><![CDATA[When you next Tweet, think about the information you&#8217;re giving away. A new tool has been developed that will gather geolocation related information from your Tweet and image hosting services, pin pointing where you were and presenting the information via &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>When you next Tweet, think about the information you&#8217;re giving away.</p>
<p>A new tool has been developed that will gather geolocation related information from your Tweet and image hosting services, pin pointing where you were and presenting the information via Google maps.</p>
<p>The tool called Creepy, gathers Twitter&#8217;s tweet location via the coordinates from a mobile device, the place name derived from the users IP address which gets translated into coordinates using geonames.com, geolocation information accessible from the image hosting service API and EXIF tags from the photos posted.</p>
<p>Creepy is a PoC (Proof of Concept) tool developed by Ilektrojohn(1). He wrote it to show how easy it is to gather this type of information which the user consents to when ticking the “I Agree” box for these web services.</p>
<p>How could this information be used? For malicious purposes it&#8217;s easy to imagine a stalker, jealous spouse or bully tracking down a victims location or regular route (as long as they are tweeting on the way). Other uses could be tracking a potential client or girlfriend so that you can “bump into them”. From a privacy perspective, advertisers will be queuing up for this information. They could potentially gather -</p>
<ul>
<li>Where you live</li>
<li>Who else lives there</li>
<li>Your commuting patterns</li>
<li>Where you go for lunch each day</li>
<li>Who you go to lunch with</li>
<li>Why you and your attractive co-worker really like to visit a certain nice restaurant on a regular basis <img src='http://www.forlinux.co.uk/expertise/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> </li>
</ul>
<p>The potential uses are as limited as your imagination. So before you opt-in consider how your private information is being used.</p>
<p>References<br />
1. http://ilektrojohn.github.com/creepy/</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Creepy%21+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D435" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Creepy%21+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D435" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;title=Creepy%21" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;title=Creepy%21" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;t=Creepy%21" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;t=Creepy%21" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;title=Creepy%21&amp;summary=When+you+next+Tweet%2C+think+about+the+information+you%27re+giving+away.%0D%0A%0D%0AA+new+tool+has+been+developed+that+will+gather+geolocation+related+informat...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;title=Creepy%21&amp;summary=When+you+next+Tweet%2C+think+about+the+information+you%27re+giving+away.%0D%0A%0D%0AA+new+tool+has+been+developed+that+will+gather+geolocation+related+informat...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;title=Creepy%21" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;title=Creepy%21" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;title=Creepy%21" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/&amp;title=Creepy%21" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/05/09/creepy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPanel Releases EasyApache 3.12</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/#comments</comments>
		<pubDate>Tue, 08 May 2012 10:45:40 +0000</pubDate>
		<dc:creator>Michael</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Managed Hosting]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=440</guid>
		<description><![CDATA[EasyApache 3.12 improves CloudLinux’s modhostinglimits, modmono compatibility on CentOS 4, and mod_ruid2 to suPHP support We are excited to announce the release of EasyApache 3.12. The latest version provides numerous updates. CloudLinux’s mod_hostinglimits has been updated to 0.9-5. This will &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>EasyApache 3.12 improves CloudLinux’s modhostinglimits, modmono compatibility on CentOS 4, and mod_ruid2 to suPHP support</p>
<p>We are excited to announce the release of EasyApache 3.12. The latest version provides numerous updates.</p>
<ul>
<li>CloudLinux’s mod_hostinglimits has been updated to 0.9-5. This will impact all of those who use CloudLinux.</li>
<li>The issues caused by the glib2 update when building mod_mono on CentOS4 have been resolved.</li>
<li>Switching between mod_ruid2+DSO to suPHP will no longer cause permission errors that can cause PHP sites to no longer function.</li>
<li>PHP will now use the system time zone database rather than the one built into PHP, which will ensure PHP applications receive timely updates to time zone changes</li>
</ul>
<p>To rebuild the EasyApache profile:</p>
<p>1. Log in to WHM as the root user.<br />
2. Click on the EasyApache (Apache Update) link in the left menu.<br />
3. If you wish to keep the same configuration, simply click Build Profile.</p>
<p>Those unfamiliar with Easapahce may ask the question what is easy apache?<br />
In very simple terms, EasyApache is a command line activated script that allows you to update and reconfigure your Apache web server through WHM or SSH. It is also used to update and configure your PHP installation. Before running EasyApache be sure to update your cPanel and WHM configuration.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+Releases+EasyApache+3.12+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D440" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPanel+Releases+EasyApache+3.12+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D440" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;title=cPanel+Releases+EasyApache+3.12" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;title=cPanel+Releases+EasyApache+3.12" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;t=cPanel+Releases+EasyApache+3.12" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;t=cPanel+Releases+EasyApache+3.12" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;title=cPanel+Releases+EasyApache+3.12&amp;summary=EasyApache+3.12+improves+CloudLinux%E2%80%99s+modhostinglimits%2C+modmono+compatibility+on+CentOS+4%2C+and+mod_ruid2+to+suPHP+support%0D%0A%0D%0AWe+are+excited+to+anno...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;title=cPanel+Releases+EasyApache+3.12&amp;summary=EasyApache+3.12+improves+CloudLinux%E2%80%99s+modhostinglimits%2C+modmono+compatibility+on+CentOS+4%2C+and+mod_ruid2+to+suPHP+support%0D%0A%0D%0AWe+are+excited+to+anno...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;title=cPanel+Releases+EasyApache+3.12" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;title=cPanel+Releases+EasyApache+3.12" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;title=cPanel+Releases+EasyApache+3.12" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/&amp;title=cPanel+Releases+EasyApache+3.12" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/05/08/cpanel-releases-easyapache-3-12/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>How To Investigate A Linux Server Compromise</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/#comments</comments>
		<pubDate>Tue, 01 May 2012 09:02:26 +0000</pubDate>
		<dc:creator>Andy</dc:creator>
				<category><![CDATA[Managed Hosting]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=431</guid>
		<description><![CDATA[Usually the first signs of a server compromise are high processor load. If you have a good monitoring solution in place this should have alerted you. Some common tools that can show the compromised processes running are &#8220;top&#8221; and &#8220;ps&#8221;. &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Usually the first signs of a server compromise are high processor load. If you have a good monitoring solution in place this should have alerted you.</p>
<p>Some common tools that can show the compromised processes running are <strong><em>&#8220;top&#8221;</em></strong> and <strong><em>&#8220;ps&#8221;</em></strong>.<br />
<strong><em>top</em></strong> can show you which processes are using the most CPU time and memory.<br />
<em><strong>ps</strong></em> will show the names of processes currently running. If you look carefully through the output from &#8220;<strong><em>ps fax</em></strong>&#8221; you can see parent and child processes. Often the hackers will start a service and name it with a similar name to an existing service &#8211; for example <strong><em>Apache</em></strong> or <em><strong>Apache2</strong></em>.</p>
<p>You have two options now &#8211; kill the processes or do a quick investigation to capture information about the process before killing it. Here are some steps to capture the compromised commands before we kill them &#8211; that way we can then perform some analysis on them.</p>
<p>Create a directory called &#8221;&#8217;/root/$DATE1&#8221;&#8217; and save all output into there<br />
<em><strong> $ export DATE1=`date +%d-%b-%Y`</strong></em><br />
<em><strong> $ mkdir /root/$DATE1/</strong></em></p>
<p>Try capture all the info below &#8221;&#8217;BEFORE&#8221;&#8217; killing the process &#8211; once its dead all the vital information will be lost.</p>
<p>Run the commands below and save their output into a file in the <strong><em>/root/$DATE1</em></strong> directory:<br />
e.g. <strong><em>$ ps fax &gt; /root/$DATE1/psfax</em></strong></p>
<p><span style="text-decoration: underline;"><strong>Commands to Run</strong></span><br />
Show processes, PID, usernames:<br />
<strong><em>$ ps faxuww</em></strong><br />
<strong><em>  $ ps faxuww &gt; /root/$DATE1/psfaxuww</em></strong></p>
<p>USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND<br />
root      3062  0.0  0.3  20960  6552 ?        Ss   08:28   0:00 /usr/sbin/httpd<br />
apache    3150  0.0  0.1  21092  3456 ?        S    08:28   0:00  \_ /usr/sbin/httpd</p>
<p>Show current time, Process, PID and how long its been running for:<br />
<strong><em> $ date ;  ps -eo pid,cmd,etime </em></strong><br />
<strong><em>  $ date &gt; /root/$DATE1/ps-eo ;  ps -eo pid,cmd,etime &gt;&gt; /root/$DATE1/ps-eo</em></strong></p>
<p>Show whats currently listening for traffic:<br />
<strong><em>$ netstat -npl</em></strong><br />
<strong><em>  $ netstat -npl &gt;  /root/$DATE1/netstat-npl</em></strong></p>
<p>Active Internet connections (only servers)<br />
Proto Recv-Q Send-Q Local Address               Foreign Address             State       PID/Program name<br />
tcp        0      0 :::<strong>80</strong>                       :::*                        LISTEN      <strong>3062/httpd</strong></p>
<p>Show who is currently connected to the server and also outgoing connections:<br />
<strong><em>$ netstat -np</em></strong><br />
<strong><em>  $ netstat -np &gt;  /root/$DATE1/netstat-np</em></strong></p>
<p>Now use the above to find the compromised process. Get the PID from that process. PID is the PROCESS ID &#8211; it can be found in the first column of the &#8220;ps fax&#8221;<br />
<span style="text-decoration: underline;"><strong>$ export PID=&#8221;insert process PID here&#8221;</strong></span></p>
<p>View all files opened by a process, this will help find the directory the process is running from:<br />
<strong><em>$ lsof -p $PID</em></strong><br />
<strong><em> $ lsof -p $PID &gt; /root/$DATE1/lsof-$PID</em></strong></p>
<p>Show all information related to a process:<br />
<em><strong>$ ls -la /proc/$PID/</strong></em><br />
<em><strong>  $ ls -la /proc/$PID/ &gt;  /root/$DATE1/proc-$PID</strong></em></p>
<p>Show the time the process was started. This is a good indication of when the compromise happened:<br />
<em><strong>$ ls -lad /proc/$PID/ </strong></em><br />
<em><strong>  $ ls -lad /proc/$PID/ &gt;  /root/$DATE1/proc-$PID</strong></em></p>
<p>Using the above steps- now try find the location of the compromised files.<br />
if you can find the files use &#8221;&#8217;<strong><em>ls</em></strong>&#8221;&#8217; and &#8221;&#8217;<strong><em>file</em></strong>&#8221;&#8217; on them<br />
-&gt; so we can see who file owner is and what type of file it is.</p>
<p><span style="text-decoration: underline;"><strong>Kill The Processes</strong></span><br />
Make sure you &#8221;&#8217;<strong><em>kill -9</em></strong>&#8221;&#8217; all the compromised processes.</p>
<p><span style="text-decoration: underline;"><strong>Log Files</strong></span><br />
Use the dates and times found above to see if the Apache logs etc show any activity, usually they will be <em><strong>POST</strong></em> requests.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+To+Investigate+A+Linux+Server+Compromise+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D431" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=How+To+Investigate+A+Linux+Server+Compromise+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D431" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;title=How+To+Investigate+A+Linux+Server+Compromise" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;title=How+To+Investigate+A+Linux+Server+Compromise" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;t=How+To+Investigate+A+Linux+Server+Compromise" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;t=How+To+Investigate+A+Linux+Server+Compromise" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;title=How+To+Investigate+A+Linux+Server+Compromise&amp;summary=Usually+the+first+signs+of+a+server+compromise+are+high+processor+load.+If+you+have+a+good+monitoring+solution+in+place+this+should+have+alerted+yo...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;title=How+To+Investigate+A+Linux+Server+Compromise&amp;summary=Usually+the+first+signs+of+a+server+compromise+are+high+processor+load.+If+you+have+a+good+monitoring+solution+in+place+this+should+have+alerted+yo...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;title=How+To+Investigate+A+Linux+Server+Compromise" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;title=How+To+Investigate+A+Linux+Server+Compromise" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;title=How+To+Investigate+A+Linux+Server+Compromise" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/&amp;title=How+To+Investigate+A+Linux+Server+Compromise" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/05/01/how-to-investigate-a-linux-server-compromise/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Goodbye Menus?</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/#comments</comments>
		<pubDate>Mon, 30 Apr 2012 10:02:01 +0000</pubDate>
		<dc:creator>Adrian</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Managed Hosting]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=428</guid>
		<description><![CDATA[On the 26th April, the latest Long Term Support (LTS) version of Ubuntu was released. There are many tweaks and improvements included in version 12.04 (again, sporting one of Ubuntu&#8217;s traditionally silly code names, this time it&#8217;s &#8216;Precise Pangolin&#8217;), but &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>On the 26th April, the latest Long Term Support (LTS) version of Ubuntu was released. There are many tweaks and improvements included in version 12.04 (again, sporting one of Ubuntu&#8217;s traditionally silly code names, this time it&#8217;s &#8216;Precise Pangolin&#8217;), but one that&#8217;s garnered the most attention is the HUD, or Head-Up Display, that is meant to eventually replace the use of menus in Ubuntu.</p>
<p>The key idea behind this proposed change is, finding something on a menu requires you to know which menu to check, which can result in wasted time while you look for the right menu. The HUD removes this need, as you can just press the ALT key to load the search bar, and then type in whatever you are looking for, without any need to know where it&#8217;s located.</p>
<p>As with many recent desktop changes in Linux, this seems to be a further move towards a more Mac-like environment, as it&#8217;s essentially very similar to the &#8216;Spotlight&#8217; function in OS X. The current version of Ubuntu retains menus for the moment, but the eventual aim is to remove menus entirely. Whether this move to a menu-less desktop is generally accepted, or greatly reviled like the switch to the Unity desktop, remains to be seen. Certainly, some early adopters seem to have become enthusiastic converts and evangelise about the ease with which you can now search for anything. But, only time will tell if Mr Shuttleworth and the developers at Canonical have really taken the first step towards killing off the menu on the desktop.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Goodbye+Menus%3F+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D428" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Goodbye+Menus%3F+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D428" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;title=Goodbye+Menus%3F" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;title=Goodbye+Menus%3F" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;t=Goodbye+Menus%3F" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;t=Goodbye+Menus%3F" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;title=Goodbye+Menus%3F&amp;summary=On+the+26th+April%2C+the+latest+Long+Term+Support+%28LTS%29+version+of+Ubuntu+was+released.+There+are+many+tweaks+and+improvements+included+in+version+12...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;title=Goodbye+Menus%3F&amp;summary=On+the+26th+April%2C+the+latest+Long+Term+Support+%28LTS%29+version+of+Ubuntu+was+released.+There+are+many+tweaks+and+improvements+included+in+version+12...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;title=Goodbye+Menus%3F" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;title=Goodbye+Menus%3F" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;title=Goodbye+Menus%3F" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/&amp;title=Goodbye+Menus%3F" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/04/30/goodbye-menus/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cPhulkd &#8211; How to Remove a Block</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/#comments</comments>
		<pubDate>Wed, 25 Apr 2012 11:01:12 +0000</pubDate>
		<dc:creator>Chris</dc:creator>
				<category><![CDATA[Managed Hosting]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=424</guid>
		<description><![CDATA[If you&#8217;ve been blocked by cPhulkd (cPanel&#8217;s brute force detection) then you can still login to the server via the command line, this means you can remove your IP address from being blocked by cPanel by accessing the database. The &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you&#8217;ve been blocked by cPhulkd (cPanel&#8217;s brute force detection) then you can still login to the server via the command line, this means you can remove your IP address from being blocked by cPanel by accessing the database.</p>
<p>The cPhulkd database within mysql is aptly named : &#8220;cphulkd&#8221;. You can view any IP addresses which have been blocked by using the MySQL query:</p>
<p>SELECT * FROM brutes;</p>
<p>If your IP address is then blocked you can remove the block by using the MySQL query:</p>
<p>DELETE FROM brutes WHERE IP = &#8216;YOUR-IP-ADDRESS-HERE&#8217;;</p>
<p>This will then allow you to login to cPanel again and you won&#8217;t have to remove all of the IP addresses meaning other people who have attempted to brute won&#8217;t also be allowed back in.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPhulkd+%E2%80%93+How+to+Remove+a+Block+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D424" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=cPhulkd+%E2%80%93+How+to+Remove+a+Block+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D424" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;title=cPhulkd+%E2%80%93+How+to+Remove+a+Block" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;title=cPhulkd+%E2%80%93+How+to+Remove+a+Block" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;t=cPhulkd+%E2%80%93+How+to+Remove+a+Block" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;t=cPhulkd+%E2%80%93+How+to+Remove+a+Block" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;title=cPhulkd+%E2%80%93+How+to+Remove+a+Block&amp;summary=If+you%27ve+been+blocked+by+cPhulkd+%28cPanel%27s+brute+force+detection%29+then+you+can+still+login+to+the+server+via+the+command+line%2C+this+means+you+can+...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;title=cPhulkd+%E2%80%93+How+to+Remove+a+Block&amp;summary=If+you%27ve+been+blocked+by+cPhulkd+%28cPanel%27s+brute+force+detection%29+then+you+can+still+login+to+the+server+via+the+command+line%2C+this+means+you+can+...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;title=cPhulkd+%E2%80%93+How+to+Remove+a+Block" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;title=cPhulkd+%E2%80%93+How+to+Remove+a+Block" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;title=cPhulkd+%E2%80%93+How+to+Remove+a+Block" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/&amp;title=cPhulkd+%E2%80%93+How+to+Remove+a+Block" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/04/25/cphulkd-how-to-remove-a-block/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Piping (aka Pipeline)</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/#comments</comments>
		<pubDate>Fri, 20 Apr 2012 10:40:04 +0000</pubDate>
		<dc:creator>Mirek</dc:creator>
				<category><![CDATA[Managed Hosting]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=420</guid>
		<description><![CDATA[It&#8217;s not about plumbing – it&#8217;s linux shell commands and its special construction allowing to pass the output from one command right to input of another one creating a pipeline (command chains). Everyone who ever came across administration of a &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s not about plumbing – it&#8217;s linux shell commands and its special construction allowing to pass the output from one command right to input of another one creating a pipeline (command chains). Everyone who ever came across administration of a computer system knows how useful this can be! But you don&#8217;t have to be an administrator to use and appreciate this functionality – it can help you with everything, speeding up your work.<br />
The real power of shell is that you get lots of small programs doing lots of small things – you can then connect them together to build another greater program, which then again could be used to build another, even bigger script. Who said that administration can&#8217;t be creative?<br />
But this time lets stick to basics;</p>
<p>A pipeline is created by putting “|” char in between commands.</p>
<p>Example:</p>
<p>find ~/ -iname &#8216;*.jpg&#8217; -type f -atime +30</p>
<p>This command will find all files (only) in the user home directory with extension .jpg that were last accessed more than a month a go.<br />
Now, lets say that you want to delete these files. If doing it by hand it would take ages – imagine if there were around 500 files to be deleted in various directories! With great help comes the pipeline – lets just add the rm command and redirect output from find command to it.</p>
<p>find ~/ -iname &#8216;*.jpg&#8217; -type f -atime +30 | xargs rm</p>
<p>So now, as you see, we&#8217;ve added “|” char, and right after that we&#8217;ve added new commands. Now all output is redirected to rm which will remove each file. Command xargs is there to run rm and pass to it the output from find. This could also be achieved in other ways.</p>
<p>The example below shows another approach to piping using output from find. This one is actually compressing all folders in home – no doubt useful when there is a 100 of them. It&#8217;s not using typical piping construction and all is controlled by find command that takes tar command as an -exec argument and runs it for every folder found replacing {} with name of the folder.</p>
<p>find ~/* -maxdepth 1 -type d -exec tar -jvcf &#8216;{}-ARCH.tgz&#8217; &#8216;{}&#8217; \;</p>
<p>The possibilities are endless and limited only by yourself. This could be archiving those files or just sending report to a user by email.</p>
<p>Here are more examples below:</p>
<p>grep -l KEYWORD * | xargs rm</p>
<p>This will remove all files in the current directory that contain the KEYWORD in it – helpful when you want get rid of all undelivered or removed emails.</p>
<p>ps aux | grep guest | grep -v grep | awk &#8216;{print $2}&#8217;</p>
<p>This set will display PIDs of all running processes of guest user – now we could just add | xargs kill to finish them.</p>
<p>And finally, to demonstrate some more power and complexity I&#8217;d like to share here an example that I&#8217;ve found on the internet (wikipedia.org):</p>
<p>curl &#8220;http://en.wikipedia.org/wiki/Pipeline_(Unix)&#8221; | \<br />
sed &#8216;s/[^a-zA-Z ]/ /g&#8217; | \<br />
tr &#8216;A-Z &#8216; &#8216;a-z\n&#8217; | \<br />
grep &#8216;[a-z]&#8216; | \<br />
sort -u | \<br />
comm -23 &#8211; /usr/share/dict/words</p>
<p>Here is what it does:<br />
curl    reads the HTML from a web page,<br />
sed    replaces all chars that aren&#8217;t spac93.174.137.179es or content of the website with spaces,<br />
tr    brings all to lower case and converts spaces to new lines,<br />
grep    selects only those lines that have at least 1 lower case char and removes empty lines,<br />
sort    sort all the words in an alphabetical order and removes all duplicates (-u),<br />
comm    finds common lines for two files, removes all lines present in second file (-23), the common ones, leaving only unique ones from first file, char “–“ tells it to             read from pipeline.</p>
<p>Backslash (“\”) on the end of each line allows you to write in many lines as if it was one line. This way you could check the spelling on whole web page just from the command line.</p>
<p>The number of available commands and the fact that everyone has specific syntax makes it a bit difficult in the beginning, but it will pay back later.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Piping+%28aka+Pipeline%29+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D420" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Piping+%28aka+Pipeline%29+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D420" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;title=Piping+%28aka+Pipeline%29" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;title=Piping+%28aka+Pipeline%29" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;t=Piping+%28aka+Pipeline%29" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;t=Piping+%28aka+Pipeline%29" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;title=Piping+%28aka+Pipeline%29&amp;summary=It%27s+not+about+plumbing+%E2%80%93+it%27s+linux+shell+commands+and+its+special+construction+allowing+to+pass+the+output+from+one+command+right+to+input+of+ano...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;title=Piping+%28aka+Pipeline%29&amp;summary=It%27s+not+about+plumbing+%E2%80%93+it%27s+linux+shell+commands+and+its+special+construction+allowing+to+pass+the+output+from+one+command+right+to+input+of+ano...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;title=Piping+%28aka+Pipeline%29" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;title=Piping+%28aka+Pipeline%29" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;title=Piping+%28aka+Pipeline%29" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/&amp;title=Piping+%28aka+Pipeline%29" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/04/20/piping-aka-pipeline/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>UEFI Secure Boot</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/#comments</comments>
		<pubDate>Wed, 18 Apr 2012 08:56:34 +0000</pubDate>
		<dc:creator>David</dc:creator>
				<category><![CDATA[Managed Hosting]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=417</guid>
		<description><![CDATA[What Is It? It is a system where by unauthorised code (such as viruses and other malware) cannot be run on boot. This should make computers more secure but it also locks down the computer from running programs like the &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong><span style="text-decoration: underline;">What Is It?</span></strong><br />
It is a system where by unauthorised code (such as viruses and other malware) cannot be run on boot. This should make computers more secure but it also locks down the computer from running programs like the GRUB boot loader without some tinkering being done by the user. Microsoft are pushing for OEMs to use UEFI as standard for their Windows 8 operating system.</p>
<p><span style="text-decoration: underline;"><strong>How Does It Work?</strong></span><br />
Put simply, it will include sets of cryptographic keys that allows the UEFI firmware to recognise if hardware drivers, operating systems and whatever else it needs have valid signatures and if they&#8217;re allowed to be run. These keys are called: Platform Key (PK), which is installed by the PC makers in the system firmware during manufacturing and “Key-Exchange Keye” (KEKs) which are controlled by OEMs and OS vendors (Microsoft being the major pushers for UEFI), these are used to validate the OS and drivers.</p>
<p><strong><span style="text-decoration: underline;">Is This So Bad?</span></strong><br />
The main advantage of Secure Boot is that systems become much more secure as malware that runs at boot, which even the best anti-virus program would struggle to eradicate, will no longer be able to start. However it will make it a lot more difficult to install another (Linux based) operating system on top of the pre-installed Windows 8 installation. Further to this, people who want to infect a user&#8217;s PC will find a way around this system just like they always do. Also one update a user runs that doesn&#8217;t have the correct key could render their OS unbootable as the Secure Boot will not recognise it as authorised</p>
<p><span style="text-decoration: underline;"><strong>Other&#8217;s Views</strong></span><br />
The Linux Foundation (LF) and RedHat/Canonical (RH/C) have produced documents outlining their view on Secure Boot. RH/C want there to be an ability to disable Secure Boot restrictions in order to keep Linux running on such a vast range of hardware. LF and RH/C would like the ability to add new KEKs to the firmware to allow for other OS to be booted than Windows 8 but it would also satisfy the requirements for the coveted and lucrative Windows logo.</p>
<p>You can read both PDF documents at the following locations:<br />
<a href="www.linuxfoundation.org/publications/making-uefi-secure-boot-work-with-open-platforms" target="_blank">www.linuxfoundation.org/publications/making-uefi-secure-boot-work-with-open-platforms</a><br />
<a href="http://ozlabs.org/docs/uefi-secure-boot-impact-on-linux.pdf" target="_blank">http://ozlabs.org/docs/uefi-secure-boot-impact-on-linux.pdf</a></p>
<p><span style="text-decoration: underline;"><strong>Conclusion</strong></span><br />
UEFI is a very good security feature that will enhance the safety of a user. However, unless the conditions RH/C and LF are added/utilised it is feasible that PCs could become closed systems with the only way to get an OS you want is to buy all the components and build one yourself. Which may not be a terrible thing anyway.</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=UEFI+Secure+Boot+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D417" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=UEFI+Secure+Boot+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D417" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;title=UEFI+Secure+Boot" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;title=UEFI+Secure+Boot" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;t=UEFI+Secure+Boot" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;t=UEFI+Secure+Boot" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;title=UEFI+Secure+Boot&amp;summary=What+Is+It%3F%0D%0AIt+is+a+system+where+by+unauthorised+code+%28such+as+viruses+and+other+malware%29+cannot+be+run+on+boot.+This+should+make+computers+more+s...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;title=UEFI+Secure+Boot&amp;summary=What+Is+It%3F%0D%0AIt+is+a+system+where+by+unauthorised+code+%28such+as+viruses+and+other+malware%29+cannot+be+run+on+boot.+This+should+make+computers+more+s...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;title=UEFI+Secure+Boot" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;title=UEFI+Secure+Boot" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;title=UEFI+Secure+Boot" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/&amp;title=UEFI+Secure+Boot" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/04/18/uefi-secure-boot/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Reading RSS Feeds From Multiple Feeds Using Zend Feed</title>
		<link>http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/</link>
		<comments>http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/#comments</comments>
		<pubDate>Mon, 16 Apr 2012 09:37:14 +0000</pubDate>
		<dc:creator>Tom</dc:creator>
				<category><![CDATA[Managed Hosting]]></category>

		<guid isPermaLink="false">http://www.forlinux.co.uk/expertise/blog/?p=414</guid>
		<description><![CDATA[Using one method to read from multiple RSS feeds by using one standard coding method may cause problems. This is because there are different types of feeds. One could be an atom feed and the other an RSS feed, and &#8230; <a href="http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Using one method to read from multiple RSS feeds by using one standard coding method may cause problems. This is because there are different types of feeds. One could be an atom feed and the other an RSS feed, and each has a slightly different XML structure. Using a standard class like Zend_Feed overcomes this problem by detecting the type of feed and returning a standard object. Below is a simple example of how to achieve this:</p>
<p>$feed = &#8216;http://status.forlinux.co.uk/feeds/posts/default&#8217;;</p>
<p>// import a feed from a uri<br />
$zendFeed = Zend_Feed_Reader::import($feed);</p>
<p>// Store data in array<br />
$data = array(<br />
&#8216;title&#8217;        =&gt; $zendFeed-&gt;getTitle(),<br />
&#8216;link&#8217;         =&gt; $zendFeed-&gt;getLink(),<br />
&#8216;dateModified&#8217; =&gt; $zendFeed-&gt;getDateModified(),<br />
&#8216;description&#8217;  =&gt; $zendFeed-&gt;getDescription(),<br />
&#8216;language&#8217;     =&gt; $zendFeed-&gt;getLanguage(),<br />
&#8216;entries&#8217;      =&gt; array(),<br />
);</p>
<p>foreach ($zendFeed as $entry) {<br />
$edata = array(<br />
&#8216;title&#8217;        =&gt; $entry-&gt;getTitle(),<br />
&#8216;description&#8217;  =&gt; $entry-&gt;getDescription(),<br />
&#8216;dateModified&#8217; =&gt; $entry-&gt;getDateModified(),<br />
&#8216;authors&#8217;      =&gt; $entry-&gt;getAuthors(),<br />
&#8216;link&#8217;         =&gt; $entry-&gt;getLink(),<br />
&#8216;content&#8217;      =&gt; $entry-&gt;getContent()<br />
);<br />
$data['entries'][] = $edata;<br />
}</p>
<p>// Output feed data to screen.<br />
var_dump($data);</p>
<div class="tweetthis" style="text-align:left;"><p> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D414" title="Post to Twitter"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/twitter/tt-twitter.png" alt="Post to Twitter" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://twitter.com/intent/tweet?text=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed+http%3A%2F%2Fforlinux.co.uk%2Fexpertise%2Fblog%2F%3Fp%3D414" title="Post to Twitter">Tweet This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;title=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed" title="Post to Digg"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/digg/tt-digg.png" alt="Post to Digg" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://digg.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;title=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed" title="Post to Digg">Digg This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;t=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed" title="Post to Facebook"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/facebook/tt-facebook.png" alt="Post to Facebook" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.facebook.com/share.php?u=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;t=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed" title="Post to Facebook">Post to Facebook</a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;title=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed&amp;summary=Using+one+method+to+read+from+multiple+RSS+feeds+by+using+one+standard+coding+method+may+cause+problems.+This+is+because+there+are+different+types+...&amp;source=ForLinux Blog" title="Post to LinkedIn"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/linkedin/tt-linkedin.png" alt="Post to LinkedIn" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;title=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed&amp;summary=Using+one+method+to+read+from+multiple+RSS+feeds+by+using+one+standard+coding+method+may+cause+problems.+This+is+because+there+are+different+types+...&amp;source=ForLinux Blog" title="Post to LinkedIn">Post to LinkedIn</a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;title=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed" title="Post to Reddit"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/reddit/tt-reddit.png" alt="Post to Reddit" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://reddit.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;title=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed" title="Post to Reddit">Post to Reddit</a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;title=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed" title="Post to StumbleUpon"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/su/tt-su.png" alt="Post to StumbleUpon" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://stumbleupon.com/submit?url=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/&amp;title=Reading+RSS+Feeds+From+Multiple+Feeds+Using+Zend+Feed" title="Post to StumbleUpon">Stumble This Post</a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/" title="Post to Technorati"><img class="nothumb" src="http://www.forlinux.co.uk/expertise/blog/wp-content/plugins/tweet-this/icons/en/technorati/tt-technorati.png" alt="Post to Technorati" /></a> <a target="_blank" rel="nofollow" class="tt" href="http://technorati.com/faves?add=http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/" title="Post to Technorati">Post to Technorati</a></p></div>]]></content:encoded>
			<wfw:commentRss>http://www.forlinux.co.uk/expertise/blog/2012/04/16/reading-rss-feeds-from-multiple-feeds-using-zend-feed/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

