Hawkes Blog
Windows reboot | Linux be root
Hawkes Blog

Archives

PyMyGW a simple mysensors Gateway

PyMyGW a simple mysensors Gateway Development stopped. FYI I'd stopped the development of the gateway because I switched to an ESP8266 MQTT GW. I will leave the blogpost online, just for the records. Update PyMyGW now supports MQTT as an alternative to the OpenHab RestAPI What`s that a simple SerialGateway for the MySensors Serial Protocol Version 1.4 offers basic functionality for the MySensors Network offers IDs for new Nodes...

Monitor your RaspberryPi with Monit

Short How-To: Monitor your RaspberryPi with Monit prerequisite: raspberry pi running raspbian What is Monit Monit is a small and lightweight managing and monitoring system for *nix hosts. It´s possible to monitor multiple local daemons, directories, ... and react with multiple actions if something specified happened. For example restart nginx/apache + dependencies if port 80 isn´t available check file checksum execute self-made scripts and do something if the returncode is !=0 .... and...

What´s going on?!

Update 2013-12-15: Ads are removed forever :) As you might have noticed, a wild ad has appeared on the right bar and a small donate button at the bottom of the page. It´s not about making money, it´s only about playing and testing some stuff in my pelican bootstrap theme. So feel free to ignore it or use a adblocker of your choice. But if you want to support me, you are free to do what...

manipulate exim retry database

Short How-To: check/reset exims retry database 1. Get the next retry cycle with exim_dumpdb Usage: exim_dumpdb <spool-directory> <database-name> <database-name> = retry | misc | wait-<transport-name> | callout | ratelimit exim_dumpdb /var/spool/exim4/ retry 18-Nov-2013 12:08:25 19-Nov-2013 12:54:24 19-Nov-2013 18:54:24 T:mx02.quat.net:46.163.67.72 -18 77 Remote host mx02.quat.net [46.163.67.72] closed connection in response to HELO freund-alter-moebel.de the next retry for...

Deploy Pelican with Fabric

Short How-To: deploy your pelican blog with fabric as you might know, this blog is powered by pelican I use my hp n54l at home to write articles, make changes on this blog and push these changes to my webserver for testing and release with fabric. 1. install and prepare fabric apt-get update; apt-get install python-pip pip install fabric I had created a dedicated user for my blog. the...

a raspberry pi powered baby monitor (2/2)

Short How-To: a raspberry pi powered baby monitor Part 2 (Video/Webinterface) -> Part 1 (Audio) -> Source @github Setup baby monitor Video: I´m using the great mjpg_streamer. You can use my precompiled version for raspbian or compile it on your own. My precompiled version is outdated and needs an update. See Jeffrey Klein's comments for details. install, configure and start mjpg_streamer <div...

a raspberry pi powered baby monitor (1/2)

Short How-To: a raspberry pi powered baby monitor Part 1 (Audio) -> Part 2 (Video/Webinterface) -> Source @github prerequisite: raspberry pi running raspbian a webcam (i've used a Logitech HD Webcam C910) a pc with linux as the receiver with speakers (in my case it´s another raspberry) Prolog: I was looking for a working solution to turn one of...

a web-proxy with tinyproxy and ssh-tunnel

Short How-To: tinyproxy on raspbian prerequisite: raspberry pi running raspbian with openssh-server/dropbear putty / ssh client rasberry is accessible from the internet (if you want to use it from everywhere) install tinyproxy apt-get update apt-get install tinyproxy edit /etc/tinyproxy.conf User nobody Group nogroup Port 8888 Listen 127.0.0.1 Timeout 600 DefaultErrorFile "/usr/share/tinyproxy/default.html" StatFile "/usr/share/tinyproxy/stats.html" Logfile "/var/log/tinyproxy/tinyproxy.log" LogLevel Critical PidFile "/var/run/tinyproxy/tinyproxy.pid" MaxClients 100 MinSpareServers 5 MaxSpareServers 20 StartServers 15 MaxRequestsPerChild 0 Allow 127.0.0.1 ViaProxyName "tinyproxy" ConnectPort 443 ConnectPort 563 details -> <tt class="docutils...

Change Pelicans syntax highlighting Part II

Short How-To: SyntaxHighlighter with Pelican Improved Update: 2013-08-12 Simple pelican plugin is available @github Part1 I improved the rstdirectives.py a little bit. Some SyntaxHighlighter options are available now like: Numbers On/Off Highlight Line(s) Start with Line some other will be added later the improved version: class SyntaxHighlighter(Directive):...

Change Pelicans syntax highlighting

Short How-To: Use SyntaxHighlighter with Pelican Pygments is great but if lets try a different one :) get the latest SyntaxHighlighter Version from SyntaxHighlighter and put the script and styles folder in the static folder of your pelican theme edit your base/header template add to head part <<< snipp <script...

A Highlight test with SyntaxHighlighter

SyntaxHighlighter bash case "$1" in start) echo -n "Starting $DESC: " start-stop-daemon --start --chuid $OWNER:$OWNER --user $OWNER \ --exec $DAEMON -- $DAEMON_OPTS...

dnsmasq a local dns/dhcp server on raspberry pi

Short How-To: dnsmasq on raspbian install dnsmasq apt-get update apt-get install dnsmasq my /etc/dnsmasq.conf ######### dns ######## # Never forward plain names (without a dot or domain part) domain-needed # Never forward addresses in the non-routed address spaces bogus-priv # dont read resolv.conf use the defined servers instead no-resolv server=8.8.8.8 server=8.8.4.4 # increase dns cache form 512 to 4096 cache-size=4096 ######### dhcp ########## # Add local-only domains here, queries in these...

Unbound DNS on raspberry pi

Short How-To: Unbound on raspbian install unbound apt-get update apt-get install unbound wget ftp://FTP.INTERNIC.NET/domain/named.cache -O /etc/unbound/root.hints my /etc/unbound/unbound.conf server: auto-trust-anchor-file: "/var/lib/unbound/root.key" #root dns list root-hints: "/etc/unbound/root.hints" #listen on all interfaces interface: 0.0.0.0 #allow only local/lan access access-control: 127.0.0.0/8 allow access-control: 192.168.178.0/24 allow access-control: 0.0.0.0/0...

Eigenes Pelican Theme

Wie bereits geschrieben, bin ich mit dem Blog auf Pelican gewechselt. In diesem Zuge habe ich mich auch an ein eigenes Theme basierend auf Bootstrap und Font-Awesome gesetzt. Diese 3 kombiniert.... einfach großartig. Ich versuche noch immer zu verstehen, warum zum Teufel ich mich mit wordpress herumgeschlagen habe, wenn es doch mit Python + Adds so schön einfach geht.... Die erste Version...

Exim smtp auth Brute-Force-Attacken Part II

Wie schon im letzten Beitrag beschrieben, leidet mein Exim von Zeit zu Zeit unter Brute-Force-Attacken. Teilweise so massiv, dass die 60 sec zwischen den Checks des Logfiles zu lang waren. Da Exim alles kann außer Kaffee kochen, musste der Check auch irgendwie einfacher gehen. Dabei bin ich über das Exim Git Wiki gestolpert. Also frisch ans Werk. Als 1. den alter Cronjob deaktiveren, dass alte Script entschlacken #bin/bash BL="/etc/exim4/lists/blacklist" MAILTO="<<myMail>>" SUBJECT="New...

Exim smtp auth Brute-Force-Attacken

Dieser Artikel ist obsolet. Part2 ist der Aktuelle. Ich hatte in letzter Zeit massive Brute-Force-Attacken im exim Logfile, wie z.B.. login authenticator failed for (EAGLEWIN2003) [209.198.109.234]:9761I=[62.75.155.49]:25: 535 Incorrect authentication data (set_id=info) Dagegen habe ich mir 2 kleine exim ACLs gebaut. Zum ersten eine auth acl die nur 1x auth pro Mail zulässt und nach dem 2. Versuch erst einmal 30sec wartet, bis es die...