<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>Debian on BlocNotes</title>
    <link>https://notes.iopush.net/tags/debian/</link>
    <description>Recent content in Debian on BlocNotes</description>
    <generator>Hugo -- gohugo.io</generator>
    <language>en-us</language>
    <lastBuildDate>Tue, 13 Aug 2019 19:39:24 +0000</lastBuildDate><atom:link href="https://notes.iopush.net/tags/debian/index.xml" rel="self" type="application/rss+xml" />
    <item>
      <title>How to compile KiCad 5.1.x for Debian 10</title>
      <link>https://notes.iopush.net/blog/2019/how-to-compile-kicad-5-1-x-for-debian-10/</link>
      <pubDate>Tue, 13 Aug 2019 19:39:24 +0000</pubDate>
      
      <guid>https://notes.iopush.net/blog/2019/how-to-compile-kicad-5-1-x-for-debian-10/</guid>
      <description>&lt;p&gt;I was looking to use &lt;a href=&#34;https://github.com/openscopeproject/InteractiveHtmlBom/&#34;&gt;InteractiveHtmlBom&lt;/a&gt; plugin for KiCad but unfortunately, Debian maintainers did not set &lt;code&gt;KICAD_SCRIPTING&lt;/code&gt; option in the official package. After a few failing attempts I even tested the official &lt;a href=&#34;http://kicad-pcb.org/download/flatpak/&#34;&gt;flatpak&lt;/a&gt; package but it is an old version (currently 4.x) and scripting is not enabled too.&lt;/p&gt;
&lt;p&gt;So I dug further until it actually succeeds to compile :-)&lt;/p&gt;
    
    
        
        
        
        
    

    
    
    

    
    







  


    

    
        &lt;p&gt;&lt;span class=&#34;image center&#34;&gt;
            &lt;img src=&#34;https://notes.iopush.net/blog/2019/how-to-compile-kicad-5-1-x-for-debian-10/kicad-interactive-html-bom.png&#34; alt=&#34;Pellet stove&#34;&gt;
        &lt;/span&gt;&lt;/p&gt;
        &lt;p&gt;&lt;div class=&#34;align-center&#34; style=&#34;font-weight: bold;&#34;&gt;
            Pellet stove
        &lt;/div&gt;&lt;/p&gt;
    


&lt;p&gt;Here is the thing: KiCad official documentation still recommend packages for python2, and v5.1.4 is &lt;a href=&#34;https://forum.kicad.info/t/building-on-debian-10-buster/17954/3&#34;&gt;not compatible&lt;/a&gt; with new versions of &lt;code&gt;libglm-dev&lt;/code&gt; if compiled with GCC; this is now &lt;a href=&#34;https://git.launchpad.net/kicad/commit/?id=5aa48e523dd46632564d3a118921f6c1f02abc2f&#34;&gt;fixed in master&lt;/a&gt;. So the commands I used are:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;color:#75715e&#34;&gt;# From http://kicad-pcb.org/download/debian/ without Python2 packages&lt;/span&gt;
apt install cmake doxygen libboost-context-dev &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  libboost-dev libboost-system-dev libboost-test-dev &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  libcairo2-dev libcurl4-openssl-dev libgl1-mesa-dev &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  libglew-dev libglm-dev libngspice-dev &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  liboce-foundation-dev liboce-ocaf-dev libssl-dev &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  libwxbase3.0-dev libwxgtk3.0-dev swig wx-common

&lt;span style=&#34;color:#75715e&#34;&gt;# Add Debian Buster/Python3 required packages&lt;/span&gt;
apt install python3-wxgtk4.0 libwxgtk3.0-gtk3-dev &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  libboost-filesystem-dev python3-dev

&lt;span style=&#34;color:#75715e&#34;&gt;# Add KiCad libraries&lt;/span&gt;
apt install kicad-libraries kicad-packages3d --no-install-recommends

&lt;span style=&#34;color:#75715e&#34;&gt;# Downgrade libdlm-dev - For 5.1.4 or older only&lt;/span&gt;
apt remove libglm-dev
wget http://ftp.us.debian.org/debian/pool/main/g/glm/libglm-dev_0.9.8.3-3_all.deb
dpkg -i libglm-dev_0.9.8.3-3_all.deb

&lt;span style=&#34;color:#75715e&#34;&gt;# Clone and build KiCad&lt;/span&gt;
git clone https://git.launchpad.net/kicad
mkdir -p kicad/build/release
cd kicad/build/release
cmake -DCMAKE_BUILD_TYPE&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;Release &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -DKICAD_SCRIPTING_ACTION_MENU&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;ON &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -DwxWidgets_CONFIG_OPTIONS&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;--toolkit=gtk3&amp;#34;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -DKICAD_SCRIPTING_WXPYTHON_PHOENIX&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;ON &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -DKICAD_SCRIPTING_PYTHON3&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;ON &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  -DwxWidgets_CONFIG_EXECUTABLE&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;/usr/bin/wx-config&amp;#39;&lt;/span&gt; &lt;span style=&#34;color:#ae81ff&#34;&gt;\
&lt;/span&gt;&lt;span style=&#34;color:#ae81ff&#34;&gt;&lt;/span&gt;  ../..
make -j
make install
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;Now you can use InteractiveHtmlBom which is really pleasant for big boards!&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Thinkpad T440p &amp; fingerprint sensor under Linux</title>
      <link>https://notes.iopush.net/blog/2019/thinkpad-t440p-fingerprint/</link>
      <pubDate>Fri, 10 May 2019 18:38:19 +0000</pubDate>
      
      <guid>https://notes.iopush.net/blog/2019/thinkpad-t440p-fingerprint/</guid>
      <description>&lt;p&gt;There are a lot of pages stating that the Thinkpad T440p fingerprint sensor is
not working well under Linux, but those are old and outdated. For me it worked
well after figured out which packets to install:&lt;/p&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;apt-get install libfprint fprintd libfprintd
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;p&gt;The package &lt;code&gt;fprint-demo&lt;/code&gt; can also be installed to play with the sensor.&lt;/p&gt;
&lt;p&gt;Then to enable login with the sensor in Gnome3, navigate to&lt;/p&gt;
&lt;ol&gt;
&lt;li&gt;&lt;code&gt;Users&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Select &lt;code&gt;Enable&lt;/code&gt;&lt;/li&gt;
&lt;li&gt;Enroll you finger.&lt;/li&gt;
&lt;/ol&gt;
&lt;p&gt;Tested under Debian Buster Buster, fingerprint sensor model is &lt;code&gt;vfs5011&lt;/code&gt;.&lt;/p&gt;</description>
    </item>
    
    <item>
      <title>Linux/Gnome - Associate an application with a filetype</title>
      <link>https://notes.iopush.net/blog/2018/linux-gnome-associate-an-application-with-filetype/</link>
      <pubDate>Fri, 05 Jan 2018 20:36:57 +0000</pubDate>
      
      <guid>https://notes.iopush.net/blog/2018/linux-gnome-associate-an-application-with-filetype/</guid>
      <description>&lt;p&gt;I lost some time figuring out how to associate &amp;ldquo;.stl&amp;rdquo; extensions with Slic3r.
Gnome wrote a
&lt;a href=&#34;https://help.gnome.org/admin/system-admin-guide/stable/mime-types.html.en&#34;&gt;good documentation&lt;/a&gt;
but it is not obvious to find. I did not use the package manager for that because
I wanted the up to date &lt;a href=&#34;https://en.wikipedia.org/wiki/AppImage&#34;&gt;AppImage&lt;/a&gt;.&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Create &lt;code&gt;/usr/share/mime/packages/slic3r.xml&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-XML&#34; data-lang=&#34;XML&#34;&gt;&lt;span style=&#34;color:#75715e&#34;&gt;&amp;lt;?xml version=&amp;#34;1.0&amp;#34;?&amp;gt;&lt;/span&gt;
&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;mime-info&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;xmlns=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#39;http://www.freedesktop.org/standards/shared-mime-info&amp;#39;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;
  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;mime-type&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;type=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;application/octet-stream&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;&amp;gt;&lt;/span&gt;
    &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;glob&lt;/span&gt; &lt;span style=&#34;color:#a6e22e&#34;&gt;pattern=&lt;/span&gt;&lt;span style=&#34;color:#e6db74&#34;&gt;&amp;#34;*.stl&amp;#34;&lt;/span&gt;&lt;span style=&#34;color:#f92672&#34;&gt;/&amp;gt;&lt;/span&gt;
  &lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;/mime-type&amp;gt;&lt;/span&gt;
&lt;span style=&#34;color:#f92672&#34;&gt;&amp;lt;/mime-info&amp;gt;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;&lt;ul&gt;
&lt;li&gt;Create &lt;code&gt;/usr/share/applications/slic3r.desktop&lt;/code&gt;&lt;/li&gt;
&lt;/ul&gt;
&lt;div class=&#34;highlight&#34;&gt;&lt;pre style=&#34;color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4&#34;&gt;&lt;code class=&#34;language-bash&#34; data-lang=&#34;bash&#34;&gt;&lt;span style=&#34;color:#f92672&#34;&gt;[&lt;/span&gt;Desktop Entry&lt;span style=&#34;color:#f92672&#34;&gt;]&lt;/span&gt;
Version&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;1.0
Type&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;Application
Name&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;Slic3r
Icon&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;/opt/AppImages/icons/Slic3r.ico
Exec&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;Slic3r
Path&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;/opt/AppImages/
NoDisplay&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;false
Categories&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;3DGraphics;Utility;
StartupNotify&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;false
Terminal&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;false
MimeType&lt;span style=&#34;color:#f92672&#34;&gt;=&lt;/span&gt;application/octet-stream
&lt;/code&gt;&lt;/pre&gt;&lt;/div&gt;</description>
    </item>
    
  </channel>
</rss>
