<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss 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/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0">

<channel>
	<title>Tux Tweaks</title>
	
	<link>http://tuxtweaks.com</link>
	<description>Linux Tweaks, HowTo's and Reviews</description>
	<lastBuildDate>Fri, 18 May 2012 03:27:55 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/tuxtweaks" /><feedburner:info uri="tuxtweaks" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><feedburner:emailServiceId>tuxtweaks</feedburner:emailServiceId><feedburner:feedburnerHostname>http://feedburner.google.com</feedburner:feedburnerHostname><feedburner:feedFlare href="http://add.my.yahoo.com/rss?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://us.i1.yimg.com/us.yimg.com/i/us/my/addtomyyahoo4.gif">Subscribe with My Yahoo!</feedburner:feedFlare><feedburner:feedFlare href="http://www.newsgator.com/ngs/subscriber/subext.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://www.newsgator.com/images/ngsub1.gif">Subscribe with NewsGator</feedburner:feedFlare><feedburner:feedFlare href="http://feeds.my.aol.com/add.jsp?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://o.aolcdn.com/favorites.my.aol.com/webmaster/ffclient/webroot/locale/en-US/images/myAOLButtonSmall.gif">Subscribe with My AOL</feedburner:feedFlare><feedburner:feedFlare href="http://www.bloglines.com/sub/http://feeds.feedburner.com/tuxtweaks" src="http://www.bloglines.com/images/sub_modern11.gif">Subscribe with Bloglines</feedburner:feedFlare><feedburner:feedFlare href="http://www.netvibes.com/subscribe.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://www.netvibes.com/img/add2netvibes.gif">Subscribe with Netvibes</feedburner:feedFlare><feedburner:feedFlare href="http://fusion.google.com/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://buttons.googlesyndication.com/fusion/add.gif">Subscribe with Google</feedburner:feedFlare><feedburner:feedFlare href="http://www.pageflakes.com/subscribe.aspx?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://www.pageflakes.com/ImageFile.ashx?instanceId=Static_4&amp;fileName=ATP_blu_91x17.gif">Subscribe with Pageflakes</feedburner:feedFlare><feedburner:feedFlare href="http://www.plusmo.com/add?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://plusmo.com/res/graphics/fbplusmo.gif">Subscribe with Plusmo</feedburner:feedFlare><feedburner:feedFlare href="http://www.thefreedictionary.com/_/hp/AddRSS.aspx?http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://img.tfd.com/hp/addToTheFreeDictionary.gif">Subscribe with The Free Dictionary</feedburner:feedFlare><feedburner:feedFlare href="http://www.bitty.com/manual/?contenttype=rssfeed&amp;contentvalue=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://www.bitty.com/img/bittychicklet_91x17.gif">Subscribe with Bitty Browser</feedburner:feedFlare><feedburner:feedFlare href="http://www.live.com/?add=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://tkfiles.storage.msn.com/x1piYkpqHC_35nIp1gLE68-wvzLZO8iXl_JMledmJQXP-XTBOLfmQv4zhj4MhcWEJh_GtoBIiAl1Mjh-ndp9k47If7hTaFno0mxW9_i3p_5qQw">Subscribe with Live.com</feedburner:feedFlare><feedburner:feedFlare href="http://mix.excite.eu/add?feedurl=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://image.excite.co.uk/mix/addtomix.gif">Subscribe with Excite MIX</feedburner:feedFlare><feedburner:feedFlare href="http://www.webwag.com/wwgthis.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://www.webwag.com/images/wwgthis.gif">Subscribe with Webwag</feedburner:feedFlare><feedburner:feedFlare href="http://www.podcastready.com/oneclick_bookmark.php?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://www.podcastready.com/images/podcastready_button.gif">Subscribe with Podcast Ready</feedburner:feedFlare><feedburner:feedFlare href="http://www.wikio.com/subscribe?url=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://www.wikio.com/shared/img/add2wikio.gif">Subscribe with Wikio</feedburner:feedFlare><feedburner:feedFlare href="http://www.dailyrotation.com/index.php?feed=http%3A%2F%2Ffeeds.feedburner.com%2Ftuxtweaks" src="http://www.dailyrotation.com/rss-dr2.gif">Subscribe with Daily Rotation</feedburner:feedFlare><item>
		<title>Fixing Common Problems with LAMP on Ubuntu</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/uwAdq4zIRSs/</link>
		<comments>http://tuxtweaks.com/2012/05/fixing-common-problems-with-lamp-on-ubuntu/#comments</comments>
		<pubDate>Sun, 06 May 2012 02:44:16 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[phpMyAdmin]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=2058</guid>
		<description><![CDATA[There are a few common problems that people run into after installing LAMP on Ubuntu. In this post I'll show how to fix a few of those problems. If you don't already have LAMP set up, please see How To Install LAMP on Ubuntu. Fixing phpMyAdmin One common error that some people make is that [...]]]></description>
			<content:encoded><![CDATA[<p>There are a few common problems that people run into after installing LAMP on Ubuntu. In this post I'll show how to fix a few of those problems. If you don't already have LAMP set up, please see <a title="Installing LAMP on Ubuntu 12.04 Precise Pangolin" href="http://tuxtweaks.com/2012/04/installing-lamp-on-ubuntu-12-04-precise-pangolin/" target="_blank">How To Install LAMP on Ubuntu.</a><span id="more-2058"></span></p>
<h3>Fixing phpMyAdmin</h3>
<p>One common error that some people make is that they forget to mark <strong>apache2</strong> during the <strong>phpMyAdmin</strong> configuration. When this happens you'll get a <strong>404 Not Found error</strong> when trying to navigate to http://localhost/phpmyadmin/.</p>
<div id="attachment_1869" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2011/10/problem-01_wm.png" rel="lightbox[2058]"><img class="size-thumbnail wp-image-1869" title="phpMyAdmin Not Found" src="http://tuxtweaks.com/wp-content/uploads/2011/10/problem-01_wm-150x131.png" alt="phpMyAdmin Not Found" width="150" height="131" /></a><p class="wp-caption-text">Click to enlarge</p></div>
<p>If this happens, enter the following terminal command.</p>
<div class="term">sudo dpkg-reconfigure phpmyadmin</div>
<p>You will be prompted about reinstalling the database. Accept the default of <strong>"No"</strong> and hit <strong>&lt;Enter&gt;</strong>.</p>
<div id="attachment_1870" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2011/10/problem-02_wm.png" rel="lightbox[2058]"><img class="size-thumbnail wp-image-1870" title="Don't reinstall phpMyAdmin database" src="http://tuxtweaks.com/wp-content/uploads/2011/10/problem-02_wm-150x96.png" alt="Don't reinstall phpMyAdmin database" width="150" height="96" /></a><p class="wp-caption-text">Click to enlarge</p></div>
<p>Make sure to then mark <strong>apache2</strong> by having the cursor next to <strong>apache</strong>2 and then hitting <strong>&lt;Space&gt;</strong> to mark it with a<strong> *</strong>, then hit <strong>&lt;Enter&gt;</strong>.</p>
<p><a href="http://tuxtweaks.com/wp-content/uploads/2011/10/phpmyadmin_wm.png" rel="lightbox[2058]"><img class="alignnone size-full wp-image-1871" title="Reconfigure phpMyAdmin for Apache" src="http://tuxtweaks.com/wp-content/uploads/2011/10/phpmyadmin_wm.png" alt="Reconfigure phpMyAdmin for Apache" width="397" height="241" /></a></p>
<p>You will then need to reload <strong>Apache</strong>.</p>
<div class="term">sudo service apache2 reload</div>
<p>You should now be able to load <a href="http://localhost/phpmyadmin/" target="_blank">http://localhost/phpmyadmin/</a>. If you're still seeing the <strong>404 Not Found error</strong>, then you will need to <strong>clear your web browser cache</strong> and try again.</p>
<div id="attachment_1866" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2011/10/lamp-14_wm.png" rel="lightbox[2058]"><img class="size-thumbnail wp-image-1866" title="phpMyAdmin login screen" src="http://tuxtweaks.com/wp-content/uploads/2011/10/lamp-14_wm-150x146.png" alt="phpMyAdmin login screen" width="150" height="146" /></a><p class="wp-caption-text">Click to enlarge</p></div>
<h3>Fixing the Apache fully qualified domain name</h3>
<p>During the above steps you may have seen an error message like this when reloading <strong>Apache</strong>.</p>
<div class="term"></p>
<pre>apache2: Could not reliably determine the server's fully qualified domain name,
using 127.0.1.1 for ServerName</pre>
<p></div>
<p>This doesn't seem to cause any problems for me, but if you don't like seeing that error, you can fix it with this command.</p>
<div class="term">echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn</div>
<p>Then reload <strong>Apache</strong> with</p>
<div class="term">sudo service apache2 reload</div>
<h3>Remove LAMP?</h3>
<p>Is your LAMP setup a mess and you just want to start over? Follow these instructions to <strong><a title="Remove LAMP from Ubuntu" href="http://tuxtweaks.com/2010/10/remove-lamp-in-ubuntu/">Remove LAMP from Ubuntu</a></strong>.</p>
<div></div>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/XLhnqlux9sRmWHXItnVIi1chcE0/0/da"><img src="http://feedads.g.doubleclick.net/~a/XLhnqlux9sRmWHXItnVIi1chcE0/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/XLhnqlux9sRmWHXItnVIi1chcE0/1/da"><img src="http://feedads.g.doubleclick.net/~a/XLhnqlux9sRmWHXItnVIi1chcE0/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=uwAdq4zIRSs:9Wmr4FsMets:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=uwAdq4zIRSs:9Wmr4FsMets:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=uwAdq4zIRSs:9Wmr4FsMets:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=uwAdq4zIRSs:9Wmr4FsMets:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=uwAdq4zIRSs:9Wmr4FsMets:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=uwAdq4zIRSs:9Wmr4FsMets:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=uwAdq4zIRSs:9Wmr4FsMets:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=uwAdq4zIRSs:9Wmr4FsMets:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=uwAdq4zIRSs:9Wmr4FsMets:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=uwAdq4zIRSs:9Wmr4FsMets:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=uwAdq4zIRSs:9Wmr4FsMets:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/uwAdq4zIRSs" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2012/05/fixing-common-problems-with-lamp-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2012/05/fixing-common-problems-with-lamp-on-ubuntu/</feedburner:origLink></item>
		<item>
		<title>Installing LAMP on Ubuntu 12.04 Precise Pangolin</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/iZwLThtMbg8/</link>
		<comments>http://tuxtweaks.com/2012/04/installing-lamp-on-ubuntu-12-04-precise-pangolin/#comments</comments>
		<pubDate>Fri, 27 Apr 2012 03:13:42 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[web development]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[LAMP]]></category>
		<category><![CDATA[Linux Mint]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[phpMyAdmin]]></category>
		<category><![CDATA[precise]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=2035</guid>
		<description><![CDATA[When working on web development, I prefer to work within the privacy of my own development environment located on my computer. I'd rather make the majority of my mistakes where no one else can see them rather than out in the wild of the Internet. In order to have that private development environment, I install [...]]]></description>
			<content:encoded><![CDATA[<p>When working on web development, I prefer to work within the privacy of my own development environment located on my computer. I'd rather make the majority of my mistakes where no one else can see them rather than out in the wild of the Internet. In order to have that private development environment, I install a <strong>LAMP</strong> configuration. If you're not familiar with <strong>LAMP</strong>, it stands for<strong> Linux</strong>, <strong>Apache</strong>, <strong>MySQL</strong>, <strong>php</strong> (and/or <strong>Perl</strong>). <span id="more-2035"></span>LAMP is one of the most common web hosting platforms on the Internet, so it's a great environment to build and test your website.</p>
<p>Follow these step by step instructions to install and configure <strong>LAMP</strong>  on <strong>Ubuntu 12.04.</strong> This process has been tested and also works on <strong>Linux Mint 13</strong>. If you have a reasonably fast broadband connection, you should be done in less than half an hour.</p>
<h2>Install LAMP on Ubuntu</h2>
<p>The developers at Ubuntu have made it really easy to <strong>install</strong> and <strong>configure</strong> the packages for <strong>LAMP</strong> with a single terminal command. So open up a terminal window and let's get started.</p>
<div class="term">sudo apt-get install lamp-server^</div>
<p>Yes, you read that right. Don't leave out the caret (^) at the end. The command won't work without it. It's magical!</p>
<div id="attachment_2036" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_01_wm.png" rel="lightbox[2035]"><img class="size-thumbnail wp-image-2036" title="sudo apt-get install lamp-server^" src="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_01_wm-150x95.png" alt="sudo apt-get install lamp-server^" width="150" height="95" /></a><p class="wp-caption-text">sudo apt-get install lamp-server^</p></div>
<p>The apt package manager will now show the packages to be installed and ask for confirmation. Hit <strong>&lt;Enter&gt;</strong> to confirm and continue with the install.</p>
<div id="attachment_2037" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_02_wm.png" rel="lightbox[2035]"><img class="size-thumbnail wp-image-2037" title="Install LAMP packages" src="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_02_wm-150x95.png" alt="Install LAMP packages" width="150" height="95" /></a><p class="wp-caption-text">Install LAMP packages</p></div>
<p>After some time downloading packages, you will be prompted to set a password for the <em><strong>root</strong></em> user for <strong>MySQL</strong>.</p>
<div id="attachment_2038" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_03_wm.png" rel="lightbox[2035]"><img class="size-thumbnail wp-image-2038" title="Set MySQL root password" src="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_03_wm-150x95.png" alt="Set MySQL root password" width="150" height="95" /></a><p class="wp-caption-text">Set MySQL root password</p></div>
<p>Enter the password you want to use for <strong>MySQL</strong>. <strong>Do not leave it blank</strong>. You'll be prompted a second time to confirm your password.</p>
<div id="attachment_2039" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_04_wm.png" rel="lightbox[2035]"><img class="size-thumbnail wp-image-2039" title="Confirm MySQL root password" src="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_04_wm-150x95.png" alt="Confirm MySQL root password" width="150" height="95" /></a><p class="wp-caption-text">Confirm MySQL root password</p></div>
<p>After confirming your password, apt will continue installing the remaining packages.</p>
<div id="attachment_2041" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_05_wm.png" rel="lightbox[2035]"><img class="size-thumbnail wp-image-2041" title="Remaining LAMP package installation" src="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_05_wm-150x95.png" alt="Remaining LAMP package installation" width="150" height="95" /></a><p class="wp-caption-text">Remaining LAMP package installation</p></div>
<p>Your LAMP installation is now complete. Wow, that was easy! Now there's just a few more steps to get things configured to make it easy to work with your system.</p>
<h2>Test Apache</h2>
<p>Open a web browser window and enter the address <strong>http://localhost/</strong>. You should see a web page that says <strong>"It Works!"</strong></p>
<div id="attachment_2040" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_06_wm.png" rel="lightbox[2035]"><img class="size-thumbnail wp-image-2040" title="Apache works" src="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_06_wm-150x106.png" alt="Apache works" width="150" height="106" /></a><p class="wp-caption-text">Apache works</p></div>
<h2>Test php</h2>
<p>Now that you've confirmed that the Apache web server works, you want to make sure that your <strong>php</strong> <strong>installation</strong> is working. To do that you need to create a file in <strong>/var/www</strong> called <strong>testing.php</strong>. You can use your favorite text editor as root, or you can use the following terminal command:</p>
<div class="term">echo "&lt;?php phpinfo(); ?&gt;" | sudo tee /var/www/testing.php</div>
<p>Go back to your web browser and enter the address <strong>http://localhost/testing.php/</strong> and you should see a page displaying information about your php installation.</p>
<div id="attachment_2042" class="wp-caption alignnone" style="width: 160px"><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_07_wm.png" rel="lightbox[2035]"><img class="size-thumbnail wp-image-2042" title="php information" src="http://tuxtweaks.com/wp-content/uploads/2012/04/LAMP_07_wm-150x106.png" alt="php information" width="150" height="106" /></a><p class="wp-caption-text">php information</p></div>
<h2>Fix Apache fully qualified domain name</h2>
<p>You may have noticed an error message from Apache about the server's fully qualified domain name.</p>
<p><code>apache2: Could not reliably determine the server's fully qualified domain name, using 127.0.1.1 for ServerName</code></p>
<p>This is not a big deal, but if it bothers you, you can fix it with the following commands.</p>
<div class="term">echo "ServerName localhost" | sudo tee /etc/apache2/conf.d/fqdn</div>
<p>Now reload the Apache web server.</p>
<div class="term">sudo service apache2 reload</div>
<p>You should no longer see the error message.</p>
<h2>Configure MySQL</h2>
<p>Since this tutorial is for setting up a local web development environment, the MySQL needs to be bound to the localhost IP address. By default this should be 127.0.0.1 on your system. Just in case, you can verify it with these commands.</p>
<div class="term">cat /etc/hosts | grep localhost</div>
<p>You should see something like<br />
<code>127.0.0.1 localhost<br />
::1     ip6-localhost ip6-loopback</code></p>
<p>You now  want to verify that you have the correct bind address in MySQL's my.cnf file.</p>
<div class="term">cat /etc/mysql/my.cnf | grep bind-address</div>
<p>You should see:<br />
<code>bind-address = 127.0.0.1</code></p>
<p>If the bind address doesn't match the one set for localhost on your system, you'll need to edit <em>/etc/mysql/my.cnf</em> as <em><strong>root</strong></em> to correct it.</p>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/1M8maISkHYJ2G9Ylp9YZUQh85IM/0/da"><img src="http://feedads.g.doubleclick.net/~a/1M8maISkHYJ2G9Ylp9YZUQh85IM/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/1M8maISkHYJ2G9Ylp9YZUQh85IM/1/da"><img src="http://feedads.g.doubleclick.net/~a/1M8maISkHYJ2G9Ylp9YZUQh85IM/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=iZwLThtMbg8:e4aLIX6edxM:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=iZwLThtMbg8:e4aLIX6edxM:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=iZwLThtMbg8:e4aLIX6edxM:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=iZwLThtMbg8:e4aLIX6edxM:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=iZwLThtMbg8:e4aLIX6edxM:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=iZwLThtMbg8:e4aLIX6edxM:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=iZwLThtMbg8:e4aLIX6edxM:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=iZwLThtMbg8:e4aLIX6edxM:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=iZwLThtMbg8:e4aLIX6edxM:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=iZwLThtMbg8:e4aLIX6edxM:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=iZwLThtMbg8:e4aLIX6edxM:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/iZwLThtMbg8" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2012/04/installing-lamp-on-ubuntu-12-04-precise-pangolin/feed/</wfw:commentRss>
		<slash:comments>19</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2012/04/installing-lamp-on-ubuntu-12-04-precise-pangolin/</feedburner:origLink></item>
		<item>
		<title>Ubuntu 12.04 is Here: List of download mirrors</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/5BOAVZhDLLY/</link>
		<comments>http://tuxtweaks.com/2012/04/ubuntu-12-04-is-here/#comments</comments>
		<pubDate>Thu, 26 Apr 2012 13:14:17 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=2030</guid>
		<description><![CDATA[Today Canonical released its latest long term service release of the Ubuntu Linux operating system, Ubuntu 12.04 Precise Pangolin. As of this writing, the Ubuntu website is unresponsive, returning a connection timeout error. It is expected that the main download server is running very slowly right now. However, the torrents are running just fine.  I'm [...]]]></description>
			<content:encoded><![CDATA[<p>Today Canonical released its latest long term service release of the <strong>Ubuntu Linux</strong> operating system, <strong>Ubuntu 12.04 Precise Pangolin</strong>. As of this writing, the Ubuntu website is unresponsive, returning a connection timeout error. It is expected that the main download server is running very slowly right now. However, the torrents are running just fine.  I'm currently downloading a torrent at over 500 KiB/s.</p>
<p><span id="more-2030"></span></p>
<h2>List of Ubuntu 12.04 torrent downloads</h2>
<p>Here are some links to the torrent files at the Ubuntu Mirror at Oregon State University (USA).</p>
<ul>
<li><a title="Ubuntu 12.04 Desktop x86 torrent" href="http://ubuntu.osuosl.org/releases/12.04/ubuntu-12.04-desktop-i386.iso.torrent">Ubuntu 12.04 Desktop x86 torrent</a></li>
<li><a title="Ubuntu 12.04 Desktop AMD64 torrent" href="http://ubuntu.osuosl.org/releases/12.04/ubuntu-12.04-desktop-amd64.iso.torrent">Ubuntu 12.04 Desktop 64 Bit torrent</a></li>
<li><a title="Ubuntu 12.04 Alternate x86 torrent" href="http://ubuntu.osuosl.org/releases/12.04/ubuntu-12.04-alternate-i386.iso.torrent">Ubuntu 12.04 Alternate x86 torrent</a></li>
<li><a title="Ubuntu 12.04 Alternate AMD64 torrent" href="http://ubuntu.osuosl.org/releases/12.04/ubuntu-12.04-alternate-amd64.iso.torrent">Ubuntu 12.04 Alternate 64 Bit torrent</a></li>
<li><a title="Ubuntu 12.04 Server x86 torrent" href="http://ubuntu.osuosl.org/releases/12.04/ubuntu-12.04-server-i386.iso.torrent">Ubuntu 12.04 Server x86 torrent</a></li>
<li><a title="Ubuntu 12.04 Server AMD64 torrent" href="http://ubuntu.osuosl.org/releases/12.04/ubuntu-12.04-server-amd64.iso.torrent">Ubuntu 12.04 Server 64 Bit torrent</a></li>
</ul>
<h2>List of Ubuntu download mirrors</h2>
<p>If you prefer to do just a direct download, you can try one of the many mirrors. As of this writing, not all of the mirrors have been fully updated though. Some are still showing the Beta2 release.</p>
<p>Here is the full list of <a title="Ubuntu CD download mirrors" href="https://launchpad.net/ubuntu/+cdmirrors" target="_blank">Ubuntu download mirrors</a>.</p>
<p>For your convenience, here is a list of download mirrors that have a download bandwidth of 10 Gbps or greater.</p>
<ul>
<li><a href="http://mirror.globo.com/ubuntu/releases/" target="_blank">Globo.com</a> - Brazil</li>
<li><a href="http://ubuntu.c3sl.ufpr.br/releases/" target="_blank">C3SL/UFPR</a> - Brazil</li>
<li><a href="http://ubuntu.laps.ufpa.br/releases/" target="_blank">LaPS/UFPA</a> - Brazil</li>
<li><a href="http://ubuntu-releases.mirror.nexicom.net/" target="_blank">Nexcom Inc.</a> - Canada</li>
<li><a href="http://mirror.cpsc.ucalgary.ca/mirror/ubuntu.com/releases/" target="_blank">University of Calgary</a> - Canada</li>
<li><a href="http://ubuntu.grena.ge/releases/" target="_blank">GRENA</a> - Georgia</li>
<li><a href="http://ftp.halifax.rwth-aachen.de/ubuntu-releases/" target="_blank">RWTH Aachen University</a> - Germany</li>
<li><a href="http://ubuntu.mirror.tudos.de/ubuntu-releases/" target="_blank">Technische Universitat Dresden</a> - Germany</li>
<li><a href="http://ubuntu.idrepo.or.id/ubuntu-releases/" target="_blank">idREPO</a> - Indonesia</li>
<li><a href="http://ftp.snt.utwente.nl/pub/os/linux/ubuntu-releases/" target="_blank">University of Twente</a> - The Netherlands</li>
<li><a href="http://se.releases.ubuntu.com/" target="_blank">Umea University</a> - Sweden</li>
<li><a href="http://mirror.switch.ch/ftp/mirror/ubuntu-cdimage/" target="_blank">SWITCH</a> - Switzerland</li>
<li><a href="http://mirror.anl.gov/pub/ubuntu-iso/CDs/" target="_blank">Argonne National Laboratory</a> - USA</li>
<li><a href="http://mirror.pnl.gov/releases/" target="_blank">Pacific Northwest National Lab</a> - USA</li>
</ul>
<p>Happy downloading. My torrent download is already done!</p>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/BHNjKcGbf2sqP36PjsPpOdfdSIA/0/da"><img src="http://feedads.g.doubleclick.net/~a/BHNjKcGbf2sqP36PjsPpOdfdSIA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/BHNjKcGbf2sqP36PjsPpOdfdSIA/1/da"><img src="http://feedads.g.doubleclick.net/~a/BHNjKcGbf2sqP36PjsPpOdfdSIA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=5BOAVZhDLLY:_y3ZZYIxUQ0:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=5BOAVZhDLLY:_y3ZZYIxUQ0:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=5BOAVZhDLLY:_y3ZZYIxUQ0:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=5BOAVZhDLLY:_y3ZZYIxUQ0:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=5BOAVZhDLLY:_y3ZZYIxUQ0:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=5BOAVZhDLLY:_y3ZZYIxUQ0:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=5BOAVZhDLLY:_y3ZZYIxUQ0:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=5BOAVZhDLLY:_y3ZZYIxUQ0:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=5BOAVZhDLLY:_y3ZZYIxUQ0:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=5BOAVZhDLLY:_y3ZZYIxUQ0:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=5BOAVZhDLLY:_y3ZZYIxUQ0:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/5BOAVZhDLLY" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2012/04/ubuntu-12-04-is-here/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2012/04/ubuntu-12-04-is-here/</feedburner:origLink></item>
		<item>
		<title>View Images With The Proper EXIF Orientation In Chrome or Chromium</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/NC0pgCpx3Cg/</link>
		<comments>http://tuxtweaks.com/2012/04/view-images-with-the-proper-exif-orientation-in-chrome-or-chromium/#comments</comments>
		<pubDate>Thu, 19 Apr 2012 03:25:12 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[Chromium]]></category>
		<category><![CDATA[FOSS]]></category>
		<category><![CDATA[General]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[image editing]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[digital photos]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=2016</guid>
		<description><![CDATA[I receive a lot of emails with photos attached that have been taken in a portrait orientation. Most modern digital cameras and smart phones have orientation sensors that tell the camera if it's been turned on end. When this happens, rather than actually rotate the picture, the camera sets a flag in the image's EXIF [...]]]></description>
			<content:encoded><![CDATA[<p>I receive a lot of emails with photos attached that have been taken in a portrait orientation. Most modern digital cameras and smart phones have orientation sensors that tell the camera if it's been turned on end. When this happens, rather than actually rotate the picture, the camera sets a flag in the image's EXIF data to communicate which way is up in the photo.<span id="more-2016"></span></p>
<p>When viewed on the web, the code used to display the photo on a web page can be written to read this information and display it properly on the page. The problem arises when you just want to use the browsers native ability to view an image by itself. Most web browsers don't provide this function and will just display the image in landscape mode.</p>
<p>An example of this can be seen when receiving a photo attachment in Gmail. The image will be shown in its proper orientation in the image preview as can be seen in the screen capture below.</p>
<p><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/shot_01_wm.png" rel="lightbox[2016]"><img class="alignnone size-thumbnail wp-image-2019" title="Image preview in Gmail" src="http://tuxtweaks.com/wp-content/uploads/2012/04/shot_01_wm-150x121.png" alt="Image preview in Gmail" width="150" height="121" /></a></p>
<p>When you click on "<strong>view</strong>" to see the image at a larger scale, you get something like this.</p>
<p><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/shot_02_wm.png" rel="lightbox[2016]"><img class="alignnone size-thumbnail wp-image-2020" title="Improper landscape orientation" src="http://tuxtweaks.com/wp-content/uploads/2012/04/shot_02_wm-150x121.png" alt="Improper landscape orientation" width="150" height="121" /></a></p>
<h2>How to fix the image rotation in Chrome or Chromium</h2>
<p>Thankfully, someone has written a nice little plug-in for Chrome that will cause the stand alone image to display in the properly rotated orientation based on the EXIF data. From within the <strong>Chrome</strong> or <strong>Chromium</strong> browser, go to the <a title="chrome web store" href="https://chrome.google.com/webstore/category/home/" target="_blank">Chrome Web Store</a>. Enter "<strong>exif rotate</strong>" into the search box.</p>
<p><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/shot_03_wm.png" rel="lightbox[2016]"><img class="alignnone size-thumbnail wp-image-2021" title="EXIF Image Orientation in the Chrome Web Store" src="http://tuxtweaks.com/wp-content/uploads/2012/04/shot_03_wm-150x112.png" alt="EXIF Image Orientation in the Chrome Web Store" width="150" height="112" /></a></p>
<p>Find a plug-in called EXIF Image Orientation and click on "<strong>ADD TO CHROME</strong>". Click on "<strong>Add</strong>" at the confirmation pop-up. The plug-in should now be installed.</p>
<p>Go back to your email with the attached image and click on "<strong>view</strong>" again. At first it will come up in landscape mode like before, but as soon as it's completely done loading, it will switch to portrait mode as seen below.</p>
<p><a href="http://tuxtweaks.com/wp-content/uploads/2012/04/shot_04_wm.png" rel="lightbox[2016]"><img class="alignnone size-thumbnail wp-image-2022" title="Photo properly rotated into portrait orientation" src="http://tuxtweaks.com/wp-content/uploads/2012/04/shot_04_wm-150x112.png" alt="Photo properly rotated into portrait orientation" width="150" height="112" /></a></p>
<p>You are now free to enjoy your email photo attachments.</p>
<p>Do you know where this photo was taken? Hint: it's somewhere in the USA.</p>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/8aNqI_B0GU42oIKAWAhAI77UyZs/0/da"><img src="http://feedads.g.doubleclick.net/~a/8aNqI_B0GU42oIKAWAhAI77UyZs/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/8aNqI_B0GU42oIKAWAhAI77UyZs/1/da"><img src="http://feedads.g.doubleclick.net/~a/8aNqI_B0GU42oIKAWAhAI77UyZs/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=NC0pgCpx3Cg:3aApVX4PP6g:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=NC0pgCpx3Cg:3aApVX4PP6g:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=NC0pgCpx3Cg:3aApVX4PP6g:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=NC0pgCpx3Cg:3aApVX4PP6g:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=NC0pgCpx3Cg:3aApVX4PP6g:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=NC0pgCpx3Cg:3aApVX4PP6g:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=NC0pgCpx3Cg:3aApVX4PP6g:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=NC0pgCpx3Cg:3aApVX4PP6g:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=NC0pgCpx3Cg:3aApVX4PP6g:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=NC0pgCpx3Cg:3aApVX4PP6g:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=NC0pgCpx3Cg:3aApVX4PP6g:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/NC0pgCpx3Cg" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2012/04/view-images-with-the-proper-exif-orientation-in-chrome-or-chromium/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2012/04/view-images-with-the-proper-exif-orientation-in-chrome-or-chromium/</feedburner:origLink></item>
		<item>
		<title>Canonical and Microsoft To Join Forces on New UI</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/oNzPy_iF85Q/</link>
		<comments>http://tuxtweaks.com/2012/04/canonical-and-microsoft-to-join-forces-on-new-ui/#comments</comments>
		<pubDate>Sun, 01 Apr 2012 18:17:23 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[humor]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[windows]]></category>
		<category><![CDATA[open source]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=2007</guid>
		<description><![CDATA[Recognizing that the dawn of the Post PC Era is upon us, Microsoft and Canonical (the corporate sponsor behind Ubuntu Linux) have both determined that they need to make a major move to challenge Apple's iOS and Google's Android in the mobile device space. After deciding that it's best not to go it alone, Canonical [...]]]></description>
			<content:encoded><![CDATA[<p>Recognizing that the dawn of the Post PC Era is upon us, <strong>Microsoft and Canonical</strong> (the corporate sponsor behind <strong>Ubuntu Linux</strong>) have both determined that they need to make a major move to challenge <strong>Apple's iOS</strong> and <strong>Google's Android</strong> in the mobile device space. After deciding that it's best not to go it alone, <strong>Canonical and Microsoft</strong> announced today that they are forming a joint venture to develop their next generation of user interface. <span id="more-2007"></span></p>
<p>The joint venture company will be called <strong>Micronical</strong> and will be charged with developing a new open source user interface that will merge the best features of the new <strong>Windows Metro</strong> interface with the best from <strong>Ubuntu's Unity</strong> interface. Although no official announcement has been made, word has it that the new UI will be called <strong>iMeUnity</strong> (pronounced immunity) and will be a common interface for desktop computers, mobile phones, tablets, and smart TV's.</p>
<p>Since the joint venture is only for user interface development, each company will release its own products with the new interface. Microsoft will continue to use their proprietary OS kernel with iMeUnity on top. It is expected that this will debut with the release of <strong>Windows 9</strong>. Ubuntu will continue to use the Linux kernel and the GNU user land tools in combination with iMeUnity. Ubuntu will debut the new interface in the future LTS release, <strong>Ubuntu 14.04</strong>. Recognizing that this further evolution of UI will likely confound and slow down Ubuntu's users, this version will be code named <strong>Tortuous <a title="Terrapin - Wikipedia" href="http://en.wikipedia.org/wiki/Diamondback_terrapin" target="_blank">Terrapin</a></strong> according to a <a title="Announcing Tortuous Terrapin" href="http://www.markshuttleworth.com/archives/784" target="_blank">post on Mark Shuttleworth's blog</a>.</p>
<p>There is no word yet how this might affect Ubuntu's derivative distributions, but it's sure to make things exciting for the developers. You can view the full video of the <a title="Micronical Joint Venture Announcement" href="http://is.gd/uMcZgS" target="_blank">official announcement from Canonical and Microsoft  here</a>. I don't know about you, but I can't wait to see what they come up with.</p>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/is8ww9zFlK85BnM5wFz4W9HnDB8/0/da"><img src="http://feedads.g.doubleclick.net/~a/is8ww9zFlK85BnM5wFz4W9HnDB8/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/is8ww9zFlK85BnM5wFz4W9HnDB8/1/da"><img src="http://feedads.g.doubleclick.net/~a/is8ww9zFlK85BnM5wFz4W9HnDB8/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=oNzPy_iF85Q:_gyY4DpNtxU:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=oNzPy_iF85Q:_gyY4DpNtxU:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=oNzPy_iF85Q:_gyY4DpNtxU:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=oNzPy_iF85Q:_gyY4DpNtxU:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=oNzPy_iF85Q:_gyY4DpNtxU:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=oNzPy_iF85Q:_gyY4DpNtxU:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=oNzPy_iF85Q:_gyY4DpNtxU:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=oNzPy_iF85Q:_gyY4DpNtxU:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=oNzPy_iF85Q:_gyY4DpNtxU:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=oNzPy_iF85Q:_gyY4DpNtxU:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=oNzPy_iF85Q:_gyY4DpNtxU:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/oNzPy_iF85Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2012/04/canonical-and-microsoft-to-join-forces-on-new-ui/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2012/04/canonical-and-microsoft-to-join-forces-on-new-ui/</feedburner:origLink></item>
		<item>
		<title>Fix The Shutdown/Reboot Issue With Multiple Users on Ubuntu</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/YYm9kQcPq6c/</link>
		<comments>http://tuxtweaks.com/2012/03/fix-shutdown-reboot-issue-multi-user-ubuntu/#comments</comments>
		<pubDate>Sat, 24 Mar 2012 19:50:33 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Lucid Lynx]]></category>
		<category><![CDATA[Oneiric Ocelot]]></category>
		<category><![CDATA[Plex]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=1956</guid>
		<description><![CDATA[A while back I purchased a nice LG Smart TV for my living room. Besides having the standard Smart TV applications like internet browsing and NetFlix, my TV can stream media from my PC either through a DLNA server or through LG's Media Link. In order to use the Media Link, you must install the [...]]]></description>
			<content:encoded><![CDATA[<p>A while back I purchased a nice <strong>LG Smart TV</strong> for my living room. Besides having the standard Smart TV applications like internet browsing and NetFlix, my TV can stream media from my PC either through a DLNA server or through <strong>LG's Media Link</strong>. In order to use the Media Link, you must install the <strong><a title="Plex Media Server - Linux" href="http://plexapp.com/linux/linux-pms-download.php" target="_blank">Plex Media Server</a></strong> on your computer.<span id="more-1956"></span></p>
<p>After installing Plex on my Ubuntu Lucid computer, I had an issue where I'd get a pop-up message when going to reboot or shutdown saying that the administrator password was required in order to shut down with multiple users logged in.  This is because the <strong>Plex Media Server</strong> installation creates a user called <em>plex</em> and the server is run under that ID. So the system saw that as another user logged in to the machine in  addition to me.</p>
<p>Well, thanks to a <a title="Shutdown System Policy Question" href="http://ubuntuforums.org/showpost.php?p=8690700&amp;postcount=16" target="_blank">post on the Ubuntu Forums</a>, I found a solution. You need to make a few edits to <em><strong>/usr/share/polkit-1/actions/org.freedesktop.consolekit.policy </strong></em>so that you can reboot or shut down with multiple users logged in.</p>
<div class="term">sudo vim /usr/share/polkit-1/actions/org.freedesktop.consolekit.policy</div>
<p>You can replace <em><strong>vim</strong></em> in the above command with your favorite text editor (ie. gedit, kate, mousepad, etc). The edits I had to make are show in <strong>bold</strong> below.</p>
<div class="term"></p>
<pre>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
&lt;!DOCTYPE policyconfig PUBLIC
 "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1.0/policyconfig.dtd"&gt;

&lt;!--
Policy definitions for ConsoleKit
--&gt;

&lt;policyconfig&gt;

  &lt;action id="org.freedesktop.consolekit.system.stop"&gt;
    &lt;description&gt;Stop the system&lt;/description&gt;
    &lt;message&gt;System policy prevents stopping the system&lt;/message&gt;
    &lt;defaults&gt;
      &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
    &lt;/defaults&gt;
  &lt;/action&gt;

  &lt;action id="org.freedesktop.consolekit.system.stop-multiple-users"&gt;
    &lt;description&gt;Stop the system when multiple users are logged in&lt;/description&gt;
    &lt;message&gt;System policy prevents stopping the system when other users are logged in&lt;/message&gt;
    &lt;defaults&gt;
      &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
      <strong>&lt;!--File edited to fix shutdown issue after installing Plex Media Server.--&gt;
      &lt;!-- &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt; --&gt;
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
      &lt;!--End Edit--&gt;</strong>
    &lt;/defaults&gt;
  &lt;/action&gt;

  &lt;action id="org.freedesktop.consolekit.system.restart"&gt;
    &lt;description&gt;Restart the system&lt;/description&gt;
    &lt;message&gt;System policy prevents restarting the system&lt;/message&gt;
    &lt;defaults&gt;
      &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
    &lt;/defaults&gt;
  &lt;/action&gt;

  &lt;action id="org.freedesktop.consolekit.system.restart-multiple-users"&gt;
    &lt;description&gt;Restart the system when multiple users are logged in&lt;/description&gt;
    &lt;message&gt;System policy prevents restarting the system when other users are logged in&lt;/message&gt;
    &lt;defaults&gt;
      &lt;allow_inactive&gt;no&lt;/allow_inactive&gt;
      <strong>&lt;!--File edited to fix reboot issue after installing Plex Media Server.--&gt;
      &lt;!-- &lt;allow_active&gt;auth_admin_keep&lt;/allow_active&gt; --&gt;
      &lt;allow_active&gt;yes&lt;/allow_active&gt;
      &lt;!--End Edit--&gt;</strong>
    &lt;/defaults&gt;
  &lt;/action&gt;

&lt;/policyconfig&gt;</pre>
<p></div>
<p>I haven't had the above issue with a recent install of Kubuntu 11.10, but it does appear that <a title="&quot;Restart&quot; logs out, even when there are no other people logged in" href="https://bugs.launchpad.net/ubuntu/+source/gnome-session/+bug/838792?comments=all" target="_blank">it's affecting users of Ubuntu 11.10</a>.</p>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/TqzV4D-CLYRyf-SHXK6zTPU7QrI/0/da"><img src="http://feedads.g.doubleclick.net/~a/TqzV4D-CLYRyf-SHXK6zTPU7QrI/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/TqzV4D-CLYRyf-SHXK6zTPU7QrI/1/da"><img src="http://feedads.g.doubleclick.net/~a/TqzV4D-CLYRyf-SHXK6zTPU7QrI/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=YYm9kQcPq6c:yTlGLE7J69Y:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=YYm9kQcPq6c:yTlGLE7J69Y:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=YYm9kQcPq6c:yTlGLE7J69Y:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=YYm9kQcPq6c:yTlGLE7J69Y:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=YYm9kQcPq6c:yTlGLE7J69Y:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=YYm9kQcPq6c:yTlGLE7J69Y:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=YYm9kQcPq6c:yTlGLE7J69Y:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=YYm9kQcPq6c:yTlGLE7J69Y:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=YYm9kQcPq6c:yTlGLE7J69Y:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=YYm9kQcPq6c:yTlGLE7J69Y:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=YYm9kQcPq6c:yTlGLE7J69Y:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/YYm9kQcPq6c" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2012/03/fix-shutdown-reboot-issue-multi-user-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2012/03/fix-shutdown-reboot-issue-multi-user-ubuntu/</feedburner:origLink></item>
		<item>
		<title>Going Back To Windows?</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/LGP4w6tvVss/</link>
		<comments>http://tuxtweaks.com/2012/03/going-back-to-windows/#comments</comments>
		<pubDate>Mon, 12 Mar 2012 03:02:49 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[FOSS]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[opinion]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=1974</guid>
		<description><![CDATA[I just read a great article on the current state of desktop Linux over at dedoimedo.com called "Screw this, I'm going back to Windows!" I really think it's worth the time to read for anyone who's involved in the Linux community, whether you're a developer, or just a casual user like me. The author doesn't [...]]]></description>
			<content:encoded><![CDATA[<p>I just read a great article on the current state of desktop Linux over at <a title="dedoimedo" href="http://www.dedoimedo.com/" target="_blank">dedoimedo.com</a> called "<a title="Screw this, I'm going back to Windows!" href="http://www.dedoimedo.com/computers/going-to-windows.html" target="_blank">Screw this, I'm going back to Windows!</a>" I really think it's worth the time to read for anyone who's involved in the Linux community, whether you're a developer, or just a casual user like me.</p>
<p>The author doesn't have comments enabled on his site, so I sent him an email. Here's a copy.<span id="more-1974"></span></p>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<div>&nbsp;</div>
<blockquote><p>Igor,</p>
<p>Thanks for writing your piece, "Screw this, I'm going back to<br />
Windows!" It echo's many of the same sentiments I've had recently, but<br />
I haven't had the time or energy to write a piece such as yours. I've<br />
recently been going through a new computer build with an Intel Sandy<br />
Bridge processor and have yet to find a distro that fully meets my<br />
needs.</p>
<p>I was happy with Ubuntu Lucid on my old 32 bit machine, but I've found<br />
the 64 bit version to be buggy and not take full advantage of my new<br />
processor. I tried Ubuntu 11.10, but can't get used to Unity; not so<br />
good on a 22 inch monitor. Using Gnome fallback is OK, but it's<br />
obvious that there's been little or no work to integrate the system to<br />
be used in this mode.</p>
<p>I'm now on Kubuntu 11.10 and it's been a rocky start. I've run into<br />
issues with my hardware that I didn't have with Ubuntu 11.10. WTF? I<br />
don't know, maybe I'll give Xubuntu or Open SUSE a try, but I'm really<br />
just getting tired of screwing around and just want something that<br />
works. This is the first time in years that I've seriously considered<br />
buying a copy of Windows.</p>
<p>Thanks again for saying what needed to be said.</p>
<p>Sincerely,<br />
Linerd</p></blockquote>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/uoOLBykvEoRxmi0sqsSk3Rz0W1w/0/da"><img src="http://feedads.g.doubleclick.net/~a/uoOLBykvEoRxmi0sqsSk3Rz0W1w/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/uoOLBykvEoRxmi0sqsSk3Rz0W1w/1/da"><img src="http://feedads.g.doubleclick.net/~a/uoOLBykvEoRxmi0sqsSk3Rz0W1w/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=LGP4w6tvVss:RlDi8czPlC8:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=LGP4w6tvVss:RlDi8czPlC8:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=LGP4w6tvVss:RlDi8czPlC8:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=LGP4w6tvVss:RlDi8czPlC8:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=LGP4w6tvVss:RlDi8czPlC8:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=LGP4w6tvVss:RlDi8czPlC8:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=LGP4w6tvVss:RlDi8czPlC8:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=LGP4w6tvVss:RlDi8czPlC8:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=LGP4w6tvVss:RlDi8czPlC8:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=LGP4w6tvVss:RlDi8czPlC8:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=LGP4w6tvVss:RlDi8czPlC8:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/LGP4w6tvVss" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2012/03/going-back-to-windows/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2012/03/going-back-to-windows/</feedburner:origLink></item>
		<item>
		<title>Fixing Variable Bit Rate MP3′s With vbrfix</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/-6azR2RIcps/</link>
		<comments>http://tuxtweaks.com/2012/03/fixing-variable-bit-rate-mp3s-with-vbrfix/#comments</comments>
		<pubDate>Sun, 04 Mar 2012 21:04:38 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[command line]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=1948</guid>
		<description><![CDATA[Some MP3 encoders fail to create the proper file headers when encoding variable bit rate MP3 files. When that happens, the song length displayed will often be be incorrect when playing the song back. One of the ways this can be handled is by adding a Xing header to the MP3 file. One tool that's [...]]]></description>
			<content:encoded><![CDATA[<p>Some MP3 encoders fail to create the proper file headers when encoding variable bit rate MP3 files. When that happens, the song length displayed will often be be incorrect when playing the song back. One of the ways this can be handled is by adding a <strong>Xing header</strong> to the MP3 file. One tool that's available on Linux to do this is <a title="vbrfix Home Page" href="http://gna.org/projects/vbrfix" target="_blank"><em><strong>vbrfix</strong></em></a>.</p>
<p>To install vbrfix in Ubuntu, first make sure that the <strong>universe</strong> repository is enabled in your software sources. Then you can install it through one of the graphical package managers, or from the command line with: <span id="more-1948"></span></p>
<div class="term">sudo apt-get install vbrfix</div>
<p>&nbsp;</p>
<p><strong>vbrfix</strong> is a command line tool. To use it, open a terminal window and navigate to the directory containing the files that you want to fix. Then, issue the command:</p>
<div class="term">vbrfix <em>in-file</em>.mp3 <em>out-file</em>.mp3</div>
<p>&nbsp;</p>
<p>Where <strong><em>in-file.mp3</em></strong> is the file to be fixed and <strong><em>out-file.mp3</em></strong> is the fixed version of that file. You can also allow it to overwrite the old file with the newer, fixed version. Simply use the same file name for output as you use for input.</p>
<div class="term">vbrfix <em>file-name</em>.mp3 <em>file-name</em>.mp3</div>
<p>&nbsp;</p>
<p>Now, if you would like to fix and overwrite all of the MP3 files in your working directory, you can use a loop like this. Note: this assumes your file extensions are all in lower case (.mp3).</p>
<div class="term">for i in *.mp3; do vbrfix $i $i; done</div>
<p>&nbsp;</p>
<p>I've never had a problem with vbrfix, but you might consider first copying your files to another directory make sure you don't screw up your original files.</p>
<p>To avoid needing a tool like this in the future, make sure to use an encoder that writes the Xing header. Gstreamer can do this if you include <strong>xingmux</strong> in the pipeline. Here's a script I wrote to <a title="Batch Convert Audio to MP3 with Gstreamer" href="http://tuxtweaks.com/2011/12/batch-converting-audio-with-gstreamer/" target="_blank">batch convert audio files to MP3 using Gstreamer</a>.</p>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/ydON19IH18zFcgzKzAA3GUvf7Qk/0/da"><img src="http://feedads.g.doubleclick.net/~a/ydON19IH18zFcgzKzAA3GUvf7Qk/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/ydON19IH18zFcgzKzAA3GUvf7Qk/1/da"><img src="http://feedads.g.doubleclick.net/~a/ydON19IH18zFcgzKzAA3GUvf7Qk/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=-6azR2RIcps:MOlUefBuGPA:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=-6azR2RIcps:MOlUefBuGPA:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=-6azR2RIcps:MOlUefBuGPA:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=-6azR2RIcps:MOlUefBuGPA:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=-6azR2RIcps:MOlUefBuGPA:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=-6azR2RIcps:MOlUefBuGPA:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=-6azR2RIcps:MOlUefBuGPA:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=-6azR2RIcps:MOlUefBuGPA:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=-6azR2RIcps:MOlUefBuGPA:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=-6azR2RIcps:MOlUefBuGPA:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=-6azR2RIcps:MOlUefBuGPA:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/-6azR2RIcps" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2012/03/fixing-variable-bit-rate-mp3s-with-vbrfix/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2012/03/fixing-variable-bit-rate-mp3s-with-vbrfix/</feedburner:origLink></item>
		<item>
		<title>Creating A Terminal Window Clock</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/QSOv5lS4nBw/</link>
		<comments>http://tuxtweaks.com/2012/01/creating-a-terminal-window-clock/#comments</comments>
		<pubDate>Wed, 11 Jan 2012 04:58:08 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[command line]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[while loop]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=1940</guid>
		<description><![CDATA[If you've been using Linux for a while, you may be familiar with the terminal command, date. The date command will display the current date and time to the terminal. On my system, the default output of date looks like this: The output can be adjusted with command line switches to show only the current [...]]]></description>
			<content:encoded><![CDATA[<p>If you've been using Linux for a while, you may be familiar with the terminal command, <em><strong>date</strong></em>. The <strong><em>date</em></strong> command will display the current date and time to the terminal. On my system, the default output of date looks like this:<span id="more-1940"></span></p>
<div class="term">Tue Jan 10 23:23:21 EST 2012</div>
<p>The output can be adjusted with command line switches to show only the current time. The time will be output in the format of the system locale by using the <strong>+%r</strong> switch, so the command will look like this:</p>
<div class="term">date +%r</div>
<p>Which gives the following output on my system:</p>
<div class="term">11:23:22 PM</div>
<p>So now that I can display the current time, I just need to figure out how to continuously update the information in order to create a terminal clock. I'm going to do that by using the <strong><em>echo</em></strong> command to display the output of the <strong><em>date</em></strong> command. By using some options with <strong>echo</strong> so that the output gets over-written, and placing that command in an infinite loop, I can display a simple clock in the terminal.</p>
<p>So here's the command:</p>
<div class="term"><code>clear; while true; do echo -e \\b\\b\\b\\b\\b\\b\\b\\b\\b\\b\\b\\b`date +%r` \\c ; sleep 1; done</code></div>
<p>Take note of the back-ticks around the <strong><em>date</em></strong> command. That tells the <strong><em>echo</em></strong> command to display the results of the <em><strong>date</strong></em> command. The "\\b" enters a backspace into the command and "\\c" tells <strong><em>echo</em></strong> not to enter a newline character. The number of \\b's needed will depend on the output time display format for your locale, so adjust this up or down as needed.</p>
<p>All in all, it's not that useful as most GUI based systems have a clock build in, but it provides a nice example of using an infinite loop as well as some of the special options available with the <em><strong>echo</strong></em> and <strong><em>date</em></strong> commands.</p>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/vwo_aLh58GYpMXqrnnLLFi7NRVY/0/da"><img src="http://feedads.g.doubleclick.net/~a/vwo_aLh58GYpMXqrnnLLFi7NRVY/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/vwo_aLh58GYpMXqrnnLLFi7NRVY/1/da"><img src="http://feedads.g.doubleclick.net/~a/vwo_aLh58GYpMXqrnnLLFi7NRVY/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=QSOv5lS4nBw:mAbzjYPr1TI:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=QSOv5lS4nBw:mAbzjYPr1TI:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=QSOv5lS4nBw:mAbzjYPr1TI:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=QSOv5lS4nBw:mAbzjYPr1TI:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=QSOv5lS4nBw:mAbzjYPr1TI:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=QSOv5lS4nBw:mAbzjYPr1TI:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=QSOv5lS4nBw:mAbzjYPr1TI:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=QSOv5lS4nBw:mAbzjYPr1TI:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=QSOv5lS4nBw:mAbzjYPr1TI:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=QSOv5lS4nBw:mAbzjYPr1TI:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=QSOv5lS4nBw:mAbzjYPr1TI:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/QSOv5lS4nBw" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2012/01/creating-a-terminal-window-clock/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2012/01/creating-a-terminal-window-clock/</feedburner:origLink></item>
		<item>
		<title>Batch Converting Audio With GStreamer</title>
		<link>http://feedproxy.google.com/~r/tuxtweaks/~3/vGbtOTYVL9Q/</link>
		<comments>http://tuxtweaks.com/2011/12/batch-converting-audio-with-gstreamer/#comments</comments>
		<pubDate>Mon, 19 Dec 2011 20:57:17 +0000</pubDate>
		<dc:creator>Linerd</dc:creator>
				<category><![CDATA[bash]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[lame]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[mp3]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[audio]]></category>
		<category><![CDATA[flac]]></category>
		<category><![CDATA[GStreamer]]></category>
		<category><![CDATA[ogg]]></category>

		<guid isPermaLink="false">http://tuxtweaks.com/?p=1931</guid>
		<description><![CDATA[I recently got a new TV that allows me to stream audio and video from my computer to the TV. I tend to archive music from CD's I've purchased in FLAC format. Unfortunately, FLAC is not one of the formats supported by my TV. I decided to write a little script to convert my music [...]]]></description>
			<content:encoded><![CDATA[<p>I recently got a new TV that allows me to stream audio and video from my computer to the TV. I tend to archive music from CD's I've purchased in FLAC format. Unfortunately, FLAC is not one of the formats supported by my TV. I decided to write a little script to convert my music archive into one of the supported file formats. <span id="more-1931"></span></p>
<p>I've done a few different posts about re-encoding audio files. In my earliest one I showed how to <a title="Re-sample MP3 files with LAME" href="http://tuxtweaks.com/2008/08/how-to-resample-mp3-audio-files-on-linux-using-lame/" target="_blank">re-sample a folder of MP3s to a lower bitrate using LAME</a>. That process had the issue of losing the ID3 tags and required an ugly work around to partially solve the issue. I then some other posts showing how to <a title="Tux Tweaks: GStreamer" href="http://tuxtweaks.com/tag/gstreamer/" target="_blank">convert a few different audio formats using GStreamer</a>, but the process was neither generic or automated. GStreamer, however, does a great job of retaining  ID3 tags and other types of metadata, so it seemed like a good place to start with a new script.</p>
<p>GStreamer also has a great plugin that can determine what type of audio file is being input, so it can be used to make a fairly generic script that can handle most audio file types as input. The following script will convert all audio files in a folder to MP3 format. It will even re-encode/re-sample MP3's to the desired quality level. I've chosen to use variable bitrate encoding, but the GStreamer pipeline could be easily altered to do constant bitrate instead. You can increase or decrease the average bitrate of the output by adjusting the quality parameter in the pipeline.</p>
<div class="term"></p>
<pre>#!/bin/bash

######################################################################
#                                                                    #
# NAME:            conv2mp3                                          #
# AUTHOR:          Linerd (http://tuxtweaks.com)                     #
# LICENSE:         CC BY 3.0                                         #
#                  http://creativecommons.org/licenses/by/3.0/       #
# REQUIRES:        GStreamer, GStreamer plugins (good, bad, ugly),   #
#                  lame                                              #
# VERSION:         1.0                                               #
# DESCRIPTION:     A program to re-encode audio to MP3 using         #
#                  GStreamer. This script will convert all audio     #
#                  files in a directory to MP3 format. The new files #
#                  will be placed in a sub-directory of the same     #
#                  name.                                             #
#                                                                    #
######################################################################

# Create a directory for the MP3 files
FILEDIR=${PWD##*/}
OUTDIR="$FILEDIR"

echo "Directory is: $FILEDIR"

# Check if conversion/resample directory exists and create it if it doesn't.
shopt -s nocasematch   # Make text evaluation case insensitive
if
   test -e $OUTDIR
then
   echo -e  "File/directory \e[4m$OUTDIR\e[0m already exists. Files may be overwritten - continue? (Y/n)"
   read REPLY
   if
     [[ "$REPLY" = "n" ]]
   then
     exit 1
   fi
else
   mkdir -p "$OUTDIR"
fi
shopt -u nocasematch  # Make text evaluation case sensitive again

# Set newline as the field separator
IFS=$'\n'

for FILE in `file * | grep udio | cut -d: -f1 | sed 's: :\\ :g'`; do
  echo "File name is: $FILE"
  NAME=${FILE%.*}  #Get file basename
  echo "Basename is: $NAME"
  EXT=${FILE##*.}  #Get file extension
  echo "Extension is: $EXT"
  echo
  echo "New file is $OUTDIR/$NAME.mp3"
  # GStreamer pipeline - use VBR quality setting. Range allowed 0-10 with
  # 0 being the best quality.
  gst-launch filesrc location="$FILE" ! decodebin2 ! audioconvert ! lamemp3enc target=quality quality=3 ! xingmux ! id3v2mux ! filesink location="./$OUTDIR/$NAME".mp3
done

exit 0</pre>
<p></div>
<p>Save the above script as a file called <strong><em>conv2mp3</em></strong> somewhere in your executable path. I suggest <strong>/home/<em>yourID</em>/bin</strong>. Then you need to make the file executable. You can probably do that with your file manager, or you can do it through the terminal like this:<br />
<div class="term">cd /home/yourID/bin<br />
chmod +x conv2mp3</div></p>
<p>Now you are ready to run the script. Using a terminal, navigate to the directory with the files that you want to convert. Then, just enter the command:<br />
<div class="term">conv2mp3</div></p>
<p>The script will then convert the files to MP3 and place them in a subdirectory with the same name as the one containing your original files. Here's a screen shot of my directory before running <strong>conv2mp3</strong>.</p>
<p><a href="http://tuxtweaks.com/wp-content/uploads/2011/12/Before_conv2mp3_wm.png" rel="lightbox[1931]"><img class="alignnone size-thumbnail wp-image-1935" title="Before conv2mp3" src="http://tuxtweaks.com/wp-content/uploads/2011/12/Before_conv2mp3_wm-134x150.png" alt="Before conv2mp3" width="134" height="150" /></a></p>
<p>Here's what the same directory looks like after running <strong>conv2mp3</strong>.</p>
<p><a href="http://tuxtweaks.com/wp-content/uploads/2011/12/After_conv2mp3_wm.png" rel="lightbox[1931]"><img class="alignnone size-thumbnail wp-image-1936" title="After conv2mp3" src="http://tuxtweaks.com/wp-content/uploads/2011/12/After_conv2mp3_wm-133x150.png" alt="After conv2mp3" width="133" height="150" /></a></p>
<p>And here's the subdirectory containing the new MP3 files.</p>
<p><a href="http://tuxtweaks.com/wp-content/uploads/2011/12/After_conv2mp3_contents_wm.png" rel="lightbox[1931]"><img class="alignnone size-thumbnail wp-image-1937" title="After conv2mp3 subdirectory contents" src="http://tuxtweaks.com/wp-content/uploads/2011/12/After_conv2mp3_contents_wm-133x150.png" alt="After conv2mp3 subdirectory contents" width="133" height="150" /></a></p>
<p>&nbsp;</p>
<div style='clear:both'></div>
<p><a href="http://feedads.g.doubleclick.net/~a/trTab24pJGHbzq3hMeu6cEc6OUA/0/da"><img src="http://feedads.g.doubleclick.net/~a/trTab24pJGHbzq3hMeu6cEc6OUA/0/di" border="0" ismap="true"></img></a><br/>
<a href="http://feedads.g.doubleclick.net/~a/trTab24pJGHbzq3hMeu6cEc6OUA/1/da"><img src="http://feedads.g.doubleclick.net/~a/trTab24pJGHbzq3hMeu6cEc6OUA/1/di" border="0" ismap="true"></img></a></p><div class="feedflare">
<a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=vGbtOTYVL9Q:JWNdk1hrvhw:yIl2AUoC8zA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=yIl2AUoC8zA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=vGbtOTYVL9Q:JWNdk1hrvhw:F7zBnMyn0Lo"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=vGbtOTYVL9Q:JWNdk1hrvhw:F7zBnMyn0Lo" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=vGbtOTYVL9Q:JWNdk1hrvhw:7Q72WNTAKBA"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=7Q72WNTAKBA" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=vGbtOTYVL9Q:JWNdk1hrvhw:V_sGLiPBpWU"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=vGbtOTYVL9Q:JWNdk1hrvhw:V_sGLiPBpWU" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=vGbtOTYVL9Q:JWNdk1hrvhw:qj6IDK7rITs"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=qj6IDK7rITs" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=vGbtOTYVL9Q:JWNdk1hrvhw:l6gmwiTKsz0"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=l6gmwiTKsz0" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=vGbtOTYVL9Q:JWNdk1hrvhw:gIN9vFwOqvQ"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?i=vGbtOTYVL9Q:JWNdk1hrvhw:gIN9vFwOqvQ" border="0"></img></a> <a href="http://feeds.feedburner.com/~ff/tuxtweaks?a=vGbtOTYVL9Q:JWNdk1hrvhw:TzevzKxY174"><img src="http://feeds.feedburner.com/~ff/tuxtweaks?d=TzevzKxY174" border="0"></img></a>
</div><img src="http://feeds.feedburner.com/~r/tuxtweaks/~4/vGbtOTYVL9Q" height="1" width="1"/>]]></content:encoded>
			<wfw:commentRss>http://tuxtweaks.com/2011/12/batch-converting-audio-with-gstreamer/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		<feedburner:origLink>http://tuxtweaks.com/2011/12/batch-converting-audio-with-gstreamer/</feedburner:origLink></item>
	</channel>
</rss>

