<?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>Nicolas Kuttler &#187; Debian</title>
	<atom:link href="http://www.nkuttler.de/tag/debian/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.nkuttler.de</link>
	<description>WordPress Services, IT Services</description>
	<lastBuildDate>Wed, 28 Jul 2010 23:49:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Samsung ML-1610 on Debian GNU/Linux</title>
		<link>http://www.nkuttler.de/2010/06/30/samsung-ml-1610-driver-linux/</link>
		<comments>http://www.nkuttler.de/2010/06/30/samsung-ml-1610-driver-linux/#comments</comments>
		<pubDate>Wed, 30 Jun 2010 15:00:24 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[cups]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[printer]]></category>
		<category><![CDATA[printing]]></category>

		<guid isPermaLink="false">http://nkuttler.wordpress-server.de/?p=1772</guid>
		<description><![CDATA[I bought this printer a long time ago and it was connected to my Mac until that box died. I tried to install it once but never tried again after I didn&#8217;t get it to work in less than five minutes. Well, this time I did invest like ten minutes and it works just fine. [...]]]></description>
			<content:encoded><![CDATA[<p>I bought this printer a long time ago and it was connected to my Mac until that box died. I tried to install it once but never tried again after I didn&#8217;t get it to work in less than five minutes. Well, this time I did invest like ten minutes and it works just fine.<span id="more-1772"></span></p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;"># apt-get install cups splix</pre></div></div>

<p>Then go to the CUPS admin site at <tt>http://localhost:631/</tt> and then <tt>Administration</tt>, <tt>Add new Printer</tt>, click through and select the splix driver for the ML-1610. That&#8217;s all. <img src='http://www.nkuttler.de/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' /> </p>
<p>I think the first time I tried I just hadn&#8217;t installed the splix driver&#8230; which is easy enough to find:</p>

<div class="wp_syntax"><div class="code"><pre class="shell" style="font-family:monospace;">$ apt-cache search samsung driver</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2010/06/30/samsung-ml-1610-driver-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Canon Powershot A60 on Debian</title>
		<link>http://www.nkuttler.de/2009/10/04/canon-powershot-a60-on-debian/</link>
		<comments>http://www.nkuttler.de/2009/10/04/canon-powershot-a60-on-debian/#comments</comments>
		<pubDate>Sun, 04 Oct 2009 13:02:52 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[gphoto2]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[photography]]></category>
		<category><![CDATA[powershot]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de/?p=1093</guid>
		<description><![CDATA[Edit: This is a very old (2003) page of mine that needs a new location, and I think this blog is the best place. I bought my camera at the end of april 2003 and after a few minutes of toying around i wanted to connect it to my favorite OS. I have been told [...]]]></description>
			<content:encoded><![CDATA[<p><b>Edit</b>: This is a <strong>very old</strong> (2003) page of mine that needs a new location, and I think this blog is the best place.</p>
<p>I bought my camera at the end of april 2003 and after a few minutes of toying around i wanted to connect it to my favorite OS. I have been told that some of the stuff on this page will work with a powershot A70 or A75 too.<span id="more-1093"></span></p>
<p>Feel free to contact me if you have questions or solutions to any problems. But I&#8217;m in no way an expert. Please notice that I haven&#8217;t changed this page for a very long time and probably won&#8217;t update it any more.</p>
<p>Debian sarge comes with gphoto 2.1.5, I tested 2.1.3.</p>
<a name="wptoc_0_0_0"></a><h1>Preparations</h1>
<a name="wptoc_0_1_0"></a><h2>gphoto2 and hotplug</h2>
<pre># apt-get install gphoto2 hotplug</pre>
<a name="wptoc_0_1_1"></a><h2>Kernel</h2>
<p>I&#8217;m not sure but i guess stock Debian kernels should have all the USB stuff compiled in, if you build your own kernel figure out what you need reading the <a href="http://gphoto.sourceforge.net/doc/manual/">fine gphoto2 manual</a>.</p>
<a name="wptoc_0_1_2"></a><h2>Connect the cam</h2>
<p>Connect the camera to your USB port and and turn it on in replay mode. Try</p>
<pre>$ grep Canon /proc/bus/usb/devices </pre>
<p>You will hopefully see something like</p>
<pre>
S:  Manufacturer=Canon Inc.
S:  Product=Canon Digital Camera
</pre>
<p>If not have a look at <tt>/var/log/messages</tt>. Does your kernel support USB?</p>
<a name="wptoc_0_1_3"></a><h2>Setting permissions</h2>
<p>You don&#8217;t want to run gphoto2 as root, so follow the steps in <tt>/usr/share/doc/libgphoto2-2/README.Debian</tt>. If you don&#8217;t have a usb group yet create it (<tt>man addgroup</tt>) and remember to logout and login after adding yourself (<tt>man adduser</tt>) to the group. Change fstab and set the correct devgid there (<tt>man id</tt>).</p>
<p>I added the following line to my /etc/fstab:</p>
<pre>
none  /proc/bus/usb  usbfs devuid=0,devgid=1002,devmode=0660  0   0
</pre>
<a name="wptoc_0_1_4"></a><h2>First test</h2>
<p>If hotplug found your camera try</p>
<pre>$ gphoto2 --auto-detect</pre>
<p>The output should be</p>
<pre>
Model                          Port
----------------------------------------------------------
Canon PowerShot A60            usb:
</pre>
<p>To download the first picture from your camera type</p>
<pre>$ gphoto2 --get-file 1 </pre>
<p>You will need at least one file (photo, movie) on the cam of course.</p>
<a name="wptoc_0_0_1"></a><h1>Gphoto2 drivers</h1>
<p>The camera can be accessed by two different kind of drivers:</p>
<ol>
<li>The PTP protocol is a manufacturer-independent picture transfer protocol. Libgphoto2 doesn&#8217;t fully support PTP completeley yet.<br />
There is also a project called jphoto that seems supports PTP but looks inactive, I haven&#8217;t tried it yet.</li>
<li>Canon protocol.</li>
</ol>
<p>If you want to capture images with gphoto2 you need the ptp driver. This may work or not with the canon driver in the future.</p>
<a name="wptoc_1_1_0"></a><h2>Driver status</h2>
<table class="sci">
<thead>
<tr>
<th>feature</th>
<th>ptp2 driver 2.1.3</th>
<th>canon driver 2.1.3</th>
</tr>
</thead>
<tbody>
<tr>
<td>&#8211;capture-image</td>
<td>yes</td>
<td>no</td>
</tr>
<tr>
<td>&#8211;capture-movie</td>
<td>no</td>
<td>no</td>
</tr>
<tr>
<td>&#8211;delete-all-files</td>
<td>no (4)</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;delete-file range</td>
<td>no (4)</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-all-files</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-all-thumbnails</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-audio-data</td>
<td>?</td>
<td>?</td>
</tr>
<tr>
<td>&#8211;get-file range</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;get-thumbnail range</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;list-files</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;list-folders</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;mkdir folder</td>
<td>no</td>
<td>yes (1,3)</td>
</tr>
<tr>
<td>&#8211;num-files</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;rmdir folder</td>
<td>?</td>
<td>?</td>
</tr>
<tr>
<td>&#8211;show-info range</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;summary</td>
<td>yes</td>
<td>yes</td>
</tr>
<tr>
<td>&#8211;upload-file file</td>
<td>no</td>
<td>yes (2)</td>
</tr>
</tbody>
</table>
<p>Comments:</p>
<ol>
<li>the folder will be in capitals</li>
<li>the .deb in sid DOESN&#8217;T SUPPORT upload.</li>
<li>hm, can&#8217;t create a folder &#8216;folder&#8217;&#8230;
<li>doesn&#8217;t delete everything properly (firmware bug?)</li>
</ol>
<p><b>Note:</b> Mixing the usage of both drivers seems to crash the camera.</p>
<a name="wptoc_0_0_2"></a><h1>More tools for the A60</h1>
<ul>
<li><a href="http://sourceforge.net/projects/libptp">libptp</a> is part of gphoto but there is a stand-alone tool included that uses it to set camera properties.<br />
You can&#8217;t do that with gphoto2.
</li>
<li>
Petr Danecek wrote a tool for for <a href="http://www.ucl.cas.cz/~petr/plant-growth/">periodic capturing</a> for the A70.<br />
It should work with the A60 too (I didn&#8217;t test it yet).
</li>
</ul>
<a name="wptoc_0_0_3"></a><h1>More links&#8230;</h1>
<ul>
<li>I love <a href="http://hugin.sf.net">hugin</a> to stitch my photos!
</li>
<li>Have a look at <a href="http://www.patrice.ch/en/computer/linux/articles/2003/0509">this page about the A60</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/10/04/canon-powershot-a60-on-debian/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Accents in xorg</title>
		<link>http://www.nkuttler.de/2009/06/18/accents-in-xorg/</link>
		<comments>http://www.nkuttler.de/2009/06/18/accents-in-xorg/#comments</comments>
		<pubDate>Thu, 18 Jun 2009 17:54:14 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[accents]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[keymap]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=821</guid>
		<description><![CDATA[Most of the time I&#8217;m a very happy vim user. Vim has superb support for inputting all kind of characters, see :help digraph and :digraphs. But from time to time I need to input accents etc. in other GUI apps. A long time ago xorg in Debian did default to use deadkeys. I remember that [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the time I&#8217;m a very happy <a href="http://www.vim.org/">vim</a> user. Vim has superb support for inputting all kind of characters, see <tt>:help digraph</tt> and <tt>:digraphs</tt>. But from time to time I need to input accents etc. in other GUI apps.<span id="more-821"></span><br />
A long time ago xorg in Debian did default to use deadkeys. I remember that I was quite annoyed by it, because typing <tt>~/</tt> required three key presses. However, somewhen in the past the keyboard behavior was changed to <tt>nodeadkeys</tt>  which makes it kind of impossible to input accents as in é, è, or â. What&#8217;s even worse, I didn&#8217;t manage to override xorg&#8217;s auto-configuration of <tt>(**) Option "xkb_variant" "nodeadkeys</tt>, no setting of <tt>Option "XkbVariant" "nodeadkeys"</tt> did help.<br />
Running <tt>setxkbmap de</tt> restored the dead keys for me. I should add that my system uses <tt>locale de_DE.UTF-8</tt>. This will be ok for some time, however, I think I really want to use the <tt>"xkb_options" "compose:rctrl"</tt> option, at least for the tilde.<br />
Btw, I&#8217;m perfectly aware of <tt>xmodmap</tt>, but I really don&#8217;t like to mess around with it for such a simple requirement.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/06/18/accents-in-xorg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Switching to Openbox</title>
		<link>http://www.nkuttler.de/2009/05/28/switching-to-openbox/</link>
		<comments>http://www.nkuttler.de/2009/05/28/switching-to-openbox/#comments</comments>
		<pubDate>Thu, 28 May 2009 12:24:04 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[desktop]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[openbox]]></category>
		<category><![CDATA[xorg]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=781</guid>
		<description><![CDATA[After a decade of windowmaker and fluxbox I&#8217;ve switched to openbox. I was motivated by the fact that some recent fluxbox upgrade left my decor-less urxvtcs visible on all desktops which was rather annoying. Somebody on irc suggested openbox, and after a few minutes I started to like it a lot! What&#8217;s great about openbox: [...]]]></description>
			<content:encoded><![CDATA[<p>After a decade of <a href="http://www.windowmaker.info/">windowmaker</a> and <a href="http://www.fluxbox.org">fluxbox</a> I&#8217;ve switched to <a href="http://icculus.org/openbox/">openbox</a>. I was motivated by the fact that some recent fluxbox upgrade left my decor-less <a href="http://software.schmorp.de/pkg/rxvt-unicode.html">urxvtc</a>s visible on all desktops which was rather annoying. Somebody on irc suggested openbox, and after a few minutes I started to like it a lot!<span id="more-781"></span></p>
<p>What&#8217;s great about openbox:</p>
<ul>
<li>it&#8217;s fast</li>
<li>it&#8217;s based on blackbox (but has been completely rewritten) and has a dock</li>
<li>it&#8217;s standards compliant</li>
<li><a href="http://icculus.org/openbox/index.php/Help:Bindings#Key_chains">chainable key bindings</a></li>
<li><a href="http://icculus.org/openbox/index.php/Openbox:Pipemenus">pipe menus</a>, menu elements that are dynamically generated through small scripts</li>
<li>nice tools like <a href="http://icculus.org/openbox/index.php/ObConf:About">ObConf</a> and <a href="http://obmenu.sourceforge.net/">ObMenu</a></li>
</ul>
<p>I like a minimal configuration, my main workspace has just two terminals:</p>

<p>The transparent task bar at the bottom is <a href="http://code.google.com/p/tint2/">tint2</a>. The 0.7 version has an integrated systray which is nice, however the debian package is slightly outated. If your version doesn&#8217;t support the systray download the source from the tint2 page. My version oddly had a binary included in the <tt>src/</tt> folder. If you need to compile yourself,  <tt>apt-get build-dep tint2</tt>, go to the <tt>src/</tt> folder, type <tt>make</tt> and copy the binary to some place that&#8217;s in your <tt>$PATH</tt>.</p>
<p>The openbox wiki seems to have all the documentation that&#8217;s necessary, like <a href="http://icculus.org/openbox/index.php/Help:Applications">per application window settings</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/05/28/switching-to-openbox/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Using any Debian box as a wireless access point</title>
		<link>http://www.nkuttler.de/2009/02/25/using-any-debian-box-as-wireless-access-point/</link>
		<comments>http://www.nkuttler.de/2009/02/25/using-any-debian-box-as-wireless-access-point/#comments</comments>
		<pubDate>Wed, 25 Feb 2009 14:02:45 +0000</pubDate>
		<dc:creator>nicolas</dc:creator>
				<category><![CDATA[Technology]]></category>
		<category><![CDATA[Debian]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[wlan]]></category>

		<guid isPermaLink="false">http://www.nkuttler.de//?p=664</guid>
		<description><![CDATA[I just lost an hour trying to configure a Thinkpad T41 as a wireless access point. Most of that time was due to problems with the built-in wlan interface and a kernel recompile to use a prism54-based PCMCIA card. This is mostly a post to remind myself what to do, and how to do it [...]]]></description>
			<content:encoded><![CDATA[<p>I just lost an hour trying to configure a Thinkpad T41 as a wireless access point. Most of that time was due to problems with the built-in wlan interface and a kernel recompile to use a  prism54-based PCMCIA card. This is mostly a post to remind myself what to do, and how to do it on Debian. It&#8217;s not the first time I create an access point, but I do it so infrequently that I always forget something.<span id="more-664"></span></p>
<a name="wptoc_0_0_0"></a><h2>The NIC</h2>
<p>Make sure there&#8217;s a Linux driver for your network interface card. Make sure the card can be run in <tt>master</tt> mode.</p>
<a name="wptoc_0_0_1"></a><h2>DHCP</h2>
<p>The boxes that will connect need an IP. Install <tt>dhcp3-server</tt> and do something like this in <tt>/etc/dhcp3/dhcpd.conf</tt>:</p>
<pre>
[...]
option domain-name "192.168.6.0";
option domain-name-servers 192.168.6.1;
[...]
subnet 192.168.6.0 netmask 255.255.255.0 {
  range 192.168.6.10 192.168.6.15;
  option routers 192.168.6.1;
}
[...]
</pre>
<a name="wptoc_0_0_2"></a><h2>Configure the network</h2>
<p>Configure the interface so that it can be started with <tt>ifup</tt>. Usually you want the connected boxes to have access to whatever internet connection the access point has, so I enable forwarding and masquerading in <tt>/etc/network/interfaces</tt>:</p>
<pre>
iface eth1 inet static
    address 192.168.6.1
    netmask 255.255.255.0
    network 192.168.6.0
    wireless-mode master
    wireless-essid debianftw
    wireless-key1 s:12345
    post-up /bin/echo 1 &gt; /proc/sys/net/ipv4/ip_forward
    post-up /sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
    post-up /etc/init.d/dhcp3-server restart
</pre>
<p><tt>13245</tt> is the WEP password and the network will be called <tt>debianftw</tt>.</p>
<a name="wptoc_0_0_3"></a><h2>Optional: DNS</h2>
<p>You may want to have name servers for the connected boxes. A quick solution is to take those from your <tt>/etc/resolv.conf</tt> and to put them in your <tt>/etc/dhcp3/dhcpd.conf</tt>. There are other solutions, like a caching only DNS server.</p>
<a name="wptoc_0_0_4"></a><h2>Security</h2>
<p>WEP isn&#8217;t a very good encryption but it&#8217;s enough for me. You probably don&#8217;t want to run this setup for a long time, it&#8217;s really just some notes to get me started quickly. Maybe I&#8217;ll add more about security in an update.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.nkuttler.de/2009/02/25/using-any-debian-box-as-wireless-access-point/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
