<?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>wekadesign &#187; how-to</title>
	<atom:link href="http://www.wekadesign.co.nz/tag/how-to/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.wekadesign.co.nz</link>
	<description>web apps that solve problems</description>
	<lastBuildDate>Sun, 20 Jun 2010 04:08:13 +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>Enable WakeUp from PS2 Keyboard in Ubuntu 8.10</title>
		<link>http://www.wekadesign.co.nz/2009/03/08/enable-wakeup-from-ps2-keyboard-in-ubuntu-810/</link>
		<comments>http://www.wekadesign.co.nz/2009/03/08/enable-wakeup-from-ps2-keyboard-in-ubuntu-810/#comments</comments>
		<pubDate>Sun, 08 Mar 2009 00:02:01 +0000</pubDate>
		<dc:creator>Mike McMurray</dc:creator>
				<category><![CDATA[Interesting Stuff]]></category>
		<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[keyboard]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[power management]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[wakeup]]></category>

		<guid isPermaLink="false">http://www.wekadesign.co.nz/blog/?p=66</guid>
		<description><![CDATA[One of the annoying &#8220;missing features&#8221; I&#8217;ve struggled with under Ubuntu is that I was unable to wakeup the PC from suspend or hibernate with my keyboard. Of course, Windows just does it &#8211; tap the keyboard and the PC starts up again. I could press the power button on the front of the PC, [...]]]></description>
			<content:encoded><![CDATA[<p>One of the annoying &#8220;missing features&#8221; I&#8217;ve struggled with under Ubuntu is that I was unable to wakeup the PC from suspend or hibernate with my keyboard. Of course, Windows just does it &#8211; tap the keyboard and the PC starts up again. I could press the power button on the front of the PC, but its down the side of the desk and not easily accessible.</p>
<p>I found an older post in the Ubuntu forums that had the fix for USB devices and it also works for PS2 with the simplest of changes. So follow these steps and you should be saving power and getting back to work faster.</p>
<p>Open a Terminal and type,</p>
<pre>cat /proc/acpi/wakeup</pre>
<p>Note the entries that come back and you should see a device called &#8220;PS2K&#8221; toward the top if you have a PS2 keyboard. For those with USB, it&#8217;ll be one of the USB items toward the bottom. The entry will probably also have &#8220;Disabled&#8221; on the same line, hence your problem.</p>
<p>To enable this entry, switch to a root session by typing,</p>
<pre>sudo -s</pre>
<p>and enter your password. Now type the following to update the acpi file and toggle &#8220;disabled&#8221; to &#8220;enabled&#8221;, (those with USB devices can try USB0, USB1, etc)</p>
<pre>echo PS2K &gt; /proc/acpi/wakeup</pre>
<p>That should have now enabled your PS2 keyboard to wakeup your PC for <em>this session</em>. Give it a test by putting your machine to sleep and then tapping a key on your keyboard. Probably a good idea to save stuff first, just in case.</p>
<p>If you tried changing a USB device, it may take a few guesses until you find the KB. My mouse was USB0 and clicking any mouse button can also do the wakeup task.</p>
<p>To make this change permanant, you need to add that line to a script and run it when Ubuntu starts. So we create a file called wakeup.sh with the following contents,</p>
<pre>#!/bin/bash
echo PS2K &gt; /proc/acpi/wakeup</pre>
<p>Save it and from a Terminal make it executable so it runs properly as a script and not just a text file,</p>
<pre>chmod +x wakeup.sh</pre>
<p>Now to add it to the startup area go back to your Terminal that&#8217;s running as root. We need to copy the file to the correct location and add it to the startup processes. You&#8217;ll need to run the <em>cp</em> command in the same folder as where you saved your wakeup.sh file.</p>
<pre>cp wakeup.sh /etc/init.d/wakeup.sh
update-rc.d wakeup.sh defaults</pre>
<p>Now when you reboot, the script will run and enable your PS2 keyboard in ACPI so you can wakeup your PC.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekadesign.co.nz/2009/03/08/enable-wakeup-from-ps2-keyboard-in-ubuntu-810/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Installing a Windows Dev Box</title>
		<link>http://www.wekadesign.co.nz/2006/05/14/installing-a-windows-dev-box/</link>
		<comments>http://www.wekadesign.co.nz/2006/05/14/installing-a-windows-dev-box/#comments</comments>
		<pubDate>Sun, 14 May 2006 05:46:24 +0000</pubDate>
		<dc:creator>Mike McMurray</dc:creator>
				<category><![CDATA[Sys Admin]]></category>
		<category><![CDATA[Web Apps]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[how-to]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[subversion]]></category>

		<guid isPermaLink="false">http://wekadesign.co.nz/blog/?p=17</guid>
		<description><![CDATA[In the interest of saving this for future reference, here&#8217;s is a general how-to for installing a Windows based Web development server. The reason for running up a Windows server as opposed to the typical LAMP alternative on Windows was due to frustration. The older Ubuntu server I had just made it very difficult to [...]]]></description>
			<content:encoded><![CDATA[<p>In the interest of saving this for future reference, here&#8217;s is a general how-to for installing a Windows based Web development server.</p>
<p>The reason for running up a Windows server as opposed to the typical LAMP alternative on Windows was due to frustration. The older Ubuntu server I had just made it very difficult to install the versions of PHP and MySQL that I wanted.</p>
<p>Applications I used were:<br />
Apache 2.0.55<br />
PHP 4.4.2<br />
MySQL 4.1.18<br />
Subverison 1.3<br />
<span id="more-17"></span></p>
<p><strong>Download</strong><br />
The application packages you need to download are:<br />
<a href="http://www.apache.org">apache</a>_2.0.55-win32-x86-no_ssl.msi<br />
<a href="http://www.mysql.com">mysql</a>-essential-4.1.18-win32.msi<br />
<a href="http://www.php.net">php</a>-4.4.2-Win32.zip<br />
<a href="http://subversion.tigris.org">svn</a>-1.3.0-setup.exe<br />
<a href="http://dark.clansoft.dk/~mbn/svnservice/">svnservice </a>(to run Subversion as a Windows service/daemon)</p>
<p><strong>Installation</strong><br />
Now we&#8217;ve downloaded the right files we need to install them. for the most part this involves double-clicking the installer package and clicking Next a few times.</p>
<p>Install MySQL and use the Server Config tool to set options including Network Access.<br />
Install Apache to the default location.<br />
Unzip the PHP files to c:\php folder.<br />
Install Subversion using the package defaults.<br />
Unzip the SVNService tool to the Subversion folder and copy the <code>SVNService.exe</code> file to the <code>bin</code> directory.</p>
<p><strong>Configuration</strong></p>
<p><strong>PHP</strong><br />
In the <code>c:\php</code> folder, copy the file <code>php.ini-recommended</code> to <code>php.ini</code>. Change the line that says,<br />
<code>doc_root = </code><br />
to read<br />
<code>doc_root = c:\progra~1\apache~1\apache\htdocs</code></p>
<p>Set the error reporting to a more appropriate level by changing the line that reads,<br />
<code>error_reporting  =  E_ALL</code><br />
to<br />
<code>error_reporting  =  E_ERROR|E_PARSE</code></p>
<p>Copy <code>php.ini</code> to your Windows folder eg. <code>c:\windows\</code></p>
<p>Add the directory path <code>c:\php</code> to your system PATH variable, through My Computerâ†’Propertiesâ†’Advanced<br />
Apache</p>
<p>Open the file c:\progra~1\apache~1\apache\conf\httpd.conf and add the following lines,<br />
<code>LoadModule php4_module "c:/php/php4apache2.dll"</code><br />
and further down,<br />
<code>AddType application/x-httpd-php .php</code></p>
<p><strong>Edit:</strong> I neglected to add in some other lines when writing this. In the Apache conf file&#8217;s Module section add,<br />
<code>LoadModule dav_svn_module "C:/Program Files/Subversion/bin/mod_dav_svn.so"</code><br />
<code>LoadModule authz_svn_module "C:/Program Files/Subversion/bin/mod_authz_svn.so"</code><br />
Of course you should change the path to match that of the library files in your Subversion install folder.</p>
<p>Create a file in <code>c:\progra~1\apache~1\apache\htdocs</code> called <code>test.php</code>. In that file place this text,</p>
<p><code>&lt;?php</code><br />
<code>phpinfo();</code><br />
<code>?&gt;</code></p>
<p>Restart the server</p>
<p>Open your browser and go the URL <em>http://your_server/test.php</em>.</p>
<p>You should see a page listing the current PHP settings. If not, check that the Apache service is running and that you can browse to http://. If that works then check the PHP configuration.</p>
<p><strong>Subversion</strong><br />
Create a folder to hold your Subversion repository eg. <code>c:\svn</code>. In that folder create your folder structure for your code. Check the Subversion docs for the guidelines on how to do this the best way. To simply create a new repository called &#8216;project&#8217; type the following line at a command prompt.<br />
<code>svnadmin create c:\svn\project</code></p>
<p>At a command prompt type,<br />
<code>svnservice -install -d -r c:\svn\project</code><br />
which installs and starts the SVN service and tells it to run as a daemon (-d) and point to your code repository (-r xxxxx).</p>
<p>Open up Apache&#8217;s config file again (httpd.conf) and add the following code at the bottom of the file,<br />
<code>&lt;Location /subversion&gt;<br />
DAV svn<br />
SVNPath c:/svn/project<br />
AuthType Basic<br />
AuthName "Subversion Repository"<br />
AuthUserFile conf/svnusers.conf<br />
Require valid-user<br />
&lt;/Location&gt;</code><br />
This tells Apache that any requests for http://your_server/subversion, will use web_dav to look at your code repository at <code>c:\svn\project</code> and only let authorized users see it.</p>
<p>Now we still need to tell Apache who is allowed to view our Subversion repository and who can read and write to our repo(sitory) too. At the cmd prompt again change directory to your Apache conf folder and type,<br />
<code>htpasswd -c svnusers.conf username</code><br />
making sure you replace the &#8216;username&#8217; with your real username. You&#8217;ll be asked to provide a password for that user which Apache will use.</p>
<p>And in the &#8216;project&#8217; repo at <code>c:\svn\project</code> open the <code>conf</code> folder and edit the svnserve.conf file with a text editor. Uncomment a few lines until you have at least,<br />
<code>[general]<br />
anon-access = read  ## Can be none, read, write<br />
auth-access = write   ## Can be none, read, write<br />
password-db = passwd  ## Filename of users store<br />
realm = My Project</code></p>
<p>Now we need to create a <code>passwd </code>file to store the usernames and password used to control access to the repository. It&#8217;s a s imple as a text file with the lines below in it. Add extra users on new line but watch that both username and password are case sensitive.<br />
<code>[users]<br />
myuser= mypassword</code></p>
<p><strong>Extras</strong><br />
If you are unable to connect to the MySQL server using PHPMyAdmin or similar and receive a message like,<br />
<em>Error 1251: &#8220;Client does not support authentication protocol requested by server; consider upgrading MySQL client&#8221;</em>, do not despair.</p>
<p>From a MySQL prompt on your server run the command below for each affected user@machine combination.</p>
<p><code>SET PASSWORD FOR user@localhost = OLD_PASSWORD('password');</code></p>
<p>Making sure you replace the &#8216;user&#8217; and &#8216;password&#8217; with your own details.</p>
<p><strong>Conclusion</strong><br />
Hope that all made sense, if not just leave a comment.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.wekadesign.co.nz/2006/05/14/installing-a-windows-dev-box/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
