<?xml version="1.0" encoding="UTF-8"?>
<!-- generator="FeedCreator 1.8" -->
<?xml-stylesheet href="https://baszerr.eu/lib/exe/css.php?s=feed" type="text/css"?>
<rss version="2.0">
    <channel xmlns:g="http://base.google.com/ns/1.0">
        <title>BaSzErr - blog:2016:12:04</title>
        <description></description>
        <link>https://baszerr.eu/</link>
        <lastBuildDate>Thu, 30 Apr 2026 01:48:13 +0000</lastBuildDate>
        <generator>FeedCreator 1.8</generator>
        <image>
            <url>https://baszerr.eu/lib/exe/fetch.php?media=wiki:dokuwiki.svg</url>
            <title>BaSzErr</title>
            <link>https://baszerr.eu/</link>
        </image>
        <item>
            <title>2016-12-04_-_hello_human</title>
            <link>https://baszerr.eu/doku.php?id=blog:2016:12:04:2016-12-04_-_hello_human</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;hello_human&quot;&gt;2016-12-04 - hello human&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2016%3A12%3A04%3A2016-12-04_-_hello_human&amp;amp;media=blog:2016:12:04:low_img_20161201_220001.jpg&quot; class=&quot;media&quot; title=&quot;blog:2016:12:04:low_img_20161201_220001.jpg&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=400&amp;amp;tok=3860a8&amp;amp;media=blog:2016:12:04:low_img_20161201_220001.jpg&quot; class=&quot;mediaright&quot; align=&quot;right&quot; loading=&quot;lazy&quot; title=&quot;complete hardware&quot; alt=&quot;complete hardware&quot; width=&quot;400&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
few days ago we had an open-hours in our SW-dev department. since we mostly do algorithmic data processing, embedded system… and do not have hardware platform on-site… it&amp;#039;s really hard to show it in an interesting fashion, for non-technical ppl. i&amp;#039;ve decided to show something connected to a SW development in general, but not directly tided to our system. it was inspired by a though that “SW dev is about putting a spirit (ghost?) into a machine”. :)
&lt;/p&gt;

&lt;p&gt;
i though – how about a simple project with a camera, to catch and track faces, using servo motors? when some1 approach it, system catches a focus and move along a person&amp;#039;s face movements, to keep her at focus?
&lt;/p&gt;

&lt;p&gt;
…and so – during a course of 3 evenings &lt;a href=&quot;https://github.com/el-bart/hello_human&quot; class=&quot;urlextern&quot; title=&quot;https://github.com/el-bart/hello_human&quot; rel=&quot;ugc nofollow&quot;&gt;hello human&lt;/a&gt; project was brought from a rough idea to a real life machine. :)
&lt;/p&gt;

&lt;p&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2016%3A12%3A04%3A2016-12-04_-_hello_human&amp;amp;media=blog:2016:12:04:low_img_20161130_192619.jpg&quot; class=&quot;media&quot; title=&quot;blog:2016:12:04:low_img_20161130_192619.jpg&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=300&amp;amp;tok=3d91b7&amp;amp;media=blog:2016:12:04:low_img_20161130_192619.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; alt=&quot;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2016%3A12%3A04%3A2016-12-04_-_hello_human&amp;amp;media=blog:2016:12:04:low_img_20161201_210815.jpg&quot; class=&quot;media&quot; title=&quot;blog:2016:12:04:low_img_20161201_210815.jpg&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=300&amp;amp;tok=45405d&amp;amp;media=blog:2016:12:04:low_img_20161201_210815.jpg&quot; class=&quot;media&quot; loading=&quot;lazy&quot; alt=&quot;&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;
&lt;/p&gt;

&lt;p&gt;
project is interesting since, because though it contains software, electronics and 3d-printed model… it was almost solely about programming! just think:
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; main logic was implemented in &lt;a href=&quot;https://en.wikipedia.org/wiki/Python (programming language)&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/Python (programming language)&quot;&gt;python&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; image processing is done with &lt;a href=&quot;https://en.wikipedia.org/wiki/OpenCV&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/OpenCV&quot;&gt;OpenCV&lt;/a&gt; (i.e. &lt;a href=&quot;https://en.wikipedia.org/wiki/C (programming language)&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/C (programming language)&quot;&gt;C&lt;/a&gt;)&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; servo motors controller is implemented in &lt;a href=&quot;https://en.wikipedia.org/wiki/C++&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/C++&quot;&gt;C++&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; all the 3d-printer are programmed in &lt;a href=&quot;https://en.wikipedia.org/wiki/OpenSCAD&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/OpenSCAD&quot;&gt;OpenSCAD&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;a href=&quot;https://en.wikipedia.org/wiki/Printed circuit board&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/Printed circuit board&quot;&gt;PCB&lt;/a&gt; is done in &lt;a href=&quot;https://en.wikipedia.org/wiki/EAGLE (program)&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/EAGLE (program)&quot;&gt;Eagle&lt;/a&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
the only thing on the list, that is not about programming is PCB-design SW. all the rest is pure programming. now isn&amp;#039;t that cute? :)
&lt;/p&gt;

&lt;p&gt;
it turned out that it drawn quite a bit of attention. ppl asked about how it works, how much would it cost to build such a thing at home (btw: there&amp;#039;s actually only about 30&lt;a href=&quot;https://en.wikipedia.org/wiki/EUR&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/EUR&quot;&gt;EUR&lt;/a&gt; worth of parts in it!)… and there was quite some laughter, when vision system decided that cat drawing on one of the girls&amp;#039; dress is actually a face, and followed it for a long time! ;)
&lt;/p&gt;

&lt;p&gt;
some practical applications? well – aside from keeping ppl interested in SW development and modern technologies… not that many. ;) it could be used for monitoring, video conferencing (ever got annoyed about camera not following your movements in the room, while chatting?)… or an extended version, that would detect/monitor who&amp;#039;s speaking, and focus on that person (useful for video-conferencing, when there are many ppl in the room). who knows – maybe one day, when i&amp;#039;ll get bored with whatever i&amp;#039;m doing at that particular moment? ;)
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:22 +0000</pubDate>
        </item>
        <item>
            <title>2016-12-04_-_multi-disk_encryption</title>
            <link>https://baszerr.eu/doku.php?id=blog:2016:12:04:2016-12-04_-_multi-disk_encryption</link>
            <description>
&lt;h1 class=&quot;sectionedit1&quot; id=&quot;multi-disk_encryption&quot;&gt;2016-12-04 - multi-disk encryption&lt;/h1&gt;
&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2016%3A12%3A04%3A2016-12-04_-_multi-disk_encryption&amp;amp;media=blog:2016:12:04:ssd.jpg&quot; class=&quot;media&quot; title=&quot;blog:2016:12:04:ssd.jpg&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=350&amp;amp;tok=fe3bb4&amp;amp;media=blog:2016:12:04:ssd.jpg&quot; class=&quot;mediaright&quot; align=&quot;right&quot; loading=&quot;lazy&quot; title=&quot;SSD&quot; alt=&quot;SSD&quot; width=&quot;350&quot; /&gt;&lt;/a&gt;
&lt;a href=&quot;https://baszerr.eu/lib/exe/detail.php?id=blog%3A2016%3A12%3A04%3A2016-12-04_-_multi-disk_encryption&amp;amp;media=blog:2016:12:04:hdd.jpg&quot; class=&quot;media&quot; title=&quot;blog:2016:12:04:hdd.jpg&quot;&gt;&lt;img src=&quot;https://baszerr.eu/lib/exe/fetch.php?w=300&amp;amp;tok=20e5c8&amp;amp;media=blog:2016:12:04:hdd.jpg&quot; class=&quot;mediaright&quot; align=&quot;right&quot; loading=&quot;lazy&quot; title=&quot;HDD&quot; alt=&quot;HDD&quot; width=&quot;300&quot; /&gt;&lt;/a&gt;
some time ago i had an issue – i started to use (&lt;a href=&quot;https://en.wikipedia.org/wiki/RAID&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/RAID&quot;&gt;RAIDed&lt;/a&gt;) &lt;a href=&quot;https://en.wikipedia.org/wiki/SSD&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/SSD&quot;&gt;SSD&lt;/a&gt; disks for main system and (also &lt;a href=&quot;https://en.wikipedia.org/wiki/RAID&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/RAID&quot;&gt;RAIDed&lt;/a&gt;) &lt;a href=&quot;https://en.wikipedia.org/wiki/Hard disk drive&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/Hard disk drive&quot;&gt;HDD&lt;/a&gt; disks for storage of larger pieces of data. of course both encrypted. and that&amp;#039;s the tricky place – entering password for both disks at boot time!
&lt;/p&gt;

&lt;p&gt;
if i already have main disk encrypted, cannot i just read password off it, to automatically decrypt the second one? it turns out you can. :)
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;dd&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;if&lt;/span&gt;=&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;dev&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;random &lt;span class=&quot;re2&quot;&gt;of&lt;/span&gt;=&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;path&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;to&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;key.bin &lt;span class=&quot;re2&quot;&gt;bs&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;4096&lt;/span&gt; &lt;span class=&quot;re2&quot;&gt;count&lt;/span&gt;=&lt;span class=&quot;nu0&quot;&gt;1&lt;/span&gt;
cryptsetup luksFormat &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;dev&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;my-disk &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;path&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;to&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;key.bin&lt;/pre&gt;

&lt;p&gt;
now the last part is to add a proper entry to &lt;em&gt;crypttab&lt;/em&gt;, so that disk automatically gets decrypted during boot (shortly after “/” gets decrypted). add entry like this, to the /etc/crypttab file:
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt;my_crypt_dev_2 UUID=xxx-xxx-xxx-xxxx /path/to/key.bin luks&lt;/pre&gt;

&lt;p&gt;
you can check &lt;a href=&quot;https://en.wikipedia.org/wiki/UUID&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/UUID&quot;&gt;UUID&lt;/a&gt; for oyur disks, by checking out links in &lt;a href=&quot;https://en.wikipedia.org/wiki/udev&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/udev&quot;&gt;udev&lt;/a&gt;:
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;&lt;span class=&quot;kw2&quot;&gt;ls&lt;/span&gt; &lt;span class=&quot;re5&quot;&gt;-l&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;dev&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;disk&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;by-uuid&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;&lt;/pre&gt;

&lt;p&gt;
note that eve though you can now automatically decrypt 2nd disk with off-disk password file, it&amp;#039;s still good idea to assign password to it (eg. in case you loose access to the password-file). fortunately &lt;a href=&quot;https://en.wikipedia.org/wiki/LUKS&quot; class=&quot;interwiki iw_wp&quot; title=&quot;https://en.wikipedia.org/wiki/LUKS&quot;&gt;LUKS&lt;/a&gt; offers multiple passwords out of the box, so this is not a problem. :)
&lt;/p&gt;
&lt;pre class=&quot;code bash&quot;&gt;cryptsetup luksAddKey &lt;span class=&quot;re5&quot;&gt;--key-file&lt;/span&gt; &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;path&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;to&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;key.bin &lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;dev&lt;span class=&quot;sy0&quot;&gt;/&lt;/span&gt;my-disk&lt;/pre&gt;

&lt;p&gt;
happy encrypting! :)
&lt;/p&gt;

&lt;/div&gt;
</description>
            <author>anonymous@undisclosed.example.com (Anonymous)</author>
            <pubDate>Tue, 15 Jun 2021 20:09:22 +0000</pubDate>
        </item>
    </channel>
</rss>
