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

<rss version="2.0" 
   xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
   xmlns:admin="http://webns.net/mvcb/"
   xmlns:dc="http://purl.org/dc/elements/1.1/"
   xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
   xmlns:wfw="http://wellformedweb.org/CommentAPI/"
   xmlns:content="http://purl.org/rss/1.0/modules/content/"
   >
<channel>
    
    <title>Daniel Lange's blog</title>
    <link>https://daniel-lange.com/</link>
    <description>agrep -pB IT /dev/life</description>
    <dc:language>en</dc:language>
    <generator>Serendipity 2.6-alpha1 - http://www.s9y.org/</generator>
    <pubDate>Fri, 16 Jan 2026 07:09:38 GMT</pubDate>

    <image>
    <url>//daniel-lange.com/uploads/Avatar_Blog_144_234.png</url>
    <title>RSS: Daniel Lange's blog - agrep -pB IT /dev/life</title>
    <link>https://daniel-lange.com/</link>
    <width>144</width>
    <height>234</height>
</image>

<item>
    <title>Resizing Xterm fonts with Ctrl+&lt;plus&gt; and Ctrl+&lt;minus&gt;</title>
    <link>https://daniel-lange.com/archives/196-Resizing-Xterm-fonts-with-Ctrl+plus-and-Ctrl+minus.html</link>
            <category>Linux</category>
    
    <comments>https://daniel-lange.com/archives/196-Resizing-Xterm-fonts-with-Ctrl+plus-and-Ctrl+minus.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=196</wfw:comment>

    <slash:comments>4</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=196</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Xterm misses the convenient option to resize the fonts with &lt;code&gt;Ctrl+&amp;lt;plus&amp;gt;&lt;/code&gt; and &lt;code&gt;Ctrl+&amp;lt;minus&amp;gt;&lt;/code&gt; like xfce4-terminal or gnome-terminal do out of the box.&lt;/p&gt;

&lt;p&gt;This feature can be added on Debian systems by dropping a configuration snippet into &lt;code&gt;/etc/X11/Xresources/x11-xterm-fontsize&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;text geshi&quot; style=&quot;text-align: left&quot;&gt;! Allow XTerm font size to be changed with Ctrl+&amp;lt;plus&amp;gt; and &amp;lt;minus&amp;gt;&lt;br /&gt;XTerm.vt100.translations: #override \n\&lt;br /&gt;&amp;#160; Ctrl &amp;lt;Key&amp;gt; minus: smaller-vt-font() \n\&lt;br /&gt;&amp;#160; Ctrl &amp;lt;Key&amp;gt; plus: larger-vt-font()&lt;/div&gt;

&lt;p&gt;Any new X session will inherit this configuration and &lt;code&gt;Ctrl+&amp;lt;plus&amp;gt;&lt;/code&gt; and &lt;code&gt;Ctrl+&amp;lt;minus&amp;gt;&lt;/code&gt; will work to adjust the font size (and taking the window size along).&lt;/p&gt;

&lt;p&gt;The font sizes that Xterm iterates through can be viewed on the &lt;code&gt;Ctrl-&amp;lt;right click&amp;gt;&lt;/code&gt; context menu:&lt;/p&gt;

&lt;p&gt;&lt;!-- s9ymdb:739 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;530&quot; height=&quot;519&quot;  src=&quot;https://daniel-lange.com/uploads/entries/xterm_right-click_menu.png&quot; title=&quot;aah, the UI charm of the 80s 😍&quot; loading=&quot;lazy&quot; alt=&quot;Screenshot of an Xterm window with the context menu displayed&quot;&gt;
NB: The context menu allows to switch the fonts on systems where the above snippet has not (yet) been installed. So good enough for a one-off.&lt;/p&gt;

&lt;p&gt;Credits: &lt;a href=&quot;https://askubuntu.com/questions/161652/how-to-change-the-default-font-size-of-xterm&quot;&gt;Stack Overflow/Ask Ubuntu, Matthew Hoener&lt;/a&gt;.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Mon, 12 Jan 2026 12:15:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/196-guid.html</guid>
    <category>keyboard</category>
<category>x11</category>
<category>xterm</category>

</item>
<item>
    <title>Getting scanning to work with Gimp on Trixie</title>
    <link>https://daniel-lange.com/archives/195-Getting-scanning-to-work-with-Gimp-on-Trixie.html</link>
            <category>Debian</category>
    
    <comments>https://daniel-lange.com/archives/195-Getting-scanning-to-work-with-Gimp-on-Trixie.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=195</wfw:comment>

    <slash:comments>5</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=195</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;Trixie ships &lt;a href=&quot;https://www.gimp.org/&quot; title=&quot;Gimp Homepage&quot;&gt;Gimp&lt;/a&gt; 3.0.4 and the 3.x series has gotten incompatible to &lt;a href=&quot;http://www.sane-project.org/sane-frontends.html&quot;&gt;XSane&lt;/a&gt;, the common frontend for scanners on Linux.&lt;/p&gt;

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

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

&lt;p&gt;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):&lt;/p&gt;

&lt;p&gt;Lee Yingtong Li (RunasSudo) has created a Python script that calls XSane as a cli application and published it at &lt;a href=&quot;https://yingtongli.me/git/gimp-xsanecli/&quot;&gt;https://yingtongli.me/git/gimp-xsanecli/&lt;/a&gt;. This worked okish for me but needed me to find the scan in &lt;code&gt;/tmp/&lt;/code&gt; 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.&lt;/p&gt;

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

&lt;p&gt;So:&lt;/p&gt;

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

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

    <pubDate>Wed, 24 Dec 2025 09:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/195-guid.html</guid>
    <category>debian</category>
<category>scanner</category>
<category>trixie</category>
<category>xsane</category>

</item>
<item>
    <title>Polkitd (Policy Kit Daemon) in Trixie ... allowing remote users to suspend, reboot, power off the local system</title>
    <link>https://daniel-lange.com/archives/194-Polkitd-Policy-Kit-Daemon-in-Trixie-...-allowing-remote-users-to-suspend,-reboot,-power-off-the-local-system.html</link>
            <category>Debian</category>
    
    <comments>https://daniel-lange.com/archives/194-Polkitd-Policy-Kit-Daemon-in-Trixie-...-allowing-remote-users-to-suspend,-reboot,-power-off-the-local-system.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=194</wfw:comment>

    <slash:comments>7</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=194</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;As per &lt;a href=&quot;https://daniel-lange.com/archives/193-Polkitd-Policy-Kit-Daemon-in-Trixie-...-getting-rid-of-Authentication-is-required-to-create-a-color-profile.html&quot;&gt;the previous Polkit blog post&lt;/a&gt; the policykit framwork has lost the ability to understand its own .pkla files and policies need to be expressed in Javascript with .rules files now.&lt;/p&gt;

&lt;p&gt;To re-enable allowing remote users (think ssh) to reboot, hibernate, suspend or power off the local system, create a &lt;code&gt;10-shutdown-reboot.rules&lt;/code&gt; file in &lt;code&gt;/etc/polkit-1/rules.d/&lt;/code&gt;:&lt;/p&gt;

&lt;div class=&quot;js geshi&quot; style=&quot;text-align: left&quot;&gt;polkit.addRule(function(action, subject) {&lt;br /&gt;
&amp;#160; &amp;#160; if ((action.id == &amp;quot;org.freedesktop.login1.reboot-multiple-sessions&amp;quot; ||&lt;br /&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;action.id == &amp;quot;org.freedesktop.login1.reboot&amp;quot; ||&lt;br /&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;action.id == &amp;quot;org.freedesktop.login1.suspend-multiple-sessions&amp;quot; ||&lt;br /&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;action.id == &amp;quot;org.freedesktop.login1.suspend&amp;quot; ||&lt;br /&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;action.id == &amp;quot;org.freedesktop.login1.hibernate-multiple-sessions&amp;quot; ||&lt;br /&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;action.id == &amp;quot;org.freedesktop.login1.hibernate&amp;quot; ||&lt;br /&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;action.id == &amp;quot;org.freedesktop.login1.power-off-multiple-sessions&amp;quot; ||&lt;br /&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; &amp;#160;action.id == &amp;quot;org.freedesktop.login1.power-off&amp;quot;) &amp;amp;&amp;amp;&lt;br /&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; (subject.isInGroup(&amp;quot;sudo&amp;quot;) || (subject.user == &amp;quot;root&amp;quot;)))&lt;br /&gt;
&amp;#160; &amp;#160; {&lt;br /&gt;
&amp;#160; &amp;#160; &amp;#160; &amp;#160; return polkit.Result.YES;&lt;br /&gt;
&amp;#160; &amp;#160; }&lt;br /&gt;
});&lt;/div&gt;

&lt;p&gt;and run &lt;code&gt;systemctl restart polkit&lt;/code&gt;.&lt;/p&gt;
 
    </content:encoded>

    <pubDate>Fri, 22 Aug 2025 17:30:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/194-guid.html</guid>
    <category>javascript</category>
<category>polkit</category>
<category>security</category>

</item>
<item>
    <title>Printing labels with the DYMO LabelWriter Wireless (and LabelWriter 5xx) on Debian Linux</title>
    <link>https://daniel-lange.com/archives/190-Printing-labels-with-the-DYMO-LabelWriter-Wireless-and-LabelWriter-5xx-on-Debian-Linux.html</link>
            <category>Debian</category>
    
    <comments>https://daniel-lange.com/archives/190-Printing-labels-with-the-DYMO-LabelWriter-Wireless-and-LabelWriter-5xx-on-Debian-Linux.html#comments</comments>
    <wfw:comment>https://daniel-lange.com/wfwcomment.php?cid=190</wfw:comment>

    <slash:comments>1</slash:comments>
    <wfw:commentRss>https://daniel-lange.com/rss.php?version=2.0&amp;type=comments&amp;cid=190</wfw:commentRss>
    

    <author>nospam@example.com (Daniel Lange)</author>
    <content:encoded>
    &lt;p&gt;In 2020 my company bought a DYMO LabelWriter Wireless. It is an awesome little device for thermal printing a wide variety of labels. The labels are easily available both from DYMO and from third parties so the pricing is quite acceptable.&lt;/p&gt;

&lt;p&gt;Unfortunately DYMO supplies their DYMO Connect Software only for Microsoft Windows and MacOSX. A mobile app of the same name for Android and Apple iOS devices is available in the app stores.&lt;/p&gt;

&lt;p&gt;There is a SDK for Linux and there are drivers published for Linux but the LabelWriter Wireless was not supported on Linux when I tried to get it running for Debian in 2020.&lt;/p&gt;

&lt;p&gt;&lt;!-- s9ymdb:714 --&gt;&lt;img class=&quot;serendipity_image_center&quot; width=&quot;528&quot; height=&quot;421&quot;  src=&quot;https://daniel-lange.com/uploads/entries/DYMO_LabelWriter_Wireless.jpg&quot; title=&quot;Label all the things!&quot; alt=&quot;Image of the DYMO LabelWriter Wireless in the white and black versions&quot;&gt;&lt;/p&gt;

&lt;p&gt;This year I have had a new look at the situation as we still use the LabelWriter Wireless printers a lot and the company runs fully on Linux. So it is always a chore to run a Windows VM just to run DYMO Connect.&lt;/p&gt;
 &lt;a class=&quot;block_level&quot; href=&quot;https://daniel-lange.com/archives/190-Printing-labels-with-the-DYMO-LabelWriter-Wireless-and-LabelWriter-5xx-on-Debian-Linux.html#extended&quot;&gt;Continue reading &quot;Printing labels with the DYMO LabelWriter Wireless (and LabelWriter 5xx) on Debian Linux&quot;&lt;/a&gt;
    </content:encoded>

    <pubDate>Thu, 30 Jan 2025 21:00:00 +0000</pubDate>
    <guid isPermaLink="false">https://daniel-lange.com/archives/190-guid.html</guid>
    <category>debian</category>
<category>driver</category>
<category>dymo</category>
<category>label</category>
<category>packaging</category>
<category>printing</category>
<category>sticker</category>
<category>thermal</category>

</item>

</channel>
</rss>
