<?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>Abraxas &#187; NFO</title>
	<atom:link href="http://www.effinger.org/blog/tag/nfo/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.effinger.org/blog</link>
	<description>a personal knowledge base</description>
	<lastBuildDate>Sun, 06 Jun 2010 17:41:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>NFOView unter Ubuntu</title>
		<link>http://www.effinger.org/blog/2008/10/31/nfoview-unter-ubuntu/</link>
		<comments>http://www.effinger.org/blog/2008/10/31/nfoview-unter-ubuntu/#comments</comments>
		<pubDate>Fri, 31 Oct 2008 21:39:35 +0000</pubDate>
		<dc:creator>Markus Effinger</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[NFO]]></category>

		<guid isPermaLink="false">http://www.effinger.org/blog/?p=73</guid>
		<description><![CDATA[<p>Um NFO-Dateien unter Linux zu betrachten, benutze ich das Tool NFOView. Unter Ubuntu lässt es nach dem Herunterladen wie folgt installieren:</p>

sudo apt-get install python gettext intltool console-terminus xfonts-terminus xfonts-terminus-dos xfonts-terminus-oblique
tar zxvf nfoview-1.2.1.tar.gz
cd nfoview-1.2.1/
sudo ./setup.py install --prefix=/usr/local/nfoview
sudo cp data/nfoview.desktop.in /usr/local/nfoview/share/applications/nfoview.desktop
cd /usr/local
sudo stow -R nfoview

<p>Durch ein</p>

sudo nano /usr/local/nfoview/share/applications/nfoview.desktop

<p>die Datei nfoview.desktop wie folgt abändern:</p>

&#91;Desktop Entry&#93;
Version=1.0
Encoding=UTF-8
Name=NFO Viewer
Comment=View NFO files
Exec=nfoview [...]]]></description>
			<content:encoded><![CDATA[<p>Um NFO-Dateien unter Linux zu betrachten, benutze ich das Tool <a href="http://home.gna.org/nfoview/">NFOView</a>. Unter Ubuntu lässt es nach dem Herunterladen wie folgt installieren:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> python <span style="color: #c20cb9; font-weight: bold;">gettext</span> intltool console-terminus xfonts-terminus xfonts-terminus-dos xfonts-terminus-oblique
<span style="color: #c20cb9; font-weight: bold;">tar</span> zxvf nfoview-1.2.1.tar.gz
<span style="color: #7a0874; font-weight: bold;">cd</span> nfoview-1.2.1<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> .<span style="color: #000000; font-weight: bold;">/</span>setup.py <span style="color: #c20cb9; font-weight: bold;">install</span> <span style="color: #660033;">--prefix</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>nfoview
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> data<span style="color: #000000; font-weight: bold;">/</span>nfoview.desktop.in <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>nfoview<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>applications<span style="color: #000000; font-weight: bold;">/</span>nfoview.desktop
<span style="color: #7a0874; font-weight: bold;">cd</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">local</span>
<span style="color: #c20cb9; font-weight: bold;">sudo</span> stow <span style="color: #660033;">-R</span> nfoview</pre></div></div>

<p>Durch ein</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>nfoview<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>applications<span style="color: #000000; font-weight: bold;">/</span>nfoview.desktop</pre></div></div>

<p>die Datei nfoview.desktop wie folgt abändern:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">&#91;</span>Desktop Entry<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">Version</span>=<span style="color: #000000;">1.0</span>
<span style="color: #007800;">Encoding</span>=UTF-<span style="color: #000000;">8</span>
<span style="color: #007800;">Name</span>=NFO Viewer
<span style="color: #007800;">Comment</span>=View NFO files
<span style="color: #007800;">Exec</span>=nfoview <span style="color: #000000; font-weight: bold;">%</span>F
<span style="color: #007800;">Terminal</span>=<span style="color: #c20cb9; font-weight: bold;">false</span>
<span style="color: #007800;">StartupNotify</span>=<span style="color: #c20cb9; font-weight: bold;">true</span>
<span style="color: #007800;">Icon</span>=dialog-information
<span style="color: #007800;">Type</span>=Application
<span style="color: #007800;">MimeType</span>=text<span style="color: #000000; font-weight: bold;">/</span>x-nfo;
<span style="color: #007800;">Categories</span>=GTK;Utility;Viewer;
GenericName<span style="color: #7a0874; font-weight: bold;">&#91;</span>de_DE<span style="color: #7a0874; font-weight: bold;">&#93;</span>=</pre></div></div>

<p>Anschließend mittels</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gedit ~<span style="color: #000000; font-weight: bold;">/</span>.local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>mime<span style="color: #000000; font-weight: bold;">/</span>packages<span style="color: #000000; font-weight: bold;">/</span>Override.xml</pre></div></div>

<p>die Datei Override.xml erzeugen und folgenden Inhalt ergänzen:</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;?xml</span> <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span> <span style="color: #000066;">encoding</span>=<span style="color: #ff0000;">&quot;UTF-8&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-info</span> <span style="color: #000066;">xmlns</span>=<span style="color: #ff0000;">&quot;http://www.freedesktop.org/standards/shared-mime-info&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;mime-type</span> <span style="color: #000066;">type</span>=<span style="color: #ff0000;">&quot;text/x-nfo&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;comment<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>NFO document<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/comment<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;glob</span> <span style="color: #000066;">pattern</span>=<span style="color: #ff0000;">&quot;*.nfo&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
	<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;glob</span> <span style="color: #000066;">pattern</span>=<span style="color: #ff0000;">&quot;*.diz&quot;</span><span style="color: #000000; font-weight: bold;">/&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-type<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
&nbsp;
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/mime-info<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>Nun müssen wir nur noch die MIME-Datenbank mit</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">update-mime-database ~<span style="color: #000000; font-weight: bold;">/</span>.local<span style="color: #000000; font-weight: bold;">/</span>share<span style="color: #000000; font-weight: bold;">/</span>mime</pre></div></div>

<p>erneuern und ab sofort sollten die NFO- und DIZ-Dateien mit nfoview geöffnet werden. Am Besten stellt man bei NFOView unter Edit>Preferences das Schema auf &#8220;White on black&#8221;, die Schrift auf Terminus und die Schriftgröße auf 8.<br />
Diese Infos habe ich durch das <a href="http://ubuntu-ky.ubuntuforums.org/showpost.php?p=5895366&#038;postcount=61">Ubuntu-Forum</a> und <a href="http://wiki.flexion.org/UbuntuBuild.html">flexion.org</a> zusammengetragen.<br />
Falls man nur im Terminal arbeitet, kann man sich die Dateien auch wunderbar mit</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">iconv <span style="color: #660033;">-f</span> <span style="color: #000000;">437</span> <span style="color: #660033;">-t</span> UTF8 filename.nfo <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">less</span></pre></div></div>

<p>anzeigen lassen.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.effinger.org/blog/2008/10/31/nfoview-unter-ubuntu/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
