<?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>Pario TechnoBlob &#187; Debian</title>
	<atom:link href="http://pario.no/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://pario.no</link>
	<description>A cronological documentation test project, nothing serious, really!</description>
	<lastBuildDate>Thu, 26 Apr 2012 08:18:54 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>HP Compaq 8540p hardware list in linux</title>
		<link>http://pario.no/2010/08/14/hp-compaq-8540p-hardware-list-in-linux/</link>
		<comments>http://pario.no/2010/08/14/hp-compaq-8540p-hardware-list-in-linux/#comments</comments>
		<pubDate>Fri, 13 Aug 2010 22:21:31 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[8540p]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[hardware]]></category>
		<category><![CDATA[hcl]]></category>
		<category><![CDATA[HP]]></category>
		<category><![CDATA[lspci]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1364</guid>
		<description><![CDATA[You can use lspci -n to analyce what hardware is on your system. My new laptop a HP EliteBook 8540p gives the following output: 00:00.0 0600: 8086:0044 (rev 12) 00:01.0 0604: 8086:0045 (rev 12) 00:16.0 0780: 8086:3b64 (rev 06) 00:19.0 0200: 8086:10ea (rev 06) 00:1a.0 0c03: 8086:3b3c (rev 06) 00:1b.0 0403: 8086:3b56 (rev 06) 00:1c.0 [...]]]></description>
			<content:encoded><![CDATA[<p>You can use lspci -n to analyce what hardware is on your system. My new laptop a HP EliteBook 8540p gives the following output:</p>
<pre>00:00.0 0600: 8086:0044 (rev 12)
00:01.0 0604: 8086:0045 (rev 12)
00:16.0 0780: 8086:3b64 (rev 06)
00:19.0 0200: 8086:10ea (rev 06)
00:1a.0 0c03: 8086:3b3c (rev 06)
00:1b.0 0403: 8086:3b56 (rev 06)
00:1c.0 0604: 8086:3b42 (rev 06)
00:1c.1 0604: 8086:3b44 (rev 06)
00:1c.3 0604: 8086:3b48 (rev 06)
00:1c.7 0604: 8086:3b50 (rev 06)
00:1d.0 0c03: 8086:3b34 (rev 06)
00:1e.0 0604: 8086:2448 (rev a6)
00:1f.0 0601: 8086:3b07 (rev 06)
00:1f.2 0106: 8086:3b2f (rev 06)
00:1f.6 1180: 8086:3b32 (rev 06)
01:00.0 0300: 10de:0a2c (rev a2)
01:00.1 0403: 10de:0be2 (rev a1)
44:00.0 0280: 8086:4239 (rev 35)
45:00.0 0c03: 1033:0194 (rev 03)
46:06.0 0c00: 1180:0832 (rev 06)
46:06.1 0805: 1180:0822 (rev 25)
46:06.2 0880: 1180:0843 (rev 14)
46:06.3 0880: 1180:0592 (rev 14)
46:06.4 0880: 1180:0852 (rev bb)
46:06.5 0607: 1180:0476 (rev ff)
ff:00.0 0600: 8086:2c62 (rev 02)
ff:00.1 0600: 8086:2d01 (rev 02)
ff:02.0 0600: 8086:2d10 (rev 02)
ff:02.1 0600: 8086:2d11 (rev 02)
ff:02.2 0600: 8086:2d12 (rev 02)
ff:02.3 0600: 8086:2d13 (rev 02)</pre>
<p>Copy the result from the above command and visit the address <a href="http://kmuto.jp/debian/hcl/index.cgi">Debian GNU/Linux device driver check page</a> and paste it into the window.</p>
<p>In my case the result was presented like this</p>
<table>
<tbody>
<tr>
<th>PCI ID</th>
<th>Works?</th>
<th>Vendor</th>
<th>Device</th>
<th>Driver</th>
<th>Kernel</th>
</tr>
<tr>
<td>80860044</td>
<td>Yes</td>
<td>Intel Corporation</td>
<td>Core Processor DRAM Controller</td>
<td>intel-agp</td>
<td></td>
</tr>
<tr>
<td>80860045</td>
<td></td>
<td>Intel Corporation</td>
<td>Core Processor PCI Express x16 Root Port</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80863b64</td>
<td></td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset HECI Controller</td>
<td></td>
<td></td>
</tr>
<tr>
<td>808610ea</td>
<td>Yes</td>
<td>Intel Corporation</td>
<td>82577LM Gigabit Network Connection</td>
<td>e1000e</td>
<td>v2.6.31-</td>
</tr>
<tr>
<td>80863b3c</td>
<td></td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset USB2 Enhanced Host Controller</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80863b56</td>
<td>Yes</td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset High Definition Audio</td>
<td>snd-hda-intel</td>
<td>v2.6.27-</td>
</tr>
<tr>
<td>80863b42</td>
<td></td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset PCI Express Root Port 1</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80863b44</td>
<td></td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset PCI Express Root Port 2</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80863b48</td>
<td></td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset PCI Express Root Port 4</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80863b50</td>
<td></td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset PCI Express Root Port 8</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80863b34</td>
<td></td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset USB2 Enhanced Host Controller</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80862448</td>
<td>Yes</td>
<td>Intel Corporation</td>
<td>82801 Mobile PCI Bridge</td>
<td>i810_rng</td>
<td></td>
</tr>
<tr>
<td>80863b07</td>
<td>Yes</td>
<td>Intel Corporation</td>
<td>Mobile 5 Series Chipset LPC Interface Controller</td>
<td>iTCO_wdt</td>
<td>v2.6.33-</td>
</tr>
<tr>
<td>80863b2f</td>
<td>Yes</td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset 6 port SATA AHCI Controller</td>
<td>ahci</td>
<td>v2.6.31-</td>
</tr>
<tr>
<td>80863b32</td>
<td></td>
<td>Intel Corporation</td>
<td>5 Series/3400 Series Chipset Thermal Subsystem</td>
<td></td>
<td></td>
</tr>
<tr>
<td>10de0a2c</td>
<td></td>
<td>nVidia Corporation</td>
<td>GT216 [NVS 5100M]</td>
<td></td>
<td></td>
</tr>
<tr>
<td>10de0be2</td>
<td>Yes</td>
<td>nVidia Corporation</td>
<td>High Definition Audio Controller</td>
<td>snd-hda-intel</td>
<td></td>
</tr>
<tr>
<td>80864239</td>
<td>Yes</td>
<td>Intel Corporation</td>
<td>Centrino Advanced-N 6200</td>
<td>iwlagn</td>
<td>v2.6.30-</td>
</tr>
<tr>
<td>10330194</td>
<td></td>
<td>NEC Corporation</td>
<td>uPD720200 USB 3.0 Host Controller</td>
<td></td>
<td></td>
</tr>
<tr>
<td>11800832</td>
<td></td>
<td>Ricoh Co Ltd</td>
<td>R5C832 IEEE 1394 Controller</td>
<td></td>
<td></td>
</tr>
<tr>
<td>11800822</td>
<td>Yes</td>
<td>Ricoh Co Ltd</td>
<td>R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter</td>
<td>sdhci-pci</td>
<td>v2.6.25-</td>
</tr>
<tr>
<td>11800843</td>
<td>Yes</td>
<td>Ricoh Co Ltd</td>
<td>R5C843 MMC Host Controller</td>
<td>ricoh_mmc</td>
<td></td>
</tr>
<tr>
<td>11800592</td>
<td></td>
<td>Ricoh Co Ltd</td>
<td>R5C592 Memory Stick Bus Host Adapter</td>
<td></td>
<td></td>
</tr>
<tr>
<td>11800852</td>
<td></td>
<td>Ricoh Co Ltd</td>
<td>xD-Picture Card Controller</td>
<td></td>
<td></td>
</tr>
<tr>
<td>11800476</td>
<td>Yes</td>
<td>Ricoh Co Ltd</td>
<td>RL5c476 II</td>
<td>yenta_socket</td>
<td>v2.6.25-</td>
</tr>
<tr>
<td>80862c62</td>
<td></td>
<td>Intel Corporation</td>
<td>Core Processor QuickPath Architecture Generic Non-core Registers</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80862d01</td>
<td></td>
<td>Intel Corporation</td>
<td>Core Processor QuickPath Architecture System Address Decoder</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80862d10</td>
<td></td>
<td>Intel Corporation</td>
<td>Core Processor QPI Link 0</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80862d11</td>
<td></td>
<td>Intel Corporation</td>
<td>Core Processor QPI Physical 0</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80862d12</td>
<td></td>
<td>Intel Corporation</td>
<td>Core Processor Reserved</td>
<td></td>
<td></td>
</tr>
<tr>
<td>80862d13</td>
<td></td>
<td>Intel Corporation</td>
<td>Core Processor Reserved</td>
<td></td>
<td></td>
</tr>
</tbody>
</table>
<p>This is the text presentation of the hardware in the HP 8540p laptop</p>
<pre># lspci
00:00.0 Host bridge: Intel Corporation Core Processor DRAM Controller (rev 12)
00:01.0 PCI bridge: Intel Corporation Core Processor PCI Express x16 Root Port (rev 12)
00:16.0 Communication controller: Intel Corporation 5 Series/3400 Series Chipset HECI Controller (rev 06)
00:19.0 Ethernet controller: Intel Corporation 82577LM Gigabit Network Connection (rev 06)
00:1a.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1b.0 Audio device: Intel Corporation 5 Series/3400 Series Chipset High Definition Audio (rev 06)
00:1c.0 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 1 (rev 06)
00:1c.1 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 2 (rev 06)
00:1c.3 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 4 (rev 06)
00:1c.7 PCI bridge: Intel Corporation 5 Series/3400 Series Chipset PCI Express Root Port 8 (rev 06)
00:1d.0 USB Controller: Intel Corporation 5 Series/3400 Series Chipset USB2 Enhanced Host Controller (rev 06)
00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev a6)
00:1f.0 ISA bridge: Intel Corporation Mobile 5 Series Chipset LPC Interface Controller (rev 06)
00:1f.2 SATA controller: Intel Corporation 5 Series/3400 Series Chipset 6 port SATA AHCI Controller (rev 06)
00:1f.6 Signal processing controller: Intel Corporation 5 Series/3400 Series Chipset Thermal Subsystem (rev 06)
01:00.0 VGA compatible controller: nVidia Corporation Device 0a2c (rev a2)
01:00.1 Audio device: nVidia Corporation High Definition Audio Controller (rev a1)
44:00.0 Network controller: Intel Corporation WiFi Link 6000 Series (rev 35)
45:00.0 USB Controller: NEC Corporation Device 0194 (rev 03)
46:06.0 FireWire (IEEE 1394): Ricoh Co Ltd R5C832 IEEE 1394 Controller (rev 06)
46:06.1 SD Host controller: Ricoh Co Ltd R5C822 SD/SDIO/MMC/MS/MSPro Host Adapter (rev 25)
46:06.2 System peripheral: Ricoh Co Ltd R5C843 MMC Host Controller (rev 14)
46:06.3 System peripheral: Ricoh Co Ltd R5C592 Memory Stick Bus Host Adapter (rev 14)
46:06.4 System peripheral: Ricoh Co Ltd xD-Picture Card Controller (rev bb)
46:06.5 CardBus bridge: Ricoh Co Ltd RL5c476 II (rev ff)
ff:00.0 Host bridge: Intel Corporation Core Processor QuickPath Architecture Generic Non-core Registers (rev 02)
ff:00.1 Host bridge: Intel Corporation Core Processor QuickPath Architecture System Address Decoder (rev 02)
ff:02.0 Host bridge: Intel Corporation Core Processor QPI Link 0 (rev 02)
ff:02.1 Host bridge: Intel Corporation Core Processor QPI Physical 0 (rev 02)
ff:02.2 Host bridge: Intel Corporation Core Processor Reserved (rev 02)
ff:02.3 Host bridge: Intel Corporation Core Processor Reserved (rev 02)</pre>
<div id="_mcePaste" style="position: absolute; left: -10000px; top: 516px; width: 1px; height: 1px; overflow: hidden;">﻿</div>
<p>This makes it easier to determine which device drivers I’m missing and might have to compile for the kernel.</p>
<p>More info about this laptop can be found on the <a href="http://www.linlap.com/wiki/hp+elitebook+8540p">Linux Laptop Wiki</a></p>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/kmuto.jp\/debian\/hcl\/index.cgi","http:\/\/www.linlap.com\/wiki\/hp+elitebook+8540p"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMTAvMDgvMTQvaHAtY29tcGFxLTg1NDBwLWhhcmR3YXJlLWxpc3QtaW4tbGludXgvPHdwdGI%2BSFAgQ29tcGFxIDg1NDBwIGhhcmR3YXJlIGxpc3QgaW4gbGludXg8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2010/08/14/hp-compaq-8540p-hardware-list-in-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Create a Debian Lenny installation USB stick</title>
		<link>http://pario.no/2009/10/07/create-a-debian-lenny-installation-usb-stick/</link>
		<comments>http://pario.no/2009/10/07/create-a-debian-lenny-installation-usb-stick/#comments</comments>
		<pubDate>Wed, 07 Oct 2009 16:54:26 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[memory stick]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://pario.no/?p=1224</guid>
		<description><![CDATA[This is a short post that describes how to prepare your USB memory stick for a base installation of Debian Lenny. This will most likely also work on Debian based distributions like Ubuntu. Download the latest Debian boot.img.gz file # wget http://people.debian.org/~joeyh/d-i/images/daily/hd-media/boot.img.gz Download the latest Debian netinst ISO image # wget http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso Connect the USB [...]]]></description>
			<content:encoded><![CDATA[<p>This is a short post that describes how to prepare your USB memory stick for a base installation of Debian Lenny. This will most likely also work on Debian based distributions like Ubuntu.</p>
<p>Download the latest Debian <strong>boot.img.gz</strong> file</p>
<pre>
# wget http://people.debian.org/~joeyh/d-i/images/daily/hd-media/boot.img.gz</pre>
<p>Download the latest Debian netinst ISO image</p>
<pre>
# wget http://cdimage.debian.org/cdimage/daily-builds/daily/arch-latest/i386/iso-cd/debian-testing-i386-netinst.iso</pre>
<p>Connect the USB stick in the computer and verify that the drive is recognized in <strong>/var/log/messages</strong>.</p>
<p>It is now time to write the downloaded files onto your USB stick.</p>
<p>First write the boot information to the stick</p>
<pre>
# zcat boot.img.gz > /dev/sdb</pre>
<p>I am assuming that <strong>/dev/sdb</strong> is the memory stick. Always check that you are writing to the right device!</p>
<p>Mount the USB stick and copy the installation files from the ISO image</p>
<pre>
# mount /dev/sdb /media/memstick
# cp debian-testing-i386-netinst.iso /media/memstick</pre>
<p>The USB stick is now ready to be used as a boot media just like a CDROM.</p>
<p><strong>Edit:</strong><br />
You can also use UnetBootin, a graphical (GUI) thats lets you choose distributions etc and create a bootable USB stick.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDkvMTAvMDcvY3JlYXRlLWEtZGViaWFuLWxlbm55LWluc3RhbGxhdGlvbi11c2Itc3RpY2svPHdwdGI%2BQ3JlYXRlIGEgRGViaWFuIExlbm55IGluc3RhbGxhdGlvbiBVU0Igc3RpY2s8d3B0Yj5odHRwOi8vcGFyaW8ubm88d3B0Yj5QYXJpbyBUZWNobm9CbG9i";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2009/10/07/create-a-debian-lenny-installation-usb-stick/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Store Debian boot messages in log</title>
		<link>http://pario.no/2008/09/04/store-debian-boot-messages-in-log/</link>
		<comments>http://pario.no/2008/09/04/store-debian-boot-messages-in-log/#comments</comments>
		<pubDate>Thu, 04 Sep 2008 15:29:28 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://pario.no/?p=589</guid>
		<description><![CDATA[You can enable boolog in /etc/default/bootlogd BOOTLOGD_ENABLE=Yes The log is saved in /var/log/boot This tip also applies to Ubuntu systems.]]></description>
			<content:encoded><![CDATA[<p>You can enable boolog in <b>/etc/default/bootlogd</b></p>
<pre>
BOOTLOGD_ENABLE=Yes</pre>
<p>The log is saved in <b>/var/log/boot</b></p>
<p>This tip also applies to Ubuntu systems.</p>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDkvMDQvc3RvcmUtZGViaWFuLWJvb3QtbWVzc2FnZXMtaW4tbG9nLzx3cHRiPlN0b3JlIERlYmlhbiBib290IG1lc3NhZ2VzIGluIGxvZzx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/09/04/store-debian-boot-messages-in-log/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rename files by wildcard pattern and correct the EXIF timestamp metadata</title>
		<link>http://pario.no/2008/09/02/rename-files-by-wildcard-pattern-and-correct-the-exif-timestamp-metadata/</link>
		<comments>http://pario.no/2008/09/02/rename-files-by-wildcard-pattern-and-correct-the-exif-timestamp-metadata/#comments</comments>
		<pubDate>Tue, 02 Sep 2008 16:05:58 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Misc]]></category>
		<category><![CDATA[Network]]></category>
		<category><![CDATA[Photo etc]]></category>
		<category><![CDATA[Scripting]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[EXIF]]></category>
		<category><![CDATA[exiv2]]></category>
		<category><![CDATA[jhead]]></category>
		<category><![CDATA[JPG]]></category>
		<category><![CDATA[mmv]]></category>
		<category><![CDATA[NEF]]></category>
		<category><![CDATA[Nikon]]></category>
		<category><![CDATA[rename]]></category>
		<category><![CDATA[Sony]]></category>

		<guid isPermaLink="false">http://pario.no/?p=467</guid>
		<description><![CDATA[This is a little script I&#8217;ve written to correct all my image files since the EXIF timestamp information is one hour out of sync. The filenames have been renamed to comply to the EXIF information and has to be renamed again because of the one hour scew. The filename can look something like this 20080102-1201_DSC_0910.JPG [...]]]></description>
			<content:encoded><![CDATA[<p>This is a little script I&#8217;ve written to correct all my image files since the EXIF timestamp information is one hour out of sync. The filenames have been renamed to comply to the EXIF information and has to be renamed again because of the one hour scew. The filename can look something like this 20080102-1201_DSC_0910.JPG where the name is built up like YYYYMMDD-HHMM_Original_Filename.JPG<br />
<strong>Remember to backup your imagefiles before you continue. You have been warned!</strong></p>
<h2>Rename files using wildcard pattern</h2>
<p>This is the files we are going to rename</p>
<pre>
20080102-1201_DSC_0910.JPG
20080105-1923_DSC_1006.JPG
20080111-1220_DSC00189.JPG
20080122-0929_DSC00190.JPG</pre>
<p>The <strong>mmv</strong> command is a command that lets you move/copy/append/link multiple files by wildcard patterns. It can be installed in Debian (or Debian based distributions like Ubuntu) by issuing the command</p>
<pre>
# aptitude install mmv</pre>
<p>Now rename the files back to their original name</p>
<pre>
# mmv "*_DSC*" "DSC#2"</pre>
<p>The result after this operation looks like this</p>
<pre>
DSC_0910.JPG
DSC_1006.JPG
DSC_1179.JPG
DSC_1302.JPG
DSC_1587.JPG</pre>
<h2>Correct the EXIF timestamp using exiv2</h2>
<p>Next adjust the EXIF information stored in the image files to fix the one hour difference. This can be done using different EXIF tools like <a href="http://www.sno.phy.queensu.ca/~phil/exiftool/">exiftool</a>, but I will show you how it can be done using <a href="http://www.sentex.net/~mwandel/jhead/">jhead</a> and <a href="http://www.exiv2.org">exiv2</a>. The advantage with <strong>exiv2</strong> is that it can also handle Nikon NEF files while <strong>jhead</strong> only can prosess JPG. </p>
<p>The current timestamp can be determined as follows</p>
<pre>
# exiftool DSC_0910.JPG | grep "File Mo"</pre>
<p>The result in this case is</p>
<pre>
File Modification Date/Time : 2008:01:02 08:34:09</pre>
<h3>Adjust EXIF time info one hour forward using exiftool</h3>
<pre>
# exiftool -AllDates+=1 DSC_0910.JPG</pre>
<h3>Other tools that could have done the job</h3>
<h4>Adjust EXIF time info one hour forward using jhead</h4>
<pre>
# jhead -ta +1 DSC_0910.JPG</pre>
<p>Install the <strong>jhead</strong> package using aptitude as mentioned earlier for the mmv package</p>
<h4>Adjust EXIF time info one hour forward using exiv2</h4>
<pre>
# exiv2 ad -a 1 DSC_0910.JPG</pre>
<h2>Rename files back to YYYYMMDD-HHMM_Original_Filename.JPG</h2>
<p>It is now time to rename the files back to the YYYYMMDD-HHMM_Original_Filename.JPG format I used before this operation. This operation has been describe in a previous post named <a href="http://pario.no/2008/01/14/rename-image-files-according-to-exif-date/">Rename image files according to EXIF date</a></p>
<pre>
exiv2 -r'%Y%m%d-%H%M_:basename:' rename $(ls D*)</pre>
<h2>The script</h2>
<pre>
#!/bin/bash -x
# Needed software:
# exiftool
# exiv2
# mmv

# Script tested on Nikon D80 and Sony Cybershot DSC-W12 files

# Make a printout of how the files look like now
ls -l > repair_name_and_exif_before.txt

# Rename files to remove date formatting back to original name
mmv "*_DSC*" "DSC#2"

# Change EXIF info on JPG files (order is important)
exiftool -overwrite_original -AllDates+=1 D*.JPG
# Preserve date/time of original file when writing
exiftool -overwrite_original '-DateTimeOriginal>FileModifyDate' D*.JPG

# Change EXIF info on NEF files (order is important)
exiftool -overwrite_original -AllDates+=1 '-DateTimeOriginal>FileModifyDate' D*.NEF
# Preserve date/time of original file when writing
exiftool -overwrite_original '-DateTimeOriginal>FileModifyDate' D*.NEF

# Rename files back to date formatting (YYYYMMDD-HHMM_Filename) based on the new EXIF info
exiv2 -r'%Y%m%d-%H%M_:basename:' rename $(ls D*)

# Make a printout of how the files look like after conversion
ls -l > repair_name_and_exif_after.txt
</pre>
<script type="text/javascript">var wordpress_toolbar_urls = ["http:\/\/www.sno.phy.queensu.ca\/~phil\/exiftool\/","http:\/\/www.sentex.net\/~mwandel\/jhead\/","http:\/\/www.exiv2.org"];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDkvMDIvcmVuYW1lLWZpbGVzLWJ5LXdpbGRjYXJkLXBhdHRlcm4tYW5kLWNvcnJlY3QtdGhlLWV4aWYtdGltZXN0YW1wLW1ldGFkYXRhLzx3cHRiPlJlbmFtZSBmaWxlcyBieSB3aWxkY2FyZCBwYXR0ZXJuIGFuZCBjb3JyZWN0IHRoZSBFWElGIHRpbWVzdGFtcCBtZXRhZGF0YTx3cHRiPmh0dHA6Ly9wYXJpby5ubzx3cHRiPlBhcmlvIFRlY2hub0Jsb2I%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/09/02/rename-files-by-wildcard-pattern-and-correct-the-exif-timestamp-metadata/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mount remote filesystem using ssh and sshfs</title>
		<link>http://pario.no/2008/04/13/mount-remote-filesystem-using-ssh-and-sshfs/</link>
		<comments>http://pario.no/2008/04/13/mount-remote-filesystem-using-ssh-and-sshfs/#comments</comments>
		<pubDate>Sun, 13 Apr 2008 10:14:35 +0000</pubDate>
		<dc:creator>Hans-Henry Jakobsen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[fuse]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[sshfs]]></category>

		<guid isPermaLink="false">http://pario.no/?p=450</guid>
		<description><![CDATA[This is short howto on how you can mount a remote filesystem through ssh and access in Debian it like any other local filesystem. This is a safer method to mount remote filesystems and a user can perform it without root privileges. First you need to install sshfs # aptitude install fuse-utils sshfs Install the [...]]]></description>
			<content:encoded><![CDATA[<p>This is short howto on how you can mount a remote filesystem through ssh and access in Debian it like any other local filesystem. This is a safer method to mount remote filesystems and a user can perform it without root privileges.</p>
<p>First you need to install sshfs</p>
<pre>
# aptitude install fuse-utils sshfs</pre>
<p>Install the necessary kernel module</p>
<pre>
# modprobe fuse</pre>
<p>If you haven&#8217;t installed the ssh server package already, now is the time</p>
<pre>
# aptitude install ssh</pre>
<p>Mounting a remote filesystem is easy</p>
<pre>
sshfs username@hostname: mountpoint</pre>
<p>Example</p>
<p>create the mount point</p>
<pre>
# mkdir /mnt/remotefilesystem
# chown [username]:[groupname] /mnt/remotefilesystem/</pre>
<p>Add yourself to the newly created fuse group</p>
<pre>
adduser [your-user] fuse</pre>
<p>switch to your user and mount the remote filesystem.</p>
<pre>
sshfs remote-user@remote.server:/remote/directory /mnt/remote/</pre>
<p>You can specify any directory after the colon.</p>
<pre>
$ sshfs [user@]host:[dir] mountpoint [options]</pre>
<p>If you want to unmount your directory use the following command</p>
<pre>
fusermount -u mountpoint</pre>
<script type="text/javascript">var wordpress_toolbar_urls = [];var wordpress_toolbar_url = "http://pario.no/wp-content/plugins/wordpress-toolbar/toolbar.php";var wordpress_toolbar_oinw = "n";var wordpress_toolbar_hash = "aHR0cDovL3BhcmlvLm5vLzIwMDgvMDQvMTMvbW91bnQtcmVtb3RlLWZpbGVzeXN0ZW0tdXNpbmctc3NoLWFuZC1zc2hmcy88d3B0Yj5Nb3VudCByZW1vdGUgZmlsZXN5c3RlbSB1c2luZyBzc2ggYW5kIHNzaGZzPHdwdGI%2BaHR0cDovL3BhcmlvLm5vPHdwdGI%2BUGFyaW8gVGVjaG5vQmxvYg%3D%3D";</script>]]></content:encoded>
			<wfw:commentRss>http://pario.no/2008/04/13/mount-remote-filesystem-using-ssh-and-sshfs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

