<?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"
	>

<channel>
	<title>Duncan Mac-Vicar P.</title>
	<atom:link href="http://duncan.mac-vicar.com/blog/feed/" rel="self" type="application/rss+xml" />
	<link>http://duncan.mac-vicar.com/blog</link>
	<description>homepage</description>
	<pubDate>Wed, 19 Nov 2008 17:37:37 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6</generator>
	<language>en</language>
			<item>
		<title>ZYpp and SAT solver documentation now available</title>
		<link>http://duncan.mac-vicar.com/blog/archives/441</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/441#comments</comments>
		<pubDate>Wed, 19 Nov 2008 17:37:37 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[suse]]></category>

		<category><![CDATA[zypp]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/archives/441</guid>
		<description><![CDATA[We have cleaned up the main pages of libzypp and satsolver, mainly to introduce a new feature.

Since today, there is developer documentation generated on every svn build from our cruise control system (continuous build), available for trunk and branches.

ZYpp documentation has already qute some articles and the API is very good documented, still, it will [...]]]></description>
			<content:encoded><![CDATA[<p>We have cleaned up the main pages of <a href="http://en.opensuse.org/Libzypp">libzypp</a> and <a href="http://en.opensuse.org/Package_Management/Sat_Solver">satsolver</a>, mainly to introduce a new feature.</p>

<p>Since today, there is developer documentation generated on every svn build from our cruise control system (continuous build), available for trunk and branches.</p>

<p>ZYpp documentation has already qute some articles and the API is very good documented, still, it will be enhanced in the following months to take advantages of having the documentation always available. SP2 branch documentation will be available soon.</p>

<p>For SAT solver, we have moved the existing documentation into the Related pages of the generated documentation (which already contains very useful articles) and we will do every possible effort to document the API too (which is almost empty right now :-/ ).</p>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/441/feed</wfw:commentRss>
		</item>
		<item>
		<title>Looking at DSP1023 (Software Inventory) and DSP1025 (Software Updates) CIM profiles</title>
		<link>http://duncan.mac-vicar.com/blog/archives/436</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/436#comments</comments>
		<pubDate>Fri, 14 Nov 2008 16:15:42 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[cim]]></category>

		<category><![CDATA[linux]]></category>

		<category><![CDATA[rpm]]></category>

		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/?p=436</guid>
		<description><![CDATA[Yesterday I sat together with Stefan Haas in front of the whiteboard and analyzed the specification of the DSP1023 (Software Inventory) and DSP1025 (Software Updates) CIM profiles, from the DMTF.

Our goal was to understand it, and therefore we tried to map the concept to the knowledge we already have, which is Linux software management (which [...]]]></description>
			<content:encoded><![CDATA[<p>Yesterday I sat together with <a href="http://en.opensuse.org/User:Haass">Stefan Haas</a> in front of the whiteboard and analyzed the specification of the <a href="http://www.dmtf.org/standards/published_documents/DSP1023_1.0.0.pdf">DSP1023 (Software Inventory)</a> and <a href="http://www.dmtf.org/standards/published_documents/DSP1025.pdf">DSP1025 (Software Updates)</a> <a href="http://www.dmtf.org/standards/profiles/">CIM profiles</a>, from the <a href="http://www.dmtf.org">DMTF</a>.</p>

<p>Our goal was to understand it, and therefore we tried to map the concept to the knowledge we already have, which is Linux software management (which in turn can be reduced almost to packages :-). Here are our notes:</p>

<p>(For simplicity, I am skipping the CIM_ prefix for all classes)</p>

<h3>Packages</h3>

<p>Packages are represented as usual NVRs (name, version, release) using the SoftwareIdentity class.</p>

<p>The url of the package is represented associating the SoftwareIdentity with url instances (SoftwareIdentityResources) trough a SAPAvailableForElement association. Products, subpackages and components can be modeled by using OrderedComponent class, which references the component and one member per instance.</p>

<p>One can associate hardware (or any managed element) with software using ElementSoftwareIdentity</p>

<h3>Repositories</h3>

<p>Repos are modeled by using SystemSpecificCollection and associated via HostedCollection to a system (that seems to be the local computer).</p>

<p>Packages are associated to the repository via the MemberOfCollection class.</p>

<p>Installed packages are represented by instances of InstalledSoftwareIdentity (which references the ComputerSystem where it is installed).</p>

<h3>Groups, Patterns</h3>

<p>Just another software identity (for the group itself), and references the grouped identities using OrderedComponent instances (which has two fields, the GroupComponent and PartComponent, which reference the respective instances).</p>

<h3>Dependencies</h3>

<p>If the target software does not have and instance, a SoftwareIdentity is created and isEntity set to false (kind of named dependency)
For dependencies that exists software collection, then OrderedDependency is  instantiated for each dependency and Antecedent and Dependent is filled)</p>

<p>For installing the packages, a SoftwareInstallationService is needed.
Packages can be installed calling installFromSoftwareIdentity() (name, version release instance) or installFromByteStream() (like an rpm package).</p>

<p>To define an installation service, the SoftwareInstallationService class need to specify what it supports by instantiating SoftwareInstallationServiceCapabilities (which has properties like the supported URI schemes), and then this capabilities are associated back to the service using ElementCapabilities.</p>

<p>To define whether a package is compatible with a given target, one uses the TargetTypes array in the SoftwareIdentity class.</p>

<p>If a SoftwareIdentity is available and there is some SoftwareInstallationService that is compatible (or capable) of installing it, a instance of the ServiceAffectsElement needs to be instantiated.</p>

<p>Before actually installing or updating, the client checks if a SoftwareIdentity can be installed on a element, using the CheckSoftwareIdentity() method on the SoftwareInstallationService. You give this method the software itself, the collection and the target element. You get back a InstallCharacteristics with the details (for example if you need to reboot after installing or not).</p>

<p>Once you start the operation using InstallFromSoftwareIdentity(), you get back a Job instance that represent the task. Also true for InstallFromByteStream(), but here you pass an Image instance instead of a SoftwareIdentity. There is a similar InstallFromURI operation too. (jobs are only returned if the service has async capabilities).</p>

<p>The client can pass options to the install operation using InstallOptionValues.</p>

<p>TODO: figure out ElementSoftwareStatus more.</p>

<p>Additionally, you can <a href="http://docs.hp.com/en/5992-1936/ar01s03.html">see how HP has implemented the inventory profile with rpm</a>. It has some useful information about which rpm tags belong to which classes properties for example.</p>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/436/feed</wfw:commentRss>
		</item>
		<item>
		<title>BlackBerry OS 4.5 update</title>
		<link>http://duncan.mac-vicar.com/blog/archives/434</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/434#comments</comments>
		<pubDate>Fri, 14 Nov 2008 14:10:29 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[blackberry]]></category>

		<category><![CDATA[suse]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/archives/434</guid>
		<description><![CDATA[If you own a Blackberry from Vodafone Germany, you may be able to update to OS 4.5 depending on your model.
I did the update yesterday, and it went smooth. You will need:


Windows machine, as the update is done from the desktop manager
The right firmware update for your model.
You need to re-activate against the Enterprise Server [...]]]></description>
			<content:encoded><![CDATA[<p>If you own a Blackberry from Vodafone Germany, you may be able to update to OS 4.5 depending on your model.
I did the update yesterday, and it went smooth. You will need:</p>

<ul>
<li>Windows machine, as the update is done from the desktop manager</li>
<li><a href="http://www.vodafone.de/hilfe-support/blackberry/112008.html">The right firmware update for your model</a>.</li>
<li>You need to re-activate against the Enterprise Server in case you use BES. Contact your administrator for that.</li>
</ul>

<p>You get lot of improvements against 4.2:</p>

<ul>
<li>Better browser. Mouse cursor to navigate.</li>
<li>HTML mails</li>
<li>Video camera.</li>
<li>Some Media Player enhancements.</li>
<li>Decent fonts.</li>
<li>Documents to go. I can now even open pdfs from mail.</li>
<li>Lot of user interface improvements. It looks nicer.</li>
<li>Free/Busy calendar lookup.</li>
</ul>

<p>(note, features depend on your device model)</p>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/434/feed</wfw:commentRss>
		</item>
		<item>
		<title>morning: blocker</title>
		<link>http://duncan.mac-vicar.com/blog/archives/432</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/432#comments</comments>
		<pubDate>Tue, 11 Nov 2008 16:57:11 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[Life]]></category>

		<category><![CDATA[suse]]></category>

		<category><![CDATA[yast]]></category>

		<category><![CDATA[zypp]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/archives/432</guid>
		<description><![CDATA[Morning

Did not start the day in a good way. I buy mobicards every month so I have full access to the public transport system. I buy them via the internet, so I get an email when it is about to run out, and with one click I get the form to order another one by [...]]]></description>
			<content:encoded><![CDATA[<h3>Morning</h3>

<p>Did not start the day in a good way. I buy <a href="http://www.vgn.de/mobicard/">mobicards</a> every month so I have full access to the public transport system. I buy them via the internet, so I get an email when it is about to run out, and with one click I get the form to order another one by mail (even with the date range pre filled).</p>

<p>Today I took the straßenbahn (tram), and suddenly the guy next to me transformed itself in 1 second from a civilian to a public transport control employee, and asked me for my ticket. I took my mobicard from my pocket and showed it to him. He nods but after a second he comes back and ask &#8220;let me see it again&#8221;. He looks again and points out it starts on 12.11 and today was 11.11. No problem, last month one is behind that one (the whole year cards are there). He looks the old one and points out &#8220;This one ends at 10.11&#8243;. I could not believe it, I did not even realize. Usually I just click OK-OK when buying them. I got a ticket. Luckily the checkbox marked was not &#8220;pay 40€&#8221; but &#8220;Go to the headquarters to clarify&#8221; (which still means they could fine me). Of course that means wasting half a morning not counting the time I lost already over the tram (not being able to get out in the right station). If I get fined after buying mobicards every month for years it would be really ironic.</p>

<h3>ZYpp</h3>

<p>In the office we had the typical &#8220;first media&#8221; blocker. Luckily <a href="http://lizards.opensuse.org/author/mlandres/">Michael</a> found the bug really quickly. Later I wanted to test the fix using linuxrc magic driverupdate tricks I have learned in the past weeks. However it did not work: Linuxrc can use rpms as a container format, but still expects the driverupdate directory structure. Bah, world was not that cool as I thought. Met with Michael and Steffen about it. Steffen realized that it would not be a bad idea to try the rpm first as a driverupdate, and if no driverupdate is there just unpack it in the system (and promised to implement it) That sounds good, easy testing. Happy.</p>

<h3>YaST</h3>

<h4>autoYaST</h4>

<p>Katarina wrote a really nice <a href="http://hedgehogpainter.livejournal.com/2568.html">tutorial</a> that explains how use autoYaST to apply a configuration to a running system. Uhm. Looks like an XML API. Wow. Couldn&#8217;t we use it for our YaST web service?. Talked with schubi about it. While the command line interface has higher level, exposing this interface would make sense too, because it will offer automatically almost all autoYaST power.</p>

<h4>Partitioner</h4>

<p>The new YaST partitioner, on which <a href="http://hedgehogpainter.livejournal.com">Katarina</a>, <a href="http://lizards.opensuse.org/author/aschnell/">Arvin</a>, <a href="http://www.linkedin.com/pub/1/9b0/b93">Matthias</a> and <a href="http://en.opensuse.org/User:Mschmidkunz">Martin</a> worked really hard during the Code11 cycle <a href="http://ostatic.com/176402-blog/opensuse-11-1s-new-partitioning-module">got a pretty nice review here</a>. Give it a look. And give the guys feedback. I am sure lots of things can still be improved!.</p>

<h4>YaST releases</h4>

<p><a href="http://lizards.opensuse.org/author/visnov/">Stano</a> is reviving the discussion about whether to make <a href="http://lizards.opensuse.org/2008/11/07/yast-releases-independent-of-opensuse-releases/">independent of openSUSE YaST releases</a>. I talked about this topic with Zonker just after he started as community manager.</p>

<p>I think it would be a pretty good move. Also a big challenge. It would mean a challenge not only for us the YaST teams but also for other internal and external stakeholders.</p>

<p>Right now a new YaST package submission (same with libzypp) is more or less tied with the development of features or some project manager sitting next to your chair to get a blocker fixed for an openSUSE release. Things would change if the distribution&#8217;s team would need to take the last released YaST and take patches, forward ports, backports, etc.</p>

<p>Also it would be a challenge for us. Most of YaST testing happens on a openSUSE release. We have lot of ideas on how to improve our automated testing and this would require develop them further. Also I think an approach like this would facilitate making YaST less distro-dependent.</p>

<p>Another point I like of the approach is that it would force us to have a better process to define our core-platform (ir order to be able to release it separately). Right now I see it a bit chaotic: APIs are born in modules, and as soon as they are used by more than one module, they land in the wildcard yast2 package. Something I really don&#8217;t find very convenient. APIs should be reviewed with more care and packaged by the area the API covers.</p>

<p>Still and interesting topic and material to innovate!</p>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/432/feed</wfw:commentRss>
		</item>
		<item>
		<title>openSUSE 11.1 command not found</title>
		<link>http://duncan.mac-vicar.com/blog/archives/430</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/430#comments</comments>
		<pubDate>Sat, 01 Nov 2008 19:50:32 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[suse]]></category>

		<category><![CDATA[zypp]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/archives/430</guid>
		<description><![CDATA[
duncan@tarro:~&#62; xmms

The program 'xmms' can be found in the following package:
  * xmms [ path: /usr/bin/xmms, repository: zypp (packman) ]

Try: sudo zypper install xmms

bash: xmms: command not found
duncan@tarro:~&#62;


made possible by Scout.
]]></description>
			<content:encoded><![CDATA[<pre>
duncan@tarro:~&gt; xmms

The program 'xmms' can be found in the following package:
  * xmms [ path: /usr/bin/xmms, repository: zypp (packman) ]

Try: sudo zypper install xmms

bash: xmms: command not found
duncan@tarro:~&gt;
</pre>

<p>made possible by <a href="http://en.opensuse.org/Scout">Scout</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/430/feed</wfw:commentRss>
		</item>
		<item>
		<title>Installation testing reloaded</title>
		<link>http://duncan.mac-vicar.com/blog/archives/423</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/423#comments</comments>
		<pubDate>Thu, 30 Oct 2008 16:02:56 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[suse]]></category>

		<category><![CDATA[yast]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/archives/423</guid>
		<description><![CDATA[Background

My colleagues use awesome tricks to do nfs boots with custom inst-sys and other magical procedures in order to test a modified installation. I find those tricks cool but that I tend to forget them after a few days.

During 11.0 release cycle, Coolo had to test the new installation theming. He explained me his method, [...]]]></description>
			<content:encoded><![CDATA[<h3>Background</h3>

<p>My colleagues use awesome tricks to do nfs boots with custom inst-sys and other magical procedures in order to test a modified installation. I find those tricks cool but that I tend to forget them after a few days.</p>

<p>During 11.0 release cycle, Coolo had to test the new installation theming. He explained me his method, using <a href="http://ftp.suse.com/pub/people/hvogel/Update-Media-HOWTO/html/">update disks</a>.</p>

<p>Update disks exist since longs time. AFAIK they were originally designed for drivers, but today they can insert almost any kind of file to the instsys. That was what coolo did: had his own tree, with an updated installation css theme, packed it, and then run qemu, passing the updatedisk url (which he served from his own machine) IIRC he passed an iso as a cdrom to qemu.</p>

<p>I find this method pretty cool. But I still had the feeling it could be automated more:</p>

<ul>
<li>qemu supports booting directly from a kernel and initrd, so I could use the http repositories and download those instead of needing a iso.</li>
<li>I could append kernel parameters telling qemu about them</li>
<li>I could automatically repack my local directory with updated files and avoid running mkcramfs by hand (latter <a href="http://lizards.opensuse.org/author/snwint/">Steffen</a> told me I could even use cpio)</li>
<li>Why bothering with apache in my machine? As qemu can&#8217;t access the driverdisk image from my local disk, I could start a embedded web server on demand and tell linuxrc about it.</li>
</ul>

<p>So after lot of questions to Steffen and some code reading of Ludwig awesome &#8220;setupgrubfornfsinstall&#8221;, here is the first version that works:</p>

<pre><code>git clone git://git.opensuse.org/people/dmacvicar/startinstall.git
</code></pre>

<h3>Usage</h3>

<p>The structure of the driver update disk is something like this:</p>

<pre>
./linux/suse/i386-11.0/dud.config
./linux/suse/i386-11.0/inst-sys
./linux/suse/i386-11.0/inst-sys/usr
./linux/suse/i386-11.0/inst-sys/usr/share
./linux/suse/i386-11.0/inst-sys/usr/share/YaST2
./linux/suse/i386-11.0/inst-sys/usr/share/YaST2/theme
./linux/suse/i386-11.0/inst-sys/usr/share/YaST2/theme/openSUSE
./linux/suse/i386-11.0/inst-sys/usr/share/YaST2/theme/openSUSE/wizard
./linux/suse/i386-11.0/inst-sys/usr/share/YaST2/theme/openSUSE/wizard/logo.png
./linux/suse/i386-11.0/inst-sys/usr/share/YaST2/theme/openSUSE/wizard/installation.qss
</pre>

<p>In this case, I only want to replace the logo and css file. The important part is the directory with the architecture and version. dud.config has:</p>

<pre>
UpdateName:     openSUSE 11.0 DUD
UpdateID:       193a399fca4b4da9
UpdatePriority: 100
</pre>

<p>Which I guess are random values for our specific case <img src='http://duncan.mac-vicar.com/blog/wp-includes/images/smilies/icon_wink.gif' alt=';-)' class='wp-smiley' /> This directory tree is available at /foo/driverupdate on my machine.</p>

<p>Now you need a http or ftp repository (I will add more features later&#8230;). In the example, it will be http://distros.foo.com/openSUSE-11.0-RC4-DVD/i386/DVD1</p>

<p>Now just run it:</p>

<pre>
ruby startinstall.rb --tree /foo/driverupdate http://distros.foo.com/openSUSE-11.0-RC4-DVD/i386/DVD1
</pre>

<p>startinstall.rb will download the kernel, initrd, pack the driverdisk, start a (webbrick based) webserver offering this driverdisk and launch qemu with the right parameters:</p>

<pre>
qemu -kernel /tmp/kernel20081030-5149-1yn5upf-0
 -initrd /tmp/initrd20081030-5149-uquvmh-0
 -append 
   "install=http://distros.foo.com/openSUSE-11.0-RC4-DVD/i386/DVD1
    driverupdate=http://mymachine.suse.de:9999/updatedisk20081030-5149-ogaqpl-0 "
 -hda /dev/zero
 -no-reboot
 -net nic,macaddr=00:BE:C3:B9:4C:BD,model=pcnet
 -m 666
 -net user
 -usb -usbdevice tablet
</pre>

<p>After booting, you will see your modified (see the logo) installation:</p>

<p><img src="http://files.opensuse.org/opensuse/en/0/0a/Yast2-dud.png" alt="Screenshot" /></p>

<p>I will keep a small page for this tool <a href="http://files.opensuse.org/opensuse/en/0/0a/Yast2-dud.png">here</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/423/feed</wfw:commentRss>
		</item>
		<item>
		<title>If They&#8217;re Too Big To Fail, They&#8217;re Too Big Period</title>
		<link>http://duncan.mac-vicar.com/blog/archives/421</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/421#comments</comments>
		<pubDate>Mon, 27 Oct 2008 07:50:13 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[politics]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/archives/421</guid>
		<description><![CDATA[I agree with Robert Reich. A free market needs that companies can fail.
]]></description>
			<content:encoded><![CDATA[<p>I agree with <a href="http://robertreich.blogspot.com/2008/10/if-theyre-too-big-to-fail-theyre-too.html">Robert Reich</a>. A free market needs that companies can fail.</p>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/421/feed</wfw:commentRss>
		</item>
		<item>
		<title>Towards trusted third party repositories</title>
		<link>http://duncan.mac-vicar.com/blog/archives/414</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/414#comments</comments>
		<pubDate>Mon, 13 Oct 2008 06:38:36 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[Software]]></category>

		<category><![CDATA[suse]]></category>

		<category><![CDATA[yum]]></category>

		<category><![CDATA[zypp]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/archives/414</guid>
		<description><![CDATA[I got pointed to Dan&#8217;s Kegel post on Linux Foundation&#8217;s packaging mailing list called &#8220;Towards trusted third party repositories&#8221;. I am not subscribed to the list so I am commenting here.


  I&#8217;ve been intrigued by http://en.opensuse.org/Standards/OneClickInstall
  for some time now.  (That&#8217;s a way to provide a one-click web
  install experience for [...]]]></description>
			<content:encoded><![CDATA[<p>I got pointed to <a href="https://lists.linux-foundation.org/pipermail/packaging/2008-October/000842.html">Dan&#8217;s Kegel post on Linux Foundation&#8217;s packaging mailing list</a> called &#8220;Towards trusted third party repositories&#8221;. I am not subscribed to the list so I am commenting here.</p>

<blockquote>
  <p>I&#8217;ve been intrigued by http://en.opensuse.org/Standards/One<em>Click</em>Install
  for some time now.  (That&#8217;s a way to provide a one-click web
  install experience for .deb/.rpm/.psi etc. packages, implemented
  as a mime type handler that parses a simple .xml file pointing
  to the package/repository appropriate for each distro.)
  When this idea was brought up on the Packagekit mailing
  list, it generated lots of negative feedback.  The summary at
  http://packagekit.org/pk-faq.html#1-click-install
  gives a bunch of non-central objections, followed by
  the central objection that one cannot trust third party repositories:
  &#8220;Allowing to easily add third party repositories and install
  third party software without a certification infrastructure is like
  opening the gates to hell&#8221;</p>
</blockquote>

<p>One Click Install is only a simple description to add a repository and some software, but the security is not a property of this simple description, but of the package manager. A malicious one click install file can point ZYpp to &#8220;hell&#8221;, but &#8220;hell:</p>

<ul>
<li>Either is signed with a non trusted key and the user needs to trust it.</li>
<li>Is signed with the distribution key, which is already in the trusted keyring therefore it just works.</li>
</ul>

<blockquote>
  <p>This is a real problem.   Here are a couple risks:</p>
</blockquote>

<p>No, it is not. It depends on the package manager you are using. Basic security here is independent of one click install.</p>

<blockquote>
  <p>1) users might click on malware sites and add
  completely malicious sites to their repository lists</p>
</blockquote>

<p>Again, this is not true for ZYpp, and I guess not all package managers allows to download metadata from a repository without trusting it first.</p>

<blockquote>
  <p>2) a compromised third-party repository
  might update system packages maliciously.</p>
</blockquote>

<p>If you trusted it, there is nothing you can do.</p>

<blockquote>
  <p>3) several genuinely well-intentioned
  repositories might include conflicting versions of
  a commonly needed package not provided by the
  system repositories.</p>
</blockquote>

<p>This has nothing to do with one click install. Packman repository does it already. This is a dependency resolving problem and vendor management: ZYpp for example, does not allow implicit vendor jump on update (only on dist-upgrade). And vendor jump is a conflict you need manually to approve. Only package managers that threat all packages with the same name as the same package suffer here.</p>

<blockquote>
  <p>After mulling this problem over for a long time,
  two ideas came to mind:
  1) Since the distribution is trusted, it could decide
  to trust some third-party repositories.  For instance,
  it might decide to trust Adobe&#8217;s hypothetical
  repository so that people could get flash and air
  updates straight from the source.</p>
</blockquote>

<p>This is possible now:</p>

<ul>
<li>You can import Adobe&#8217;s key into the distribution together with the distribution key, so it goes automatically to the trusted keyring</li>
<li>You can create metadata in the distribution side, linking to Adobe&#8217;s packages, and sign the metadata with the distribution key</li>
<li>You can do nothing and let the user trust explicitly the repository</li>
</ul>

<blockquote>
  <p>This idea of using the distribution as arbiter of
  trust for third party repositories could be extended
  to games publishers, etc.  This could provide a
  partial solution to the first threat listed above;
  if the &#8220;good&#8221; third-party repositories are already
  known to the distribution, there&#8217;s less need for users
  to be doing something dangerous like deciding
  on their own to trust a random third-party repo.
  This addresses the first threat identified above.</p>
</blockquote>

<p>I think repository trusting and the required package manager infrastructure has nothing to do with one click install. It just needs to be there.</p>

<blockquote>
  <p>2) A simple way to keep repositories from
  updating packages they shouldn&#8217;t is to
  have package managers enforce some sort
  of namespacing.  e.g. Adobe&#8217;s repository
  could be allowed to only update packages
  whose names start with &#8220;adobe-&#8221;.
  (System repositories would continue to be
  able to update any package at all.)
  This addresses the second and third threats
  identified above.</p>
</blockquote>

<p>Why inventing a new thing? You already have the vendor tag there. A package should be considered update candidate only for packages that are from the same vendor. </p>

<p>Imagine you have mediaplayer-1.0 from the distribution, without mp3 support. Then a 3rd party repo offers a compiled 2.0 version with mp3 support but without other features, and then the distribution offers 3.0. You would be getting and losing features all the time as you update. Same package names does not means it is the same package. If your package manager does that, it is a bug. If there is no solution to the dependency solving than jumping vendor, do a conflict and make the user explicitly switch. Once he does, the update candidate would be the same vendor packages.</p>

<blockquote>
  <p>I think something like this is going to be needed
  before we can have a thriving &#8212; and safe &#8211;
  ecosystem of ISVs providing
  easily-downloaded-and-installed binary packages
  for Linux.
  What do people think about the package namespacing
  idea?
  - Dan</p>
</blockquote>

<p>I don&#8217;t think reinventing the vendor tag and repository signatures is a good idea.</p>

<p>The problem is not at this level, IMHO the only thing we can do is improve the usability of the security chain. For the user is meanless to trust a repository with gpg key 0&#215;32432432 and they will probably just click &#8220;yes&#8221;. The pending task is to make the cryptographic chain something that makes sense for the user.</p>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/414/feed</wfw:commentRss>
		</item>
		<item>
		<title>Cuidado Chile, se viene otro gol: SCD</title>
		<link>http://duncan.mac-vicar.com/blog/archives/398</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/398#comments</comments>
		<pubDate>Sat, 11 Oct 2008 16:40:35 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[uncategorized]]></category>

		<category><![CDATA[chile]]></category>

		<category><![CDATA[mafias]]></category>

		<category><![CDATA[music]]></category>

		<category><![CDATA[notfunny]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/archives/398</guid>
		<description><![CDATA[Ahora se ha revelado Acuerdo Secreto SCD/Gobierno de Chile (léanlo), hoy sólo quiero comentar un solo punto:


  
  ARTICULO 85 L. OPERADORAS DE INTERNET
  Lejos uno de los posibles artículos más populistas. En su afán de lucrarse, quieren cobrarle a las ISP que dan acceso a internet un valor por cada conexión, [...]]]></description>
			<content:encoded><![CDATA[<p>Ahora se ha revelado <a href="http://liberaciondigital.org/blog/2008/10/acuerdo-secreto-scdgobierno-de-chile-revelado/">Acuerdo Secreto SCD/Gobierno de Chile</a> (léanlo), hoy sólo quiero comentar un solo punto:</p>

<blockquote>
  <ul>
  <li>ARTICULO 85 L. OPERADORAS DE INTERNET
  Lejos uno de los posibles artículos más populistas. En su afán de lucrarse, quieren cobrarle a las ISP que dan acceso a internet un valor por cada conexión, pues según la SCD TODOS los que tenemos internet pirateamos música, y no cualquier música, sino que la del repertorio que ellos gestionan. Esto, amigos, sería fijar una responsabilidad a las ISP que EN NINGUN PAIS DEL MUNDO está determinado a priori, siendo Chile los primeros en una medida inconstitucional como esta. Y no es que esté defendiendo a las pobres ISPs , sino a todos los consumidores, porque dicho valor se verá SI o SI reflejado en los precios de acceso a Internet, haciendo AUN MAS CARO y PROHIBITIVO la banda ancha, Y todo porque el gobierno acordó ASEGURAR los ingresos a la monopólica de la SCD.</li>
  </ul>
</blockquote>

<p>Un ejemplo análogo a esto sería:</p>

<p>Yo soy desarrollador de software, y tengo mi asociación de autores de software, que agrupa a desconocidos como yo más otros conocidos. Hoy termine un nuevo programa, el cual he mantenido bajo &#8220;todos los derechos reservados&#8221; y pienso venderlo.</p>

<p>Sin importarme lo malo que es mi programa, y que nadie sabe que yo existo, usaremos la teta del gobierno para que este, mediante presunción, dictamine que cualquier persona que tenga acceso a Internet, tiene accesso a las redes p2p, y de esta manera acceso a descargar ilegalmente mi programa, y por lo tanto mi agrupación de programadores tiene derecho a recibir un sueldo pagado por los proveedores de Internet (que será por supuesto traspasado a los usuarios).</p>

<p>ESO ES EL ANÁLOGO DE LO QUE INTENTA LA SCD Y SUS ARTISTAS.</p>

<p>¿Por qué es el análogo al programador desconocido?</p>

<p>Porque si bien sé que Fernando Ubiergo es un músico, jamás he escuchado su música. De Quique Neira sólo he escuchado lo que ha sonado de fondo en alguna TV encendida. De Horacio Saavedra no conozco nada más que su cortina del festival de Viña, y de Eduardo Gatti sólo debo haber tocado &#8220;Los momentos&#8221; en la guitarra alguna vez en una fogata, pero no tengo ni siquiera la versión original. De <a href="http://www.scd.cl/lista_socios.html">esta lista</a> sólo ubico a uno cada cien. ¿Porque tienen los chilenos que mantenerlos si no escuchamos ni disfrutamos sus canciones?.</p>

<p>¿Que sería del mundo si las empresas nos cobraran por lo que ellas creen que hemos hablado por teléfono y no lo que dice el marcador?</p>

<p>La estrategia de estos artistas agrupados en la SCD, es de ser mantenidos por el sistema, es decir, pasar a ser parte del patrimonio nacional sin importar su popularidad o importancia.</p>

<p>Quizás vamos en camino recto al absurdo <a href="http://es.wikipedia.org/wiki/Canon_digital">canon digital Español</a>, que significa un impuesto a cualquier medio de grabación, el cual mediante presunción, podría ser usado para copias ilegales de algún artista (que quizás tampoco conoces). O sea, cuando un español compra un CD virgen, o incluso un disco duro para archivar sus propias fotos, le está pagando a estos artistas.</p>

<p>En la misma línea, los programadores que hayan puesto a disposición obras con &#8220;todos los derechos reservados&#8221; podrían exigir al gobierno una ayuda, cargando un impuesto a cualquier medio de almacenamiento. Justicia para todos no? Esto se podría extender a cualquier oficio cuyas obras estén sujetas al copyright. Una locura.</p>

<p>Chile, que no te metan otro gol. Tu no tienes porque financiar a Ubiergo o la Cecilia Echeñique si no utilizas su música.</p>

<h4>Update</h4>

<ul>
<li><a href="http://www.fayerwayer.com/2008/10/el-gobierno-acuerda-las-pautas-de-la-scd-y-acepta-una-ley-abusiva-para-todos/comment-page-7/">El post en Fayerwayer</a> sobre el tema.</li>
<li>Sería interesante también aprovechar la blogósfera para ver que diputados y senadores están a favor y en contra de esta ley.</li>
</ul>

<h4>Update 2</h4>

<p>Efectivamente, la SCD <a href="http://www.musica.cl/novedades/nl170707/link3.htm">busca instaurar un sistema de canon</a>, aunque al parecer no es parte de los aterradores puntos del &#8220;secreto acuerdo&#8221;. Más sobre <a href="http://www.quemarlasnaves.net/2007/07/24/la-scd-quiere-que-pagues-por-cada-cd-virgen/">eso aquí</a>.</p>

<h4>Update 3 - En que posición están los senadores y diputados?</h4>

<p>Es importante aprovechar estos polémicos temas para que veas como vota tu senador o diputado.</p>

<ul>
<li><a href="http://www.fayerwayer.com/2008/10/el-gobierno-acuerda-las-pautas-de-la-scd-y-acepta-una-ley-abusiva-para-todos/comment-page-7/">Juan Pablo Letelier</a> al parecer está en contra de esta iniciativa.</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/398/feed</wfw:commentRss>
		</item>
		<item>
		<title>Metallica&#8217;s Death Magnetic sound</title>
		<link>http://duncan.mac-vicar.com/blog/archives/391</link>
		<comments>http://duncan.mac-vicar.com/blog/archives/391#comments</comments>
		<pubDate>Thu, 09 Oct 2008 17:01:26 +0000</pubDate>
		<dc:creator>duncan</dc:creator>
		
		<category><![CDATA[music]]></category>

		<category><![CDATA[metallica]]></category>

		<category><![CDATA[p2p]]></category>

		<category><![CDATA[torrent]]></category>

		<guid isPermaLink="false">http://duncan.mac-vicar.com/blog/archives/391</guid>
		<description><![CDATA[I noticed some weeks ago that Death Magnetic (especially &#8220;The day that never comes&#8221; chorus) sounded very distorted. The mix is not good.

Now I found out it is not my imagination, but Wired reported the Guitar Hero version sounds much better (also in Rolling Stone) than the CD, and there is already a petition to [...]]]></description>
			<content:encoded><![CDATA[<p>I noticed some weeks ago that Death Magnetic (especially &#8220;The day that never comes&#8221; chorus) sounded very distorted. The mix is not good.</p>

<p>Now I found out it is not my imagination, but Wired reported <a href="http://blog.wired.com/music/2008/09/does-metallicas.html">the Guitar Hero version sounds much better</a> (also in <a href="http://www.rollingstone.com/rockdaily/index.php/2008/09/18/fans-complain-after-death-magnetic-sounds-better-on-guitar-hero-than-cd/">Rolling Stone</a>) than the CD, and there is already a <a href="http://www.gopetition.com/petitions/re-mix-or-remaster-death-magnetic.html">petition to remaster it</a>.</p>

<p>Instead of facing the problem <a href="http://blog.wired.com/music/2008/09/lars-ulrich-res.html">Lars Ulrich gave a very lame answer</a>. That is nonsense. Just like artists get upset when people copy their albums, fans also get upset when they buy the albums and the sound is crap. </p>

<p>If you got the CD and you are disappointed with the sound, you can find the Guitar Hero version remastered by fans in some torrent sites. Those should not hurt with earphones. There you have it Lars, the people that bought the CD is fixing the problem for you.</p>

<p><em>update</em>: <a href="http://www.youtube.com/watch?v=DRyIACDCc1I">This video shows very well</a> we are not talking about sound &#8220;style&#8221;, but quality. Make sure you are watching the high quality of the YouTube video (there should be a link under the video).</p>

<p><em>update #2</em>: <a href="http://www.youtube.com/watch?v=3Gmex_4hreQ">This video</a> explains in simple words what is this &#8220;Loudness war&#8221; and how it destroys the sound.</p>
]]></content:encoded>
			<wfw:commentRss>http://duncan.mac-vicar.com/blog/archives/391/feed</wfw:commentRss>
		</item>
	</channel>
</rss>
