<?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>Likesalmon Design &#187; Linux</title>
	<atom:link href="http://www.likesalmondesign.com/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.likesalmondesign.com</link>
	<description>Open Source Web Design and Development from Scratch</description>
	<lastBuildDate>Tue, 15 Jun 2010 03:51:47 +0000</lastBuildDate>
	
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>The better way to install LAMP on Ubuntu Karmic 9.10</title>
		<link>http://www.likesalmondesign.com/the-better-way-to-install-lamp-on-ubuntu-karmic-9-10/</link>
		<comments>http://www.likesalmondesign.com/the-better-way-to-install-lamp-on-ubuntu-karmic-9-10/#comments</comments>
		<pubDate>Tue, 30 Mar 2010 03:30:44 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.likesalmondesign.com/?p=295</guid>
		<description><![CDATA[All this comes from here:
https://help.ubuntu.com/community/ApacheMySQLPHP
In the teminal:

$ sudo tasksel install lamp-server
$ sudo apt-get install phpmyadmin
$ sudo gedit /etc/apache2/apache2.conf

Add the following to the end of this file:  &#8220;Include /etc/phpmyadmin/apache.conf&#8221;


Edit the /etc/php5/apache2/php.ini file and increase the memory_limit value.  I used 64M, but that may be overkill.

]]></description>
			<content:encoded><![CDATA[<p>All this comes from here:</p>
<p><a href="https://help.ubuntu.com/community/ApacheMySQLPHP" title="Ubuntu is rad, right?">https://help.ubuntu.com/community/ApacheMySQLPHP</a></p>
<p>In the teminal:</p>
<ul>
<li>$ sudo tasksel install lamp-server</li>
<li>$ sudo apt-get install phpmyadmin</li>
<li>$ sudo gedit /etc/apache2/apache2.conf
<ul>
<li>Add the following to the end of this file:  &#8220;Include /etc/phpmyadmin/apache.conf&#8221;</li>
</ul>
</li>
<li>Edit the /etc/php5/apache2/php.ini file and increase the <em>memory_limit</em> value.  I used 64M, but that may be overkill.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.likesalmondesign.com/the-better-way-to-install-lamp-on-ubuntu-karmic-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bash aliases: create your own bash shortcuts!</title>
		<link>http://www.likesalmondesign.com/bash-aliases-create-your-own-bash-shortcuts/</link>
		<comments>http://www.likesalmondesign.com/bash-aliases-create-your-own-bash-shortcuts/#comments</comments>
		<pubDate>Fri, 26 Feb 2010 02:13:12 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.likesalmondesign.com/?p=286</guid>
		<description><![CDATA[When I&#8217;m building websites especially, I have to work with a lot of deeply nested files.  But typing cd ~/public_html/websitename/wp-content/themes/themename/ in the terminal every time is giving me carpal tunnel, so I found a better way:
First open ~/.barshrc in a text editor and uncomment lines 73 through 75 so they look like this:
if [ [...]]]></description>
			<content:encoded><![CDATA[<p>When I&#8217;m building websites especially, I have to work with a lot of deeply nested files.  But typing <code>cd ~/public_html/websitename/wp-content/themes/themename/</code> in the terminal every time is giving me carpal tunnel, so I found a better way:</p>
<p>First open ~/.barshrc in a text editor and uncomment lines 73 through 75 so they look like this:</p>
<p><code>if [ -f ~/.bash_aliases ]; then<br />
. ~/.bash_aliases<br />
fi</code></p>
<p>Then create a file called <code>.bash_aliases</code> in your home directory (if it doesn&#8217;t already exist).  Edit that file like so:</p>
<p><code>alias themename="cd ~/public_html/websitename/wp-content/themes/themename/"<br />
</code></p>
<p>Restart terminal (<em>or source .bashrc with <code>$ source ~/.bashrc</code>, or even terser <code>$. .bashrc</code></em>), type in <code>themename</code> and press enter.  Voila!  Your are cd&#8217;ed all the way into that deeply nested file without having to type the whole thing.  This works great for lots of other common commands that are a little too verbose:</p>
<p><code>alias ins="sudo apt-get install"<br />
</code></p>
<p>Once those lines are added to your <code>.bash_aliases</code> file and you restart terminal, you will be able to install new packages like so:</p>
<p><code>ins <em>packagename</em></code></p>
<p>Handy eh?  (That last suggestion is courtesy of the always useful <a title="Go to the Lifehacker website" href="http://lifehacker.com/270799/create-terminal-shortcuts">Lifehacker</a>)</p>
]]></content:encoded>
			<wfw:commentRss>http://www.likesalmondesign.com/bash-aliases-create-your-own-bash-shortcuts/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Use touch to create empty files</title>
		<link>http://www.likesalmondesign.com/use-touch-to-create-empty-files/</link>
		<comments>http://www.likesalmondesign.com/use-touch-to-create-empty-files/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 04:11:07 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.likesalmondesign.com/?p=214</guid>
		<description><![CDATA[I find myself needing this all the time, especially when I&#8217;m doing a tutorial on something nerdy.
Create an empty file in the current directory from the command line:
$ touch filename
]]></description>
			<content:encoded><![CDATA[<p>I find myself needing this all the time, especially when I&#8217;m doing a tutorial on something nerdy.</p>
<h3>Create an empty file in the current directory from the command line:</h3>
<p><code>$ touch <em>filename</em></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.likesalmondesign.com/use-touch-to-create-empty-files/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>VirtualBox on Ubuntu Jaunty for Testing Internet Explorer in Windows</title>
		<link>http://www.likesalmondesign.com/virtualbox-on-ubuntu-jaunty-for-testing-ie6/</link>
		<comments>http://www.likesalmondesign.com/virtualbox-on-ubuntu-jaunty-for-testing-ie6/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 04:07:55 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Software I use]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[VirtualBox]]></category>

		<guid isPermaLink="false">http://www.likesalmondesign.com/?p=177</guid>
		<description><![CDATA[I really loved using VMWare Fusion in OSX to test my webpages in Windows.  The power to just drag a whole Windows installation into the trash when it gets jacked up is intoxicating. Unfortunatly, Jaunty is still not supported by VMWare, and the bugs were just to much.  Plus, I really didn&#8217;t like the [...]]]></description>
			<content:encoded><![CDATA[<p>I really loved using VMWare Fusion in OSX to test my webpages in Windows.  The power to just drag a whole Windows installation into the trash when it gets jacked up is intoxicating. Unfortunatly, Jaunty is still not supported by VMWare, and the bugs were just to much.  Plus, I really didn&#8217;t like the web interface. Fortunately, I found VirtualBox which is at least as sleek as Fusion, but free!</p>
<p>To install VirtualBox, I got a lot of help from hopla on the <a title="Go to the Ubuntu Forum" href="http://ubuntuforums.org/showthread.php?t=1097080">Ubuntu Forum</a>. I quote:</p>
<blockquote><p>You need: virtualbox, qemu, wine</p>
<p>Code:</p>
<p><code>apt-get install virtualbox qemu wine</code></p>
<p>Download the free(!) Microsoft Internet Explorer Application Compatibility Check VPC Images <a href="http://www.microsoft.com/Downloads/details.aspx?FamilyID=21eabb90-958f-4b64-b5f1-73d0a413c8ef&amp;displaylang=en">here</a>.</p>
<p>(Note: you don&#8217;t have to download the full pack, you can cherry pick specific combinations of XP/Vista and IE6-8)</p>
<p>Extract the VPC image(s) with wine (double-click).<br />
(Note: it might take a while before the first window shows up)</p>
<p>Turn the VPC image(s) into (a) VMWare image(s) (which is/are readable by VirtualBox):</p>
<p><code>qemu-img convert -f vpc image.vhd -O vmdk image.vmdk</code></p>
<p>Setup a new VM in VirtualBox, using the vmdk image as an existing disk. Boot it, you will see the Windows boot progress bar and &#8230; it will BSOD shortly after.</p>
<p>Fixing the BSOD:</p>
<p>The BSOD is caused because the virtual Windows tries to load processor drivers for the wrong processor (it is not running on VirtualPC proc, but on VirtualBox proc). Or something like that&#8230;<br />
We need to force Windows not to attempt to load drivers for the processor (it doesn&#8217;t need any proc drivers, because it&#8217;s all virtual anyway).<br />
Start safe mode by (frantically) hitting F8 at Windows boot and choosing safe mode.</p>
<p>Ignore all the &#8216;New hardware&#8217; detected warnings (we will deal with those later). Start a command box and run the following command to disable the loading of processor drivers:</p>
<p>Code:</p>
<p><code>sc config processor start= disabled</code></p>
<p>(note the space between &#8216;=&#8217; and &#8216;disabled&#8217;!)</p>
<p>Restart the virtual Windows, it should now boot all the way to the Windows Desktop.</p></blockquote>
<p>Once your virtual Windows has rebooted, go to Devices -&gt; Install Guest Additions in the VirtualBox window.  This will mount a (virtual) CD with the Guest Additions software.  The autorun feature didn&#8217;t work every time, so if a new window doesn&#8217;t open up, find the Guest Additions CD in Windows Explorer and run the .exe.  This adds a lot of functionality to your virtual machine.</p>
<p>After rebooting the virtual machine, I followed the instructions from <a href="http://primeval-soup.blogspot.com/2009/02/ie8-in-ubuntu-intrepid-with-virtual-box.html">Primeval Soup</a>:</p>
<blockquote><p>In Windows, go to: <em><br />
</em></p>
<p><em>Start &gt; Run &gt; &#8220;cmd&#8221;</em></p>
<p>In the terminal, type:<em><br />
</em></p>
<pre><code>D:\VBoxWindowsAdditions-x86.exe /extract /D=C:\Drivers</code></pre>
<p><em>Start &gt; Administrative Tools &gt; Computer Management</em></p>
<p>Select Device Manager.</p>
<p>Select Batteries, Unknown Device -&gt; <em>Disable</em></p>
<p>Select Sound, video and game controllers, Multimedia Audio Controller -&gt; <em>Disable</em></p>
<p>Select Universal Serial Bus controllers, Universal Serial Bus (USB) Controller -&gt; <em>Disable</em></p>
<p>Select Network Adapters, Ethernet Controller -&gt; <em>Update Driver</em></p>
<p>Select <em>Yes, now and every time</em>, click Next</p>
<p>Select <em>Install from a list or specific location</em>, click Next</p>
<p>Enter location &#8220;C:\Drivers\x86\Network\AMD&#8221;</p>
<p>Click Finish</p>
<p>Open a browser, test connection</p>
<p>You&#8217;re done!</p></blockquote>
<p>And that is a good feeling.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.likesalmondesign.com/virtualbox-on-ubuntu-jaunty-for-testing-ie6/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>lftp is awesome</title>
		<link>http://www.likesalmondesign.com/lftp-is-awesome/</link>
		<comments>http://www.likesalmondesign.com/lftp-is-awesome/#comments</comments>
		<pubDate>Wed, 05 Aug 2009 03:51:17 +0000</pubDate>
		<dc:creator>Ammon</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Solutions]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.likesalmondesign.com/?p=173</guid>
		<description><![CDATA[I&#8217;ve been looking for a command line ftp utility that does tab completion and supports sftp. lftp is it!  It comes pre-installed on Ubuntu 9.04 Jaunty.
change directory: cd
change local directory: lcd
list directory contents: ls
list local directory contents: !ls
print local working directory: lpwd
Put a file: put filename
Put multiple files: mput filename1 filename2
Get a file: get [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been looking for a command line ftp utility that does tab completion and supports sftp. lftp is it!  It comes pre-installed on Ubuntu 9.04 Jaunty.</p>
<p>change directory: <code>cd</code></p>
<p>change local directory: <code>lcd</code></p>
<p>list directory contents: <code>ls</code></p>
<p>list local directory contents: <code>!ls</code></p>
<p>print local working directory: <code>lpwd</code></p>
<p>Put a file: <code>put filename</code></p>
<p>Put multiple files: <code>mput filename1 filename2</code></p>
<p>Get a file: <code>get filename</code></p>
<p>Get multiple files: <code>mget filename1 filename2</code></p>
<p>To login to a host with sftp:</p>
<p><code>lftp -u username sftp://username.server.com</code></p>
<p>To get a folder including all subfolders:</p>
<p><code>mirror filename</code></p>
<p>To put a whole folder and all its contents, without mirroring file permissions:</p>
<p><code>mirror -R -p filename</code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.likesalmondesign.com/lftp-is-awesome/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A list of HTML Snippets in Gedit</title>
		<link>http://www.likesalmondesign.com/a-list-of-html-snippets-in-gedit/</link>
		<comments>http://www.likesalmondesign.com/a-list-of-html-snippets-in-gedit/#comments</comments>
		<pubDate>Tue, 28 Apr 2009 06:50:24 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Gedit]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Tutorial]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.likesalmondesign.com/?p=81</guid>
		<description><![CDATA[Snippets are extremely useful feature of Gedit that make it usable for TextMate fiends like myself.  They work exactly the same as in TM: in Gedit go to Edit -&#62; Preferences -&#62; Plugins and put a check next to &#8220;Snippets&#8221;.  Now open, say, an html file, type body and press TAB.  Gedit [...]]]></description>
			<content:encoded><![CDATA[<p>Snippets are extremely useful feature of Gedit that make it usable for TextMate fiends like myself.  They work exactly the same as in TM: in Gedit go to Edit -&gt; Preferences -&gt; Plugins and put a check next to &#8220;Snippets&#8221;.  Now open, say, an html file, type <code>body</code> and press TAB.  Gedit will automatically fill in the whole body tag complete with closing tag and your cursor conveniently resting in the id argument ready to fill in a value.</p>
<h3>Snippets for HTML</h3>
<p>Here&#8217;s a list of all the Snippets for html files. They are listed by tag names, with the TAB trigger in paratheses.  These will only work in html files, other files have different snippets.</p>
<ul>
<li>Base (base)</li>
<li>Body (body)</li>
<li>Br (Shift+Ctrl+Space)</li>
<li>Div (div)</li>
<li>Form (form)</li>
<li>Head (head)</li>
<li>Heading (h)</li>
<li>HTML &#8212; 4.01 Strict (doctype)</li>
<li>HTML &#8212; 4.0 Transitional (doctype)</li>
<li>Input (input)</li>
<li>Link (link)</li>
<li>Mail Anchor (mailto)</li>
<li>Meta (meta)</li>
<li>Non-Breaking Space (Ctrl+Alt+Space)</li>
<li>Script (script)</li>
<li>Script With External Source (scriptsrc)</li>
<li>Style (style)</li>
<li>Table (table)</li>
<li>Table Row (tr)</li>
<li>Text Area (textarea)</li>
<li>Title (title)</li>
<li>Wrap Selection as Link (ref, Shift+Alt+L)</li>
<li>Wrap Selection in Open/Close Tag (Shift+Alt+W)</li>
<li>XHTML &#8212; 1.0 Frameset (doctype)</li>
<li>XHTML &#8212; 1.0 Strict (doctype)</li>
<li>XHTML &#8212; 1.0 Tran (doctype)</li>
<li>XHTML &#8212; 1.1 (doctype)</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.likesalmondesign.com/a-list-of-html-snippets-in-gedit/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
