<?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>Alex Sleat &#187; HowTo</title>
	<atom:link href="http://alexsleat.co.uk/category/howto/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexsleat.co.uk</link>
	<description>/home/alex</description>
	<lastBuildDate>Tue, 07 Feb 2012 12:12:40 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=</generator>
		<item>
		<title>Heat Management in Linux</title>
		<link>http://alexsleat.co.uk/2012/01/11/heat-management-in-linux/</link>
		<comments>http://alexsleat.co.uk/2012/01/11/heat-management-in-linux/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 12:40:14 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[heat]]></category>
		<category><![CDATA[hot]]></category>
		<category><![CDATA[laptop]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[notebook]]></category>
		<category><![CDATA[over heating]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=26366</guid>
		<description><![CDATA[<br/><p>When you first switch from Windows or OSX to Linux, one of the things you&#8217;ll probably first notice (especially if you&#8217;re using a laptop) is that it can run considerably hotter than the alternatives. There are a few things you can do to remedy this, however. The following software packages help you keep track [...]]]></description>
			<content:encoded><![CDATA[<br/><p>When you first switch from Windows or OSX to Linux, one of the things you&#8217;ll probably first notice (especially if you&#8217;re using a laptop) is that it can run considerably hotter than the alternatives. There are a few things you can do to remedy this, however. The following software packages help you keep track of and cool down your laptop/netbook, how much will depend per machine but my HP Pavilion dm1 goes from around 60-70degrees without these tools installed to around 50-60degrees and the same goes for my older Acer Travelmate which dropped from 70-80degrees to 60-70degrees. Hopefully this information will help you shave off 10degrees from your laptop, making it cooler, easier to use and hopefully extending its life a little too!</p>
<h5>lm-sensors</h5>
<p>First thing that you&#8217;re going to want to do is be able to see what the temperature readings of the components (that have temperature sensors) inside your computer/laptop. This can be done by installing lm-sensors:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> apt-get <span class="kw2">install</span> lm-sensors</div>
<p>Now you&#8217;ll want to run the script which probes all the possible sensors in your laptop:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> sensors-detect</div>
<p>You&#8217;ll be asked if you want to scan for sensors and what not, follow the on-screen instructions, mostly just pressing enter, if YES is written in capitals this is the default answer and it will scan. After several times it&#8217;ll ask you if you want to save the changes, make sure you do and then you&#8217;re done.</p>
<p>Now you can see the temperature the sensors are reading by using the following command:</p>
<div class="dean_ch" style="white-space: wrap;">sensors</div>
<h5>cpufreq</h5>
<p>cpufreq is a utility which scales the frequency of the CPU, either by monitoring the systems status (if it needs more, it&#8217;ll get more) or by user controlled settings. This essentially underclocks the CPU while it isn&#8217;t in use, reducing power usage and thus heat.</p>
<p>Installation:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> apt-get <span class="kw2">install</span> cpufreq</div>
<p>The best choice would be to set cpufreq to on-demand (default) or to power-saving. Alternatively, if you&#8217;re using a laptop or netbook let jupiter take care of it for you:</p>
<h5>jupiter</h5>
<blockquote><p><a href="http://www.jupiterapplet.org/">Jupiter</a> is a light weight power and hardware control applet for Linux.  It is designed to improve battery life of a portable Linux computer by integrating with the operating system and changing parameters of the computer based on battery or powered connection.</p>
<p>Additionally, Jupiter provides quick access to some of the commonly needed hardware controls like screen output and resolution, WIFI, and bluetooth.</p>
<p>If you use Linux on a portable computer, let Jupiter take the effort out of going mobile.</p></blockquote>
<p>By using this to intelligently control the CPU frequency when on battery and AC along with the tuning to the kernel and hardware, it can make a huge difference to the temperature expelled by your laptop.</p>
<p>Ubuntu 11:10 installation instructions: <a href="http://www.webupd8.org/2011/09/jupiter-applet-finally-available-for.html">here</a></p>
<h5>Graphics Card Drivers</h5>
<p>If you have a dedicated graphics card in your laptop, you&#8217;ll also be better off installing the proprietary graphics drivers provided by the hardware vendor. While the open source ones do an awesome job of getting the card to work, more often than not they don&#8217;t include any control over the frequency scaling and keep the card running at max, along with all those other little features the card has, they&#8217;ll probably all always be running.</p>
<p><strong>Nvidia</strong> : <a href="http://www.nvidia.com/object/unix.html">Link</a><br />
<strong>ATI/AMD</strong> : <a href="http://support.amd.com/us/gpudownload/Pages/index.aspx">Link </a></p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2012/01/11/heat-management-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Updating The Kernel in Ubuntu</title>
		<link>http://alexsleat.co.uk/2012/01/11/updating-the-kernel-in-ubuntu/</link>
		<comments>http://alexsleat.co.uk/2012/01/11/updating-the-kernel-in-ubuntu/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 12:35:25 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[check kernel verison]]></category>
		<category><![CDATA[dpkg]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=26414</guid>
		<description><![CDATA[<br/>Download the latest from here: <p>http://kernel.ubuntu.com/~kernel-ppa/mainline/</p> <p>The folders correspond to kernel versions and should also include the ubuntu version, for example I chose to update 11.10 (oneiric) from &#8220;3.0.0-14-generic&#8221; to &#8220;3.1.4&#8243;, this was in a directory called &#8220;v3.1.4-oneiric/&#8220;.</p> You&#8217;ll need 3 files (replace * with the kernel version you&#8217;ve downloaded): <p>linux-headers-*_all.deb</p> For 64 bit [...]]]></description>
			<content:encoded><![CDATA[<br/><h6>Download the latest from here:</h6>
<p><a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/">http://kernel.ubuntu.com/~kernel-ppa/mainline/</a></p>
<p>The folders correspond to kernel versions and should also include the ubuntu version, for example I chose to update 11.10 (oneiric) from &#8220;3.0.0-14-generic&#8221; to &#8220;3.1.4&#8243;, this was in a directory called &#8220;<a href="http://kernel.ubuntu.com/~kernel-ppa/mainline/">v3.1.4-oneiric/</a>&#8220;.</p>
<h6>You&#8217;ll need 3 files <em>(replace * with the kernel version you&#8217;ve downloaded)</em>:</h6>
<p>linux-headers-*_all.deb</p>
<h6>For 64 bit systems <em>(replace * with the kernel version you&#8217;ve downloaded)</em>:</h6>
<p>linux-headers-*_amd64.deb<br />
linux-image-*_amd64.deb</p>
<h6>For 32 bit systems <em>(replace * with the kernel version you&#8217;ve downloaded)</em>:</h6>
<p>linux-headers-*_i386.deb<br />
linux-image-*_i386.deb</p>
<h6>Once you have the files, install them in the following order using these commands <em>(of course, replacing the version number for the ones you&#8217;ve downloaded)</em>:</h6>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> dpkg -U linux-headers<span class="nu0">-3.1</span><span class="nu0">.4</span>-030104_3<span class="nu0">.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>.201111281851_all.deb<br />
<span class="kw2">sudo</span> dpkg -U linux-headers<span class="nu0">-3.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>-generic_3<span class="nu0">.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>.201111281851_amd64.deb<br />
<span class="kw2">sudo</span> dpkg -U linux-image<span class="nu0">-3.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>-generic_3<span class="nu0">.1</span><span class="nu0">.4</span><span class="nu0">-030104</span>.201111281851_amd64.deb</div>
<p>Once that&#8217;s done, reboot. Once you&#8217;re back use the following command to check that the kernel you&#8217;re using is the one you&#8217;ve just downloaded and installed!</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">uname</span> -r</div>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2012/01/11/updating-the-kernel-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting Up Surround Sound in Linux</title>
		<link>http://alexsleat.co.uk/2011/12/03/setting-up-surround-sound-in-linux/</link>
		<comments>http://alexsleat.co.uk/2011/12/03/setting-up-surround-sound-in-linux/#comments</comments>
		<pubDate>Sat, 03 Dec 2011 13:21:41 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[5.1]]></category>
		<category><![CDATA[7.1]]></category>
		<category><![CDATA[cm106]]></category>
		<category><![CDATA[easy]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mint]]></category>
		<category><![CDATA[quick]]></category>
		<category><![CDATA[set up]]></category>
		<category><![CDATA[simple]]></category>
		<category><![CDATA[speakers]]></category>
		<category><![CDATA[surround sound]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=24714</guid>
		<description><![CDATA[<br/><p>It&#8217;s been a while since I bothered, the reason being it&#8217;s always seemed like an un-worthwhile struggle to get it working but either things changed or I was doing something to overcomplicate the process but it&#8217;s actually pretty simple to get surround sound up and running on your Linux machine. Now, I&#8217;m not going [...]]]></description>
			<content:encoded><![CDATA[<br/><p>It&#8217;s been a while since I bothered, the reason being it&#8217;s always seemed like an un-worthwhile struggle to get it working but either things changed or I was doing something to overcomplicate the process but it&#8217;s actually pretty simple to get surround sound up and running on your Linux machine. Now, I&#8217;m not going to go in to how to install the drivers for your specific sound card, because there are so many and I don&#8217;t have them all and most times on most popular distributions (Debian, Ubuntu, Mint, Fedora, OpenSuse etc) you&#8217;re going to notice that the sound card is actually already supported. What I will be doing is showing you how easy it was to get my 5.1&#8242;s set up (and the same will be said for 7.1&#8242;s).</p>
<h6>Step 1:</h6>
<p>First off you&#8217;re going to want to edit the pulseaudio configuration file to add the number of speakers you&#8217;re using, it&#8217;s default is set to 2.</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> gedit /etc/pulse/daemon.conf</div>
<p>Near the bottom of the file, there will be a line which looks like this:</p>
<blockquote><p>;default-sample-channels = 2</p></blockquote>
<p>The semi-colon is a comment, so this line isn&#8217;t actually doing anything unless you remove that. I would suggest leaving that line alone and adding a new line at the bottom:</p>
<blockquote><p>default-sample-channels = 6</p></blockquote>
<p>If you&#8217;re using 5.1&#8242;s the number of channels will be 6, 7.1&#8242;s will be 8 and I think you get where I&#8217;m going with this? So in this example, I&#8217;m using 5.1&#8242;s.</p>
<p>Now save and close that file. You&#8217;ll need to reboot your system now too, so that these changes will take effect.</p>
<h6>Step 2:</h6>
<p>So you&#8217;re back? Good..</p>
<p>Now you&#8217;re going to want to open up the Sound Preferences, usually you can do this by clicking on the little sound icon in your panel, or System > Preference > Sounds from the menu.</p>
<p><a href="http://alexsleat.co.uk/wp-content/uploads/2011/12/Screenshot-Sound-Preferences.png"><img src="http://alexsleat.co.uk/wp-content/uploads/2011/12/Screenshot-Sound-Preferences.png" alt="" title="Screenshot-Sound Preferences" width="678" height="594" class="aligncenter size-full wp-image-24716" /></a></p>
<p>From here, you&#8217;ll want to click on the Hardware tab. Near the bottom it&#8217;ll say Profile: with a drop down box next to it. Here you can select the type of set up you have, as you can see in the screenshot I have an &#8220;Analogue Surround 5.1 Output&#8221;, yours might be different and that&#8217;s cool and if you don&#8217;t know feel free to try a few out. Next to that drop down box is a button which says &#8220;Test Speakers&#8221;, this didn&#8217;t work for me so I have to use an <a href="http://www.youtube.com/watch?v=w0eaV8r-nXQ">online test</a> but give it a try as it might work!</p>
<p><a href="http://alexsleat.co.uk/wp-content/uploads/2011/12/Screenshot-Speaker-Testing-for-CM106-Like-Sound-Device.png"><img src="http://alexsleat.co.uk/wp-content/uploads/2011/12/Screenshot-Speaker-Testing-for-CM106-Like-Sound-Device.png" alt="" title="Screenshot-Speaker Testing for CM106 Like Sound Device" width="457" height="395" class="aligncenter size-full wp-image-24719" /></a></p>
<p>That&#8217;s it, you should be done!</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/12/03/setting-up-surround-sound-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux Media Players And Flash Not Stopping The Screensaver</title>
		<link>http://alexsleat.co.uk/2011/11/11/linux-media-players-and-flash-not-stopping-the-screensaver/</link>
		<comments>http://alexsleat.co.uk/2011/11/11/linux-media-players-and-flash-not-stopping-the-screensaver/#comments</comments>
		<pubDate>Fri, 11 Nov 2011 21:23:12 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[caffeine]]></category>
		<category><![CDATA[debian]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fedora flash screensaver]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[gnome]]></category>
		<category><![CDATA[gnome media player]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[kde]]></category>
		<category><![CDATA[kubuntu]]></category>
		<category><![CDATA[linux flash screensaver]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[opensuse]]></category>
		<category><![CDATA[power management]]></category>
		<category><![CDATA[red hat]]></category>
		<category><![CDATA[screen saver]]></category>
		<category><![CDATA[screensaver]]></category>
		<category><![CDATA[totem]]></category>
		<category><![CDATA[turn off screensaver]]></category>
		<category><![CDATA[ubuntu flash screensaver]]></category>
		<category><![CDATA[ubuntu mplayer screensaver]]></category>
		<category><![CDATA[ubuntu vlc screensaver]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[vlc]]></category>
		<category><![CDATA[xfce]]></category>
		<category><![CDATA[xubuntu]]></category>
		<category><![CDATA[youtube]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=23468</guid>
		<description><![CDATA[<br/><p>It&#8217;s a pretty common problem, one which could be solved by pretty much the following sentence: &#8216;[Insert Linux Distro], [Insert Media Player] not stopping screen saver when playing videos.&#8217; And, yeah, it&#8217;s very annoying. Something that should have been fixed thousands of releases ago, just like most common Linux problems. Luckily though there is [...]]]></description>
			<content:encoded><![CDATA[<br/><p>It&#8217;s a pretty common problem, one which could be solved by pretty much the following sentence: &#8216;[Insert Linux Distro], [Insert Media Player] not stopping screen saver when playing videos.&#8217; And, yeah, it&#8217;s very annoying. Something that should have been fixed thousands of releases ago, just like most common Linux problems. Luckily though there is a fix, it&#8217;s easy and it&#8217;s awesome.</p>
<p>Introducing: Caffeine, &#8220;An application to temporarily prevent the activation of both the screen saver and the &#8220;sleep&#8221; powersaving mode.&#8221; &#8211; <a href="https://launchpad.net/caffeine">https://launchpad.net/caffeine</a></p>
<p>Essentially what this program does is look for processes running on your machine (you can do this too, just run &#8216;ps -A&#8217; in a terminal emulator to see a list of everything), so you set process names which the program should look out for, for example &#8216;vlc&#8217; and when there is a process with this name Caffeine disables the screensaver, when the process stops the screensaver is re-enabled. It even comes with a little tray icon which allows you to manual enable or disable the screensaver/power management with a single click.</p>
<h6>Installation (Ubuntu):</h6>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> add-apt-repository ppa:caffeine-developers/ppa<br />
<span class="kw2">sudo</span> apt-get update<br />
<span class="kw2">sudo</span> apt-get <span class="kw2">install</span> caffeine</div>
<h6>Usage:</h6>
<p>You&#8217;ll be able to see if caffeine is running by the tray icon the first time you use it (this can be disabled in the settings).</p>
<div id="attachment_23469" class="wp-caption aligncenter" style="width: 235px"><a href="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-210740.png"><img class="size-full wp-image-23469 " title="Screenshot - 111111 - 21:07:40" src="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-210740.png" alt="" width="225" height="137" /></a><p class="wp-caption-text">Caffeine Running (Screensaver / Power Management Enabled)</p></div>
<div id="attachment_23470" class="wp-caption aligncenter" style="width: 235px"><a href="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-210750.png"><img class="size-full wp-image-23470 " title="Screenshot - 111111 - 21:07:50" src="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-210750.png" alt="" width="225" height="137" /></a><p class="wp-caption-text">Caffeine Running (Right Click Settings)</p></div>
<div id="attachment_23471" class="wp-caption aligncenter" style="width: 235px"><a href="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-210806.png"><img class="size-full wp-image-23471 " title="Screenshot - 111111 - 21:08:06" src="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-210806.png" alt="" width="225" height="137" /></a><p class="wp-caption-text">Caffeine Running (Screensaver / Power Management Disabled)</p></div>
<h6>Adding Processes:</h6>
<p>To add a process which will disable the screensaver from being activated, for example VLC so we can watch a movie without constantly having to wiggle the mouse:</p>
<p>First, run VLC (or whatever other media player you wish and just replace VLC for that for the other few steps)</p>
<p>Next, right click on the Caffeine tray icon and select &#8220;Preference&#8221;.</p>
<p>Click the &#8220;Add&#8221; button.</p>
<div id="attachment_23473" class="wp-caption aligncenter" style="width: 413px"><a href="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-211455.png"><img class="size-full wp-image-23473" title="Screenshot - 111111 - 21:14:55" src="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-211455.png" alt="" width="403" height="518" /></a><p class="wp-caption-text">List of processes already disabling the screensaver, note Totem is added here.</p></div>
<p>You should be greeted by a list of the running processes, select the name of the media player (this case, vlc) if it isn&#8217;t there check under the &#8220;Recent Processes&#8221; tab or alternatively just write the command you would use to run this program from the command line.</p>
<div id="attachment_23474" class="wp-caption aligncenter" style="width: 412px"><a href="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-211525.png"><img class="size-full wp-image-23474" title="Screenshot - 111111 - 21:15:25" src="http://alexsleat.co.uk/wp-content/uploads/2011/11/Screenshot-111111-211525.png" alt="" width="402" height="521" /></a><p class="wp-caption-text">Adding VLC to processes to disable the screensaver.</p></div>
<p>Finally click the &#8220;Add&#8221; button and close the preferences window, that pesky screensaver should no longer be bothering you!</p>
<h6>Stopping Flash from enabling the screensaver:</h6>
<p>Okay, this is actually really easy, if you&#8217;re using Chromium or Google Chrome or Firefox, you&#8217;ll just want to add the processes <em>&#8216;npviewer.bin&#8217;</em> to list, you can use the above instructions to do so. </p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/11/11/linux-media-players-and-flash-not-stopping-the-screensaver/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fedora 15 Post Installation Guide</title>
		<link>http://alexsleat.co.uk/2011/05/31/fedora-15-post-installation-guide/</link>
		<comments>http://alexsleat.co.uk/2011/05/31/fedora-15-post-installation-guide/#comments</comments>
		<pubDate>Tue, 31 May 2011 09:49:05 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[15]]></category>
		<category><![CDATA[32bit]]></category>
		<category><![CDATA[64bit]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[post install]]></category>
		<category><![CDATA[set up]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=16465</guid>
		<description><![CDATA[<br/>Install RPM Fusion su -c &#8216;yum localinstall &#8211;nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm&#8217; <p>&#8211; http://rpmfusion.org/Configuration</p> Enable unsupported video and audio codecs <p>Get enhanced audio and video support in applications that rely on GStreamer:</p> sudo yum install gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg <p>Get enhanced audio and video support in applications that rely on xine backend:</p> sudo yum install xine-lib-extras-freeworld <p>&#8211; [...]]]></description>
			<content:encoded><![CDATA[<br/><h3><strong>Install RPM Fusion</strong></h3>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">su</span> -c <span class="st0">&#8216;yum localinstall &#8211;nogpgcheck http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm&#8217;</span></div>
<p>&#8211; <a href="http://rpmfusion.org/Configuration">http://rpmfusion.org/Configuration</a></p>
<h3><strong>Enable unsupported video and audio codecs </strong></h3>
<p>Get enhanced audio and video support in applications that rely on GStreamer:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> yum <span class="kw2">install</span> gstreamer-plugins-ugly gstreamer-plugins-bad gstreamer-ffmpeg</div>
<p>Get enhanced audio and video support in applications that rely on xine backend:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> yum <span class="kw2">install</span> xine-lib-extras-freeworld</div>
<p>&#8211; <a href="http://rpmfusion.org/FAQ#head-fa398739adc1f2783f645404f8c24bba9e636ccf">http://rpmfusion.org/FAQ</a></p>
<h3><strong>Install Chromium Browser</strong></h3>
<p>Make a file called &#8220;fedora-chromium-stable.repo&#8221; in /etc/yum.repos.d/ and open:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> gedit /etc/yum.repos.d/fedora-chromium-stable.repo</div>
<p>Paste in the following, save and exit:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re3"># Place this <span class="kw2">file</span> <span class="kw1">in</span> your /etc/yum.repos.d/ directory</span></p>
<p><span class="br0">&#91;</span>fedora-chromium-stable<span class="br0">&#93;</span><br />
<span class="re2">name=</span>Builds of the <span class="st0">&quot;stable&quot;</span> tag of the Chromium Web Browser<br />
<span class="re2">baseurl=</span>http://repos.fedorapeople.org/repos/spot/chromium-stable/fedora-<span class="re1">$releasever</span>/<span class="re1">$basearch</span>/<br />
<span class="re2">enabled=</span><span class="nu0">1</span><br />
<span class="re2">skip_if_unavailable=</span><span class="nu0">1</span><br />
<span class="re2">gpgcheck=</span><span class="nu0">0</span></p>
<p><span class="br0">&#91;</span>fedora-chromium-stable-<span class="kw3">source</span><span class="br0">&#93;</span><br />
<span class="re2">name=</span>Builds of the <span class="st0">&quot;stable&quot;</span> tag of the Chromium Web Browser &#8211; Source<br />
<span class="re2">baseurl=</span>http://repos.fedorapeople.org/repos/spot/chromium-stable/fedora-<span class="re1">$releasever</span>/SRPMS<br />
<span class="re2">enabled=</span><span class="nu0">0</span><br />
<span class="re2">skip_if_unavailable=</span><span class="nu0">1</span><br />
<span class="re2">gpgcheck=</span><span class="nu0">0</span></div>
<p>&#8211; <a href="http://fedoraproject.org/wiki/Chromium">http://fedoraproject.org/wiki/Chromium</a></p>
<h3><strong>Install Flash</strong></h3>
<p>Download the YUM for Linux version from the adobe site &#8211; http://get.adobe.com/flashplayer/</p>
<p>Run the following in the folder you downloaded the file to:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">su</span> -c <span class="st0">&#8216;rpm -ivh adobe-release-i386-1.0-1.noarch.rpm&#8217;</span></div>
<p>Import the GPG key:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">su</span> -c <span class="st0">&#8216;rpm &#8211;import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux&#8217;</span></div>
<p><strong>In 32bit run:</strong></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">su</span> -c <span class="st0">&#8216;yum install nspluginwrapper alsa-plugins-pulseaudio flash-plugin&#8217;</span></div>
<p><strong>on 64bit run:</strong></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">su</span> -c <span class="st0">&#8216;yum install nspluginwrapper.{x86_64,i686} alsa-plugins-pulseaudio.i686 &#8211;disablerepo=adobe-linux-i386&#8242;</span><br />
<span class="kw2">su</span> -c <span class="st0">&#8216;yum install flash-plugin&#8217;</span></div>
<p>If you&#8217;re using Firefox, that should be all done but if you&#8217;re using Chromium you&#8217;ll need to open Firefox and play a video then close it and run the following:</p>
<p><strong>32bit:</strong></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> <span class="kw2">ln</span> -s /usr/lib/mozilla/plugins/libflashplayer.so /usr/lib/chromium-browser/plugins/libflashplayer.so</div>
<p><strong>64bit:</strong></p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> <span class="kw2">ln</span> -s /usr/lib64/mozilla/plugins-wrapped/nswrapper_32_64.libflashplayer.so /usr/lib64/chromium-browser/plugins/nswrapper_32_64.libflashplayer.so</div>
<p>Close and re-open Chromium and head to <a href="http://www.youtube.com/watch?v=1LZXxD1tcx0">YouTube</a> to check that it&#8217;s working.</p>
<p>&#8211; <a href="http://fedoraproject.org/wiki/Flash">http://fedoraproject.org/wiki/Flash</a></p>
<h3><strong>Install Dropbox</strong></h3>
<p>Download and install the correct rpm for 32 or 64 bit from the Dropbox website &#8211; <a href="http://www.dropbox.com/downloading">http://www.dropbox.com/downloading</a>.</p>
<p>Follow this guide to remove the YUM errors you may encounter once the package is installed &#8211; <a href="http://alexsleat.co.uk/2011/05/24/how-to-fix-error-cannot-retrieve-repository-metadata-repomd-xml-for-repository-dropbox-please-verify-its-path-and-try-again/">http://alexsleat.co.uk/2011/05/24/how-to-fix-error-cannot-retrieve-repository-metadata-repomd-xml-for-repository-dropbox-please-verify-its-path-and-try-again/</a> .</p>
<h3><strong>Install VLC</strong></h3>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> yum <span class="kw2">install</span> vlc</div>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/05/31/fedora-15-post-installation-guide/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>How To: Disable SELinux in Fedora</title>
		<link>http://alexsleat.co.uk/2011/05/24/how-to-disable-selinux-in-fedora/</link>
		<comments>http://alexsleat.co.uk/2011/05/24/how-to-disable-selinux-in-fedora/#comments</comments>
		<pubDate>Tue, 24 May 2011 16:58:44 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[14]]></category>
		<category><![CDATA[15]]></category>
		<category><![CDATA[disable]]></category>
		<category><![CDATA[disable selinux]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[permissive]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=16286</guid>
		<description><![CDATA[<br/><p>WARNING: by continuing following this guide you are putting your machine at risk by disabling the secuity features within SELinux, I strongly advise if you do not know what you are doing, stop and read up on the implications this action will have before continuing. Some information is avaible in the Fedora Wiki here [...]]]></description>
			<content:encoded><![CDATA[<br/><blockquote><p><strong>WARNING:</strong> by continuing following this guide you are putting your machine at risk by disabling the secuity features within SELinux, I strongly advise if you do not know what you are doing, stop and read up on the implications this action will have before continuing. Some information is avaible in the Fedora Wiki <a href="http://fedoraproject.org/wiki/SELinux">here</a> .</p></blockquote>
<p>Open up this file:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> gedit /etc/selinux/config</div>
<p>Change the line that looks like this:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re2">SELINUX=</span>enforcing</div>
<p>To this:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="re2">SELINUX=</span>permissive</div>
<p>Save and reboot and it should be working, although again be warned this has disabled the security mechanism on your system. To re-enable this, simply do the same however change from permissive to enforcing and again reboot your machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/05/24/how-to-disable-selinux-in-fedora/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>How To Fix: Error: Cannot retrieve repository metadata (repomd.xml) for repository: Dropbox. Please verify its path and try again</title>
		<link>http://alexsleat.co.uk/2011/05/24/how-to-fix-error-cannot-retrieve-repository-metadata-repomd-xml-for-repository-dropbox-please-verify-its-path-and-try-again/</link>
		<comments>http://alexsleat.co.uk/2011/05/24/how-to-fix-error-cannot-retrieve-repository-metadata-repomd-xml-for-repository-dropbox-please-verify-its-path-and-try-again/#comments</comments>
		<pubDate>Tue, 24 May 2011 16:56:04 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[13]]></category>
		<category><![CDATA[14]]></category>
		<category><![CDATA[15]]></category>
		<category><![CDATA[404]]></category>
		<category><![CDATA[dropbox]]></category>
		<category><![CDATA[errno 14]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[not found]]></category>
		<category><![CDATA[repo]]></category>
		<category><![CDATA[repodata]]></category>
		<category><![CDATA[repomd]]></category>
		<category><![CDATA[repository]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=16281</guid>
		<description><![CDATA[<br/><p>After installing dropbox from the RPM package availble on the site on a new Fedora 15 install, I was unable to use yum without coming across this error:</p> $ update Loaded plugins: langpacks, presto, refresh-packagekit http://linux.dropbox.com/fedora/15/repodata/repomd.xml: &#91;Errno 14&#93; HTTP Error 404 &#8211; Not Found : http://linux.dropbox.com/fedora/15/repodata/repomd.xml Trying other mirror. http://linux.dropbox.com/fedora/15/repodata/repomd.xml: &#91;Errno 14&#93; HTTP Error [...]]]></description>
			<content:encoded><![CDATA[<br/><p>After installing dropbox from the RPM package availble on the site on a new Fedora 15 install, I was unable to use yum without coming across this error:</p>
<div class="dean_ch" style="white-space: wrap;">$ update<br />
Loaded plugins: langpacks, presto, refresh-packagekit<br />
http://linux.dropbox.com/fedora/<span class="nu0">15</span>/repodata/repomd.xml: <span class="br0">&#91;</span>Errno <span class="nu0">14</span><span class="br0">&#93;</span> HTTP Error <span class="nu0">404</span> &#8211; Not Found : http://linux.dropbox.com/fedora/<span class="nu0">15</span>/repodata/repomd.xml<br />
Trying other mirror.<br />
http://linux.dropbox.com/fedora/<span class="nu0">15</span>/repodata/repomd.xml: <span class="br0">&#91;</span>Errno <span class="nu0">14</span><span class="br0">&#93;</span> HTTP Error <span class="nu0">404</span> &#8211; Not Found : http://linux.dropbox.com/fedora/<span class="nu0">15</span>/repodata/repomd.xml<br />
Trying other mirror.<br />
Error: Cannot retrieve repository metadata <span class="br0">&#40;</span>repomd.xml<span class="br0">&#41;</span> <span class="kw1">for</span> repository: Dropbox. Please verify its path and try again</div>
<p>For some unknown reason dropbox repos dont seem to work past 13 so you&#8217;ll need to change the dropbox.repo file from detecting the current release to 13 like so:</p>
<p>Open the dropbox.repo file:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> gedit /etc/yum.repos.d/dropbox.repo</div>
<p>Change the baseurl from $relesever to 13 like so:</p>
<p>Original:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="br0">&#91;</span>Dropbox<span class="br0">&#93;</span><br />
<span class="re2">name=</span>Dropbox Repository<br />
<span class="re2">baseurl=</span>http://linux.dropbox.com/fedora/<span class="re1">$releasever</span>/<br />
<span class="re2">gpgkey=</span>http://linux.dropbox.com/fedora/rpm-public-key.asc</div>
<p>New:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="br0">&#91;</span>Dropbox<span class="br0">&#93;</span><br />
<span class="re2">name=</span>Dropbox Repository<br />
<span class="re2">baseurl=</span>http://linux.dropbox.com/fedora/<span class="nu0">13</span>/<br />
<span class="re2">gpgkey=</span>http://linux.dropbox.com/fedora/rpm-public-key.asc</div>
<p>Save and close and everything should be working, try using sudo yum update to check and the error should have gone away. If not give a reboot a try.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/05/24/how-to-fix-error-cannot-retrieve-repository-metadata-repomd-xml-for-repository-dropbox-please-verify-its-path-and-try-again/feed/</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>wicd Error During ArchBang Update</title>
		<link>http://alexsleat.co.uk/2011/05/13/wicd-error-during-archbang-update/</link>
		<comments>http://alexsleat.co.uk/2011/05/13/wicd-error-during-archbang-update/#comments</comments>
		<pubDate>Fri, 13 May 2011 21:15:28 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[archbang]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[pacman]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[wicd]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=15910</guid>
		<description><![CDATA[<br/><p>error: failed to commit transaction (conflicting files) wicd: /usr/lib/python2.7/site-packages/wicd/__init__.pyo exists in filesystem wicd: /usr/lib/python2.7/site-packages/wicd/backend.pyo exists in filesystem wicd: /usr/lib/python2.7/site-packages/wicd/configmanager.pyo exists in filesystem wicd: /usr/lib/python2.7/site-packages/wicd/dbusmanager.pyo exists in filesystem wicd: /usr/lib/python2.7/site-packages/wicd/logfile.pyo exists in filesystem wicd: /usr/lib/python2.7/site-packages/wicd/misc.pyo exists in filesystem wicd: /usr/lib/python2.7/site-packages/wicd/networking.pyo exists in filesystem wicd: /usr/lib/python2.7/site-packages/wicd/wnettools.pyo exists in filesystem wicd: /usr/lib/python2.7/site-packages/wicd/wpath.pyo exists in filesystem Errors occurred, [...]]]></description>
			<content:encoded><![CDATA[<br/><blockquote><p>error: failed to commit transaction (conflicting files)<br />
wicd: /usr/lib/python2.7/site-packages/wicd/__init__.pyo exists in filesystem<br />
wicd: /usr/lib/python2.7/site-packages/wicd/backend.pyo exists in filesystem<br />
wicd: /usr/lib/python2.7/site-packages/wicd/configmanager.pyo exists in filesystem<br />
wicd: /usr/lib/python2.7/site-packages/wicd/dbusmanager.pyo exists in filesystem<br />
wicd: /usr/lib/python2.7/site-packages/wicd/logfile.pyo exists in filesystem<br />
wicd: /usr/lib/python2.7/site-packages/wicd/misc.pyo exists in filesystem<br />
wicd: /usr/lib/python2.7/site-packages/wicd/networking.pyo exists in filesystem<br />
wicd: /usr/lib/python2.7/site-packages/wicd/wnettools.pyo exists in filesystem<br />
wicd: /usr/lib/python2.7/site-packages/wicd/wpath.pyo exists in filesystem<br />
Errors occurred, no packages were upgraded.</p></blockquote>
<p>Remove wicd:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> pacman -R wicd</div>
<p>Re-update the system:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> pacman -Syu</div>
<p>Re-install wicd (and wicd-gtk gui if you want that too)</p>
<div class="dean_ch" style="white-space: wrap;"><span class="kw2">sudo</span> pacman -Sy wicd wicd-gtk</div>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/05/13/wicd-error-during-archbang-update/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>OpenShot, libmp3lame and Ubuntu</title>
		<link>http://alexsleat.co.uk/2011/04/28/openshot-libmp3lame-and-ubuntu/</link>
		<comments>http://alexsleat.co.uk/2011/04/28/openshot-libmp3lame-and-ubuntu/#comments</comments>
		<pubDate>Thu, 28 Apr 2011 22:36:18 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[blog1]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[10.04]]></category>
		<category><![CDATA[10.10]]></category>
		<category><![CDATA[11.04]]></category>
		<category><![CDATA[11.10]]></category>
		<category><![CDATA[12.04]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[codecs]]></category>
		<category><![CDATA[fix]]></category>
		<category><![CDATA[format]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[h.264]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[libavformat]]></category>
		<category><![CDATA[libmp3lame]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[mov]]></category>
		<category><![CDATA[mpeg]]></category>
		<category><![CDATA[openshot]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=15424</guid>
		<description><![CDATA[<br/><p></p> <p>If you&#8217;re getting the following error while trying export a video under several different codecs in OpenShot including AVI, MOV and MPEG using (mpeg2, mpeg4 or h.264) chances are this might help you with that error.</p> <p>The following formats/codecs are missing from your system:</p> <p>libmp3lame</p> <p>You will not be able to use the [...]]]></description>
			<content:encoded><![CDATA[<br/><p><a href="http://alexsleat.co.uk/wp-content/uploads/2011/04/Screenshot-26.png"><img class="aligncenter size-full wp-image-15425" title="Screenshot-26" src="http://alexsleat.co.uk/wp-content/uploads/2011/04/Screenshot-26.png" alt="" width="478" height="214" /></a></p>
<p>If you&#8217;re getting the following error while trying export a video under several different codecs in OpenShot including AVI, MOV and MPEG using (mpeg2, mpeg4 or h.264) chances are this might help you with that error.</p>
<blockquote><p>The following formats/codecs are missing from your system:</p>
<p>libmp3lame</p>
<p>You will not be able to use the selected export profile. You will need to install the missing formats/codecs or choose a different export profile.</p></blockquote>
<p><strong>This is a simple fix:</strong></p>
<ul>
<li>Open up Synaptic Package Manager</li>
<li>Search &#8220;libavformat&#8221;,</li>
<ul>
<li>If the current package installed is <em>&#8220;libavformat52&#8243;</em> select <em>&#8220;libavformat-extra-52&#8243;</em> (alternativly <em>&#8220;libavformat-unstripped-52&#8243;</em> should also work).</li>
<li>Else the package might be <em>&#8220;libavformat53&#8243;</em> so simply change to<em> &#8220;libavformat-extra-53&#8243;, </em>basically it might end in different numbers, it should work the same.</li>
</ul>
<li>Hit Apply and approve the changes.</li>
</ul>
<div><a href="http://alexsleat.co.uk/wp-content/uploads/2011/04/Screenshot-261011-092555.png"><img class="aligncenter size-full wp-image-22763" title="Screenshot - 261011 - 09:25:55" src="http://alexsleat.co.uk/wp-content/uploads/2011/04/Screenshot-261011-092555.png" alt="" width="1019" height="688" /></a></div>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/04/28/openshot-libmp3lame-and-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>HowTo: Remove Every Other Line in Text Files &#8211; Linux</title>
		<link>http://alexsleat.co.uk/2011/04/26/howto-remove-every-other-line-in-text-files-linux/</link>
		<comments>http://alexsleat.co.uk/2011/04/26/howto-remove-every-other-line-in-text-files-linux/#comments</comments>
		<pubDate>Tue, 26 Apr 2011 23:38:57 +0000</pubDate>
		<dc:creator>Alex</dc:creator>
				<category><![CDATA[Arch Linux]]></category>
		<category><![CDATA[blog1]]></category>
		<category><![CDATA[Command Line]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[arch]]></category>
		<category><![CDATA[awk]]></category>
		<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[guide]]></category>
		<category><![CDATA[how to]]></category>
		<category><![CDATA[isadora]]></category>
		<category><![CDATA[julia]]></category>
		<category><![CDATA[katya]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[linux mint]]></category>
		<category><![CDATA[lisa]]></category>
		<category><![CDATA[remove every n line]]></category>
		<category><![CDATA[remove every other line]]></category>
		<category><![CDATA[script]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[text file]]></category>
		<category><![CDATA[tutorial]]></category>

		<guid isPermaLink="false">http://alexsleat.co.uk/?p=15294</guid>
		<description><![CDATA[<br/><p>Let&#8217;s say you&#8217;ve got a text file, of any size, big or small, and you want to remove every other line of that file, well here are a few commands in Linux that allow you to do this.</p> <p>Example, you want to get from this:</p> 1 2 3 4 5 6 7 8 9 [...]]]></description>
			<content:encoded><![CDATA[<br/><p>Let&#8217;s say you&#8217;ve got a text file, of any size, big or small, and you want to remove every other line of that file, well here are a few commands in Linux that allow you to do this.</p>
<p>Example, you want to get from this:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="nu0">1</span><br />
<span class="nu0">2</span><br />
<span class="nu0">3</span><br />
<span class="nu0">4</span><br />
<span class="nu0">5</span><br />
<span class="nu0">6</span><br />
<span class="nu0">7</span><br />
<span class="nu0">8</span><br />
<span class="nu0">9</span><br />
<span class="nu0">10</span></div>
<p>To this:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="nu0">1</span><br />
<span class="nu0">3</span><br />
<span class="nu0">5</span><br />
<span class="nu0">7</span><br />
<span class="nu0">9</span></div>
<p><strong>The sed way:</strong></p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">sed</span> -n <span class="st0">&quot;p;N;&quot;</span> <span class="kw2">file</span>.txt &gt; newfile.txt</div>
<p><strong>The awk way:</strong></p>
<div class="dean_ch" style="white-space: wrap;"> <span class="kw2">awk</span> <span class="st0">&#8216;NR%2 != 0&#8242;</span> <span class="kw2">file</span>.txt &gt; newfile.txt</div>
<p>Here you can actually specify N lines, replace 2 in the above command and you&#8217;ll be able to take out every N&#8217;th number. As an example, here&#8217;s the above replaced with a 3 on the file:</p>
<div class="dean_ch" style="white-space: wrap;"><span class="nu0">1</span><br />
<span class="nu0">2</span><br />
<span class="nu0">4</span><br />
<span class="nu0">5</span><br />
<span class="nu0">7</span><br />
<span class="nu0">8</span><br />
<span class="nu0">10</span></div>
<p>Easy as pie, right?</p>
]]></content:encoded>
			<wfw:commentRss>http://alexsleat.co.uk/2011/04/26/howto-remove-every-other-line-in-text-files-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

