1. 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 …
    Tagged as : irssi utf8
  2. 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 …
    Tagged as : apache collectd graphite
  3. 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 …

    Tagged as : xattr filesystems davfs
  4. 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 …

    Tagged as : dvb-t rtl2832u
  5. 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 …

    Tagged as : debian redhat autostart
  6. 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 …
    Tagged as : ftp python windows
  7. Custom CD Images on Sansa U3

    Mon 13 February 2012
    By makefu

    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 …
    Tagged as : usb iso autosart
  8. OpenSSL CSR with Subject Alternative Names

    Tue 07 February 2012
    By makefu

    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 …

    Tagged as : openssl csr subjectAltName
  9. awstats and lighttpd

    Mon 06 February 2012
    By makefu

    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 …
    Tagged as : awstats lighttpd graphite
  10. Recover Softraid/LVM

    Mon 06 February 2012
    By makefu

    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 …
    Tagged as : mdadm softraid lvm

Page 3 / 4