<?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>lejnieks &#187; Ubuntu</title>
	<atom:link href="http://www.lejnieks.com/tag/ubuntu/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.lejnieks.com</link>
	<description></description>
	<lastBuildDate>Fri, 29 Jan 2010 19:22:21 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Shell Bash History</title>
		<link>http://www.lejnieks.com/2009/02/27/shell-bash-history/</link>
		<comments>http://www.lejnieks.com/2009/02/27/shell-bash-history/#comments</comments>
		<pubDate>Fri, 27 Feb 2009 20:53:17 +0000</pubDate>
		<dc:creator>klejnieks</dc:creator>
				<category><![CDATA[Hosting]]></category>
		<category><![CDATA[Server]]></category>
		<category><![CDATA[Shell]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://lejnieks.com/?p=57</guid>
		<description><![CDATA[Every want to recall something you did / wrote in your terminal months ago. I have configured a few servers in my day and through the that time I try to be good and document my steps but every now and again I go off on a testing spree and try a few things, get [...]]]></description>
			<content:encoded><![CDATA[<p>Every want to recall something you did / wrote in your terminal months ago. I have configured a few servers in my day and through the that time I try to be good and document my steps but every now and again I go off on a testing spree and try a few things, get something working and shift focus and forget about documenting what made it work.</p>
<p>I didnt realize until only recently that everything you type into you terminal window gets logged. So if you ever want to recall your previous bash scripts open your terminal and simply type</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">history</span></pre></div></div>

<p>Which will return the log dump of your bash history, every command you have ever typed. Great if you cant remember exactly which vnc server you installed last year to get a headless server running flex unit or whatever may have slipped your mind. Test</p>
]]></content:encoded>
			<wfw:commentRss>http://www.lejnieks.com/2009/02/27/shell-bash-history/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Installing LAMP on a clean Ubuntu server</title>
		<link>http://www.lejnieks.com/2009/02/17/installing-lamp-on-a-clean-ubuntu-server/</link>
		<comments>http://www.lejnieks.com/2009/02/17/installing-lamp-on-a-clean-ubuntu-server/#comments</comments>
		<pubDate>Wed, 18 Feb 2009 04:53:45 +0000</pubDate>
		<dc:creator>klejnieks</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[Continuous Integration]]></category>
		<category><![CDATA[Hudson]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://lejnieks.com/?p=55</guid>
		<description><![CDATA[I recently just setup a clean Ubuntu server, I&#8217;m going to use this box for my dedicated CI machine and repository. To prepare this box for being a Continuous Integration machine I need to do a few things first including getting it to be accessible to the web. This post walks through getting a clean [...]]]></description>
			<content:encoded><![CDATA[<p>I recently just setup a clean <a title="Ubuntu" href="http://ubuntu.com" target="_blank">Ubuntu</a> server, I&#8217;m going to use this box for my dedicated CI machine and repository. To prepare this box for being a Continuous Integration machine I need to do a few things first including getting it to be accessible to the web. This post walks through getting a clean Ubuntu server setup with LAMP.</p>
<p><span id="more-55"></span>First thing your going to want to do on a fresh install is update your repository sources list otherwise your box is pretty much useless.</p>
<p><strong>Update Sources List</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update</pre></div></div>

<p>Now your repository is updated and ready for installs</p>
<p><strong>Install LAMP</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> apache2
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-php5
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> mysql-server</pre></div></div>

<p>If / when prompted set your mysql root password. Next edit bind-address in /etc/mysql/my.cnf and replacing its value (127.0.0.1) by your IP address</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>mysql<span style="color: #000000; font-weight: bold;">/</span>my.cnf</pre></div></div>

<p><strong>Install phpMyAdmin</strong></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> libapache2-mod-auth-mysql php5-mysql phpmyadmin</pre></div></div>

<p>Now edit the apache2 configuration file to include phpMyAdmin</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>apache2.conf</pre></div></div>

<p>At the end of the file add the following two lines</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Include phpmyadmin configuration</span>
Include <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>phpmyadmin<span style="color: #000000; font-weight: bold;">/</span>apache.conf</pre></div></div>

<p>For good measure restart apache</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<p>Now lets get phpMyAdmin to work with php5</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> php5-mysql mysql-client</pre></div></div>

<p>You&#8217;r going to need to add the following line to the php.ini file &#8220;extensions=mysql.so&#8221;</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>php5<span style="color: #000000; font-weight: bold;">/</span>apache2<span style="color: #000000; font-weight: bold;">/</span>php.ini
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>apache2 restart</pre></div></div>

<p>Now that your done, make sure you chmod your web directory</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> 0777 <span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>www <span style="color: #660033;">-R</span></pre></div></div>

<p><strong>original sources</strong><br />
<a href="http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/">http://www.howtogeek.com/howto/ubuntu/installing-php5-and-apache-on-ubuntu/</a><br />
<a href="http://joeabiraad.com/linuxunix/installing-lamp-on-ubuntu-710-linuxapachemysqlphp/100">http://joeabiraad.com/linuxunix/installing-lamp-on-ubuntu-710-linuxapachemysqlphp/100</a><br />
<a href="https://help.ubuntu.com/community/ApacheMySQLPHP">https://help.ubuntu.com/community/ApacheMySQLPHP</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.lejnieks.com/2009/02/17/installing-lamp-on-a-clean-ubuntu-server/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
