<?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/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Maciej Bliziński &#187; Computers</title>
	<atom:link href="http://automatthias.wordpress.com/category/computers/feed/" rel="self" type="application/rss+xml" />
	<link>http://automatthias.wordpress.com</link>
	<description>Data analysis and Linux</description>
	<lastBuildDate>Thu, 03 Dec 2009 08:03:37 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='automatthias.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/a6db86e33e907b5131ba30b2228db630?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Maciej Bliziński &#187; Computers</title>
		<link>http://automatthias.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://automatthias.wordpress.com/osd.xml" title="Maciej Bliziński" />
		<item>
		<title>SUNW packages in an OpenCSW-format catalog</title>
		<link>http://automatthias.wordpress.com/2009/11/26/sunw-packages-in-an-opencsw-format-catalog/</link>
		<comments>http://automatthias.wordpress.com/2009/11/26/sunw-packages-in-an-opencsw-format-catalog/#comments</comments>
		<pubDate>Thu, 26 Nov 2009 20:22:17 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[OpenCSW]]></category>
		<category><![CDATA[Solaris]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=446</guid>
		<description><![CDATA[OpenCSW provides a software stack which allows to build catalogs with Solaris packages, and use a utility, such as pkg-get or pkgutil to download and install packages together with all the dependencies.  It works very nice for OpenCSW packages, but what if one wants to install a SUNW, that is, a Sun-provided package?  Solaris DVDs [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=446&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><a href="http://www.opencsw.org/">OpenCSW</a> provides a software stack which allows to build catalogs with Solaris packages, and use a utility, such as pkg-get or pkgutil to download and install packages together with all the dependencies.  It works very nice for OpenCSW packages, but what if one wants to install a SUNW, that is, a Sun-provided package?  Solaris DVDs are not in the OpenCSW format and pkgutil can&#8217;t use them directly.</p>
<p>I wrote a tool which converts a collection of Sun packages in the directory format (they&#8217;re distributed this way) into a set of gzipped srv4 format files (.pkg.gz) which can be served over http or ftp and downloaded via pkgutil.</p>
<p>To get started:</p>
<ol>
<li>Install pkgutil and pkgutilplus from OpenCSW</li>
<li>Check out the OpenCSW utilities:<br />
svn co https://opencsw.svn.sourceforge.net/svnroot/opencsw/utilities/</li>
<li>Have a Solaris DVD available in your filesystem</li>
<li>Patch /opt/csw/bin/bldcat if necessary (the patch is there at the end of this post)</li>
<li>Run the package converter:<br />
./build_sun_catalog.py -p &#8220;/somewhere/Solaris_10/Product&#8221; -c &#8220;/target/directory/sparc/5.10&#8243;</li>
<li>Run bldcat and create the catalog:<br />
(cd /target/directory/sparc/5.10; bldcat .)</li>
<li>Server the target directory via http under, say http://packages.example.com/solaris-10u5</li>
<li>From your Solaris machine, use the following command to install a package together with all the dependencies:<br />
pkgutil -t http://packages.example.com/solaris-10u5 -i SUNWfoo</li>
</ol>
<p>A word of warning though: upgrading SUNW packages <strong>can break your system</strong>! If you attempt to upgrade a core Solaris package such as SUNWcakr or SUNWkvm.  If pkgutil tries to do that, use the -x option to filter out those packages. For example:</p>
<p>pkgutil -t http://packages.example.com/solaris-10u5 -i SUNWfoo -x SUNWcakr -x SUNWcar -x SUNWkvm</p>
<pre>--- bldcat.orig 2009-11-23 13:45:58.436220417 +0000
+++ bldcat      2009-11-23 13:42:27.098746854 +0000
@@ -100,3 +100,3 @@
foreach (glob "$tmpdir/*") {
-    ($pkgname) = (/([\w\+-]+)$/) if (-d);
+    ($pkgname) = (/([\w\+-\.]+)$/) if (-d);
}</pre>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/446/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/446/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/446/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=446&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2009/11/26/sunw-packages-in-an-opencsw-format-catalog/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
		<item>
		<title>OpenCSW is where the goodness is</title>
		<link>http://automatthias.wordpress.com/2009/03/05/opencsw-is-where-the-goodness-is/</link>
		<comments>http://automatthias.wordpress.com/2009/03/05/opencsw-is-where-the-goodness-is/#comments</comments>
		<pubDate>Wed, 04 Mar 2009 22:52:03 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[OpenCSW]]></category>
		<category><![CDATA[Solaris]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=423</guid>
		<description><![CDATA[Executive summary: OpenCSW rocks. http://ftp.heanet.ie/pub/opencsw/ (and the like) is the mirror setting you want. (See the README files for more mirrors.)
Solaris 10, as installed from a DVD, has a very small number of software packages. It has packages that are relevant to the OS itself, but it does not have packages with things such as [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=423&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Executive summary: <a href="http://www.opencsw.org/">OpenCSW</a> rocks. http://ftp.heanet.ie/pub/opencsw/ (and the like) is the mirror setting you want.<em> (See the <a href="http://ftp.heanet.ie/pub/opencsw/README">README</a> files for more mirrors.)</em></p>
<p>Solaris 10, as installed from a DVD, has a very small number of software packages. It has packages that are relevant to the OS itself, but it does not have packages with things such as <span style="text-decoration:line-through;">Apache or PostgreSQL</span> vim, or subversion client, or GNU utilities (awk, grep, etc). These ones you need to either compile yourself or use a precompiled binary package. A project called blastwave used to provide those for quite a number of years. However, sometime in August 2008, “things happened”. What those things are, I&#8217;ve decided I don&#8217;t want to know. The current state of affairs is that there are 2 (two) projects now, one is called “blastwave” and one is “opencsw”. I did a bit of research on the web to find out about their source repositories and binary package statuses.</p>
<p>One thing that struck me pretty strong is that none of those projects advertises its code repository. With open source projects, the code repository is usually the first thing published. “We have a new project! Here&#8217;s our code: http://svn.example.org!” That&#8217;s what the phrase “open source” means, according to a common sense understanding. If you&#8217;re interested in the project, you can download the source, tinker with it and if you come up with something useful, you offer your change in a form of a patch. Without the source code, you can&#8217;t do that. So, where&#8217;s the source?</p>
<p>Finding the source code of OpenCSW was a bit harder than the source code of Blastwave. Here it is:</p>
<p><a href="http://gar.svn.sourceforge.net/viewvc/gar/csw/mgar/pkg/"><code>http://gar.svn.sourceforge.net/viewvc/gar/csw/mgar/pkg/</code></a></p>
<p>To check out the source (takes a long time to complete):</p>
<p><tt> </tt></p>
<pre><tt>svn co --ignore-externals https://gar.svn.sourceforge.net/svnroot/gar/csw/mgar opencsw</tt></pre>
<p><tt></tt></p>
<p>The code repository, looking at the <a href="http://sourceforge.net/project/stats/detail.php?group_id=229205&amp;ugn=gar&amp;type=svn&amp;mode=60day">statistics page</a>, looks pretty active. There&#8217;s also a <a href="http://apps.sourceforge.net/mediawiki/gar/index.php?title=Main_Page">wiki page with instructions</a>.</p>
<p>If you want to update a package or change something in a package from CSW, or you&#8217;re wondering how does package building work there, check out this source, then change into a directory with a package, like cups/trunk and type &#8216;gmake&#8217;. It works in a similar fashion to BSD ports.</p>
<p>I didn&#8217;t do full exhaustive stats, but it seems that packages in OpenCSW are generally much more recent than the ones from Blastwave. So, check your pkg-get.conf (<span style="text-decoration:line-through;">yes, it&#8217;s a newer version of</span> or pkgutil.conf if you use this alternative to pkg-get) and replace the old blastwave mirror with OpenCSW one, and see the goodness flowing in.</p>
<p>(updated on 2009-03-11 according to Phil&#8217;s comments)</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/423/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/423/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/423/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=423&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2009/03/05/opencsw-is-where-the-goodness-is/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
		<item>
		<title>One more reason to praise Dreamhost</title>
		<link>http://automatthias.wordpress.com/2008/12/28/one-more-reason-to-praise-dreamhost/</link>
		<comments>http://automatthias.wordpress.com/2008/12/28/one-more-reason-to-praise-dreamhost/#comments</comments>
		<pubDate>Sun, 28 Dec 2008 10:07:13 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[Dreamhost]]></category>
		<category><![CDATA[Internet]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=413</guid>
		<description><![CDATA[Few months ago, I&#8217;ve decided to try out a Xen virtual server service in a German provider, xencon. Then I decided I had a better solution (also Xen-based), and I don&#8217;t need xencon any more. However, it turns out that it&#8217;s not so easy to cancel the service. I had similar problems with two telecom [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=413&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Few months ago, I&#8217;ve decided to try out a Xen virtual server service in a German provider, xencon. Then I decided I had a better solution (also Xen-based), and I don&#8217;t need xencon any more. However, it turns out that it&#8217;s not so easy to cancel the service. I had similar problems with two telecom providers in Poland. I said I want to cancel the service and they kept on billing me.</p>
<p><a href="http://www.dreamhost.com/">Dreamhost</a> however, is awesome: if you want to, or need to, you can actually close your Dreamhost account on-line! They kindly ask you &#8220;Please, stay!&#8221;, but you have a button to press, stating that you really want to close your account.</p>
<p>This is by itself an excellent reason to open an account there.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/413/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/413/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/413/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=413&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2008/12/28/one-more-reason-to-praise-dreamhost/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
		<item>
		<title>Fixing character sets in MySQL</title>
		<link>http://automatthias.wordpress.com/2008/12/26/fixing-character-sets-in-mysql/</link>
		<comments>http://automatthias.wordpress.com/2008/12/26/fixing-character-sets-in-mysql/#comments</comments>
		<pubDate>Fri, 26 Dec 2008 15:01:30 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[Database]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[SQL]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=405</guid>
		<description><![CDATA[I&#8217;ve recently had to move a few databases from MySQL 4.x to MySQL 5.x. One of the most important differences is that the 5.x family understands character encodings. Not exactly fresh news, version 5.0 was issued in 2003, but there is still a lot of 4.x installations around.
MySQL 5.0 no longer happily accepts any byte [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=405&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve recently had to move a few databases from MySQL 4.x to MySQL 5.x. One of the most important differences is that the 5.x family understands character encodings. Not exactly fresh news, version 5.0 was issued in 2003, but there is still a lot of 4.x installations around.</p>
<p>MySQL 5.0 no longer happily accepts any byte string into a VARCHAR or TEXT field. It stores encoding names as part of the table structure, and converts between encodings when necessary. MediaWiki or WordPress, when run on MySQL 4.x, store data in UTF-8, but the database itself doesn&#8217;t &#8220;know&#8221; about it. Everything seems fine, until you dump your database to a file and load it into MySQL 5.0 (or above). What happens, is that your text is considered to be latin1 (a.k.a. ISO-8859-1). If you happen to have any non-English characters as, say, article names in MediaWiki, you&#8217;re going to end up with an error message such as:</p>
<blockquote><p>A database query syntax error has occurred. This may indicate a bug in the software. The last attempted database query was:</p>
<p>(SQL query hidden)</p>
<p>from within function &#8220;Article::pageData&#8221;. MySQL returned error &#8220;1267: Illegal mix of collations (latin1_bin,IMPLICIT) and (utf8_general_ci,COERCIBLE) for operation &#8216;=&#8217; (localhost)&#8221;.</p></blockquote>
<p>To fix the problem, you need to tell MySQL that your text data is really UTF-8, not latin1. You need to find all the columns of type VARCHAR or TEXT, and modify them to have UTF-8 character set. For example, if your column is VARCHAR(255), you can execute this statement:</p>
<blockquote><p>ALTER TABLE your_table<br />
MODIFY COLUMN your_column VARCHAR(255)<br />
CHARACTER SET utf8<br />
COLLATE utf8_bin;</p></blockquote>
<p><em>(The utf8_bin collation is needed to keep your sorting case-sensitive.)</em></p>
<p>However, MySQL will <em>convert</em> your text from latin1 to UTF-8, and your text will still appear &#8220;wrong&#8221;. You can fix it in one more step. The problem is that you had UTF-8 taken to be latin1 and then stored as UTF-8. To fix this, you need to &#8220;convert&#8221; your text from UTF-8 back to latin1, and then make MySQL take it as UTF-8, but, importantly, without converting it. This can be achieved by temporarily casting your data to binary &#8212; this operation doesn&#8217;t trigger encoding changes. You can then cast your data into any encoding you want. In a nutshell, you<em></em> need to go: UTF-8 →(conversion)→ latin1 → binary → UTF-8.</p>
<blockquote><p>UPDATE your_table<br />
SET your_column = CONVERT(<br />
CONVERT(<br />
CONVERT(<br />
your_column<br />
USING latin1<br />
)<br />
USING binary<br />
)<br />
USING utf8<br />
);</p></blockquote>
<p>It may take you a while to understand it. If you want to get a better feel of what&#8217;s going on, consider the following, equivalent example in shell. Let&#8217;s assume you&#8217;re using Polish diacritics: ąćęłńóśżź. Your Polish page title &#8220;Café&#8221; might in a garbled form look something like this:</p>
<blockquote><p>CafÃ©</p></blockquote>
<p>Assuming your system is natively UTF-8 (most of modern Linux distributions are), an easy way to simulate text garbling is the following shell expression.</p>
<blockquote><p>echo Café \<br />
| iconv -f utf-8 -t utf-8 \<br />
| iconv -f latin1 -t utf-8<br />
CafÃ©</p></blockquote>
<p>Converting from UTF-8 to UTF-8 seems stupid, but I wanted it to be very clear: what we have here, is an UTF-8 string, as output by the second line, taken to be latin1 in the third line. This is how your text can become garbled. An obvious way to fix it, is to run the process backwards:</p>
<blockquote><p>echo CafÃ© \<br />
| iconv -f utf-8 -t latin1 \<br />
| iconv -f utf-8 -t utf-8<br />
Café</p></blockquote>
<p>Again, the UTF-8 to UTF-8 conversion is preserved to make this crucial point explicit. Your string was converted to latin1, and then taken to be UTF-8.</p>
<p>Back to our problem. We know how to convert the data, but we need to find all the tables and columns taht need converting. Conveniently, MySQL offers an &#8220;information_schema&#8221; database, which allows us to read information about MySQL tables. It&#8217;s enough to run this query to find all the tables of interest:</p>
<blockquote><p>SELECT<br />
table_name,<br />
column_name,<br />
column_type,<br />
character_set_name<br />
FROM<br />
columns<br />
WHERE<br />
table_schema = &#8216;your_table&#8217;<br />
AND<br />
(<br />
data_type = &#8216;varchar&#8217;<br />
OR<br />
data_type = &#8216;text&#8217;<br />
)<br />
AND<br />
character_set_name != &#8216;utf8&#8242;<br />
;</p></blockquote>
<p>If you&#8217;re really lazy, as I am, your data has exactly this problem (UTF-8 taken to be latni1 and looking garbled), you can use a Python script I wrote. But please be careful! You&#8217;re using it at your own risk! Backup your database first! If this script damages your database and you lose all your data, it&#8217;s your problem, not mine. You have been warned. <a href="http://django-phpbb.googlecode.com/svn-history/r26/trunk/phpbb/tools/mysql_repair_encoding.py">Here&#8217;s the script</a>.</p>
<p>Note: the script will only <em>print</em> SQL statements to screen. You have to execute them youself.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/405/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/405/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/405/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=405&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2008/12/26/fixing-character-sets-in-mysql/feed/</wfw:commentRss>
		<slash:comments>15</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
		<item>
		<title>File changed as we read it</title>
		<link>http://automatthias.wordpress.com/2008/11/29/file-changed-as-we-read-it/</link>
		<comments>http://automatthias.wordpress.com/2008/11/29/file-changed-as-we-read-it/#comments</comments>
		<pubDate>Sat, 29 Nov 2008 14:51:44 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[gnu]]></category>
		<category><![CDATA[tar]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=399</guid>
		<description><![CDATA[I&#8217;ve tracked it down, so you don&#8217;t have to.
When creating an archive, GNU tar monitors the file it&#8217;s reading. If the file&#8217;s mtime has changed, it&#8217;s reporting that “file changed as we read it”, as defined in create.c in the source code.
Tar&#8217;s man page doesn&#8217;t say anything about tar system exit codes, but a relevant [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=399&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p><em>I&#8217;ve tracked it down, so you don&#8217;t have to.</em></p>
<p>When creating an archive, GNU tar monitors the file it&#8217;s reading. If the file&#8217;s mtime has changed, it&#8217;s reporting that “file changed as we read it”, as defined in create.c in the source code.</p>
<p>Tar&#8217;s man page doesn&#8217;t say anything about tar system exit codes, but a <a href="http://www.gnu.org/software/tar/manual/html_section/Synopsis.html">relevant piece of documentation</a> can be found on-line.</p>
<p>Depending on tar version, it returns different exit codes.</p>
<ul>
<li>tar-1.13 and earlier: 1 or 2</li>
<li>tar-1.14: == 0</li>
<li>tar-1.15: == 0</li>
<li>tar-1.17: == 1 (<a href="http://cvs.savannah.gnu.org/viewvc/tar/src/create.c?root=tar&amp;view=diff&amp;r1=1.119&amp;r2=1.120">change</a>)</li>
<li>tar-1.19: == 1</li>
</ul>
<p>The change was recent enough that as of November 2008, you can be still encountering both behaviors.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/399/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/399/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/399/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=399&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2008/11/29/file-changed-as-we-read-it/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
		<item>
		<title>Authentication in django-phpbb</title>
		<link>http://automatthias.wordpress.com/2008/11/25/authentication-in-django-phpbb/</link>
		<comments>http://automatthias.wordpress.com/2008/11/25/authentication-in-django-phpbb/#comments</comments>
		<pubDate>Tue, 25 Nov 2008 08:45:45 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[Django]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=392</guid>
		<description><![CDATA[I&#8217;ve recently checked in changes to django-phpbb, my Django-phpBB integration project. It&#8217;s now possible to authenticate users against unmodified phpBB database. I&#8217;ve also added installation instructions.
Current focus will be on removing the parts that are specific to my project and making django-phpbb more generic.
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=392&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>I&#8217;ve recently checked in changes to <a href="http://code.google.com/p/django-phpbb/">django-phpbb</a>, my <a href="http://automatthias.wordpress.com/2008/11/02/django-phpbb/">Django-phpBB integration project</a>. It&#8217;s now possible to authenticate users against unmodified phpBB database. I&#8217;ve also added installation instructions.</p>
<p>Current focus will be on removing the parts that are specific to my project and making django-phpbb more generic.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/392/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/392/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/392/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=392&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2008/11/25/authentication-in-django-phpbb/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
		<item>
		<title>Bridge and ipv6 autoconfiguration</title>
		<link>http://automatthias.wordpress.com/2008/11/16/bridge-and-ipv6-autoconfiguration/</link>
		<comments>http://automatthias.wordpress.com/2008/11/16/bridge-and-ipv6-autoconfiguration/#comments</comments>
		<pubDate>Sun, 16 Nov 2008 15:21:45 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[bridge]]></category>
		<category><![CDATA[ipv6]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=388</guid>
		<description><![CDATA[“There&#8217;s no sound”, said my missus.
Few minutes before, as usual, I picked up my 17-inch laptop and placed it on the second desk, where it can face the room. I don&#8217;t really like dragging the armchair every time I want to watch a video together, but the flat isn&#8217;t big enough to arrange a place [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=388&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>“There&#8217;s no sound”, said my missus.</p>
<p>Few minutes before, as usual, I picked up my 17-inch laptop and placed it on the second desk, where it can face the room. I don&#8217;t really like dragging the armchair every time I want to watch a video together, but the flat isn&#8217;t big enough to arrange a place with a permanent setup. (I also don&#8217;t own a TV and I&#8217;m proud of it.)</p>
<p>This time there was indeed no sound.</p>
<p>“Wait a minute”, I said and opened Gnome Terminal. At my place, there is only one set of speakers connected to one computer, and shared over the local area network. After a while I figured out that mplayer had trouble contacting PulseAudio server. The server wouldn&#8217;t respond.</p>
<p>I tried playing sound from a different machine &#8211; it worked. So it&#8217;s not the server. Next test:</p>
<p><code>maciej@quince ~ $ ping -c 1 leon<br />
PING leon.home.blizinski.pl (192.168.1.3) 56(84) bytes of data.<br />
64 bytes from leon.home.blizinski.pl (192.168.1.3): icmp_seq=1 ttl=64 time=0.165 ms</code></p>
<p>&#8212; leon.home.blizinski.pl ping statistics &#8212;<br />
1 packets transmitted, 1 received, 0% packet loss, time 0ms<br />
rtt min/avg/max/mdev = 0.165/0.165/0.165/0.000 ms</p>
<p>Next test&#8230;</p>
<p><code>maciej@quince ~ $ telnet leon 4713<br />
Trying 2001:</code>660:952:<code>:20a:e4ff:fe28:a3cf...<br />
</code></p>
<p>Timeout. And&#8230; ah. I forgot I was running native IPv6 in my LAN. I tried connecting over IPv4, it worked. I&#8217;ve set ${PULSE_SERVER} to the IPv4 address of the PulseAudio server and happily watched the movie together with my missus.</p>
<p>But&#8230; what&#8217;s going on? Running ping6 ipv6.google.com gives good results &#8211; there are answers. But when I ran ping6 leon, I got no answer. How can ping work for an external host but not for a host in my LAN?</p>
<p>After more poking at the machine, I&#8217;ve found out that the response packets (ACK) over IPv6 are in fact coming to the slave eth0 interface, but never to the bridge interface, br0.</p>
<p>Then I&#8217;ve noticed that IPv6 routing is wrong! There are two routes:</p>
<p><code>2001:660:952::/64 dev eth0<br />
2001:660:952::/64 dev br0</code></p>
<p>Packets should leave through br0, not eth0. First idea, restart the bridge. However, the wrong route stayed there even after interface restart. It made me think what happens when I stop the bridge.</p>
<p>Well, eth0 goes back from slave state into a normal state, and then&#8230; it&#8217;s autoconfigured. That means, it gets a route assigned to it. When the bridge is being started, eth0 becomes a slave of br0, but there probably is no mechanism to remove the route which was assigned during eth0&#8217;s autoconfiguration.</p>
<p>A quick ad-hoc fix is:</p>
<p><code>ip -6 route del 2001:660:952::/64 dev eth0</code></p>
<p>A permanent solution would be better, but I happen to be lazy.</p>
<p><strong>UPDATE</strong> 2009-02-01: Jeroen Massar from SixXS <a href="https://www.sixxs.net/forum/?msg=general-957119">offered</a> a better workaround:<br />
put in <code>/etc/sysctl.conf</code>:<br />
<code>net.ipv6.conf.eth0.accept_ra = 0</code></p>
<p>When talking about this problem, the conversation usually goes like this:<br />
- I have this problem with IPv6 autoconfiguration&#8230; (yada yada)<br />
- What distribution are you using?<br />
- Gentoo.<br />
- (laughter)</p>
<p>Well, turns out, they were right. I tried this config on Ubuntu:</p>
<p><code>maciej@ubuntu-vbox:~$ cat /etc/network/interfaces<br />
auto lo<br />
iface lo inet loopback<br />
&nbsp;<br />
iface br0 inet dhcp<br />
bridge_ports eth0<br />
&nbsp;<br />
auto eth0<br />
auto br0</code></p>
<p>After &#8220;/etc/init.d/network restart&#8221;, the surplus route was there. But after a reboot, it wasn&#8217;t there any more. Ubuntu/Debian somehow handles this case.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/388/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/388/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/388/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=388&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2008/11/16/bridge-and-ipv6-autoconfiguration/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
		<item>
		<title>Training notes from Atlantic Linux</title>
		<link>http://automatthias.wordpress.com/2008/10/22/training-notes-from-atlantic-linux/</link>
		<comments>http://automatthias.wordpress.com/2008/10/22/training-notes-from-atlantic-linux/#comments</comments>
		<pubDate>Wed, 22 Oct 2008 20:02:08 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=379</guid>
		<description><![CDATA[Atlantic linux writes:
We started with an Introduction to Linux course after finding some interested customers around the Galway area. (&#8230;) we decided to release our training materials under a Creative Commons license (&#8230;)
- Introduction to Linux
- Linux System Administration and Support
- Linux Performance Tuning
Full post and training materials
       <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=379&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Atlantic linux writes:</p>
<blockquote><p>We started with an Introduction to Linux course after finding some interested customers around the Galway area. (&#8230;) we decided to release our training materials under a <a href="http://creativecommons.org/">Creative Commons</a> license (&#8230;)</p>
<p><strong>- Introduction to Linux<br />
</strong><strong>- Linux System Administration and Support<br />
- </strong><strong>Linux Performance Tuning</strong></p></blockquote>
<p><a href="http://www.atlanticlinux.ie/blog/?p=42">Full post and training materials</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/379/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/379/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/379/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=379&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2008/10/22/training-notes-from-atlantic-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
		<item>
		<title>Accessing ZFS snapshots</title>
		<link>http://automatthias.wordpress.com/2008/10/20/accessing-zfs-snapshots/</link>
		<comments>http://automatthias.wordpress.com/2008/10/20/accessing-zfs-snapshots/#comments</comments>
		<pubDate>Mon, 20 Oct 2008 10:23:10 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=377</guid>
		<description><![CDATA[Suppose you use ZFS and have pool/foo mounted at /foo.
zfs create -o mountpoint=/foo pool/foo
Suppose you&#8217;ve created a snapshot:
zfs snapshot pool/foo@bar
Now they tell you that you can access it inside .zfs/snapshot directory. However, if you go into /foo and type ls -la (option &#8216;a&#8217; means you want to see files and directories beginning with a dot), [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=377&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>Suppose you use ZFS and have pool/foo mounted at /foo.</p>
<p>zfs create -o mountpoint=/foo pool/foo</p>
<p>Suppose you&#8217;ve created a snapshot:</p>
<p>zfs snapshot pool/foo@bar</p>
<p>Now they tell you that you can access it inside .zfs/snapshot directory. However, if you go into /foo and type ls -la (option &#8216;a&#8217; means you want to see files and directories beginning with a dot), you don&#8217;t see the .zfs directory. You&#8217;ll see &#8216;.&#8217; and &#8216;..&#8217; and all others, but not &#8216;.zfs&#8217;. However, an innocent &#8216;cd .zfs&#8217; or &#8216;cd /foo/.zfs&#8217; will get you there. A truly hidden directory indeed.</p>
<p>What was it called at esr&#8217;s The Art of Unix Programming? <a href="http://www.faqs.org/docs/artu/ch11s01.html">The Principle of Least Surprise?</a></p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/377/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/377/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/377/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=377&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2008/10/20/accessing-zfs-snapshots/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
		<item>
		<title>IPv6-enabled OpenCSW mirror</title>
		<link>http://automatthias.wordpress.com/2008/09/21/ipv6-enabled-opencsw-mirror/</link>
		<comments>http://automatthias.wordpress.com/2008/09/21/ipv6-enabled-opencsw-mirror/#comments</comments>
		<pubDate>Sun, 21 Sep 2008 21:10:09 +0000</pubDate>
		<dc:creator>automatthias</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[ipv6]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://automatthias.wordpress.com/?p=360</guid>
		<description><![CDATA[My home network has native IPv6 with radvd running on the router. Any host connected to it automatically gets an IPv6 address. (Unless it&#8217;s a Solaris zone, but that&#8217;s another story.) For a reason I haven&#8217;t worked out yet, all IPv4 traffic on my downlink seems to be throttled to 60kB/s. However, when downloading over [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=360&subd=automatthias&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>My home network has native IPv6 with radvd running on the router. Any host connected to it automatically gets an IPv6 address. (Unless it&#8217;s a Solaris zone, but that&#8217;s another story.) For a reason I haven&#8217;t worked out yet, all IPv4 traffic on my downlink seems to be throttled to 60kB/s. However, when downloading over IPv6, I&#8217;m easily getting 150kB/s or 200kB/s.</p>
<p>When setting up a Solaris 10 system (this time using kvm), I&#8217;m getting an IPv6 address straight away:</p>
<p><code>bash-3.00# ifconfig -a6<br />
lo0: flags=2002000849&lt;UP,LOOPBACK,RUNNING,MULTICAST,IPv6,VIRTUAL&gt; mtu 8252 index 1<br />
inet6 ::1/128<br />
rtls0: flags=2000841&lt;UP,RUNNING,MULTICAST,IPv6&gt; mtu 1500 index 2<br />
inet6 fe80::5053:ff:fe13:9457/10<br />
ether 52:53:0:13:94:57<br />
rtls0:1: flags=2080841&lt;UP,RUNNING,MULTICAST,ADDRCONF,IPv6&gt; mtu 1500 index 2<br />
inet6 2001:770:18d:0:5053:ff:fe13:9457/64</code></p>
<p><em>(the &#8216;rtls0&#8242; interface is a name for a rtl8139 NIC)</em></p>
<p>I want to use an IPv6-enabled OpenCSW mirror! Such as ftp.heanet.ie.</p>
<p>You may want that too. Edit /etc/wgetrc (or /opt/csw/etc/wgetrc if you&#8217;re using OpenCSW wget) in your Solaris system and add a line:</p>
<p><code>prefer-family = IPv6</code></p>
<p>&#8230;and&#8230;</p>
<p><code>bash-3.00# pkg-get -U<br />
WARNING: gpg not found<br />
Getting catalog...<br />
--20:58:52--  http://ftp.heanet.ie/pub/blastwave/unstable/i386/5.10/catalog<br />
=&gt; `catalog'<br />
Resolving ftp.heanet.ie... 2001:770:18:aa40::c101:c140, 193.1.193.64<br />
Connecting to ftp.heanet.ie|2001:770:18:aa40::c101:c140|:80... connected.<br />
HTTP request sent, awaiting response... 200 OK<br />
Length: 357,696 (349K) [text/plain]</code></p>
<p><code>100%[==============&gt;] 357,696      452.07K/s</code></p>
<p><code>20:58:53 (451.18 KB/s) - `catalog' saved [357696/357696]</code></p>
<p>wget will now try to use IPv6 where available. When IPv6-enabled site is not there (no AAAA record, for instance), it will fall back to IPv4.</p>
<p>UPDATE: Putting network interface in a (VirtualBox 1.6.4) virtual machine into promiscuous mode does in fact make the interface accept icmp6 traffic.</p>
<p>UPDATE (2009-03-11): Added information about OpenCSW wget configuration path.</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/automatthias.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/automatthias.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/automatthias.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/automatthias.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/automatthias.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/automatthias.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/automatthias.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/automatthias.wordpress.com/360/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/automatthias.wordpress.com/360/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/automatthias.wordpress.com/360/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=automatthias.wordpress.com&blog=223983&post=360&subd=automatthias&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://automatthias.wordpress.com/2008/09/21/ipv6-enabled-opencsw-mirror/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
	
		<media:content url="http://0.gravatar.com/avatar/e09207f4f71e692020a239853749b114?s=96&#38;d=identicon&#38;r=G" medium="image">
			<media:title type="html">automatthias</media:title>
		</media:content>
	</item>
	</channel>
</rss>