<?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>Michaels blog &#187; Linux</title>
	<atom:link href="http://legart.dk/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://legart.dk</link>
	<description>Hest design!</description>
	<lastBuildDate>Mon, 23 Nov 2009 10:31:40 +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>ipw2100 wireless adapter and Linux</title>
		<link>http://legart.dk/2007/06/26/ipw2100-wireless-adapter-and-linux/</link>
		<comments>http://legart.dk/2007/06/26/ipw2100-wireless-adapter-and-linux/#comments</comments>
		<pubDate>Tue, 26 Jun 2007 07:44:10 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://legart.dk/2007/06/26/ipw2100-wireless-adapter-and-linux/</guid>
		<description><![CDATA[After reinstalling Linux on a IBM Thinkpad X31 i forgot that the wireless adapter was not just plug-and-play. Linux detected the adapter, but because of license issues the firmware is not bundled with the kernel:

ipw2100: eth2: Firmware 'ipw2100-1.3.fw' not available or load failed.
ipw2100: eth2: ipw2100_get_firmware failed: -2
ipw2100: eth2: Failed to power on the adapter.
ipw2100: eth2: [...]]]></description>
			<content:encoded><![CDATA[<p>After reinstalling Linux on a IBM Thinkpad X31 i forgot that the wireless adapter was not just plug-and-play. Linux detected the adapter, but because of license issues the firmware is not bundled with the kernel:<br />
<code><br />
ipw2100: eth2: Firmware 'ipw2100-1.3.fw' not available or load failed.<br />
ipw2100: eth2: ipw2100_get_firmware failed: -2<br />
ipw2100: eth2: Failed to power on the adapter.<br />
ipw2100: eth2: Failed to start the firmware.<br />
ipw2100Error calling register_netdev.<br />
</code></p>
<p>The firmware must be downloaded from <a href="http://ipw2100.sourceforge.net/firmware.php" target="_blank">http://ipw2100.sourceforge.net/firmware.php</a> and the extracted files must be put in /lib/firmware.</p>
<p>After <code>rmmod ipw2100 &amp;&amp; modprobe ipw2100</code> the adapter works again&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://legart.dk/2007/06/26/ipw2100-wireless-adapter-and-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>TDC digital signature with Firefox on Linux</title>
		<link>http://legart.dk/2007/05/28/tdc-digital-signature-with-firefox-on-linux/</link>
		<comments>http://legart.dk/2007/05/28/tdc-digital-signature-with-firefox-on-linux/#comments</comments>
		<pubDate>Mon, 28 May 2007 11:40:25 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Digital signature]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://legart.dk/2007/05/28/tdc-digital-signature-with-firefox-on-linux/</guid>
		<description><![CDATA[I was unable to import my digital signature into Firefox using the HTML file provided by TDC.
However, the following small script will extract the pkcs12 file from it and this file can then be imported using &#8220;Advanced-&#62;Encryption-&#62;View certificates-&#62;Import&#8221;.
Download script to extract pkcs12 file from TDC signature backup
]]></description>
			<content:encoded><![CDATA[<p>I was unable to import my digital signature into Firefox using the HTML file provided by TDC.</p>
<p>However, the following small script will extract the pkcs12 file from it and this file can then be imported using &#8220;Advanced-&gt;Encryption-&gt;View certificates-&gt;Import&#8221;.</p>
<p><a href='http://legart.dk/wp-content/uploads/2007/05/get_pkcs12_signaturepl.txt' title='Download script to extract pkcs12 file from TDC signature backup'>Download script to extract pkcs12 file from TDC signature backup</a></p>
]]></content:encoded>
			<wfw:commentRss>http://legart.dk/2007/05/28/tdc-digital-signature-with-firefox-on-linux/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>3G high speed data with a Huawei USB modem and Linux</title>
		<link>http://legart.dk/2007/04/30/3g-high-speed-data-with-a-huawei-usb-modem-and-linux/</link>
		<comments>http://legart.dk/2007/04/30/3g-high-speed-data-with-a-huawei-usb-modem-and-linux/#comments</comments>
		<pubDate>Mon, 30 Apr 2007 20:22:34 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mobile Data]]></category>

		<guid isPermaLink="false">http://legart.dk/2007/04/30/3g-high-speed-data-with-a-huawei-usb-modem-and-linux/</guid>
		<description><![CDATA[Danish mobile operator 3 recently launched high speed mobile data for pretty reasonable prices. You can get up to 3 Mbit/s!. They both have PCMCIA cards and USB versions. In Windows the USB device also acts as a storage device containing drivers and a dialer, so it is pretty easy to get working. In Linux [...]]]></description>
			<content:encoded><![CDATA[<p>Danish mobile operator <a href="http://www.3.dk" target="_blank">3</a> recently launched high speed mobile data for pretty reasonable prices. You can get up to 3 Mbit/s!. They both have PCMCIA cards and <a href="http://privat.3.dk/Mobiler/3Data-Card/3DataCard-USB/" target="_blank">USB versions</a>. In Windows the USB device also acts as a storage device containing drivers and a dialer, so it is pretty easy to get working. In Linux it&#8217;s a bit more difficult to get working, but it can be done!</p>
<p>First, the minimum required kernel version seems to be 2.6.20. With 2.6.18 the storage device was detected, but not the serial devices. With 2.6.20 the storage device is ignored but 3 serial devices are detected. 3 devices you say? Yes, it makes it possible to use the modem to send text messages, use high speed data and GPRS &#8211; all at the same time.</p>
<p>Sometimes the devices are not detected correctly, this can be solved by simply removing the driver and loading it again (<code>rmmod usbserial option &amp;&amp; modprobe usbserial &amp;&amp; modprobe option</code>).</p>
<p>Each time to modem is connected to your USB port it must be initialized with your PIN-code. It will only accept it once though. Use this <a href="http://legart.dk/wp-content/uploads/2007/04/setpinpl.txt" title="Perlscript to send pincode to USB modem">perlscript</a> to send pincode to USB modem.</p>
<p>After that, the following <code>wvdial.conf</code> should get you online:<br />
<code><br />
[Dialer Defaults]<br />
Modem = /dev/ttyUSB0<br />
Baud = 460800<br />
SetVolume = 0<br />
Dial Command = ATDT<br />
Init1 = ATZ<br />
Init2 = ATM0<br />
FlowControl = NOFLOW</code></p>
<p>Username = VFD2<br />
Password = WAP<br />
Phone = *99***1#<br />
Stupid Mode = 1<br />
Init3 = AT+CGDCONT=1,&#8221;IP&#8221;,&#8221;data.tre.dk&#8221;<br />
Dial Attempts = 3<br />
Inherits = ModemUMTS</p>
]]></content:encoded>
			<wfw:commentRss>http://legart.dk/2007/04/30/3g-high-speed-data-with-a-huawei-usb-modem-and-linux/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>DVB-C card for digital TV on my mediacenter</title>
		<link>http://legart.dk/2007/04/01/dvb-c-card-for-digital-tv-on-my-mediacenter/</link>
		<comments>http://legart.dk/2007/04/01/dvb-c-card-for-digital-tv-on-my-mediacenter/#comments</comments>
		<pubDate>Sun, 01 Apr 2007 15:06:32 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Media Center]]></category>

		<guid isPermaLink="false">http://legart.dk/2007/04/01/dvb-c-card-for-digital-tv-on-my-mediacenter/</guid>
		<description><![CDATA[I was not happy with the quality of my analogue TV signal, so i finally decided to buy a DVB-C card to receive digital TV from my provider in Denmark, TDC Kabel TV.
To receive the signal you need a DVB-C card. To receive non-free-to-air channels you need a Common Interface (CI) and a CAM (Common [...]]]></description>
			<content:encoded><![CDATA[<p>I was not happy with the quality of my analogue TV signal, so i finally decided to buy a DVB-C card to receive digital TV from my provider in Denmark, TDC Kabel TV.</p>
<p>To receive the signal you need a DVB-C card. To receive non-free-to-air channels you need a Common Interface (CI) and a CAM (Common Access Module) to decode the signal. In the CAM you must insert a decoder card bought from your provider.</p>
<p>I ended up ordering the following at <a href="http://dvbshop.net" target="_blank">dvbshop.net</a>:</p>
<ul>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><strong>Technotrend Premium C-2300 Hybrid</strong></font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><strong>Technotrend Premium 3.5&#8243; CI incl. TT-remotecontrol</strong></font></li>
<li><font face="Verdana, Arial, Helvetica, sans-serif" size="1"><strong>Viaccess I/II CAM (V484)</strong></font></li>
</ul>
<p>I have no use for the remote control, but could not find a  CI for the C-2300 card without it.</p>
<p>The card was pretty easy to get working in Linux. When I first booted after inserting the card, the kernel log showed:<br />
<code><br />
[   57.704473] dvb-ttpci: could not load firmware, file not found: dvb-ttpci-01.fw<br />
[   57.704509] dvb-ttpci: usually this should be in /usr/lib/hotplug/firmware or /lib/firmware<br />
[   57.704550] dvb-ttpci: and can be downloaded from http://www.linuxtv.org/download/dvb/firmware/</code></p>
<p><code></code><br />
So i downloaded <code>http://www.linuxtv.org/download/dvb/firmware/dvb-ttpci-01.fw-2622</code> and saved it as <code>/lib/firmware/dvb-ttpci-01.fw</code> and reloaded the driver:<br />
<code><br />
# rmmod dvb-ttpci<br />
# modprobe dvb-ttpci</code><br />
and the card was now detected and initialized just fine:<br />
<code><br />
[  571.805460] saa7146: register extension 'dvb'.<br />
[  571.806038] PCI: Enabling device 0000:05:07.0 (0000 -&gt; 0002)<br />
[  571.806223] saa7146: found saa7146 @ mem ffffc20000070000 (revision 1, irq 3) (0x13c2,0x000a).<br />
[  571.812619] DVB: registering new adapter (Technotrend/Hauppauge WinTV Nexus-CA rev1.X).<br />
[  571.846734] adapter has MAC addr = 00:d0:5c:04:ae:d4<br />
[  572.052113] dvb-ttpci: gpioirq unknown type=0 len=0<br />
[  572.077680] dvb-ttpci: info @ card 0: firm f0240009, rtsl b0250018, vid 71010068, app 80002622<br />
[  572.077683] dvb-ttpci: firmware @ card 0 supports CI link layer interface<br />
[  572.725120] dvb-ttpci: DVB-C analog module @ card 0 detected, initializing MSP3415<br />
[  573.072477] dvb_ttpci: saa7113 not accessible.<br />
[  573.133828] saa7146_vv: saa7146 (0): registered device video2 [v4l2]<br />
[  573.134080] saa7146_vv: saa7146 (0): registered device vbi2 [v4l2]<br />
[  573.134357] DVB: registering frontend 0 (ST STV0297 DVB-C)...<br />
[  573.134549] input: DVB on-card IR receiver as /class/input/input3<br />
[  573.134630] dvb-ttpci: found av7110-0.<br />
[  577.936266] spurious 8259A interrupt: IRQ7.</code></p>
<p>To test and scan for channels I created a file called <code>dk-TDCKabelTV</code> containing the frequences used by TDC Kabel TV in Copenhagen:<br />
<code><br />
C 143000000 6875000 NONE QAM64<br />
C 156000000 6875000 NONE QAM64<br />
C 490000000 6875000 NONE QAM64<br />
C 498000000 6875000 NONE QAM64<br />
C 506000000 6875000 NONE QAM64<br />
C 514000000 6875000 NONE QAM64<br />
C 522000000 6875000 NONE QAM64<br />
C 530000000 6875000 NONE QAM64<br />
C 538000000 6875000 NONE QAM64<br />
C 546000000 6875000 NONE QAM64<br />
C 554000000 6875000 NONE QAM64<br />
C 578000000 6875000 NONE QAM64<br />
C 586000000 6875000 NONE QAM64<br />
C 602000000 6875000 NONE QAM64<br />
C 610000000 6875000 NONE QAM64<br />
C 618000000 6875000 NONE QAM64<br />
C 626000000 6875000 NONE QAM64<br />
C 674000000 6875000 NONE QAM64<br />
</code></p>
<p>I then used <code>scan dk-TDCKabelTV &gt; channels.conf</code> to scan for channels. I later used the generated file when setting up the tuner card in MythTV. I had to delete a lot of channels though. It looks like MythTV cannot handle the radio channels &#8211; and I haven&#8217;t bought access to all 100 channels or so available with TDCs Selector&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://legart.dk/2007/04/01/dvb-c-card-for-digital-tv-on-my-mediacenter/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>ipw2100 wireless, WPA and Linux 2.6.17</title>
		<link>http://legart.dk/2006/07/20/ipw2100-wireless-wpa-and-linux-2617/</link>
		<comments>http://legart.dk/2006/07/20/ipw2100-wireless-wpa-and-linux-2617/#comments</comments>
		<pubDate>Thu, 20 Jul 2006 11:09:11 +0000</pubDate>
		<dc:creator>michael</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://legart.dk/2006/07/20/ipw2100-wireless-wpa-and-linux-2617/</guid>
		<description><![CDATA[I have a Thinkpad X31 with a build in ipw2100 wireless network adaptor. When i bought it (a long time ago) Linux did not support a lot of the hardware in it, so I ended up running Windows XP&#8230;
But, now I finally installed Linux and almost everything seems to be working. I did have problems [...]]]></description>
			<content:encoded><![CDATA[<p>I have a Thinkpad X31 with a build in ipw2100 wireless network adaptor. When i bought it (a long time ago) Linux did not support a lot of the hardware in it, so I ended up running Windows XP&#8230;</p>
<p>But, now I finally installed Linux and almost everything seems to be working. I did have problems with wireless and WPA-PSK authentication though. I used wpa_supplicant with the following configuration:<br />
<code>ctrl_interface=/var/run/wpa_supplicant<br />
ap_scan=1<br />
eapol_version=1<br />
network={<br />
ssid="myssid"<br />
group=TKIP<br />
pairwise=TKIP<br />
key_mgmt=WPA-PSK<br />
priority=5<br />
proto=WPA<br />
psk=psk generated with wpa_passphrase<br />
}<br />
</code><br />
When calling wpa_supplicant one of the arguments is the driver name. The help message says to use <em>ipw</em> for Intel ipw2100/2200 driver. So I did that&#8230; The output was:<br />
<code>ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported<br />
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported<br />
Failed to set encryption.<br />
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported<br />
Failed to set encryption.<br />
ioctl[IPW_IOCTL_WPA_SUPPLICANT]: Operation not supported</code><br />
etc&#8230; Google suggested that I was missing encryption modules, that the driver shipped with the kernel was buggy and other things. And then finally I found <a href="http://lists.atrpms.net/pipermail/atrpms-users/2006-March/004804.html">this link</a> that sugested to use the generic wireless driver instead. I tried that, and:<br />
<code># wpa_supplicant -Dwext -c/etc/wpa_supplicant.conf -i eth2<br />
Trying to associate with 00:16:b6:5c:00:f1 (SSID='myap' freq=0 MHz)<br />
Associated with 00:16:b6:5c:00:f1<br />
WPA: Key negotiation completed with 00:16:b6:5c:00:f1 [PTK=TKIP GTK=TKIP]<br />
CTRL-EVENT-CONNECTED - Connection to 00:16:b6:5c:00:f1 completed (auth) [id=0 id_str=]</code><br />
it finally works!</p>
<p>With the following in <code>/etc/network/interfaces</code> the interface comes up automatically:<br />
<code>iface eth2 inet dhcp<br />
wpa-driver wext<br />
wpa-conf /etc/wpa_supplicant.conf<br />
auto eth2</code></p>
]]></content:encoded>
			<wfw:commentRss>http://legart.dk/2006/07/20/ipw2100-wireless-wpa-and-linux-2617/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
