<?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>Madabar.techblog &#187; fedora</title>
	<atom:link href="http://madabar.com/techblog/category/fedora/feed/" rel="self" type="application/rss+xml" />
	<link>http://madabar.com/techblog</link>
	<description>If it ain't broke you're not trying hard enough</description>
	<lastBuildDate>Sun, 05 Apr 2009 06:53:30 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>NTSC to PAL DVD conversion in Linux</title>
		<link>http://madabar.com/techblog/2009/04/05/ntsc-to-pal-dvd-conversion-in-linux/</link>
		<comments>http://madabar.com/techblog/2009/04/05/ntsc-to-pal-dvd-conversion-in-linux/#comments</comments>
		<pubDate>Sun, 05 Apr 2009 06:53:30 +0000</pubDate>
		<dc:creator>twegener</dc:creator>
				<category><![CDATA[AV]]></category>
		<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://madabar.com/techblog/?p=34</guid>
		<description><![CDATA[I needed to convert a home-made video (well slide-show with soundtrack really) that was sent over from the USA. Attempting to play this on a PAL-only TV results in unwatchable flickering monochrome output. Based on some instructions for DVD format conversion I was able to convert the NTSC disc to PAL using the steps listed [...]]]></description>
			<content:encoded><![CDATA[<p>I needed to convert a home-made video (well slide-show with soundtrack really) that was sent over from the USA. Attempting to play this on a PAL-only TV results in unwatchable flickering monochrome output. Based on some <a href="http://www.linuxforums.org/forum/gaming-games-multimedia-entertainment/6883-legitimate-dvd-copying-pal-ntsc-conversions.html">instructions for DVD</a> <a href="http://osdir.com/ml/video.mjpeg.user/2003-03/msg00318.html">format conversion</a> I was able to convert the NTSC disc to PAL using the steps listed below. This was on a Fedora 10 system with the <a href="http://rpmfusion.org">rpmfusion</a> repos installed. </p>
<pre>
# Note: about 1.3GB of workspace was required to generate 170MB output, in this case a short slide show with sound track.
# 

yum install vobcopy mjpegtools dvdauthor
mkdir video_work
cd video_work
vobcopy -l
mkfifo stream.yuv
mplayer -ao null -noframedrop -vo yuv4mpeg VIDEONAME.vob &#038;
cat stream.yuv|yuvfps -r25:1|yuvscaler -n p -O DVD |mpeg2enc -n p -f 8 -F 3 -o out.m2v
mplayer -ao pcm -vo null -vc dummy VIDEONAME.vob
# Note: 224000 bits per second (224kbits/sec)
ffmpeg -ab 224000 -ac 2 -ar 48000 -i audiodump.wav audiodump.ac3
mplex -f 8 -o ready-to-master.mpg out.m2v audiodump.ac3
mkdir dvdauthor_out
cat &lt;&lt; EOF &gt; dvdauthor.xml
&lt;dvdauthor dest="/data_dir/video_work/dvdauthor_out"&gt;
&lt;vmgm&gt;
&lt;/vmgm&gt;
&lt;titleset&gt;
&lt;titles&gt;
&lt;video /&gt;
&lt;pgc&gt;
&lt;vob file="ready-to-master.mpg" /&gt;
&lt;/pgc&gt;
&lt;/titles&gt;
&lt;/titleset&gt;
&lt;/dvdauthor&gt;
EOF
dvdauthor -x dvdauthor.xml
growisofs -Z /dev/dvd -dvd-video dvdauthor_out
</pre>
]]></content:encoded>
			<wfw:commentRss>http://madabar.com/techblog/2009/04/05/ntsc-to-pal-dvd-conversion-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>LightScribe &#8211; meh</title>
		<link>http://madabar.com/techblog/2008/11/27/lightscribe-meh/</link>
		<comments>http://madabar.com/techblog/2008/11/27/lightscribe-meh/#comments</comments>
		<pubDate>Thu, 27 Nov 2008 10:58:03 +0000</pubDate>
		<dc:creator>twegener</dc:creator>
				<category><![CDATA[fedora]]></category>
		<category><![CDATA[linux]]></category>

		<guid isPermaLink="false">http://madabar.com/techblog/2008/11/27/lightscribe-meh/</guid>
		<description><![CDATA[One of tonight&#8217;s tasks was to burn a freshly downloaded Fedora 10 DVD ISO image. My dad gave me some blank LightScribe DVDs a while back, so I thought I&#8217;d give them a try, not having done so before. 
After a quick look around it appears the only LightScribe labelling software available for Linux is [...]]]></description>
			<content:encoded><![CDATA[<p>One of tonight&#8217;s tasks was to burn a freshly downloaded Fedora 10 DVD ISO image. My dad gave me some blank LightScribe DVDs a while back, so I thought I&#8217;d give them a try, not having done so before. </p>
<p>After a quick look around it appears the only <a href="http://fedorasolved.org/multimedia-solutions/lightscribe-for-linux">LightScribe labelling software available for Linux</a> is proprietary. <a href="http://www.lacie.com/">LaCie</a> provide the software in RPM packages which is nice if you are a Fedora user like me. (Apparently they have tested it with the other major distros, which is nice to see.) It installed fine under Fedora 10 beta, which was a nice surprise given that it was apparently written for Fedora 5. It didn&#8217;t install a menu entry, but firing up the &#8220;LaCie Lightscribe Labeller&#8221;, &#8216;4L-gui&#8217;, provided a reasonably nice experience. </p>
<p>I grabbed some <a href="http://fedoraproject.org/wiki/Artwork/MediaArt/F10">DVD media artwork from the Fedora art team</a>. There were two labels in each image file, so I had to pick one and chop it in half with the GIMP. I then cropped it to remove the alignment patterns, and then did an autocrop to crop to the edge of the DVD label. Then it was a simple matter of importing it in the 4L-gui and selecting &#8216;fit image height to disc&#8217;. </p>
<p>Writing the disc label took a bewilderingly long 15 minutes. I suppose it is effectively doing the same thing as burning a CD, but it&#8217;s a big wait for little reward. The inscribed label is a hazy monochrome image that is below the surface of the disc. </p>
<p>In future I think I&#8217;ll just use a pen. Nevertheless, it&#8217;s interesting to the see the improvement in the quality of Linux software provided by a hardware vendor. It would be even better if they would free the code. This would enable distros to incorporate the software into the main repos, making the experience a bit more streamlined and integrated.</p>
]]></content:encoded>
			<wfw:commentRss>http://madabar.com/techblog/2008/11/27/lightscribe-meh/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Sorting package version strings</title>
		<link>http://madabar.com/techblog/2008/03/06/sorting-package-version-strings/</link>
		<comments>http://madabar.com/techblog/2008/03/06/sorting-package-version-strings/#comments</comments>
		<pubDate>Thu, 06 Mar 2008 12:34:34 +0000</pubDate>
		<dc:creator>twegener</dc:creator>
				<category><![CDATA[Python]]></category>
		<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://madabar.com/techblog/2008/03/06/sorting-package-version-strings/</guid>
		<description><![CDATA[Interesting less trivial than expected problem (solved): sorting package version numbers:
import re
import rpm

def get_package_version(name):
    """Return version string of installed package."""

    # note: ts can take an argument that is the root of the installation
    #       typically with a var/lib/rpm directory [...]]]></description>
			<content:encoded><![CDATA[<p>Interesting less trivial than expected problem (solved): sorting package version numbers:</p>
<blockquote><pre>import re
import rpm

def get_package_version(name):
    """Return version string of installed package."""

    # note: ts can take an argument that is the root of the installation
    #       typically with a var/lib/rpm directory underneath it.
    transaction_set = rpm.ts()

    versions = [header['provideversion'][0]
                for header in transaction_set.dbMatch('name', name)]
    versions.sort(cmp_versions)
    return versions

def version2sortable(version):

    parts = re.split(r'(\d+)', version)
    fields = []
    for part in parts:
        try:
            part = int(part)
        except ValueError:
            pass
        fields.append(part)
    return tuple(fields)

def cmp_versions(a, b):

    return cmp(version2sortable(a), version2sortable(b))

if __name__ == '__main__':
    print get_package_version('kernel')
</pre>
</blockquote>
<p>Output:<br />
<code><br />
['2.6.23.8-63.fc8', '2.6.23.9-85.fc8', '2.6.23.14-107.fc8', '2.6.23.14-115.fc8', '2.6.23.15-137.fc8']<br />
</code></p>
<p>Note: Wordpress is screwing up the markup on the code blocks above. If you have any tips on how to fix this please drop me a line.<br />
<strong>Update:</strong> Using pre/blockquote hack for now and will try out a code highlighter plug-in when I get the chance. Thanks Tim and Lindsay! <img src='http://madabar.com/techblog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://madabar.com/techblog/2008/03/06/sorting-package-version-strings/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Updating to Fedora 8</title>
		<link>http://madabar.com/techblog/2007/11/30/updating-to-fedora-8/</link>
		<comments>http://madabar.com/techblog/2007/11/30/updating-to-fedora-8/#comments</comments>
		<pubDate>Fri, 30 Nov 2007 12:57:56 +0000</pubDate>
		<dc:creator>twegener</dc:creator>
				<category><![CDATA[fedora]]></category>

		<guid isPermaLink="false">http://madabar.com/techblog/2007/11/30/updating-to-fedora-8/</guid>
		<description><![CDATA[A few weekends ago I updated my system from Fedora 6 to Fedora 8. I did a fresh install, as opposed to doing an upgrade. Here are a few of the problems I encountered, along with solutions:
Wireless networking wasn&#8217;t working
Fedora 8 detected my Atheros-based wifi card, since it now includes the new freedomware ath5k driver. [...]]]></description>
			<content:encoded><![CDATA[<p>A few weekends ago I updated my system from Fedora 6 to Fedora 8. I did a fresh install, as opposed to doing an upgrade. Here are a few of the problems I encountered, along with solutions:</p>
<h3>Wireless networking wasn&#8217;t working</h3>
<p>Fedora 8 detected my Atheros-based wifi card, since it now includes the new freedomware ath5k driver. However I couldn&#8217;t get it to associate with my access point. The workaround was to install the proprietary madwifi package from livna: On a machine with Internet access, go to livna.org and download madwifi and the kmod-madwifi package corresponding to the installed kernel (do uname -r to find out). Then do:<br />
<code>su -<br />
rpm -ihv madwiki kmod-wifi<br />
modprobe -r ath5k<br />
modprobe ath_pci<br />
</code><br />
Go to Administration->Services and start/turn on NetworkManager and NetworkManagerDispatcher services. The NetworkManager applet should appear in the system tray. Click on this to configure a wireless connection. </p>
<h3>1280&#215;1024 resolution was not available</h3>
<p>This resolution was working on my Fedora 6 setup, with an nVidia gforce2 MX 440 and Viewsonic E771 monitor.<br />
To fix, add the following line to /etc/X11/xorg.conf in the &#8220;Display&#8221;/&#8221;Screen&#8221; section:<br />
<code>               Modes    "1280x1024" "1280x1024" "1280x960" "1280x960" "1280x800" "1280x800" "1152x864" "1152x864" "1152x768" "1152x768" "1024x768" "1024x768" "800x600" "800x600" "640x480" "640x480"</code></p>
<h3>Setting up the livna repository</h3>
<p>The livna.org repository is a separate repo containing packages that aren&#8217;t included in the main Fedora repo for various legal, technical and ethical reasons. I need it for the madwifi driver and the gspca webcam driver among other things. Set it up like so:<br />
<code>su -<br />
rpm -ihv http://rpm.livna.org/livna-release-8.rpm<br />
</code></p>
<h3>Installing the webcam driver</h3>
<p>The driver for my Logitech Quickcam IM webcam is freedomware, however apparently it does yucky things like JPEG decoding inside the kernel, so is not included in the mainline kernel. It can be installed from livna like so:<br />
<code>su -<br />
yum install gspca<br />
modprobe gspca</code><br />
Alternatively, you can install it from the GUI by going to System->Add/Remove Software and searching for gspca.<br />
You can test that the webcam is working by running Ekiga (strangely filed under Internet->IP Telephony blah blah) and setting up video.</p>
<h3>Using a home directory on a separate partition</h3>
<p>I have my home directory stored on a separate &#8216;data&#8217; partition. I was not able to log in when I configured my account to use this as my home directory. To fix this, I had to change the SELinux context on the root directory of the file-system on the data partition like so:<br />
<code>chcon system_u:object_r:home_root_t:s0 /data</code></p>
<h3>Fixing broken icons in Evolution</h3>
<p>It appears that the necessary dependency isn&#8217;t installed by default for a KDE install. Fix the icons like so:<br />
<code>su -c 'yum install nodoka-theme-gnome'</code></p>
<h3>Installing Adobe Flash Player</h3>
<p>To install the proprietary Adobe Flash player do:<br />
<code>su -<br />
rpm -ihv http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm<br />
yum install flash-plugin<br />
</code></p>
<p>Note that a freedomware flash player, gnash, is in the works, but it only supports a subset of Flash v7 functionality.</p>
<h3>Other issues</h3>
<p>I&#8217;ve had problems with sound not being available upon booting from time to time. This seems to be due to the coexistence of the webcam&#8217;s internal microphone sound device, and my main soundcard sound device. I also get &#8216;artsd&#8217; crash messages upon logging into KDE from time to time. </p>
<p>I hope to cover my impressions of the various Fedora 8 components in subquent posts, but we&#8217;ll see how we go. </p>
]]></content:encoded>
			<wfw:commentRss>http://madabar.com/techblog/2007/11/30/updating-to-fedora-8/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
	</channel>
</rss>
