<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
    <channel>
        <title>Linux on Nico Maas</title>
        <link>https://www.nico-maas.de/tags/linux/</link>
        <description>Recent content in Linux on Nico Maas</description>
        <generator>Hugo -- gohugo.io</generator>
        <language>en-us</language>
        <lastBuildDate>Mon, 19 Sep 2022 09:35:01 +0000</lastBuildDate><atom:link href="https://www.nico-maas.de/tags/linux/index.xml" rel="self" type="application/rss+xml" /><item>
            <title>labSentinel 2</title>
            <link>https://www.nico-maas.de/posts/2022-09-19-labsentinel-2/</link>
            <pubDate>Mon, 19 Sep 2022 09:35:01 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2022-09-19-labsentinel-2/</guid>
            <description>&lt;p&gt;About nearly a year ago, I wrote the labSentinel project for my Nvidia Jetson AI Specialist certification. The basic idea of the project is to be able to supervise old Lab Equipment which does not poses any kind of log output or interface other than a graphical user interface, running on an Windows 3.11 / 95 / NT - maybe even XP system.&lt;/p&gt;&#xA;&lt;p&gt;I solved this issue by using a video grabber attached to a Jetson Nano and &amp;ldquo;out-of-band&amp;rdquo; grabbing the screen output of the experiment computer. I then learned good and bad system states via Nvidias Inference tools and finally got the system to report via MQTT as soon as something did go wrong.&lt;/p&gt;</description>
        </item><item>
            <title>WD My Cloud Mirror Gen2 with Debian 11 and Linux Kernel 5.15 LTS</title>
            <link>https://www.nico-maas.de/posts/2022-06-12-wd-my-cloud-mirror-gen2-with-debian-11-and-linux-kernel-5-15-lts/</link>
            <pubDate>Sun, 12 Jun 2022 18:05:32 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2022-06-12-wd-my-cloud-mirror-gen2-with-debian-11-and-linux-kernel-5-15-lts/</guid>
            <description>&lt;h2 id=&#34;intro&#34;&gt;Intro&#xA;&lt;/h2&gt;&lt;p&gt;Since 2017 I have been using an Western Digital My Cloud Mirror Gen 2 which I bought at Amazons Black Friday (or similar) - because the included 2x 8 TB WD Red were even cheaper with the NAS than standalone. Using the NAS had been quite ok, especially the included Docker Engine and Plex Support were a nice to have, &lt;a class=&#34;link&#34; href=&#34;https://www.techspot.com/news/72612-western-digital-cloud-drives-have-built-backdoor.html&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;the included Backdoor&lt;/a&gt; in older Versions - not so much. Recently WD had their new &amp;ldquo;My Cloud OS 5&amp;rdquo; replace the old My Cloud OS 3 - and made things worse for a lot of people. As I don&amp;rsquo;t want any more surprises - and more control over my hardware - I decided to finally go down the road and get Debian 11 with an LTS (5.15) Kernel running on the hardware. This is how it went.&lt;/p&gt;</description>
        </item><item>
            <title>fail2ban Cheat Sheet</title>
            <link>https://www.nico-maas.de/posts/2021-02-17-fail2ban-cheat-sheet/</link>
            <pubDate>Wed, 17 Feb 2021 10:22:00 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2021-02-17-fail2ban-cheat-sheet/</guid>
            <description>&lt;p&gt;Just the commands I always need to look up, because I forgot again&amp;hellip;&lt;/p&gt;&#xA;&lt;ul&gt;&#xA;&lt;li&gt;Overview over fail2ban status and jails&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;fail2ban-client status&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;See which e.g. IPs are banned for sshd jail&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;fail2ban-client status sshd&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Unban an IP from sshd jail&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;fail2ban-client set sshd unbanip IPADDRESSHERE&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;See which systems are actually banned&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;zgrep &amp;#39;Ban&amp;#39; /var/log/fail2ban.log*&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
        </item><item>
            <title>Bash for sending and receiving raw IP packets</title>
            <link>https://www.nico-maas.de/posts/2020-04-03-bash-for-sending-and-receiving-raw-ip-packets/</link>
            <pubDate>Fri, 03 Apr 2020 07:35:12 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2020-04-03-bash-for-sending-and-receiving-raw-ip-packets/</guid>
            <description>&lt;p&gt;I stumbled across this feature during my bachelor studies:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;echo &amp;#34;Hello World&amp;#34; &amp;gt; /dev/tcp/127.0.0.1/5000&#xD;&#xA;echo &amp;#34;Hello World&amp;#34; &amp;gt; /dev/udp/127.0.0.1/5000&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;You need to be root (obviously) and its supported in bash environment - but not on all systems. You can also cat on the ports and use dns adresses. Its neat to just get a byte out :). And if you need something more sophisicated, be sure to use the good old netcat (&lt;code&gt;nc&lt;/code&gt;).&lt;/p&gt;</description>
        </item><item>
            <title>MacType - A better font rasterizer for Windows</title>
            <link>https://www.nico-maas.de/posts/2017-02-13-mactype-a-better-font-rasterizer-for-windows/</link>
            <pubDate>Mon, 13 Feb 2017 13:00:24 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2017-02-13-mactype-a-better-font-rasterizer-for-windows/</guid>
            <description>&lt;p&gt;If you&amp;rsquo;re tired of the ClearType Fonts in Windows and long for a more Unix/Mac Style Font Rasterizer, you most probably have heard GDI++ and GDIPP. And as both projects are somehow dead (for 6+ years), someone started a new one, called MacType.&lt;/p&gt;&#xA;&lt;p&gt;How to install the latest version?&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;Download and Install MacType (chose English!): http://www.mactype.net/&lt;/li&gt;&#xA;&lt;li&gt;Download the latest patch: http://silight.hatenablog.jp/entry/MacTypePatch currently the latest version is MacTypePatch_1.19.zip (2016/11/17).&lt;/li&gt;&#xA;&lt;li&gt;Unpack the patch and copy EasyHK32.dll, EasyHK64.dll and UserParams.ini (from win8.1_or_later folder) to the C:\Program Files\MacType folder&lt;/li&gt;&#xA;&lt;li&gt;Copy EasyHK32.dll, EasyHK64.dll to C:\Windows\System32&lt;/li&gt;&#xA;&lt;li&gt;Start MacType as Tray Version and chose an default settings, i.e. FT Opt&lt;/li&gt;&#xA;&lt;/ol&gt;&#xA;&lt;p&gt;Here you can see an example - left without, right with MacType:&lt;/p&gt;</description>
        </item><item>
            <title>Gitkraken - your next Git Client</title>
            <link>https://www.nico-maas.de/posts/2016-12-24-gitkraken-your-next-git-client/</link>
            <pubDate>Sat, 24 Dec 2016 15:00:28 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2016-12-24-gitkraken-your-next-git-client/</guid>
            <description>&lt;p&gt;If you&amp;rsquo;re in the NetOps/DevOps Teams, chances are high you need to develop code and use git. Well, on Windows Clients, I tended to use Atlassians Source Tree - however, that client became more and more buggy and unstable - unusable to say. Especially if I had to do an really big merge of my main to my deploy tag - it tended to crash most of the time.&lt;/p&gt;&#xA;&lt;p&gt;So, without further ado: Enter &lt;a class=&#34;link&#34; href=&#34;https://www.gitkraken.com/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;Gitkranken&lt;/a&gt;. A nice, free, good looking and fast git client. Without dependencies.&lt;/p&gt;</description>
        </item><item>
            <title>[Linux] Delete old SSH Keys and recreate them</title>
            <link>https://www.nico-maas.de/posts/2015-03-14-linux-delete-old-ssh-keys-and-recreate-them/</link>
            <pubDate>Sat, 14 Mar 2015 13:07:08 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2015-03-14-linux-delete-old-ssh-keys-and-recreate-them/</guid>
            <description>&lt;p&gt;If you are downloading an Linux Image for i.e. Embedded Systems like Raspberry Pi, sometimes, the SSH Keys are still on the system and are not recreated.&lt;br&gt;&#xA;To do that manually, just enter:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo rm /etc/ssh/ssh_host_*&#xD;&#xA;sudo dpkg-reconfigure openssh-server&#xD;&#xA;sudo service ssh restart&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
        </item><item>
            <title>[Linux] Multiplexing Screen</title>
            <link>https://www.nico-maas.de/posts/2011-03-09-linux-multiplexing-screen/</link>
            <pubDate>Wed, 09 Mar 2011 07:40:03 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2011-03-09-linux-multiplexing-screen/</guid>
            <description>&lt;p&gt;And now an nice tip by Darren Kitchen of Hak5!&lt;br&gt;&#xA;( &lt;a class=&#34;link&#34; href=&#34;https://www.hak5.org&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;www.hak5.org&lt;/a&gt; )&lt;/p&gt;&#xA;&lt;p&gt;HakTip: Multiplexing Screen Sessions&lt;/p&gt;&#xA;&lt;p&gt;What’s more wicked than a screen session? Two screen sessions! As we’ve talked about recently the unix command Screen is a great way to maintain bash sessions from multiple SSH clients without losing your work. My favorite shortcut after invoking the &amp;ldquo;screen&amp;rdquo; command is CTRL+a followed by &amp;ldquo;S&amp;rdquo;, which splits the screen horizontally in two. Use CTRL+a then Tab to switch between the views. Debian users get the added sexyness of vertical split by hitting CTRL+a then Pipe.&lt;/p&gt;</description>
        </item><item>
            <title>[Linux] Screen</title>
            <link>https://www.nico-maas.de/posts/2011-02-24-linux-screen/</link>
            <pubDate>Thu, 24 Feb 2011 17:12:50 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2011-02-24-linux-screen/</guid>
            <description>&lt;p&gt;Hello there, this a 5 Minute Tutorial to screen.&lt;br&gt;&#xA;What Screen is?&lt;br&gt;&#xA;Well screen is an old unix / linux terminal programm with which you can create multiple virtual &amp;ldquo;screens&amp;rdquo;.&lt;br&gt;&#xA;You can switch between these screens and also can disconnect from them.&lt;br&gt;&#xA;Especially useful: If you start an daemon within screen and disconnect from it,&lt;br&gt;&#xA;you can reconnect anytime and see what its doing.&lt;br&gt;&#xA;Or you can setup a screen session, detach and close your SSH.&lt;br&gt;&#xA;If you reconnect, it will still be running.&lt;br&gt;&#xA;Oh, and it will be also there and running if your connection drops.&lt;/p&gt;</description>
        </item><item>
            <title>Webconverger - Build your own Internetcafé</title>
            <link>https://www.nico-maas.de/posts/2010-06-22-webconverger-build-your-own-internetcafe/</link>
            <pubDate>Tue, 22 Jun 2010 14:18:32 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2010-06-22-webconverger-build-your-own-internetcafe/</guid>
            <description>&lt;ul&gt;&#xA;&lt;li&gt;Install Debian&lt;/li&gt;&#xA;&lt;li&gt;Add following lines to /etc/apt/sources.list :&lt;br&gt;&#xA;deb &lt;a class=&#34;link&#34; href=&#34;http://live.debian.net/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;http://live.debian.net/&lt;/a&gt; sid-snapshots main contrib non-free&#xA;deb-src &lt;a class=&#34;link&#34; href=&#34;http://live.debian.net/&#34;  target=&#34;_blank&#34; rel=&#34;noopener&#34;&#xA;    &gt;http://live.debian.net/&lt;/a&gt; sid-snapshots main contrib non-free&lt;/li&gt;&#xA;&lt;li&gt;apt-get install live-helper git git-core svn sudo&lt;/li&gt;&#xA;&lt;li&gt;mkdir /home/webconverger&lt;/li&gt;&#xA;&lt;li&gt;cd /home/webconverger&lt;/li&gt;&#xA;&lt;li&gt;git clone git://git.debian.org/git/debian-live/config-webc.git&lt;/li&gt;&#xA;&lt;li&gt;modify /home/webconverger/config-webc/webconverger/auto/config&lt;br&gt;&#xA;( i.e. change&lt;br&gt;&#xA;homepage=http://portal.webconverger.com to the one you want,&lt;br&gt;&#xA;add Kioskrest every 10 Minutes after last use:&lt;br&gt;&#xA;kioskresetstation=10&lt;br&gt;&#xA;change bootlogo&lt;br&gt;&#xA;change website to the one you want and add an bg.png to the account,&lt;br&gt;&#xA;otherwise add noxbg to the boot to make the background blank )&lt;/li&gt;&#xA;&lt;li&gt;cd /home/webconverger/config-webc/webconverger&lt;/li&gt;&#xA;&lt;li&gt;lh config&lt;/li&gt;&#xA;&lt;li&gt;lh build&lt;/li&gt;&#xA;&lt;li&gt;/home/webconverger/config-webc/webconverger/binary-hybrid.iso&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;p&gt;Clean to rebuild:&lt;/p&gt;</description>
        </item><item>
            <title>Shrink VMware Image Files on Linux Appliances</title>
            <link>https://www.nico-maas.de/posts/2009-07-16-shrink-vmware-image-files-on-linux-appliances/</link>
            <pubDate>Thu, 16 Jul 2009 13:35:19 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2009-07-16-shrink-vmware-image-files-on-linux-appliances/</guid>
            <description>&lt;p&gt;Works only with dynamic HDDs!&lt;/p&gt;&#xA;&lt;ol&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Backup!&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Remove old / unused Packages&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Remove downloaded Packages: sudo apt-get clean, Remove only old downloaded Packages: sudo apt-get autoclean&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;&amp;ldquo;ZeroOut&amp;rdquo; unused Space: cat /dev/zero &amp;gt; zero.dat ; sync ; sleep 1 ; sync ; rm zero.dat&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Under GUI: &amp;ldquo;sudo vmware-toolbox&amp;rdquo; and use shrink on &amp;ldquo;/&amp;rdquo;&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;li&gt;&#xA;&lt;p&gt;Under VIClient: Defrag&lt;/p&gt;&#xA;&lt;/li&gt;&#xA;&lt;/ol&gt;</description>
        </item><item>
            <title>Get Ethernetcard working again in Linux under ESXi</title>
            <link>https://www.nico-maas.de/posts/2009-07-16-get-ethernetcard-working-again-in-linux-under-esxi/</link>
            <pubDate>Thu, 16 Jul 2009 13:25:10 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2009-07-16-get-ethernetcard-working-again-in-linux-under-esxi/</guid>
            <description>&lt;p&gt;After installing Ubuntu Server on Vmware ESXi, I couldn&amp;rsquo;t find a NIC:&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;sudo /etc/init.d/networking restart&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;ul&gt;&#xA;&lt;li&gt;Reconfiguring network interfaces&amp;hellip;&lt;/li&gt;&#xA;&lt;/ul&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;eth0: ERROR while getting interface flags: No such device  &#xA;SIOCSIFADDR: No such device  &#xA;eth0: ERROR while getting interface flags: No such device  &#xA;SIOCSIFNETMASK: No such device  &#xA;SIOCSIFBRDADDR: No such device  &#xA;eth0: ERROR while getting interface flags: No such device  &#xA;eth0: ERROR while getting interface flags: No such device  &#xA;Failed to bring up eth0.&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;Problem is that the ethernet MAC addresses are cached.&lt;/p&gt;</description>
        </item><item>
            <title>Install Vmware Tools on Linux</title>
            <link>https://www.nico-maas.de/posts/2009-07-16-install-vmware-tools-on-linux/</link>
            <pubDate>Thu, 16 Jul 2009 13:21:25 +0000</pubDate>
            <guid>https://www.nico-maas.de/posts/2009-07-16-install-vmware-tools-on-linux/</guid>
            <description>&lt;p&gt;&lt;strong&gt;Under Debian necessary:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;apt-get install autoconf automake make psmisc gcc  &#xA;apt-get install linux-headers-`uname -r` build-essential&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Short:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;tar -xzvf VMwareTools-######.tar.gz  &#xA;cd vmware-tools-distrib  &#xA;./vmware-install.pl  &#xA;vmware-tools-config.pl&#xA;&lt;/code&gt;&lt;/pre&gt;&lt;p&gt;&lt;strong&gt;Long:&lt;/strong&gt;&lt;/p&gt;&#xA;&lt;pre tabindex=&#34;0&#34;&gt;&lt;code&gt;Viclient, Connect to VM  &#xA;Menu &amp;#34;VM/Install VMware Tools&amp;#34;  &#xA;Tools are mounted to Cdrom  &#xA;mkdir /mnt/cdrom  &#xA;mount /dev/cdrom /mnt/cdrom  &#xA;cd /mnt/cdrom  &#xA;tar zxvf VMware-Tools-xxxxxx.tar.gz -C /opt/  &#xA;cd /opt/vmware-tools-distrib  &#xA;./vmware-install.pl&#xA;&lt;/code&gt;&lt;/pre&gt;</description>
        </item></channel>
</rss>
