<?xml version="1.0" encoding="utf-8" ?>

<?xml-stylesheet type="text/xsl" href="/templates/2k11/atom.xsl" media="screen" ?>
<feed 
   xmlns="http://www.w3.org/2005/Atom"
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/">
    
    <link href="https://daniel-lange.com/feeds/atom.xml" rel="self" title="Daniel Lange's blog" type="application/atom+xml" />
    <link href="https://daniel-lange.com/"                        rel="alternate"    title="Daniel Lange's blog" type="text/html" />
    <link href="https://daniel-lange.com/rss.php?version=2.0"     rel="alternate"    title="Daniel Lange's blog" type="application/rss+xml" />
    <link rel="stylesheet" href="" type="text/css" />
    <title type="html">Daniel Lange's blog</title>
    <subtitle type="html">agrep -pB IT /dev/life</subtitle>
    <icon>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</icon>
    <id>https://daniel-lange.com/</id>
    <updated>2026-05-30T22:30:43Z</updated>
    <generator uri="http://www.s9y.org/" version="2.6.0">Serendipity 2.6.0 - http://www.s9y.org/</generator>
    <dc:language>en</dc:language>

    <entry>
        <link href="https://daniel-lange.com/archives/195-Getting-scanning-to-work-with-Gimp-on-Trixie.html" rel="alternate" title="Getting scanning to work with Gimp on Trixie" />
        <author>
            <name>Daniel Lange</name>
                    </author>
    
        <published>2025-12-24T09:00:00Z</published>
        <disable-updated>2026-05-30T22:30:43Z</disable-updated>
        <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=195</wfw:comment>
    
        <slash:comments>11</slash:comments>
        <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=195</wfw:commentRss>
    
            <category scheme="https://daniel-lange.com/categories/19-Debian" label="Debian" term="Debian" />
    
        <id>https://daniel-lange.com/archives/195-guid.html</id>
        <title type="html">Getting scanning to work with Gimp on Trixie</title>
        <content type="html">
            <![CDATA[<p>Trixie ships <a href="https://www.gimp.org/" title="Gimp Homepage">Gimp</a> 3.0.4 and the 3.x series has gotten incompatible to <a href="http://www.sane-project.org/sane-frontends.html">XSane</a>, the common frontend for scanners on Linux.</p>

<p>Hence the maintainer, Jörg Frings-Fürst, has <a href="https://git.jff.email/cgit/xsane.git/commit/?id=e94358be7216ead86f500f2f19420a61435eceec">disabled the Gimp integration temporarily</a> in response to a Debian bug <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088080">#1088080</a>.</p>

<p>There seems to be no tracking bug for getting the functionality back but people have been commenting on Debian bug <a href="https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=993293">#993293</a> as that is ... loosely related <img src="https://daniel-lange.com/plugins/serendipity_event_emoticate/img/emoticons/smile.png" alt=":-)" class="emoticon" />.</p>

<p>There are two options to get the Scanning functionality back in Trixie until this is properly resolved by an updated XSane in Debian (e.g. via trixie-backports):</p>

<p>Lee Yingtong Li (RunasSudo) has created a Python script that calls XSane as a cli application and published it at <a href="https://yingtongli.me/git/gimp-xsanecli/">https://yingtongli.me/git/gimp-xsanecli/</a>. This worked okish for me but needed me to find the scan in <code>/tmp/</code> a number of times. This is a good stop-gap script if you need to scan from Gimp $now and look for a quick solution.</p>

<p>Upstream has completed the necessary steps to get XSane working as a Gimp 3.x plugin at <a href="https://gitlab.com/sane-project/frontend/xsane">https://gitlab.com/sane-project/frontend/xsane</a>. Unfortunately compiling this is a bit involved but I made a version that can be dropped into <code>/usr/local/bin</code> or <code>$HOME/bin</code> and works alongside Gimp and the system-installed XSane.</p>

<p>So:</p>

<ol>
<li><code>sudo apt install gimp xsane</code></li>
<li>Download <a href="https://daniel-lange.com/software/xsane-1.0.0-fit-003">xsane-1.0.0-fit-003 (752kB, AMD64 executable for Trixie)</a> and place it in <code>/usr/local/bin</code> (as root)</li>
<li><code>sha256sum /usr/local/bin/xsane-1.0.0-fit-003</code><br />
# result needs to be af04c1a83c41cd2e48e82d04b6017ee0b29d555390ca706e4603378b401e91b2</li>
<li><code>sudo chmod +x /usr/local/bin/xsane-1.0.0-fit-003</code></li>
<li># Link the executable into the Gimp plugin directory as the user running Gimp:<br />
<code>mkdir -p $HOME/.config/GIMP/3.0/plug-ins/xsane/</code><br />
<code>ln -s /usr/local/bin/xsane-1.0.0-fit-003 $HOME/.config/GIMP/3.0/plug-ins/xsane/xsane</code></li>
<li>Restart Gimp</li>
<li>Scan from Gimp via File → Create → Acquire → XSane </li>
</ol>

<p>The source code for the <code>xsane</code> executable above is available under GPL-2 at <a href="https://gitlab.com/sane-project/frontend/xsane/-/tree/c5ac0d921606309169067041931e3b0c73436f00">https://gitlab.com/sane-project/frontend/xsane/-/tree/c5ac0d921606309169067041931e3b0c73436f00</a>. This points to the last upstream commit from 27. September 2025 at the time of writing this blog article.</p>

<h2>Debugging help</h2>

<p>(added 06.05.2026)<br />
As some people in the comments seem to have issues with getting the plugin to work on their systems:</p>

<p>Run <code>$HOME/.config/GIMP/3.0/plug-ins/xsane/xsane --version</code> as a shell command line.</p>

<p>This should output:</p>

<pre>
xsane-1.0.0 (c) 1998-2022 Oliver Rauch
  E-mail: Oliver.Rauch@xsane.org
  package xsane-1.0.0-fit-003
  compiled with GTK-3.24.49
  with color management function
  with GIMP support, compiled with GIMP-3.0.4
  XSane output formats: jpeg, pdf(compr.), png, pnm, ps(compr.), tiff, txt
</pre>

<p>If it doesn't, the shell may tell you what step of the instructions you missed (e.g. the +x attribute) or the loader shows what library you are missing on your system.</p>
 ]]>
        </content>
        <dc:subject>debian</dc:subject>
<dc:subject>scanner</dc:subject>
<dc:subject>trixie</dc:subject>
<dc:subject>updated</dc:subject>
<dc:subject>xsane</dc:subject>

    </entry>
    <entry>
        <link href="https://daniel-lange.com/archives/127-Saving-miscjive.html" rel="alternate" title="Saving misc/jive" />
        <author>
            <name>Daniel Lange</name>
                    </author>
    
        <published>2017-02-14T10:15:00Z</published>
        <disable-updated>2026-05-06T12:39:02Z</disable-updated>
        <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=127</wfw:comment>
    
        <slash:comments>1</slash:comments>
        <wfw:commentRss>https://daniel-lange.com/rss.php?version=atom1.0&amp;type=comments&amp;cid=127</wfw:commentRss>
    
            <category scheme="https://daniel-lange.com/categories/20-BSD" label="BSD" term="BSD" />
    
        <id>https://daniel-lange.com/archives/127-guid.html</id>
        <title type="html">Saving misc/jive</title>
        <content type="html">
            <![CDATA[<p>One thing I love about FreeBSD is the way the core team keeps the wider community updated about project news e.g. via their quarterly status reports.
So while reading the <a href="https://www.freebsd.org/news/status/report-2016-10-2016-12.html">FreeBSD Q4/2016 status report</a>, I was quite surprised to find that a text filter converting English to <a href="https://en.wikipedia.org/wiki/Glossary_of_jive_talk" title="Wikipedia entry on Jive talk">"Jive speak"</a> had been removed from the ports tree. FreeBSD Core members argue that <i>"today the implicit approval implied by having it in the ports tree sends a message at odds with the project's aims."</i></p>

<p>Now this is bullshit as I'm sure FreeBSD core neither endorses Citrix (<code>net/citrix_ica</code>) nor Cisco (<code>emulators/gna3</code>, <code>devel/libcli</code>, <code>graphics/py27-blockdiagcontrib-cisco</code> and many more) but just hosts code to make living with them easier.</p>

<p>So the important thing here is:</p>

<table style="vertical-align: middle;">
<tr><td>
<img class="serendipity_image_left noborder" width="48" height="48" hspace="20" src="https://daniel-lange.com/uploads/icons/markup/info.png" title="Important: Switch on brain and try to memorize." alt="Important: Switch on brain and try to memorize." />
</td>
<td>
Hosting is not endorsing.<br />
It is a purely technical act and by definition agnostic to the hosted content.
</td></tr></table>

<p>In every sane jurisdiction there is the requirement to remove hosted content that violates a law. And that makes sense. It reflects the societal consensus what is still acceptable and what is not. This changes over time but there is a proven process in place for these changes to become relevant: political discussion and consequential law making.</p>

<p>There is very deliberately never a law against bad taste and/or offensive humor. Where such a law still exists, you're in a somewhat underdeveloped jurisdiction. Because the hosting (pun intended) society has not matured sufficiently yet. This may happen due to overly conservative or self-protective ruling classes, ideological or religious blindness. None of these are desirable for society as a whole and the <a href="http://www.dailydot.com/via/digital-self-defense-privacy-already-dead/" title="Daily dot article: Digital self defense - Is privacy already dead? ... mentioning the scissors in your head concept in good context">scissors in your head</a> are paving the way to go back to darker ages. So don't. Be welcoming, be tolerant.</p>

<p>Tolerance means accepting things you do not like. Not accepting just what endorses your personal taste, beliefs or state of mind.</p>

<p>Does that mean, FreeBSD should continue to host the "Jive" filter? No, it's purely their choice. But their argument that hosting is endorsing is wrong. Inclusion into a FreeBSD media may be, like Debian strictly differentiates between the main archive, which it endorses, and <a href="https://www.debian.org/doc/debian-policy/ch-archive#s-contrib">contrib or non-free sections</a> which it does not endorse. But still hosts regardless. So hosting is not endorsing.</p>

<p>That said, here you go:</p>

<table>
<thead>
<tr>
  <th>File</th>
  <th>Function</th>
  <th>sha256</th>
</tr>
</thead>
<tbody>
<tr>
  <td><a href="https://daniel-lange.com/software/jive-1.1.tar.gz" title="download source .tar.gz for jive: 4.6kB">jive-1.1.tar.gz</a></td>
  <td>Source to the "Jive" filter</td>
  <td>3463d80ad159a27d9fcf87f163a7be5eba39dbf15c5156f052798b81271523f2</td>
</tr>
<tr>
  <td><a href="https://daniel-lange.com/software/ports_misc_jive.tar.gz" title="download .tar.gz of the FreeBSD ports files for jive: 1.1kB">ports_misc_jive.tar.gz</a></td>
  <td>ports files to build the "Jive" filter under FreeBSD</td>
  <td>47dc7b660d499d671daa18f992cdd348bd95c34e02874addd2bcf3e5c3f90b59</td>
</tr>
<tr>
  <td><a href="https://daniel-lange.com/software/swedishchef.zip" title="download mirror of swedishchef.zip: 62kB">swedishchef.zip</a></td>
  <td>mirror of swedishchef.zip</td>
  <td>d0830b81aec6ad6a6ff824e1d80c9fa97d3a5447bad9f8a2b32dbd0dfb8df709</td>
</tr>
</tbody>
</table>

<p>The last file above is a mirror of <a href="https://web.archive.org/web/20170811005825/https://www.cs.utexas.edu/~jbc/home/chef.html">files that used to be hosted by John B. Chambers</a>. He had a "chef" cgi running there allowing the conversion of English text to "Swedish Chef", "Valley Girl" or "Pig Latin". And the "Jive" variant used the same Lex/Yacc/Flex files as the <code>misc/jive</code> that used to be part of the FreeBSD ports tree and are conserved above.</p>

<p>If you are interested in the public part of the discussion that happened <em>after</em> <code>misc/jive</code> was marked for removal from the ports tree, check out the <a href="https://lists.freebsd.org/pipermail/freebsd-ports/2016-October/thread.html#105417">freebsd-ports mailing list thread</a>.</p>

<p>P.S.: <a href="http://www.freshports.org/misc/valspeak/">Valspeak</a> is still in the ports tree as <code>misc/valspeak</code> ... just sayin'.</p>

<p>P.P.S.: <code>apt-cache show filters</code> # Debian &amp; Ubuntu. Awesome. &#9825;</p>

<p>P.P.P.S: (06.05.2026) replaced the link to John B. Chambers' cgi with an archive.org link as this cgi is not offered any more</p>
 ]]>
        </content>
        <dc:subject>bsd</dc:subject>
<dc:subject>filter</dc:subject>
<dc:subject>freebsd</dc:subject>
<dc:subject>hosting</dc:subject>

    </entry>

</feed>