<?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>philihp.com &#187; Beep</title>
	<atom:link href="http://www.philihp.com/blog/tag/beep/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.philihp.com/blog</link>
	<description>I do things, and then I tell the internet about them.</description>
	<lastBuildDate>Mon, 06 Feb 2012 05:40:30 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Beep!</title>
		<link>http://www.philihp.com/blog/2009/beep/</link>
		<comments>http://www.philihp.com/blog/2009/beep/#comments</comments>
		<pubDate>Thu, 19 Feb 2009 13:39:40 +0000</pubDate>
		<dc:creator>philihp</dc:creator>
				<category><![CDATA[Graphs]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Beep]]></category>

		<guid isPermaLink="false">http://www.philihp.com/blog/?p=350</guid>
		<description><![CDATA[Make my computer beep. Go here: http://shatner.philihp.com/beep/]]></description>
			<content:encoded><![CDATA[<p>Make my computer beep. Go here: <a href="http://shatner.philihp.com/beep/">http://shatner.philihp.com/beep/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.philihp.com/blog/2009/beep/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internal PC Speaker Beep on Startup and Shutdown</title>
		<link>http://www.philihp.com/blog/2009/internal-pc-speaker-beep-when-done-booting/</link>
		<comments>http://www.philihp.com/blog/2009/internal-pc-speaker-beep-when-done-booting/#comments</comments>
		<pubDate>Tue, 17 Feb 2009 10:58:10 +0000</pubDate>
		<dc:creator>philihp</dc:creator>
				<category><![CDATA[How To]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Beep]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.philihp.com/blog/?p=325</guid>
		<description><![CDATA[Pretty neat trick by Craig Perry at http://ubuntuforums.org/showthread.php?t=462960. The following is pretty much word-for-word reposted. Since I have an old 400mhz Pentium 2 under my desk that I use as a Tomcat development box. I also find it useful to use it as a development platform that gives immediate feedback of suboptimal code, and it&#8217;s [...]]]></description>
			<content:encoded><![CDATA[<p>Pretty neat trick by Craig Perry at <a href="http://ubuntuforums.org/showthread.php?t=462960">http://ubuntuforums.org/showthread.php?t=462960</a>. The following is pretty much word-for-word reposted. Since I have an old 400mhz Pentium 2 under my desk that I use as a Tomcat development box. I also find it useful to use it as a development platform that gives immediate feedback of suboptimal code, and it&#8217;s always a nice surprise to find scripts and pages that take 10-20 seconds to run on it take less than a half-second on any other machine.</p>
<p>Install <a href="http://www.johnath.com/beep/"><code>beep</code></a></p>
<pre>sudo apt-get install beep</pre>
<p>Create the following at <code>/etc/init.d/beep</code></p>
<pre>#!/bin/bash
#
# beep
# Notify when the system is up, or going down
# Craig Perry, 4th Jun 2007

BEEP=/usr/bin/beep
. /lib/lsb/init-functions

case "$1" in
  start)
    log_begin_msg "Audible notification - System Now Up..."
    for i in `seq 750 50 1500`; do
      $BEEP -l 50 -f $i
    done
    log_end_msg 0
    ;;
  stop)
    log_begin_msg "Audible notification - System Going Down..."
    for i in `seq 1500 -50 750`; do
      $BEEP -l 50 -f $i
    done
    log_end_msg 0
    ;;
  *)
    log_success_msg "Usage: $0 {start|stop}"
    exit 1
    ;;
esac
exit 0</pre>
<p>Then make it executable:</p>
<pre>chmod +x /etc/init.d/beep</pre>
<p>Finally, tell the system to add hooks to run it last (99) on startup and first (01) on shutdown:</p>
<pre>sudo update-rc.d beep defaults 99 01</pre>
<p>This gives you an ascending tone when the system comes up, and a descending tone as it&#8217;s starting to shutdown (i.e. confirms you&#8217;ve pressed the power button correctly).</p>
]]></content:encoded>
			<wfw:commentRss>http://www.philihp.com/blog/2009/internal-pc-speaker-beep-when-done-booting/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

