<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>System Administration on bytebang</title><link>https://bytebang.at/categories/system-administration/</link><description>Recent content in System Administration on bytebang</description><generator>Hugo</generator><language>de-AT</language><lastBuildDate>Fri, 22 Jan 2021 09:58:43 +0100</lastBuildDate><atom:link href="https://bytebang.at/categories/system-administration/index.xml" rel="self" type="application/rss+xml"/><item><title>Streaming wireless weatherstationdata via MQTT</title><link>https://bytebang.at/blog/streaming-wireless-weatherstationdata-via-mqtt/</link><pubDate>Tue, 29 Dec 2020 09:43:56 +0100</pubDate><guid>https://bytebang.at/blog/streaming-wireless-weatherstationdata-via-mqtt/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;A lot of 433 MHz based weather stations are sending their data to their paired receiver. But how would you receive all the stations within your vincity and stream the data into the internet ?&lt;/p&gt;&#10;&lt;h1 id="the-solution"&gt;The Solution&lt;/h1&gt;&#10;&lt;p&gt;rtl_433 is a tool which takes samples from an attached RTL-SDR stick and decodes them. The name already suggests that it will operate in the 433 MHz frequency area where a lot of weatherstations are boradcasting their values.&lt;/p&gt;</description></item><item><title>Stream your web/surveillance cam to YouTube</title><link>https://bytebang.at/blog/stream-your-web-surveillance-cam-to-youtube/</link><pubDate>Thu, 26 Nov 2020 12:01:10 +0100</pubDate><guid>https://bytebang.at/blog/stream-your-web-surveillance-cam-to-youtube/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;If you have a cool webcam which should be streamed to youtube then you have a lot of options how to reach this goal. This article shows how to stream a webcam (or any other cam which offers a RTSP Stream) directly to youtube.&lt;/p&gt;&#10;&lt;h1 id="the-solution"&gt;The Solution&lt;/h1&gt;&#10;&lt;p&gt;First: &lt;a href="https://support.google.com/youtube/answer/2474026?co=GENIE.Platform%3DDesktop&amp;amp;hl=en&amp;amp;oco=0" rel="__blank"&gt;Enable streaming in youtube&lt;/a&gt;. This will take up to 24 hours ! After this period you will be able to send a network stream to youtube which boradcasts it for you. Youtube offers a lot of help to get you started.&lt;/p&gt;</description></item><item><title>Manage your passwords with pass</title><link>https://bytebang.at/blog/manage-your-passwords-with-pass/</link><pubDate>Wed, 14 Oct 2020 18:01:03 +0200</pubDate><guid>https://bytebang.at/blog/manage-your-passwords-with-pass/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Everybody knows that passwords should have a certain amount of characters, numbers and special signs in it - which makes them hard to remember.&lt;/p&gt;&#10;&lt;p&gt;If you have a lot of different accounts then it is a good idea to store your passwords somewhere. People are coming up with different solutions to this problem&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Sticky note under the keyboard -&amp;gt; not a really good idea&lt;/li&gt;&#10;&lt;li&gt;Excel Files -&amp;gt; Also not good, because these can be scanned by the windows search routine&lt;/li&gt;&#10;&lt;li&gt;Password managers -&amp;gt; GOOD IDEA&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Within the Windows world, I would recomment KeePass as &lt;a href="https://digital.com/password-managers/" rel="__blank"&gt;password manager&lt;/a&gt;. It is secure, fast and easy to use &amp;hellip; but what tool should the plain linux user use ?&lt;/p&gt;</description></item><item><title>Reverse backup your Linux machine with a Synology NAS</title><link>https://bytebang.at/blog/reverse-backup-your-linux-machine-with-a-synology-nas/</link><pubDate>Fri, 11 Sep 2020 21:05:52 +0200</pubDate><guid>https://bytebang.at/blog/reverse-backup-your-linux-machine-with-a-synology-nas/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I think we don&amp;rsquo;t need to discuss that backups are a very convenient mechanism to restore accidentally deleted files or to recover your business from a malware / hacking attack.&lt;/p&gt;&#10;&lt;p&gt;A lot of companies (and also unaware sysadmins) are doing their backups with some kind of &amp;ldquo;&lt;em&gt;Use some local rsync / robocopy script to copy all data to another drive / location&lt;/em&gt;&amp;rdquo; strategy.&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Is this bad ? -&amp;gt; No! &amp;hellip; you have a backup if you need one.&lt;/li&gt;&#10;&lt;li&gt;Is it good ? -&amp;gt; Well &amp;hellip; it depends of how you do your backup in detail.&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;Imagine the following situation: You have a PC which is backed up by the previous mentioned strategy. All your backups are running regularly and then suddenly a ransomware comes along which tries to encrypt all your data. You might end up with an fully encrypted machine and also an encrypted backup - which renders it completely useless.&lt;/p&gt;</description></item><item><title>Stream public IPTV channels with TvHeadend</title><link>https://bytebang.at/blog/stream-public-iptv-channels-with-tvheadend/</link><pubDate>Wed, 05 Aug 2020 15:22:31 +0200</pubDate><guid>https://bytebang.at/blog/stream-public-iptv-channels-with-tvheadend/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I love to watch IP TV channels - and so do all my other flat mates. If only one person is streaming at a time then everything is fine, if multiple persons want to watch the same channel at the same time then the internet connection can suffer a bit.&lt;/p&gt;&#10;&lt;p&gt;Since I have a working Setup with &lt;a href="https://bytebang.at/blog/iptv-with-a-synology-ds713/"&gt;TvHeadend on a Synology &lt;/a&gt;I wanted to integrate public available IPTV Channels into this solution. So every client can connect once to my TvHeadend Box, and the box connects one to the requested server(s).&lt;/p&gt;</description></item><item><title>Delete all emails in mutt</title><link>https://bytebang.at/blog/delete-all-emails-in-mutt/</link><pubDate>Sat, 02 May 2020 10:56:10 +0200</pubDate><guid>https://bytebang.at/blog/delete-all-emails-in-mutt/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I am running several Linux servers and thereon are a few &lt;a href="https://wiki.ubuntuusers.de/Cron/"&gt;cron&lt;/a&gt; jobs. I like to configure these cornjobs to send me an email with the result as soon as they are finished. (Which can be done by prepending a &lt;code&gt;MAILTO=“recipient@adress.tld“&lt;/code&gt; in the crontab)&lt;/p&gt;&#10;&lt;p&gt;However, if there are jobs which are running frequently then you may get a lot of emails in your local inbox. Since i am using &lt;a href="http://www.mutt.org/"&gt;mutt&lt;/a&gt; (a local command line email client) for checking my mails.&lt;/p&gt;</description></item><item><title>Forward RDP Connections through a Linux firewall</title><link>https://bytebang.at/blog/forward-rdp-connections-through-a-linux-firewall/</link><pubDate>Tue, 07 Apr 2020 09:59:19 +0200</pubDate><guid>https://bytebang.at/blog/forward-rdp-connections-through-a-linux-firewall/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;When it comes to online learning some companies have it easier than others.While some can do this via plain PowerPoint Karaoke, others have to provide a complete infrastructure with different servers, services, specialized/expensive software packages and so on. Usually this is done via a separated learning environment (like a training-room within the companies facilities)&lt;/p&gt;&#10;&lt;p&gt;But if the trainees can not come to the training-labs (eg. because of COVID-19 isolation) then you have to bring this environment to them. voice and slides (or the screen of the presenter) can easily be achieved via&lt;/p&gt;</description></item><item><title>Getting Mikrotik winbox fonts right when emulated in wine</title><link>https://bytebang.at/blog/getting-mikrotik-winbox-fonts-right-when-emulated-in-wine/</link><pubDate>Tue, 24 Mar 2020 11:34:37 +0100</pubDate><guid>https://bytebang.at/blog/getting-mikrotik-winbox-fonts-right-when-emulated-in-wine/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;&lt;a href="https://mikrotik.com/"&gt;Mikrotik&lt;/a&gt; sells very powerful &lt;a href="https://mikrotik.com/products"&gt;hardware&lt;/a&gt; for really low prices. In order to configure the hardware you can either use &lt;a href="https://wiki.mikrotik.com/wiki/Manual:Webfig"&gt;NetFig&lt;/a&gt; (the web based configuration utility) or you can run &lt;a href="https://mikrotik.com/download"&gt;winbox&lt;/a&gt;.&lt;/p&gt;&#10;&lt;p&gt;Winbox runs fine under MS-Windows environments, and for Linux geeks as me it can also be run within the &lt;a href="https://www.winehq.org/"&gt;wine environment&lt;/a&gt; (which is &amp;hellip; as the name says &amp;hellip; not an emulator).&lt;/p&gt;&#10;&lt;p&gt;Depending on what wine packages you have installed on your machine, you will encounter an imperfection if you are using the Terminal within winbox: The font is a &lt;a href="https://en.wikipedia.org/wiki/Monospaced_font"&gt;proportional font&lt;/a&gt; - which is impractical if you want to render ASCII art tables.&lt;/p&gt;</description></item><item><title>Mounting a dd image</title><link>https://bytebang.at/blog/mounting-a-dd-image/</link><pubDate>Thu, 30 Jan 2020 21:19:03 +0100</pubDate><guid>https://bytebang.at/blog/mounting-a-dd-image/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Recently I had to re-setup my laptop because of *reasons*. However, I am used to backup it regularly by creating a &lt;a href="https://www.cyberciti.biz/faq/unix-linux-dd-create-make-disk-image-commands/"&gt;full-disk image with dd&lt;/a&gt; which is stored on a separate hard disk.&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;p&gt;dd is a tool which allows you to create bit-wise copies of disks or partitions into files and vice versa. The first few hundred bytes of a full-disk image contain information about the partitions contained on the disk.&lt;/p&gt;&#10;&lt;/blockquote&gt;</description></item><item><title>How to connect your Davis Vantage 2 to the Internet</title><link>https://bytebang.at/blog/how-to-connect-your-davis-vantage-2-to-the-internet/</link><pubDate>Sat, 30 Nov 2019 14:03:54 +0100</pubDate><guid>https://bytebang.at/blog/how-to-connect-your-davis-vantage-2-to-the-internet/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I want to connect a &lt;a href="https://www.amazon.de/Davis-Vantage-Pro-2-Basic/dp/B00CI412NK"&gt;&lt;em&gt;Davis Vintage 2&lt;/em&gt; weatherstation&lt;/a&gt; to the internet. The problem is, that the software that is usually available is pretty pricy - so i went for my own solution.&lt;/p&gt;&#10;&lt;p&gt;→ &lt;a href="https://images-na.ssl-images-amazon.com/images/I/51rOtyfDWBL.jpg"&gt;Photo of the Davis Vantage Pro 2 (external image, amazon.com)&lt;/a&gt;&lt;/p&gt;&#10;&lt;h1 id="the-solution"&gt;The Solution&lt;/h1&gt;&#10;&lt;p&gt;I was already using the &lt;a href="https://wiki.meteohub.de/Main_Page"&gt;Meteohub&lt;/a&gt; software package. I put a lot of effort to create all the graphs that i wanted and so I wanted to stick with it - so I had to find a way to make this software thing that it somehow has a RS232 connection to the station.&lt;/p&gt;</description></item><item><title>Turn Mikrotik CAP interfaces on and off by script</title><link>https://bytebang.at/blog/turn-mikrotik-cap-interfaces-on-and-off-by-script/</link><pubDate>Mon, 29 Apr 2019 16:04:17 +0200</pubDate><guid>https://bytebang.at/blog/turn-mikrotik-cap-interfaces-on-and-off-by-script/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I am running a big Mikrotik based WiFi installation where the Guest-Wifi should not always be accessible. One way how to do this is, is to create sub interfaces and to turn them on and of at the controller as you need them.&lt;/p&gt;&#10;&lt;img src="https://bytebang.at/blog/turn-mikrotik-cap-interfaces-on-and-off-by-script/CAPsMAN.png" style="display: block; margin-left: auto; margin-right: auto;;width:100.0%" alt="CAPs MAN" /&gt;&#10;&lt;p&gt;In the image above, we see some of the interfaces which are managed by CAPsMAN. The gues wifi is bound to the interfaces ending with the suffix &lt;code&gt;_gast&lt;/code&gt;&lt;/p&gt;</description></item><item><title>Painless VPN with sshuttle</title><link>https://bytebang.at/blog/painless-vpn-with-sshuttle/</link><pubDate>Thu, 28 Feb 2019 06:23:04 +0100</pubDate><guid>https://bytebang.at/blog/painless-vpn-with-sshuttle/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;If you are in a not very trustworthy network environment (e.g. free internet at the airport) then you may consider to send all your traffic (encrypted) through a VPN to a trusted site.&lt;br&gt;&#10;This usually requires some kind of VPN solution - but setting up a complete VPN can be a time consuming task. Here is a short solution how to redirect all your traffic with one simple command.&lt;/p&gt;</description></item><item><title>Connect to HAMNET with OpenWRT and a VPN</title><link>https://bytebang.at/blog/connect-to-hamnet-with-openwrt-and-a-vpn/</link><pubDate>Sat, 26 Jan 2019 10:43:49 +0100</pubDate><guid>https://bytebang.at/blog/connect-to-hamnet-with-openwrt-and-a-vpn/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I am a fan of ham radio operators &lt;a href="http://wiki.oevsv.at/index.php?title=Kategorie:Digitaler_Backbone"&gt;digital backbone&lt;/a&gt; - the &lt;a href="https://hamnetdb.net/map.cgi"&gt;HamNet&lt;/a&gt;.&lt;/p&gt;&#10;&lt;img src="https://bytebang.at/blog/connect-to-hamnet-with-openwrt-and-a-vpn/hamnet.png" style="display: block; margin-left: auto; margin-right: auto;;width:65.0%" alt="Hamnet" /&gt;&#10;&lt;p&gt;I wanted to be able to use it from my &amp;rsquo;normal&amp;rsquo; WiFi, with every device in my network. One way would be to set up a user access with a transceiver (e.g. a &lt;a href="https://www.ui.com/airmax/bulletm/"&gt;Ubuquity Bullet&lt;/a&gt; M2 HP) which is able to connect to the network and a decent antenna - but mine is currently used in another project. So i had to find another way how to do it.&lt;/p&gt;</description></item><item><title>TFTP boot with OpenWRT and a Synology NAS as storage</title><link>https://bytebang.at/blog/tftp-boot-with-openwrt-and-a-synology-nas-as-storage/</link><pubDate>Sat, 29 Dec 2018 20:58:57 +0100</pubDate><guid>https://bytebang.at/blog/tftp-boot-with-openwrt-and-a-synology-nas-as-storage/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;From time to time I have to troubleshoot computers for friends or customers. Therefore I am using a lot of different live systems which can be booted via USB or from a DVD drive. I do not want to burn a DVD for every new release, and I also think that it is unhandy to &lt;a href="https://www.howtogeek.com/191054/how-to-create-bootable-usb-drives-and-sd-cards-for-every-operating-system/"&gt;create a bootable USB stick&lt;/a&gt; with every software I need.&lt;/p&gt;&#10;&lt;p&gt;Life would be so much easier if I could just save the image of a DVD onto my NAS and then be able to boot it via the network.&lt;/p&gt;</description></item><item><title>Porting LuaRTOS to the TTGO LoRa32 Board</title><link>https://bytebang.at/blog/porting-luartos-to-the-ttgo-lora32-board/</link><pubDate>Sun, 14 Oct 2018 18:34:27 +0200</pubDate><guid>https://bytebang.at/blog/porting-luartos-to-the-ttgo-lora32-board/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I have bought two cheap &lt;a href="https://www.banggood.com/2Pcs-Wemos-TTGO-LORA32-868915Mhz-ESP32-LoRa-OLED-0_96-Inch-Blue-Display-p-1239769.html"&gt;ESP32 based IoT development boards&lt;/a&gt; for around 30$, because the specs looked interesting:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;ESP32 based with 3D- wifi antenna&lt;/li&gt;&#10;&lt;li&gt;128x64 pixel OLED display&lt;/li&gt;&#10;&lt;li&gt;LoRa Modem&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;This hardware has the potential to be a very versatile IoT prototyping (and even production) platform, but there was one drawback: You have to program it in the Arduino IDE. This means: You can do almost anything with it, but whenever you want to change something in the software then you have to recompile and upload everything.&lt;/p&gt;</description></item><item><title>Get rid of selfsigned certificate warnings in Ubuntu</title><link>https://bytebang.at/blog/get-rid-of-selfsigned-certificate-warnings-in-ubuntu/</link><pubDate>Fri, 14 Sep 2018 12:34:27 +0200</pubDate><guid>https://bytebang.at/blog/get-rid-of-selfsigned-certificate-warnings-in-ubuntu/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;If I do some tele-work then have to access my files via a WebDAV server. This approach works pretty well - but there is one thing that annoys me: Whenever I am connecting to the server then this message appears:&lt;/p&gt;&#10;&lt;img src="https://bytebang.at/blog/get-rid-of-selfsigned-certificate-warnings-in-ubuntu/certificate_warning.png" style="display: block; margin-left: auto; margin-right: auto;" alt="Certificate warning" /&gt;&#10;&lt;p&gt;The cause of this is that the (web-)server which sends the data towards me uses a self-signed certificate to secure the https connection. Since I do not control this server I had to find another solution than &lt;a href="https://bytebang.at/blog/free-ssl-certificate-for-lighttpd-with-letsencrypt/"&gt;populating a letsencrypt certificate&lt;/a&gt; on it.&lt;/p&gt;</description></item><item><title>Find public IP address for OpenWRT via Script</title><link>https://bytebang.at/blog/find-public-ip-address-for-openwrt-via-script/</link><pubDate>Fri, 01 Jun 2018 23:23:33 +0200</pubDate><guid>https://bytebang.at/blog/find-public-ip-address-for-openwrt-via-script/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I was running a public server running behind my OpwnWRT firewall which was directly connected to the Internet via an LTE modem. The public IP Address of the OpenWRT Box was periodically announced via NOIP.com and so I was able to connect to it from wherever i wanted.&lt;/p&gt;&#10;&lt;p&gt;&amp;mdash;&amp;ndash;LTE&amp;mdash;-&amp;gt; OpenWRT(Public IP: 123.45.12.34) &amp;mdash;-&amp;gt; DMZ&lt;/p&gt;&#10;&lt;p&gt;Recently I switched my Internet provider and i got a new modem. This modem is now connected to the OpenWRT Box and acts as gateway to the Internet. It assigns a private IP Address to the WAN Port of the OpenWrt. &lt;/p&gt;</description></item><item><title>Find all manually installed packages within ubuntu</title><link>https://bytebang.at/blog/find-all-manually-installed-packages-within-ubuntu/</link><pubDate>Tue, 20 Feb 2018 08:13:03 +0100</pubDate><guid>https://bytebang.at/blog/find-all-manually-installed-packages-within-ubuntu/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;If you plan to migrate your Ubuntu machine from one hardware to another then you can follow the following approach:&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;Perform a complete backup your home directory&lt;/li&gt;&#10;&lt;li&gt;Extract the list of manually installed packages&lt;/li&gt;&#10;&lt;li&gt;Set up a new vanilla Ubuntu on the same or another hardware&lt;/li&gt;&#10;&lt;li&gt;Restore the contents of your home directory&lt;/li&gt;&#10;&lt;li&gt;Re-install all missing packages&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;Now - where is the problem ? &amp;hellip; If you don&amp;rsquo;t have a list of your previously installed packages, then it is not possible to use the new box as you have used the old ones - just because some of the programs that you are used to are missing.&lt;/p&gt;</description></item><item><title>How to migrate a vServer from netcup to another instance</title><link>https://bytebang.at/blog/how-to-migrate-a-vserver-from-netcup-to-another-instance/</link><pubDate>Tue, 02 Jan 2018 14:24:14 +0100</pubDate><guid>https://bytebang.at/blog/how-to-migrate-a-vserver-from-netcup-to-another-instance/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Well - I am a huge fan of visualization. This is the reason why several web presences (like &lt;a href="https://simpledashboard.io"&gt;simpledashboard.io&lt;/a&gt; and a few others) are running at virtual hosts at my favorite provider &lt;a href="http://www.netcup.de"&gt;netcup.de&lt;/a&gt;&lt;br&gt;&#10;&lt;br&gt;&#10;I like it to set up and customize my own web hosting solution - because then there are (except hardware limitations) nearly no other restrictions. But even with all this beauty, things tend to become complicated if your server reaches its limits - or just gets old. Then you have to upgrade to a new hosting plan with more powerful hardware.&lt;br&gt;&#10;&lt;br&gt;&#10;Since I have not found any manuals how to do this I decided to write my own - here it is!&lt;br&gt;&#10;&lt;br&gt;&#10;In the next few paragraphs, I will describe how I transferred my vServer from one hosting plan to another within 3 hours.&lt;/p&gt;</description></item><item><title>Recover your GPG profile from a GnuPG card</title><link>https://bytebang.at/blog/recover-your-gpg-profile-from-a-gnupg-card/</link><pubDate>Wed, 13 Dec 2017 16:50:09 +0100</pubDate><guid>https://bytebang.at/blog/recover-your-gpg-profile-from-a-gnupg-card/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Due to a crash I had to setup my computer from scratch. Usually this is with Linux not a big deal:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;Do a plain setup of any linux favour you like&lt;/li&gt;&#10;&lt;li&gt;Install thunderbird and copy the old profille from backup into the new home&lt;/li&gt;&#10;&lt;li&gt;Install firefox and copy the old profille from backup into the new home&lt;/li&gt;&#10;&lt;li&gt;Install &lt;a href="https://www.passwordstore.org/"&gt;pass&lt;/a&gt; (a super cool passoword manager) and copy the password store from backup&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;p&gt;&amp;hellip; but wait - pass uses my GPG keys which are stored on my GnuPG card. How can i restore this to get pass working again to decrypt my credentials ?&lt;/p&gt;</description></item><item><title>Convert audio files with ffmpeg</title><link>https://bytebang.at/blog/convert-audio-files-with-ffmpeg/</link><pubDate>Wed, 15 Nov 2017 09:55:13 +0100</pubDate><guid>https://bytebang.at/blog/convert-audio-files-with-ffmpeg/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I have downloaded a youtube play list and wanted to listen to all the files on my mobile phone. Unfortunately my phone is not capable to play &lt;em&gt;*.opus&lt;/em&gt; files. So i had to convert them.&lt;/p&gt;&#10;&lt;h1 id="the-solution"&gt;The Solution&lt;/h1&gt;&#10;&lt;p&gt;It is fairly easy to convert the files with &lt;a href="https://www.ffmpeg.org/documentation.html"&gt;ffmpeg&lt;/a&gt;.If you have only a few files then you can do this one by one at the commandline with the following statement:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;pre&gt;&lt;code&gt;$ ffmpeg -i myDownloadedFile.opus -f mp3 targetfilename.mp3&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;It converts the &lt;em&gt;myDownloadedFile.opus&lt;/em&gt; into &lt;em&gt;targetfilename.mp3&lt;/em&gt;.&lt;/p&gt;</description></item><item><title>Recover files from an encrypted home partition</title><link>https://bytebang.at/blog/recover-files-from-an-encrypted-home-partition/</link><pubDate>Tue, 07 Nov 2017 17:08:03 +0100</pubDate><guid>https://bytebang.at/blog/recover-files-from-an-encrypted-home-partition/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Assume that your computer does not want to start any more (e.g. because of a kernel panic during boot or a corrupted file system), and you want to make a last backup of your /home directory &amp;hellip; well - this us usually not a big deal if your home directory is not encrypted.&lt;/p&gt;&#10;&lt;p&gt;BUT: If it is encrypted, then things tend to get complicated, because you can not easily access the files within the encrypted directory.&lt;/p&gt;</description></item><item><title>Enable https downloads with wget on OpenWRT</title><link>https://bytebang.at/blog/enable-https-downloads-with-wget-on-openwrt/</link><pubDate>Sat, 14 Oct 2017 10:21:58 +0200</pubDate><guid>https://bytebang.at/blog/enable-https-downloads-with-wget-on-openwrt/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I wanted to install a &lt;a href="https://blog.doenselmann.com/werbung-direkt-auf-openwrt-router-blocken/"&gt;dns based adblocker&lt;/a&gt; on my OpenWRT 15.05.1 firewall. As I was trying to download the &lt;a href="https://gist.github.com/teffalump/7227752#file-adblock-sh"&gt;&lt;code&gt;https://gist.github.com/teffalump/7227752#file-adblock-sh&lt;/code&gt;&lt;/a&gt; file my firewall denied to do so:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;pre&gt;&lt;code&gt;root@firewall:~# wget https://gist.github.com/teffalump/7227752#file-adblock-sh&#10;Connecting to gist.github.com (192.30.253.118:443)&#10;wget: can't execute 'openssl': No such file or directory&#10;wget: error getting response: Connection reset by peer&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;/blockquote&gt;&#10;&lt;h1 id="the-solution"&gt;The Solution&lt;/h1&gt;&#10;&lt;p&gt;The problem there is, that wget wants to decrypt the https traffic, by utilizing the openssl command - which is simply not available. So the solution is to install the followng package: &lt;strong&gt;openssl-util&lt;/strong&gt;&lt;/p&gt;</description></item><item><title>How to set up OpenWRT on a ALIX 2d13 board</title><link>https://bytebang.at/blog/how-to-set-up-openwrt-on-a-alix-2d13-board/</link><pubDate>Tue, 12 Sep 2017 23:07:14 +0200</pubDate><guid>https://bytebang.at/blog/how-to-set-up-openwrt-on-a-alix-2d13-board/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;A friend gave me an old (but working) &lt;a href="https://www.pcengines.ch/alix2d13.htm"&gt;ALIX 2d13 board&lt;/a&gt;. Since my SOHO router was about to die (wifi keeps disconnecting and unstable throughput on the LTE band)  I decided to give it a second life as router.&lt;/p&gt;&#10;&lt;p&gt;I wanted to have the following features as my old router:&lt;/p&gt;&#10;&lt;ul&gt;&#10;&lt;li&gt;LAN connection&lt;/li&gt;&#10;&lt;li&gt;Internetconnection via LTE&lt;/li&gt;&#10;&lt;li&gt;Wifi connection&lt;/li&gt;&#10;&lt;/ul&gt;&#10;&lt;h1 id="the-solution"&gt;The Solution&lt;/h1&gt;&#10;&lt;p&gt;After a short internet research it was clear that the board itself is not the newest any more and it also does not have LTE or WIFI by default. So searched around a little and I found that I have an old broadcom wifi card with a &lt;a href="http://www.alldatasheet.com/datasheet-pdf/pdf/175973/BOARDCOM/BCM94318.html"&gt;bcm94318 chipset&lt;/a&gt; from an old laptop and an unbranded &lt;a href="https://www.hofer.at/de/infos-und-services/services/serviceportal/detailansicht/sis/si/8826102743041/"&gt;ZTE MF831 LTE Stick&lt;/a&gt; which can be used as LTE modem.&lt;/p&gt;</description></item><item><title>How to make static webpage snapshots with wget</title><link>https://bytebang.at/blog/how-to-make-static-webpage-snapshots-with-wget/</link><pubDate>Wed, 19 Apr 2017 22:23:54 +0200</pubDate><guid>https://bytebang.at/blog/how-to-make-static-webpage-snapshots-with-wget/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;For some reasons I needed an offline copy of a certain homepage. Well, everybody knows that your browser can save a single page with a few mouse clicks - but what if you wanted to have a copy of the whole homepage ?&lt;/p&gt;&#10;&lt;h1 id="the-solution"&gt;The Solution&lt;/h1&gt;&#10;&lt;p&gt;I don&amp;rsquo;t know how the &lt;a href="https://web.archive.org/"&gt;wayback machine&lt;/a&gt; (internet archive) does it but I came up with the following solution:&lt;/p&gt;&#10;&lt;p&gt;&lt;a href="https://www.gnu.org/software/wget/"&gt;wget&lt;/a&gt; is a very powerful tool, which enables you to download arbitrary files from the internet. Beside that is has also the capability to download web pages recursively.&lt;/p&gt;</description></item><item><title>How to install node-red in Ubuntu</title><link>https://bytebang.at/blog/how-to-install-node-red-in-ubuntu/</link><pubDate>Mon, 20 Feb 2017 22:38:05 +0100</pubDate><guid>https://bytebang.at/blog/how-to-install-node-red-in-ubuntu/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I have an old laptop which runs Ubuntu 16.04, and I want to install &lt;a href="https://nodered.org/"&gt;node-red&lt;/a&gt;.&lt;/p&gt;&#10;&lt;h1 id="the-solution"&gt;The Solution&lt;/h1&gt;&#10;&lt;p&gt;This time the solution is really simple:&lt;/p&gt;&#10;&lt;blockquote&gt;&#10;&lt;pre&gt;&lt;code&gt;$ sudo apt-get install nodejs-legacy&#10;$ sudo apt-get install npm&#10;$ sudo npm install -g --unsafe-perm node-red&#10;&lt;/code&gt;&lt;/pre&gt;&#10;&lt;/blockquote&gt;&#10;&lt;p&gt;The first command instructs the operating system to install node-js (which is the base for node-red).&lt;/p&gt;&#10;&lt;p&gt;The second one installs a packagemanager for node-js (which does the same as apt-get, yast, yum, &amp;hellip; for Linux, but for node-js)&lt;/p&gt;</description></item><item><title>Uninstall dpkg packages in Ubuntu</title><link>https://bytebang.at/blog/uninstall-dpkg-packages-in-ubuntu/</link><pubDate>Sat, 21 Jan 2017 20:30:29 +0100</pubDate><guid>https://bytebang.at/blog/uninstall-dpkg-packages-in-ubuntu/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;I am running a Ubuntu box, and from time to tome I install trusted *.&lt;a href="https://www.debian.org/distrib/packages"&gt;deb packages&lt;/a&gt; from the Internet. Since &lt;a href="https://upload.wikimedia.org/wikipedia/commons/1/1b/Linux_Distribution_Timeline.svg"&gt;Ubunu is a Debian derivate&lt;/a&gt; this works without any problem.&lt;/p&gt;&#10;&lt;img src="https://bytebang.at/blog/uninstall-dpkg-packages-in-ubuntu/install_dpkg_via_softwarecenter.png" style="width:100.0%" alt="Install dpkg via softwarecenter" /&gt;&#10;&lt;p&gt;Have you ever tried to uninstall these packages via the software center ? &amp;hellip; Well: It turned out that this is sometimes not possible through the software center. This article shows you how to do this via commandline.&lt;/p&gt;</description></item><item><title>How to replace a failed disk of a degraded linux software raid</title><link>https://bytebang.at/blog/how-to-replace-a-failed-disk-of-a-degraded-linux-software-raid/</link><pubDate>Fri, 30 Dec 2016 15:00:55 +0100</pubDate><guid>https://bytebang.at/blog/how-to-replace-a-failed-disk-of-a-degraded-linux-software-raid/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;One of my customers is running a 24/7 server with a &lt;a href="https://www.digitalocean.com/community/tutorials/how-to-create-raid-arrays-with-mdadm-on-ubuntu-16-04"&gt;mdadm based software raid&lt;/a&gt; that mirrors all operations between two disks (a so called RAID 1 configuration). Unfortunately one of the disks started to fail.&lt;/p&gt;&#10;&lt;img src="https://bytebang.at/blog/how-to-replace-a-failed-disk-of-a-degraded-linux-software-raid/failed_raid1.png" style="display: block; margin-left: auto; margin-right: auto;;width:100.0%" alt="Failed raid1" /&gt;&#10;&lt;p&gt;While the system was still running on the other (still working) disk I needed to replace the failing disk with a new one. Here is how you do it under Ubuntu and &lt;a href="https://linux.die.net/man/8/mdadm"&gt;mdadm&lt;/a&gt;.&lt;/p&gt;</description></item><item><title>Renewal of a letsencrypt certificate for lighttpd</title><link>https://bytebang.at/blog/renewal-of-a-letsencrypt-certificate-for-lighttpd/</link><pubDate>Tue, 20 Sep 2016 13:54:01 +0200</pubDate><guid>https://bytebang.at/blog/renewal-of-a-letsencrypt-certificate-for-lighttpd/</guid><description>&lt;h1 id="the-problem"&gt;The problem&lt;/h1&gt;&#10;&lt;p&gt;You have detected that your letsencrypt certificate expired, and now you want to renew it. This article shows how to do this on a machine called &amp;ldquo;support&amp;rdquo; which runs on Ubuntu 16.04 and lighttpd as webserver.&lt;/p&gt;&#10;&lt;h2 id="the-solution"&gt;The Solution&lt;/h2&gt;&#10;&lt;p&gt;The solution is simple. Just follow the steps below.&lt;/p&gt;&#10;&lt;h4 id="1-stop-lighttpd"&gt;1.) Stop lighttpd&lt;/h4&gt;&#10;&lt;p&gt;The first thing you have to do is to stop lighttpd (or any other service which binds to your webservers port 80).&lt;/p&gt;</description></item><item><title>How a keysigning party builds a web of trust</title><link>https://bytebang.at/blog/how-a-keysigning-party-builds-a-web-of-trust/</link><pubDate>Tue, 17 May 2016 12:30:11 +0200</pubDate><guid>https://bytebang.at/blog/how-a-keysigning-party-builds-a-web-of-trust/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Last month I attended a key-signing party at the &lt;a href="https://www.linuxtage.at/"&gt;Linuxtage in Graz&lt;/a&gt;. While I was pretty aware that key-signing is a great tool to prove your own identity against unknown third parties, I was not prepared what comes after the party. Here is a short write up, of what to expect from such an event and what has to be done after it. I try to keep it in a simple language, without too many technical details to give everybody the chance to understand what this is all about.&lt;/p&gt;</description></item><item><title>How to rename an application within IIS7</title><link>https://bytebang.at/blog/how-to-rename-an-application-within-iis7/</link><pubDate>Tue, 09 Feb 2016 19:16:47 +0100</pubDate><guid>https://bytebang.at/blog/how-to-rename-an-application-within-iis7/</guid><description>&lt;h1 id="the-problem"&gt;The problem&lt;/h1&gt;&#10;&lt;p&gt;Our customer runs a reverse proxy server that connects to an in-house helpdesk system. This setup suddenly stopped working after an upgrade of th helpdesk system to a new version. It turned out that the problem is that the webapplication has changed its name and was therefore not reachable for the reverse proxy any more.&lt;/p&gt;&#10;&lt;p&gt;The upgrade of the web application changed the name &lt;code&gt;/helpdesk&lt;/code&gt; to &lt;code&gt;/Helpdesk&lt;/code&gt; (notice the upper case letter H).&lt;/p&gt;</description></item><item><title>OpenLDAP authentication for vTiger 6.0</title><link>https://bytebang.at/blog/openldap-authentication-for-vtiger-60/</link><pubDate>Fri, 05 Feb 2016 22:44:41 +0100</pubDate><guid>https://bytebang.at/blog/openldap-authentication-for-vtiger-60/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;&lt;a href="https://www.vtiger.com/"&gt;vTiger&lt;/a&gt; is a wonderful open source CRM system which has a very &lt;a href="https://www.vtiger.com/vtiger-public-license/"&gt;friendly license&lt;/a&gt; and offers a lot of features. It comes with a ton of preconfigured settings, but unfortunately a LDAP authentification is not in the box. If you crawl the internet then you will find &lt;a href="http://stackoverflow.com/questions/26444284/vtiger-crm-6-ldap-authentication"&gt;answers on stackoverflow&lt;/a&gt; or this excellent &lt;a href="http://adminberlin.de/vtiger-crm-6-active-directory-authentication/"&gt;article how to setup AD-auth for vTiger&lt;/a&gt; but these answers are tailored towards a Microsoft Active Directory structure. Since the Microsoft Active Directory is technically related to OpenLDAP we can use this approach to access our own LDAP directory. Lets go &amp;hellip;&lt;/p&gt;</description></item><item><title>How to create a RAM disk</title><link>https://bytebang.at/blog/how-to-create-a-ram-disk/</link><pubDate>Sun, 03 Jan 2016 21:24:05 +0100</pubDate><guid>https://bytebang.at/blog/how-to-create-a-ram-disk/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Sometimes data has to be written and read ultimately fast. The &lt;a href="https://en.wikipedia.org/wiki/Random-access_memory"&gt;random access memory&lt;/a&gt; is one of the fastest memories within a computer - it is not big, but fast. A cheap and handy solution is to create a &lt;a href="https://en.wikipedia.org/wiki/Tmpfs"&gt;tmpfs&lt;/a&gt; filesystem with a command like &lt;code&gt;#mount -t tmpfs -o size=20% none /tmp/ramdisk&lt;/code&gt; - but this has a major drawback: As soon as the RAM get full data is beeing swapped out to the disk - which may be counterproductive.&lt;/p&gt;</description></item><item><title>Download multiple files with similar names within bash</title><link>https://bytebang.at/blog/download-multiple-files-with-similar-names-within-bash/</link><pubDate>Tue, 15 Dec 2015 21:20:54 +0100</pubDate><guid>https://bytebang.at/blog/download-multiple-files-with-similar-names-within-bash/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Assume you have a web server with interesting *.pdf files on it and all files are stored in the same directory. If you want to download them you would have to fire up firefox (or whatever browser you are using) and enter the URL  for the document once.&lt;/p&gt;&#10;&lt;ol&gt;&#10;&lt;li&gt;&lt;a href="http://my.server.tld/some/directory/Document"&gt;http://my.server.tld/some/directory/Document&lt;/a&gt;_&lt;strong&gt;01&lt;/strong&gt;.pdf&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="http://my.server.tld/some/directory/Document"&gt;http://my.server.tld/some/directory/Document&lt;/a&gt;_&lt;strong&gt;02&lt;/strong&gt;.pdf&lt;/li&gt;&#10;&lt;li&gt;&lt;a href="http://my.server.tld/some/directory/Document"&gt;http://my.server.tld/some/directory/Document&lt;/a&gt;_&lt;strong&gt;03&lt;/strong&gt;.pdf&lt;/li&gt;&#10;&lt;li&gt;&amp;hellip;&lt;/li&gt;&#10;&lt;/ol&gt;&#10;&lt;p&gt;This is annoying and time consuming. Fortunately there is a tool called &lt;a href="https://www.gnu.org/software/wget/"&gt;wget&lt;/a&gt; that can be used together with &lt;a href="https://www.gnu.org/software/bash/"&gt;bash&lt;/a&gt; to automate this task:&lt;/p&gt;</description></item><item><title>Auto reconnect on dropped VPN connection</title><link>https://bytebang.at/blog/auto-reconnect-on-dropped-vpn-connection/</link><pubDate>Sat, 21 Nov 2015 21:03:26 +0100</pubDate><guid>https://bytebang.at/blog/auto-reconnect-on-dropped-vpn-connection/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;One of my customers runs an external server which is connected to the main network via a simple &lt;a href="https://help.ubuntu.com/community/VPNClient"&gt;PPTP connection&lt;/a&gt;. This works fine but from time to time the firewall decides to drop the connection (for whatever reason). From this moment on, the external server can not access the resources within the internal network any more. Until now we had to restart the connection by hand, but this is not very comfortable.&lt;/p&gt;</description></item><item><title>IPTV with a Synology DS713+</title><link>https://bytebang.at/blog/iptv-with-a-synology-ds713/</link><pubDate>Mon, 19 Oct 2015 16:31:01 +0200</pubDate><guid>https://bytebang.at/blog/iptv-with-a-synology-ds713/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Recently i purchased an &lt;a href="http://www.amazon.de/Amazon-W87CUN-Fire-TV-Stick/dp/B00KAKPZYG"&gt;Amazon FireTv Stick&lt;/a&gt; - which is a great device for video streaming. But I wanted more than this stick offers out-of-the-box: I wanted to be able to stream DVB-T  and DVB-S (digital terrestrial and digital satellite) signals through my IP network. Somewhere in the internet I stumbled across a few articles which components are needed for this purpose, but in the end I had no idea if and how it would work. I wanted the setup to look like this:&lt;/p&gt;</description></item><item><title>Lexmark CX410 scan to network (on a SME Server)</title><link>https://bytebang.at/blog/lexmark-cx410-scan-to-network-on-a-sme-server/</link><pubDate>Wed, 12 Aug 2015 21:09:43 +0200</pubDate><guid>https://bytebang.at/blog/lexmark-cx410-scan-to-network-on-a-sme-server/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;My local glider club bought a new scanner / printer combination from Lexmark. The &lt;a href="http://www.lexmark.com/DE/de/catalog/product.jsp?catId=cat310005&amp;amp;prodId=DE7939"&gt;CX410de&lt;/a&gt; is a good office device which is able to print and also to scan documents. While printing was no problem at all, the scann-to-network function bugged me (and my colleague) a lot. Scans to a normal windows box worked like a charm (exactly as described in the manual) but scans to a share on our &lt;a href="http://wiki.contribs.org/Main_Page"&gt;SME server&lt;/a&gt; (which is basically a Linux box that emulates a Windows domain controller and some shares) failed constantly (&amp;ldquo;Verbindung konnte nicht hergestellt werden. Kontaktieren Sie Ihren Administrator&amp;rdquo; - which translates to &amp;ldquo;Network connection could not be established. Contact your administrator&amp;rdquo;).&lt;/p&gt;</description></item><item><title>Bypass restrictive firewalls with a SSH tunnel</title><link>https://bytebang.at/blog/bypass-restrictive-firewalls-with-a-ssh-tunnel/</link><pubDate>Mon, 06 Jul 2015 19:46:48 +0200</pubDate><guid>https://bytebang.at/blog/bypass-restrictive-firewalls-with-a-ssh-tunnel/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;Free wireless LAN is offered in every bigger building or company. The problem with these wireless LANs is that the internet can be they can be (and often is) somehow restricted. Sites could be blocked, services can be disabled and traffic can be sniffed easily with a simple off-the-shelf firewall. Fortunately there is a simple solution to this problem: Encrypt your traffic, route it to a secure destination and surf the web from there on. &lt;/p&gt;</description></item><item><title>Autostart a program on the Raspberry Pi</title><link>https://bytebang.at/blog/autostart-a-program-on-the-raspberry-pi/</link><pubDate>Tue, 23 Jun 2015 11:42:32 +0200</pubDate><guid>https://bytebang.at/blog/autostart-a-program-on-the-raspberry-pi/</guid><description>&lt;h1 id="the-problem"&gt;The Problem&lt;/h1&gt;&#10;&lt;p&gt;When you run a server then the server process has to be started. If you are installing a webserver like &lt;a href="http://httpd.apache.org/"&gt;apache2&lt;/a&gt; or &lt;a href="http://www.lighttpd.net/"&gt;lighttpd&lt;/a&gt; via the &lt;a href="https://help.ubuntu.com/community/AptGet/Howto"&gt;package manager&lt;/a&gt; then an autostart script will be installed as well. This is not the case if you want to run your self-compiled server like the &lt;a href="https://github.com/MalcolmRobb/dump1090"&gt;dump1090&lt;/a&gt; ADS-B receiver. In this case you have to provide the start (and also probably a stop-) script by yourself.&lt;/p&gt;&#10;&lt;h1 id="the-solution"&gt;The Solution&lt;/h1&gt;&#10;&lt;p&gt;The solution is simple. In the first step you have to provide a small script which starts and stops your server. In the second step you have to register it against the operating system. The exact procedure is described below.&lt;/p&gt;</description></item></channel></rss>