<?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>Eq-Tech &#187; Linux</title>
	<atom:link href="http://equima.pfpfree.net/category/operating-systems/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://equima.pfpfree.net</link>
	<description>More techno ramble - but with a twist!</description>
	<lastBuildDate>Sat, 28 Aug 2010 01:43:42 +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>Apport integration</title>
		<link>http://equima.pfpfree.net/2009/apport-integration/</link>
		<comments>http://equima.pfpfree.net/2009/apport-integration/#comments</comments>
		<pubDate>Fri, 25 Dec 2009 12:35:34 +0000</pubDate>
		<dc:creator>insanity</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[apport]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=144</guid>
		<description><![CDATA[So for the last day or two I have been attempting to add support for bug reports from within the application.  In the spirit of open-source, I have searched around and found that Apport seems to be heavily used in Ubuntu, and has clean integration with http://bugs.launchpad.net/, which is my chosen bug tracking system for [...]]]></description>
			<content:encoded><![CDATA[<p>So for the last day or two I have been attempting to add support for bug reports from within the application.  In the spirit of open-source, I have searched around and found that Apport seems to be heavily used in Ubuntu, and has clean integration with <a href="http://bugs.launchpad.net/">http://bugs.launchpad.net/</a>, which is my chosen bug tracking system for these projects.</p>
<p>Unfortunately, in the other spirit of open-source, the simple documentation is lacking a bit, so this blog post will hopefully help pave the way for people who might follow in my footsteps.</p>
<h1>Intended Use</h1>
<p>Basically, within one of the applications, I desired to have a link available in a menu that simply says &#8220;Report a problem&#8221;, which then submits a prefilled report to a bug tracking system including important information such as which version is being run, OS details etc.  My experience with Ubuntu has taught me that Apport is an ideal system that already supports the intended use-case, and is integrated into some existing apps in the same way that I&#8217;m looking for.</p>
<h1>UbuntuOne Apport Configuration</h1>
<p>The existing documentation that I referenced most heavily was found at <a href="https://wiki.ubuntu.com/Apport">https://wiki.ubuntu.com/Apport</a> and <a href="https://wiki.ubuntu.com/Apport/DeveloperHowTo">https://wiki.ubuntu.com/Apport/DeveloperHowTo</a>.  The first thing that struck me was that there seems to be no simple uses cases for what I thought would have been a reasonably commonly required use case, i.e., how to integrate with an app being released from a launchpad-hosted ppa.  The existing apport configuration makes apport-bug prevent reports being generated for non-Ubuntu packages (i.e., packages that are not in the main Ubuntu repositories).  This creates a hassle if releasing from a private or team ppa.</p>
<p>Fortunately, through browsing /etc/apport/ I found that the ubuntuone-client already uses apport with a non-genuine Ubuntu package.  This is done by placing a config file in /etc/apport/crashdb.conf.d, and an apport hook in /usr/share/apport/package-hooks/source_ubuntuone-client.py.</p>
<h1>Basic Configuration</h1>
<p>So, from all this, the most simple example I can come up with is the following.  To configure Apport to behave with an application, the following steps are required.</p>
<h2>1. Configure the CrashDb</h2>
<p>Place a CrashDb config file in /etc/apport/crashdb.conf.d called &lt;package-name&gt;-crashdb.conf (note: you can actually called it whatever you want&#8230; but for sanity&#8217;s sake I&#8217;d keep it as package-name <img src='http://equima.pfpfree.net/wp-includes/images/smilies/icon_wink.gif' alt=';)' class='wp-smiley' /> ).  Inside this file place something similar to the following:</p>
<pre>&lt;package-name&gt; = {
 'impl' : 'launchpad',
 'project' : '&lt;package-name&gt;',
 'bug_pattern_base' : None,
}</pre>
<h2>2. Install an apport hook to specify the CrashDb</h2>
<p>Place a file in /usr/share/apport/package-hooks called &lt;package-name&gt;.py or source_&lt;package-name&gt;.py.  This file should contain the following, which simply  sets the CrashDb to use the correct configuration:</p>
<pre>import apport

def add_info(report):
 """add report info"""

 if not apport.packaging.is_distro_package(report['Package'].split()[0]):
 report['ThirdParty'] = 'True'
 # replace &lt;package-name&gt; with the crashdb config defined in the previous step
 report['CrashDB'] = '&lt;package-name&gt;'</pre>
<h1>Testing the settings&#8230;</h1>
<p>Assuming all has been correctly set up, you should now be able to report bugs against the custom package by entering the following command in a terminal (or using alt+f2):</p>
<pre>ubuntu-bug &lt;package-name&gt;</pre>
<p>This will open up a window allowing you to send a report.  If you click submit, you should be taken to launchpad, with a new bug being logged against the specified application.</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2009/apport-integration/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Sharing sound between Pulseaudio instances in Ubuntu Karmic 9.10</title>
		<link>http://equima.pfpfree.net/2009/sharing-sound-between-pulseaudio-instances-in-ubuntu-karmic-9-10/</link>
		<comments>http://equima.pfpfree.net/2009/sharing-sound-between-pulseaudio-instances-in-ubuntu-karmic-9-10/#comments</comments>
		<pubDate>Mon, 09 Nov 2009 10:06:04 +0000</pubDate>
		<dc:creator>insanity</dc:creator>
				<category><![CDATA[General]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Networking]]></category>
		<category><![CDATA[Software]]></category>
		<category><![CDATA[multicast]]></category>
		<category><![CDATA[pulseaudio]]></category>
		<category><![CDATA[rtp]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=120</guid>
		<description><![CDATA[The goal of this post is to respond to a query about how to synchronize soundcards across several Ubuntu-based computers together using pulseaudio. I will present two methods, demonstrating the GUI tools that are available, before showing how to come up with the manually-edited files. In theory, at the end of this post you will [...]]]></description>
			<content:encoded><![CDATA[<p>The goal of this post is to respond to a query about how to synchronize soundcards across several Ubuntu-based computers together using pulseaudio.  I will present two methods, demonstrating the GUI tools that are available, before showing how to come up with the manually-edited files.  In theory, at the end of this post you will have multiple linux computers able to play sound from a single source using Pulseaudio&#8217;s Multicast/RTP abilities.</p>
<p>I must warn, the sound quality is VERY dependant on your network speeds and CPU loads at either end.  If you are running a lot of programs on either the server or the client, the sound will be erratic.  See the bugs on the pulseaudio website.  I was unable to get the sound to run very smoothly for any length of time on between two Ubuntu VM&#8217;s on pulseaudio version 0.9.19-0ubuntu4.  The specific bugs are:</p>
<ul>
<li><a href="http://www.pulseaudio.org/ticket/670">http://www.pulseaudio.org/ticket/670</a></li>
<li><a href="http://www.pulseaudio.org/ticket/477">http://www.pulseaudio.org/ticket/477</a></li>
</ul>
<p>Either way, it is a fun exercise in pulseaudio configuration.  In order to demonstrate this I have set up two Ubuntu VM&#8217;s using VirtualBox on a local network.</p>
<h1>Graphical Setup</h1>
<p>The first step is to install the tools we&#8217;re going to use to configure this.  Install PulseAudio Device Chooserm PulseAudio Volume Control and PulseAudio Preferences.  Select these items from the Ubuntu Software Centre.  You can easily reduce the list to these items by searching for pulseaudio in the search bar as shown in the following screenshot:</p>
<div id="attachment_121" class="wp-caption aligncenter" style="width: 520px"><a href="http://equima.pfpfree.net/wp-content/uploads/2009/11/Screenshot-Ubuntu-Software-Center-Pulseaudio.png"><img class="size-full wp-image-121 " title="Installing Pulseaudio Setup tools" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Screenshot-Ubuntu-Software-Center-Pulseaudio.png" alt="Screenshot of Ubuntu Software Center installing Pulseaudio" width="510" height="300" /></a><p class="wp-caption-text">Screenshot of Ubuntu Software Center installing Pulseaudio</p></div>
<p>Once this is installed, you can launch it by selecting it from Applications menu.</p>
<div id="attachment_122" class="wp-caption aligncenter" style="width: 499px"><a href="http://equima.pfpfree.net/wp-content/uploads/2009/11/Select-Pulseaudio-Dev-Chooser.png"><img class="size-full wp-image-122 " title="Open the Pulseaudio Device Chooser" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Select-Pulseaudio-Dev-Chooser.png" alt="Open the Pulseaudio Device Chooser" width="489" height="287" /></a><p class="wp-caption-text">Open the Pulseaudio Device Chooser</p></div>
<p>This will put an audio plug icon up near the clock. Left-click (or primary click) .  Select &#8220;Configure local Sound Server&#8221; and change to the Multicast/RTP tab in the Preferences window:</p>
<div id="attachment_123" class="wp-caption aligncenter" style="width: 464px"><a href="http://equima.pfpfree.net/wp-content/uploads/2009/11/Screenshot-PulseAudio-Preferences.png"><img class="size-full wp-image-123 " title="PulseAudio Preferences" src="http://equima.pfpfree.net/wp-content/uploads/2009/11/Screenshot-PulseAudio-Preferences.png" alt="PulseAudio Preferences" width="454" height="213" /></a><p class="wp-caption-text">PulseAudio Preferences</p></div>
<h2>Server Computer</h2>
<p>The first computer set-up will be the server.  This is the computer you will be controlling &amp; playing the sound from.  On this computer you will need to open up rhythmbox or your chosen audio program that supports pulseaudio output.  Totem or VLC also fit this prescription.</p>
<p>On the server computer you will want to &#8220;Enable Mutlicast/RTP sender&#8221;.  If you want to play the sound out this server computer&#8217;s speakers, select &#8220;Send audio from local speakers&#8221;.  If you want to be more specific about what is sent, I would recommend you select &#8220;Create separate audio device for Multicast/RTP&#8221;.  For my setup, I want to be able to send only music to the stream when I want it, so I am going to chose the second option.</p>
<h2>Client Computer(s)</h2>
<p>The client computers will all need to be set up with the &#8220;Enable Multicast/RTP receiver&#8221; option enabled.  Assuming the networks are working properly, you should immediately start hearing music on all the client computers!</p>
<h1>Manual Configuration</h1>
<p>If you don&#8217;t have the benefits of a running Xserver, or want to configure these settings to work on a headless machine, you will need to be manually configuring the pulseaudio config files.  The pulseaudio config files are stored in /etc/pulse/system.pa if you&#8217;re running in daemon mode, and /etc/pulse/default.pa if you&#8217;re running in a per user setup (this is the default method in Ubuntu).  I&#8217;m going to write this assuming you are using daemon-mode, so we will be editing /etc/pulse/system.pa.</p>
<h2>Server Computer</h2>
<p>To setup the server computer, you need to edit the configuration.  In a terminal or on a console with admin access type the following:</p>
<blockquote>
<pre>sudo nano /etc/pulse/system.pa</pre>
</blockquote>
<p>In this file, find and uncomment the lines that look like:</p>
<blockquote>
<pre>load-module module-null-sink sink_name=rtp format=s16be channels=2 rate=44100 description="RTP Multicast Sink"
load-module module-rtp-send source=rtp.monitor</pre>
</blockquote>
<p>(If these don&#8217;t exist, just add them to the end of the file)</p>
<p>Once this is done, restart the pulseaudio server by running:</p>
<blockquote>
<pre>sudo /etc/init.d/pulseaudio restart</pre>
</blockquote>
<h2>Client Computer(s)</h2>
<p>The client computer will be done by editing /etc/pulse/system.pa (alternatively, you can copy this file to ~/pulse/default.pa).  Edit this file by typing:</p>
<blockquote>
<pre>sudo nano /etc/pulse/system.pa</pre>
</blockquote>
<p>In this file, find and uncomment the lines that look like:</p>
<blockquote>
<pre>### Load the RTP reciever module (also configured via paprefs, see above)
#load-module module-rtp-recv</pre>
</blockquote>
<p>Again, if this doesn&#8217;t exist, just add them to the end of the file.</p>
<p>Once you&#8217;ve saved this, apply the changes the same way you did previously&#8230; by restarting pulseaudio:</p>
<blockquote>
<pre>sudo /etc/init.d/pulseaudio restart</pre>
</blockquote>
<p>Once again, assuming the network is behaving correctly, you should be hearing sound out both ends.</p>
<h1>Troubleshooting &amp; More Information</h1>
<p>Troubleshooting guides are well written on the pulseaudio site.  If you have any issues I would suggest reading the wonderful article at <a href="http://www.pulseaudio.org/wiki/HowToListenToTheRtpStream">http://www.pulseaudio.org/wiki/HowToListenToTheRtpStream</a>.  The key thing is to check that you can see the broadcast packets (see the tcpdump section in the article).</p>
<p>Another good tip is to start the pulseaudio server in non-daemon mode.  This will allow you to see and interact with the pulseaudio from the command line.  To do this, stop any existing pulseaudio servers with the following command:</p>
<blockquote>
<pre>sudo /etc/init.d/pulseaudio stop # in system or daemon mode or</pre>
<pre>pulseaudio -k # for single user mode</pre>
</blockquote>
<p>To start pulseaudio server, run the following:</p>
<blockquote>
<pre>sudo pulseaudio --system -Cv # in system or daemon mode or</pre>
<pre>pulseaudio -Cv # for single user mode</pre>
</blockquote>
<p>Take note of any errors you see when starting this.  Once the server is started, you can list the modules loaded by typing the following in the pulseaudio console:</p>
<blockquote>
<pre>list-modules</pre>
</blockquote>
<p>For more information on how to load modules see <a href="http://www.pulseaudio.org/wiki/Modules">http://www.pulseaudio.org/wiki/Modules</a>, and specifically <a href="http://www.pulseaudio.org/wiki/Modules#RTPSDPSAPTransport">http://www.pulseaudio.org/wiki/Modules#RTPSDPSAPTransport</a>.</p>
<p>More information about the commands that can be run in the pulseaudio console, see <a href="http://www.pulseaudio.org/wiki/CLI">http://www.pulseaudio.org/wiki/CLI</a></p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2009/sharing-sound-between-pulseaudio-instances-in-ubuntu-karmic-9-10/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Not high &#8211; just misinformed</title>
		<link>http://equima.pfpfree.net/2008/not-high-just-misinformed/</link>
		<comments>http://equima.pfpfree.net/2008/not-high-just-misinformed/#comments</comments>
		<pubDate>Tue, 01 Jul 2008 07:26:43 +0000</pubDate>
		<dc:creator>sparky</dc:creator>
				<category><![CDATA[Hype]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vista]]></category>
		<category><![CDATA[vista-killer]]></category>

		<guid isPermaLink="false">http://equima.pfpfree.net/?p=6</guid>
		<description><![CDATA[Recently, I saw the following on the cover of a computer magazine, which had the latest release of &#8216;Ubuntu&#8216; on it&#8217;s monthly DVD: Now, apart from the general &#8216;hype&#8217; around anything that&#8217;s meant to be able to &#8216;kill&#8217; or be a &#8216;better&#8217; alternative to Microsoft&#8217;s latest operating system, the idea that this particular version/distribution of [...]]]></description>
			<content:encoded><![CDATA[<p>Recently, I saw the following on the cover of a computer magazine, which had the latest release of &#8216;<a href="http://www.ubuntu.com/">Ubuntu</a>&#8216; on it&#8217;s monthly DVD:</p>
<p style="text-align: center;"><a href="http://equima.pfpfree.net/wp-content/uploads/2008/07/ubuntukillvista.jpg"><img class="alignnone size-medium wp-image-7 aligncenter" title="ubuntukillvista" src="http://equima.pfpfree.net/wp-content/uploads/2008/07/ubuntukillvista-300x66.jpg" alt="" width="300" height="66" /></a></p>
<p style="text-align: center;">
<p>Now, apart from the general &#8216;hype&#8217; around anything that&#8217;s meant to be able to &#8216;kill&#8217; or be a &#8216;better&#8217; alternative to Microsoft&#8217;s latest operating system, the idea that this particular version/distribution of Linux has the ability to put Vista to death is just absurd.</p>
<p>I had the oppertunity to use Vista for a time &#8211; partly as a feasibility study for my work, and partly out of my own self-interest to see what progressions / changes Microsoft had made to it&#8217;s OS.<br />
My own personal criticism&#8217;s were that it required too much memory and drive space, and was quite a &#8216;bloated&#8217; operating system in general. Now, of course, this is in light of the &#8216;average&#8217; technology that is still kicking around for 90% of the populace. From that perspective, to call Ubuntu 8.04 &#8220;The Vista Killer&#8221;, would <em>maybe</em> be accurate. But even I, a linux user, find it a bit far fetched.</p>
<p>Windows is still the primary operating system being suppored by a large percentage of products &#8211; with Apple&#8217;s &#8216;Mac OS&#8217; coming in second place. Adobe is a good example of industry software that is only supported on those two major operating systems.<br />
Linux does have it&#8217;s open source &#8216;alternatives&#8217;, (and admittedly I&#8217;ve not spent much time in using or even trying any large number of these) but even I don&#8217;t believe that <em>all</em> of these are in a position <strong>yet</strong> to be used widely by industry. Don&#8217;t get me wrong, I have every faith that there will one day be open source software that is usable by various industries &#8211; but this isn&#8217;t the reality we live in. Not yet.</p>
<p>Sometimes I just wish that consumer-orientated publications could be a little more &#8216;balanced&#8217; in their approach &#8211; and marketing. Considering the criticism&#8217;s I found with Vista, Windows 2000 could be percieved a &#8220;Vista-Killer&#8221;. So could the latest Mac OS. So could Dos.</p>
<p>It all comes down to what part of Vista (in this case) that you&#8217;re not liking, and want a &#8216;better&#8217; alternative to.<br />
I suppose, ultimately, it&#8217;s all subjective.</p>
]]></content:encoded>
			<wfw:commentRss>http://equima.pfpfree.net/2008/not-high-just-misinformed/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
