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

April 04 2012

jensens
20:12

Adding a Custom Screen Resolution to Ubuntu

I have a about 5 year old projector, its a Hitachi Illumina PJ-TX200 with a native resolution of 1280x720 at 60Hz. My Ubuntu 12.04 does not detect the device properly and offers only 1024x768. :-(

But its so easy: On the command line generate a modeline with:

$ cvt 1280 720 60
# 1280x720 59.86 Hz (CVT 0.92M9) hsync: 44.77 kHz; pclk: 74.50 MHz
Modeline "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync

Then register the modeline for use:

$ xrandr --newmode "1280x720_60.00"   74.50  1280 1344 1472 1664  720 723 728 748 -hsync +vsync

And make it available for VGA1:

$ xrandr --addmode VGA1 "1280x720_60.00"

Thats it. Go to the settings and select the new screen resolution.
Tags: X projector

March 27 2012

jensens
10:57

UPDATE

./bin/python2.4 is no longer created. Please use

$ sudo ./bin/install-links

to create a symbolic link in /usr/local/bin

then start python 2.4 with

$ python2.4
jensens
10:20

Python 2.4 on Ubuntu Precise 12.04

I used the buildout at https://github.com/collective/buildout.python and created a branch where I ripped off all sugar which blocked me from building. So do:

git clone -b jensens-py2.4-only-ubuntu-precise git://github.com/collective/buildout.python.git

python bootstrap.py

./bin/buildout

and then start the interpreter at

./bin/python2.4

Hope that helps anybody.

March 22 2012

jensens
21:57

DRBD recover StandAlone Secondary/Unknown

On secondary:

drbdadm disconnect r0
drbdadm -- --discard-my-data connect r0
Tags: DRBD

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
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
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_1000
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_1000
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_1000
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_1000
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
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.