Skip to content.

Goodies ::: Linux Projekte

Inhalt

Fax/Anrufbeantworter mit Linux/capircvd

Ich habe mir eine Fax-Arufbeantworter-Kombination mit Linux und ISDN zusammengebastelt, die Anrufe als MP3 und Faxe als GIF per Email zusendet.
Das spart Tinte & Papier und schon auch die Umwelt, da viele Werbe-Faxe einfach gelöscht werden können.

Dazu ist folgendes nötig:

capircvd.conf Beispiel

=global
iprefix		49
nprefix		721
onerror		exit

=controller1
numlength	12
prefix		4972194647
maxfax		1

=default
handler		capircvd.handler
recipient	holger@eiboeck.de

# Anrufbeantwoter
=497219464728
mode		voice
delay		20
announcement 	ansage.alaw
record		later
recipient	ab@eiboeck.de
exec		capircvd.handler

# Fax
=497219464729
mode      	fax
recipient	fax@eiboeck.de
faxid		+49_721_9464744
filename	from-%2$s-to-%1$s-%3$06d_%6$04d-»
%7$02d-%8$02d_%9$02d.%10$02d.%11$02d.sff mailformat inline_gif

Ausserdem benötigt man neuerdings einen Patch für den Betrieb von capircvd-0.2.42 unter Kernel 2.6.7, da sich die isdn4linux API geädert hat (in capiutils.h 1.5->1.6).

Wenn das Kompilieren von capircvd mit einem Fehler bei ALERT_REQ fehlschlägt, dann genügt es in cconn.cpp alle vier Aufrufe von ALERT_REQ mit einem zusätzlichen NULL Parameter zu versehen:
z.B.:

ALERT_REQ (& CMSG1, Appl_Id, 0, PLCI,
-                                  NULL, NULL, NULL, NULL);
+                                  NULL, NULL, NULL, NULL, NULL);

Schmälzle Abo-Kisten Info

Für Leute, die auch die Abo-Kiste von Bioland Gärtnerei Schmälzle aus Sinzheim-Müllhofen bekommen und vorher gerne wissen wollen, was sie denn diese Woche bekommen.

Das Perl Script holt die Daten der nächste Obst- & Gemuesekiste (klein) von Schmälze's Webseite und gibt sie als Text aus. Damit kann man sich wunderbar einen cron Job basteln, der tags zuvor per email verschickt, was es gibt!

Benötigt folgende Perl Module evtl. von CPAN:

  • WWW::Mechanize
  • WWW::Mechanize::FormFiller
  • HTML::TreeBuilder
  • HTML::FormatText
  • URI::URL

Download schmaelzle.pl

pcwd Berkshire Products ISA/PCI Watchdog Card Linux Kernel Driver

Der Treiber hat seine eigene Seite: pcwd

Sun Sparc Linux Serial Console Patch

If you run a serial console terminal on a sparc linux machine, everytime you switch off the terminal or remove the serial cable, then the zs driver interprets this as break and halts the machine in bootprompt mode. Too bad, you now can only reboot the machine.

To circumvent this you can solder a 47k resistor between pin 3 and 25 on your serial cable or you can patch the zs driver:

  • locate the function batten_down_hatches in linux/drivers/sbus/char/sunserial.c
  • insert as first line a return;
  • Then recompile the kernel and enjoy.
  • Additionaly you can insert a printk("MACHINE WOULD HAVE CRASHED!\n"); before the return, so you see it in the kernel.log, when the console is switched on/off.