RSSAmplifier

Blog

only code is pure

euer.krebsco.deRSS feed ↗34 posts

Latest posts

Using a simple python script in NixOS as systemd service without packaging it

l33tname asked me what the "correct" way is to start a small python script as a systemd service under NixOS. The script comes with a small set of standard dependencies which of course are not available with the standard python interpreter Well it turns out there are a couple of …

Adding an out-of-tree kernel package to the linux kernel in nixOS

Almost 4 years ago I bought the respeaker4 mic array<https://wiki.seeedstudio.com/ReSpeaker_4_Mic_Array_for_Raspberry_Pi/> for building my personal voice assistant. That project never really manifested because setting up such a system was just not easy enough. However times have changed and with rhasspy<https://rhasspy.readthedocs.io/> it seems …

Finding the Ebay Kleinanzeigen Application Password

To use the ebay kleinanzeigen api (e.g. with ebk-client ) an application username and an application password is required. However there are only two options to get this: send a mail to api ebay-kleinanzeigen.de and never get a response or find the working credentials yourself in applications which must …

Remove empty folders in offlineimap

Offlineimap becomes quite slow when you have so many (empty folders), this is how you can delete them. The blog post is based on a (now offline) article by Matt Palma. Disclaimer: Besure to double and triple check every command, actions on the remote are permanent. If you want to …

Teardown and disassembly of the DPS8005

I disassembled the DPS8005 step-down converter from aliexpress so you don't have to. I did this after the installation of the alternative firmware OpenDPS somewhat failed and i've opened an issue in github . This blog post contains the images of all parts of the DPS from lower level, where the …

Podcasting with Pulse

I want a very simple setup where i can podcast via studio-link with my headset and stream the whole thing to xenim. Therefore i have: Headset Mic ( alsa_output.CODEC.analog-stereo.monitor ) Headset Speaker ( alsa_input.CODEC.analog-stereo ) studio-link recording studio-link playback I need to create an extra streaming audio device and …

Change Deluge User-Agent

For some torrents bittorrent peers seem to refuse sharing with my deluge daemon because it had the wrong 'user-agent' (read: Discrimination). Fortunately, on the internet nobody knows you are a dog. As long as we show the correct name-tag and provide some basic features we will be good to go …

A Software KVM Switch

I have been so often in the need for quick graphical access to a server without the need of an actual mouse and display plus wiring for power and so on. In the enterprise world there are things called 'KVM switches' and laptops which do exactly what i need but …

XBMC on Firetv

I was somewhat disappointed from plex performance and functionality so i looked for a way to get XBMC(kodi, but whatever) on my amazon firetv. This blog post is essentially a digest from the original xbmc-wiki-page and if something is not like you want it you may want to look …

OpenWRT reghack

With the reghack tool you will be able to have your wifi card run on it's full potential without all the pesky regulations requiring you to send on a lower tx power. Of course you may only do this in a metal chamber in your lab for testing purposes. cd …

Filter Local Network-Access for Libvirt Guest

My google-fu was not strong enough to find a walkthrough of how to filter the local network for a libvirt guest instance which is using a nat-ed interface while keeping the access to the internet working. Here is what i came up with: Define nwfilter rule My local network is …

Scripting the Fortigate VPN Client

Again there was a need to fix frickelsoftware. In that case i needed a permanent vpn connection via the fortigate vpn client . Problem is, that the tunnel disconnects after some time but the client does not exists and that input cannot simply piped into the executable. I wrote an Expect …

Arch+libvirt+bridges+ufw

I never thought getting bridged network for libvirt clients to work under archlinux. Here is the digest. Adding Bridge Network with netctl eth0 needs to be up in order to get the bridge working /etc/netctl/bridge Description = 'bridge' Interface = br0 Connection = bridge BindsToInterface =( eth0 ) IP = static # or dhcp Address …

Using spamassassin on a remote IMAP Host

I have the fortunate situation that i have hosted mail on a trusted second party (my father) so i do not have to deal with anything mail server related. I have a domain for receiving mails and i use a wildcard address to receive all the mails. Until now ... I …

A usable VIM Undo tree

As some may have heard, vim stores your actions (and undos) as a tree, which is great. With vim 7.3 there is even a option to persist these changes between session. But with vanilla vim this tree is pretty much unusable. A friend showed me a great plugin which …

WPS and OpenWRT

When hearing WPS(Wifi Protected Setup) i always think of the worst idea in network security. 'Hey, how about changing a long key with a minimum length of 8 characters to something like... 4 numbers! And with that number you get the original password! GENIUS' . But WPS consists of more …

Introducing ElchOS

This Blog post is the first of the many blog posts to come around elchOS and its internals. ElchOS is a linux distribution with the purpose of providing a simple way to share disk storage and data in a streamlined fashion. The intend is to solve the 'Filesharing on the …

LDAP Hit-and-Run

I was in the unfortunate situation that i needed to fix an ldap server, specifically fixing a 'login failed' situation. There was only one problem, i had fucking clue how ldap is configured, or even working. Also, i didn't knew any passwords. But i had a user account on the …

Install GIT on RHEL5 without Internet

I was facing the problem that i desperately needed git on one of the development Redhat 5 systems which had no direct internet connection. As EPEL is an open repository to retrieve all kinds of cool packages also Git is available there. All i needed to do was to find …

Piwik for this blog

I was looking for a simple analytics tool for this blog. As everyone seems to be using piwik and everyone loves docker for rapid deployment. As i am always short on resources on all my machines i decided to deploy piwik on another of my VMs which is mediengewitter.krebsco …

Make screen behave more like tmux

I am using tmux on pretty much all hosts i control but all-too-often i need to work on retarded hosts which only have screen installed. I love to use ctrl-b because ctrl-a is the beginning of the line in default bash keybindings. Here are my changes in ~/.screenrc # use ctrl-b …

Revive this Blog

2 years ago i lost this blog in an unexpected VPS shutdown and of course i had no backups (duh!) and had not used any kind of version management. Thanks to archive.org at least the content of the blog left intact. I guess that's why it is sometimes called …

Dropbear Public-Key Authentication

ssh-copy-id does not work out of the box for dropbear. The issue is that dropbear may only have one authorizedKeys file while openssh handles this file for each user. To fix it symlink the root users authorizedKeys file to the dropbear one. openwrt>> ln -s /root/.ssh/authorized_keys /etc/dropbear …

Utf8 in an Irssi/tmux/putty/windows Stack

Getting irssi running with utf8 support in a putty/tmux stack is madness. Here is what you have to do. add lines in .{ba,z}shrc: export LANG = en_US.utf8 export LC_ALL = en_US.utf8 add lines in .tmux.conf: set-option -g default-terminal "rxvt" set-window-option -g utf8 on in irssi: /set …

install graphite+web with apache2 and collectd

After some try and error, this is how i got graphite and graphite_web running under a debian derivative (ubuntu 12.04). #?/bin/sh apt-get install python-django python-cairo sudo easy_install django-tagging pip install carbon pip install whisper pip install graphite-web cd /opt/graphite/conf cp carbon.conf.example carbon.conf cp …

Enable xattr for dumb filesystems

I was looking for a way to enable extended attributes for encfs(userland crypto Wrapper) on davfs(userland Webdav fs wrapper) to use them with glusterfs to create a high-availability distributed secure cloud storage on the cheap. After many hours looking for a way to enable xattrs on encfs or …

Getting Hama Nano DVB-T Stick to work

I initially bought it because i wanted to play around with software defined radio on the cheap [1] but haven’t had the time. As this thingy is originally an DVB-T stick i wanted to try this out first. As it contains a fairly common RTL2832U chip, it shouldn’t …

Daemonize and Autostart under Debian and RHEL

Daemonizing and autostarting a process is still a pain in the ass, so here are two scripts which can be placed under /etc/init.d and if you are lucky everything will work. Example is the punani backend, an universal package resolver and installer which is essentially a python webserver …

FTP Share with Python on Windows

Installation of dependencies #! cmd.exe wget http://www.python.org/ftp/python/2.7.2/python-2.7.2.msi msiexec python-2.7.2.msi # get easy_install wget http://pypi.python.org/packages/2.7/s/setuptools/setuptools-0.6c11.win32-py2.7.exe .\setuptools-0.6.c11.win32-py2.7.exe cd c:\Python27 …

Custom CD Images on Sansa U3

I’m using a Sandisk Cruzer 8GB SDCZ36-008G-E11 (not B35) to deploy ISOs on the virtual CD-Rom drive (U3 Smart). write iso Some computers do better with a real cd-rom drive when botting a live system. #?/bin/sh dmesg | grep CD-ROM u3-tool -i /dev/sdx1 #resize cd-drive to N blocks …

OpenSSL CSR with Subject Alternative Names

I had the requirement to create a certificate with a subject Alternative Name (additional dns names for the same host). Again it turned out not to be that simple. A extra configuration has to be created and the SubjectAltName can be added in this config for the Signing Request. We …

awstats and lighttpd

These snippets are in a ” worked for me” state. most of this stuff will break your system when executing. Assumptions: /srv/http/euer.krebsco.de - served by lighttpd on public interface /srv/http/priv - served on private interface (darknet) lighttpd seperate subdomain logging and awstats #?/bin/sh apt-get install python-django …

Recover Softraid/LVM

MD Array fails to assemble Find the Problem #?/bin/sh cat /proc/mdstat mdadm -D --scan mdadm -E --scan mdadm -E /dev/sd [ abcdef ] 1 Trying to assemble manually #?/bin/sh mdadm --stop /dev/md { 0 ,127 } mdadm --assemble /dev/md0 /dev/sd { a,b,c,d,e,f } 1 …

Make this blog post happen

#?/bin/sh bash -s stable < < ( curl -s https://raw.github.com/wayneeseguin/rvm/master/binscripts/rvm-installer ) echo '[[ -s $HOME/.rvm/scripts/rvm ]] && source $HOME/.rvm/scripts/rvm' >> ~/.zshrc source ~/.zshrc rvm install 1 .9.2 && rvm use 1 .9.2 rvm rubygems latest gem install bundler git clone git://github …