Tumblelog by Soup.io
Newer posts are loading.
You are at the newest post.
Click here to check if anything new just came in.

May 20 2011

jensens
15:00

duplicity duply cron job

daily incremental backup + monthly full backup and /etc/crontab should look like:
27 5    1 * *   root    /usr/bin/duply mybackup full_verify_purge-full --force
23 1    * * *   root    /usr/bin/duply mybackup backup_verify_purge --force

November 12 2010

jensens
10:58

VPN, CISCO ASA, Mac OSX

Reason: Phase 2 Mismatch
Status: 0x90E08 (PHASE2_NO_PROP_CHOSEN)

wie bereits vermutet wird das Problem nicht durch die aktuelle ASA Image Version verursacht. Über den integrierten MAC VPN Client scheitert IPSec Phase 2. Da sich die Implementierungen der Protokolle unterscheiden und Sie auf beiden Seiten mit privaten Netzen arbeiten und vermutlich auch NAT-Geräte passieren, würde ich empfehlen NAT-T zu aktivieren.

NAT-Traversal ist ein Verfahren, das IPSec-geschützten Daten ermöglicht, NAT-Geräte zu passieren.

Sie können NAT-T über das ASDM aktivieren. Navigieren Sie hierzu unter Configuration > VPN > IPSec > IPSec Rules. Aktivieren Sie in der IPSec Rule die Checkbox "NAT-T Enabled" und übernehmen Sie die Konfiguration indem Sie auf "Apply" klicken.

September 23 2010

jensens
09:54

trachtzeiten

(PDF, 40.5 KB)
Trachtpflanzen und ihre Zeiten gemäß Wikibooks: Einführung in die Imkerei
Tags: imker

September 13 2010

jensens
10:24
4944_f5f4_500
Thomson Gateway 585 v7 mit externer Antenne versehen.

September 09 2010

jensens
14:59

A buildout in Debian with php5-cgi + spawnfcgi + nginx

Using zc.buildout for administrative tasks can be fun. On a Debian Lenny we have a well maintained php5. I want to run some legacy php apps with it using nginx and spawnfcgi (both used from sources here). Now I wire all together in this buildout. filesystem structure is:

/opt/myapp/bootstrap.py
/opt/myapp/buildout.cfg
/opt/myapp/phpctl.in
/opt/myapp/nginx.conf.in
/opt/myapp/htdocs

buildout.cfg looks like so - adapt values for address and port as needed:
----------------------------------------------------------------------------------------------
[buildout]
parts = mkdirs nginx nginx-cfg spawnfcgi phpctl

[mkdirs]
recipe = z3c.recipe.mkdir
paths =
    ${buildout:directory}/var

[nginx]
# this build needs (on debian based systems):
# sudo apt-get install libpcre3-dev
recipe = zc.recipe.cmmi
url = http://sysoev.ru/nginx/nginx-0.7.67.tar.gz

[nginx-cfg]
recipe = collective.recipe.template
address = 10.1.2.52
port = 30000
input = ${buildout:directory}/nginx.conf.in
output = ${nginx:location}/conf/nginx.conf

[spawnfcgi]
recipe = zc.recipe.cmmi
url = http://www.lighttpd.net/download/spawn-fcgi-1.6.3.tar.gz

[phpctl]
recipe = collective.recipe.template
mode = 755
port = 30001
input = ${buildout:directory}/phpctl.in
output = ${buildout:directory}/bin/phpctl
----------------------------------------------------------------------------------------------

phpctl.in looks like so:
----------------------------------------------------------------------------------------------


#!/bin/sh

# Specify path variable
PATH=/sbin:/usr/sbin:/bin:/usr/bin

# Kill me on all errors
set -e

# define binaries
NGINX=${nginx:location}/sbin/nginx
SPAWNFCGI=${spawnfcgi:location}/bin/spawn-fcgi
PHPCGI=/usr/bin/php-cgi

case "$1" in
  start)
    $NGINX
    $SPAWNFCGI -p ${phpctl:port} -- $PHPCGI\
       | sed 's/.*PID:\(.*\)$/\1/' \
       > ${buildout:directory}/var/phpcgi.pid
    ;;
  stop)
    kill `cat ${nginx:location}/logs/nginx.pid`
    kill `cat ${buildout:directory}/var/phpcgi.pid`
    rm ${buildout:directory}/var/phpcgi.pid
    ;;   
  *)
    echo "Usage: $0 {start|stop}"
    exit 1
    ;;
esac
----------------------------------------------------------------------------------------------

nginx.conf.in looks like so:
----------------------------------------------------------------------------------------------
events {
    worker_connections  1024;
}
http {
    include       mime.types;
    default_type  application/octet-stream;
    sendfile        on;
    keepalive_timeout  65;
    server {
        listen ${:address}:${:port} default;
        server_name  localhost;
        error_page   500 502 503 504  /50x.html;
        location = /50x.html {
            root   html;
        }
        location ~ .php$ {
                fastcgi_pass  127.0.0.1:${phpctl:port};
                fastcgi_index index.php;
                fastcgi_param SCRIPT_FILENAME  ${buildout:directory}/htdocs/$fastcgi_script_name;
                fastcgi_param QUERY_STRING     $query_string;
                fastcgi_param REQUEST_METHOD   $request_method;
                fastcgi_param CONTENT_TYPE     $content_type;
                fastcgi_param CONTENT_LENGTH   $content_length;              
                fastcgi_param SCRIPT_NAME      $fastcgi_script_name;
                fastcgi_param REQUEST_URI      $request_uri;
                fastcgi_param DOCUMENT_URI     $document_uri;
                fastcgi_param DOCUMENT_ROOT    $document_root;
                fastcgi_param SERVER_PROTOCOL  $server_protocol;               
                fastcgi_param GATEWAY_INTERFACE CGI/1.1;
                fastcgi_param REMOTE_ADDR      $remote_addr;
                fastcgi_param REMOTE_PORT      $remote_port;
                fastcgi_param SERVER_ADDR      $server_addr;
                fastcgi_param SERVER_PORT      $server_port;
                fastcgi_param SERVER_NAME      $server_name;      
                fastcgi_read_timeout           300;        
        }
        location / {
                root ${buildout:directory}/htdocs;
                index  index.php;
        }
    }
}
----------------------------------------------------------------------------------------------

And do not forget to put your php app under htdocs.

fetch packages with apt (you may need more, i had already installed some stuff before):
$ sudo apt-get install build-essential libpcre3-dev libssl-dev

fetch bootstrap.py from http://python-distribute.org/bootstrap.py
$ wget http://python-distribute.org/bootstrap.py


bootstrap and run your buildout:
$ cd /opt/myapp
$ python bootstrap.py
$ ./bin/buildout

then start your php app:
$ ./bin/phpctl start

take your browser and load http::/YOURADDRESS:YOURNGINXPORT

finally you can stop it with
$ ./bin/phpctl stop
Tags: dev php buildout

September 08 2010

jensens
09:48
4025_64a6_500
Ich fahre an diesem tollen lebenden Kunstwerk von Freedrich Drago Valentini täglich mit dem Radl vorbei und heute habe ich mit der Handycam mal schnell geknipst. Es steht in Innsbruck am Inn südseitig zwischen Uni-Brücke und Freiburger Brücke zwischen Fussweg und Radweg (bei der Uni). Der Künstler gießt auch immer fleißig, damit es schön grün bleibt. Im Netz finde ich nicht viel über ihn, aber meine Gratulation an ihn! Hie hab ich noch mehr infos dazu gefunden: http://bit.ly/bPhHbU
Tags: Art

September 06 2010

jensens
07:37
6237_d56a_500
Hier eine Brutwabe aus dem Volk "Maya". Mein Ältester (8) ist Mittendrin. Da noch Stichfrei (22.8.10) ;-) Seit Gestern aber nicht mehr. Ausgerechnet auf der Wange. Naja, was ein Imker werden will...
Tags: imker
jensens
07:30
6149_4caf_500
Brutwabe aus dem Volk "Theresa" - ja, die Kinder haben den Weiseln jetzt Namen gegeben. Hier ohne Königin im Bild. Das Foto ist am 21.8.10 geschossen.
Tags: imker

September 02 2010

jensens
12:04

note-to-self: build MySQL 5.0.32 Debian Etch on Debian Lenny as .deb

sudo su -
apt-get install debootstrap
cd /opt
mkdir chroot_lenny
debootstrap lenny chroot_lenny
echo 'proc /data/chroot_lenny/proc proc none 0 0' >>/etc/fstab
mount /data/chroot_lenny/proc
chroot chroot_lenny
apt-get install locales
dpkg-reconfigure locales (choose a locale here)
cd /opt
wget http://archive.debian.org/debian/pool/main/m/mysql-dfsg-5.0/mysql-dfsg-5.0_5.0.32.orig.tar.gz
wget http://archive.debian.org/debian/pool/main/m/mysql-dfsg-5.0/mysql-dfsg-5.0_5.0.32-7etch12.diff.gz
wget http://archive.debian.org/debian/pool/main/m/mysql-dfsg-5.0/mysql-dfsg-5.0_5.0.32-7etch1.dsc
apt-get install dpkg-dev build-essential fakeroot dpatch libtool debhelper file libncurses5-dev libwrap0-dev zlib1g-dev libreadline5-dev psmisc po-debconf chrpath automake1.9  doxygen gs gawk bison tetex-bin tetex-base tetex-extra
dpkg-source -x mysql-dfsg-5.0_5.0.32-7etch12.dsc
cd mysql-dfsg-5.0-5.0.32
dpkg-buildpackage -rfakeroot
cd ..
scp *.deb TARGET

August 23 2010

jensens
10:20

note-to-self: X Headless + Wuala

In order to use Wuala Storage Service http://www.wuala.com from a server w/o having an graphical UI running:

server$ sudo apt-get install xvfb x11vnc sun-java6-jre
server$ sudo update-alternatives --config java (choose sun)
download and install Wuala as described in http://www.wuala.com/de/download/linux
server$ sudo Xvfb :1 -screen 0 800x600x16 -ac&
server$ export DISPLAY=:1
server$ x11vnc -localhost -display :1

connect via ssh port forwarding:
localmaschine$ ssh -L 5900:localhost:5900 name.myserver.tld

start wuala
server$ wuala

start a local vnc client and connect to localhost:5900


August 06 2010

jensens
21:43
5364_2583_500
Maximilian Werner Baumgartner, geboren am 06.08.2010 um 3:48 Uhr nach 2h20min mit 3570g Gewicht, 50cm Länge.

July 12 2010

jensens
17:02
8878_f3a6_500
Der Anfang ist gemacht: meine 3 Völker, Ableger Carnica auf 8 und 9 Rähmechen (Zander).
Tags: imker

May 19 2010

jensens
10:23

Lob für Neonex GmbH

Soeben kam die Handkreissäge HKS 1600L an. Super Preis und prompter Versand (Vorkasse). Freitag bestellt, Montag überwiesen, Mittwoch Früh Gerät in den Händen. Diesen österreichischen (Online-) Händler für - u.a. - Güde Maschinenkann ich nur somit nur empfehlen.

May 17 2010

jensens
09:21

Selenium IDE

Browsertests for Dummies

May 12 2010

jensens
08:29

Electronic BeeSpace

(english) e-learning: Alles über Bienen und Imkerei auf Uni-Level von der University of Illinois’ Institute for Genomic Biology.
jensens
08:18

Neonex GmbH

Österreichischer (Online-) Händler für Güde Maschinen, hier in meinem Interesse Handkreissäge HKS 1600L

May 10 2010

jensens
11:03
"Hohenheimer Beute".

Im Zandermass. Mit Boden nach LLA Imst (Plan für Boden folgt). Die Nuten inn den Zargenwänden lasse ich weg, dafür kommen da Holzdübel rein.

Die Angaben sind für 3 Beuten mit je 3 Zargen plus Boden +
Deckel. Eine Futterzarge ist noch keine dabei (folgt bald).

Ausser Fichtenholz geht auch Lärche (soll witterungsbeständiger sein)
oder Weymuthskiefer (leichter) gut. Ich befürchte nur, das ist um
einiges teurer und den Bienen ist es im Endeffekt egal.

20mm starkes Fichtenholz:
18 St. 520 mm x 227 mm (Zarge Seite)
 6 St. 520 mm x 110 mm (Boden Seite)
 6 St. 520 mm x  40 mm (Deckel Seite)

18 St. 380 mm x 210 mm (Zarge Stirn)
18 St. 380 mm x  90 mm (Zarge Griffleisten)
 6 St. 380 mm x  80 mm (Boden unten Stirn)
 3 St. 380 mm x  60 mm (Boden Flugloch)
 9 St. 380 mm x  40 mm (Deckel Stirn und Boden Fluglochkeil)
 9 St. 380 mm x  20 mm (Boden oben Stirn + Querstrebe unten)

 3 St. 378 mm x  93 mm (Bodendeckel hinten, innen)

Hartholz 5mm stark:
18 St. 376 mm x  18mm (Zarge Stirn unten, gegen verrutschen)

Sperrholz, einigermassen witterungbeständig
 3 St. 520 mm x 420mm (Deckel)
 3 St. 420 mm x  95mm (Bodendeckel hinten)

Weichfaserplatte 30mm
 3 St. 480 mm x 380 mm (Deckel, Isolierung)

May 07 2010

jensens
15:23

Buch "Imkern im Gebirge" v. H.Gritsch

Superbuch, für alle die in Gebirgslagen Imkern,

May 06 2010

jensens
16:06

April 27 2010

jensens
08:46
Older posts are this way If this message doesn't go away, click anywhere on the page to continue loading posts.
Could not load more posts
Maybe Soup is currently being updated? I'll try again automatically in a few seconds...
Just a second, loading more posts...
You've reached the end.