<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Troubleshooting on Swehack</title>
    <link>https://swehack.se/tags/troubleshooting/</link>
    <description>Recent content in Troubleshooting on Swehack</description>
    <generator>Hugo</generator>
    <language>en</language>
    <lastBuildDate>Sat, 05 Sep 2026 11:02:43 +0200</lastBuildDate>
    <atom:link href="https://swehack.se/tags/troubleshooting/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>Fixed a Printer in RHEL 10</title>
      <link>https://swehack.se/blog/fixed-a-printer-in-rhel10/</link>
      <pubDate>Sat, 05 Sep 2026 11:02:43 +0200</pubDate>
      
      <guid>https://swehack.se/blog/fixed-a-printer-in-rhel10/</guid>
      <description>&lt;p&gt;My mom&amp;rsquo;s Samsung M2020 printer would not work with her RHEL 10 laptop.&lt;/p&gt;
&lt;p&gt;Yes my mom runs RHEL 10 on her laptop, she always had a thing for IBM that I couldn&amp;rsquo;t quite explain. 😉&lt;/p&gt;
&lt;p&gt;Troubleshooting took an evening of chatting to my mom about stuff, and I finally solved it the next morning, but here&amp;rsquo;s the summary.&lt;/p&gt;
&lt;p&gt;The splix 2.0.1 package in RHEL 10 is a bit too old for the Samsung M2020 printer, so I had to build the &lt;a href=&#34;https://github.com/OpenPrinting/splix&#34;&gt;splix 2.0.2 package from github&lt;/a&gt;. Just downloading the PPD files from the Samsung website and adding them in Gnome printers was not enough.&lt;/p&gt;
&lt;p&gt;Every test print cups logged this.&lt;/p&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sep 04 21:22:31 mammasdator.home.arpa cupsd[1512]: M2020: File &amp;#34;/usr/lib/cups/filter/rastertospl&amp;#34; not available: No such file or directory
sep 04 21:22:31 mammasdator.home.arpa cupsd[1512]: [Job 9] Unable to start filter &amp;#34;rastertospl&amp;#34; - No such file or directory.
sep 04 21:22:31 mammasdator.home.arpa cupsd[1512]: [Job 9] Stopping job because the scheduler could not execute a filter.
&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;That file no longer exists and has been replaced by rastertoqpdl, which the PPD files in the &lt;a href=&#34;https://github.com/OpenPrinting/splix&#34;&gt;splix package&lt;/a&gt; apparently point out, but the official Samsung PPD files do not.&lt;/p&gt;
&lt;h2 id=&#34;step-1-build-dependencies&#34;&gt;Step 1: Build dependencies&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;sudo dnf install gcc gcc-c++ make cups-devel recode
&lt;/code&gt;&lt;/pre&gt;
&lt;h2 id=&#34;step-2-build-the-splix-package&#34;&gt;Step 2: Build the splix package&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;cd /tmp
curl -LO https://github.com/OpenPrinting/splix/releases/download/2.0.2/splix-2.0.2.tar.xz
tar -xvaf splix-2.0.2.tar.xz
cd splix-2.0.2
make DISABLE_JBIG=1
make ppd DISABLE_JBIG=1
sudo make install DISABLE_JBIG=1
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;step-3-add-the-printer-queue&#34;&gt;Step 3: Add the printer queue&lt;/h2&gt;
&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;lpinfo -v | grep -i samsung
sudo lpadmin -p M2020 -E -v &amp;#34;usb://Samsung/M2020%20Series?serial=YOUR_SERIAL&amp;#34; -P /usr/share/cups/model/samsung/m2020.ppd
&lt;/code&gt;&lt;/pre&gt;&lt;h2 id=&#34;step-4-test-print-from-the-cli&#34;&gt;Step 4: Test print from the CLI&lt;/h2&gt;
&lt;pre&gt;&lt;code&gt;lp -d M2020 /etc/hostname
&lt;/code&gt;&lt;/pre&gt;
</description>
    </item>
  </channel>
</rss>
