Monthly Archives: March 2014

Hirn Infarkt

Synonyme (de): apoplektischer Insult, Apoplex, Schlaganfall, Gerhirnschlag
Synonyme (en): brain attack, cerebrovascular accident, stroke

Arten (de):
– Ischämie (= ischämischem Hirninfarkt) in 80-85%
– Als Folge einer Hirnblutung (= hämorrhagischer Infarkt, Intrazerebrale Blutung) in 15-20%
Arten (en): ischemic, hemorrhagic

	
TIA     Transiente ischämische Attacke                                    vollst. Remission innerhalb 24h
PRIND   Prolongierte reversible ischämischs neurologisches Defizit        vollst. Remission > 24h
CVI     Cerebrovaskulärer Insult                                          höchstens teilweise Remission

Zerebrovaskuläre Insuffizienz (CVI)
Cerebrovaskulärer Insult (CVI)

Logitech Quickcam Pro 9000

$ lsusb
Bus 001 Device 008: ID 046d:0990 Logitech, Inc. QuickCam Pro 9000

$ sudo gedit /etc/udev/rules.d/80-uvcdynctrl.rules
ACTION=="add", SUBSYSTEM=="video4linux", DRIVERS=="uvcvideo", RUN+="/lib/udev/uvcdynctrl"

$ dmesg | tail
[162799.904121] usb 1-3: new high-speed USB device number 7 using ehci-pci
[162800.162762] usb 1-3: New USB device found, idVendor=046d, idProduct=0990
[162800.162769] usb 1-3: New USB device strings: Mfr=0, Product=0, SerialNumber=2
[162800.162772] usb 1-3: SerialNumber: 7606FCDD
[162800.624344] Linux video capture interface: v2.00
[162800.715345] usb_audio: Warning! Unlikely big volume range (=3072), cval->res is probably wrong.
[162800.715352] usb_audio: [5] FU [Mic Capture Volume] ch = 1, val = 4608/7680/1<6>[162800.715736] usbcore: registered new interface driver snd-usb-audio
[162800.746098] uvcvideo: Found UVC 1.00 device <unnamed> (046d:0990)
[162800.762570] input: UVC Camera (046d:0990) as /devices/pci0000:00/0000:00:1d.7/usb1/1-3/1-3:1.0/input/input13
[162800.762693] usbcore: registered new interface driver uvcvideo
[162800.762696] USB Video Class driver (1.1.1)

$ sudo apt-get install guvcview

Logitech Webcam Pro 9000 – running under Ubuntu 11.04 Linux
Logitech Quickcam Pro 9000
Logitech Quickcam Pro 9000 drivers?

Tomcat and Apache

JkWorkersFile etc/apache22/workers.properties
JkLogFile /var/log/mod_jk.log
JkShmFile  /var/log/jk-runtime-status
JkLogLevel error

<VirtualHost xyz.com>
    [...]

    JkMount /webdev/* mainworker
    JkMount /*.jsp mainworker

    [...]
</VirtualHost>
worker.list=mainworker

worker.mainworker.port=8009
worker.mainworker.host=localhost
worker.mainworker.type=ajp13
worker.mainworker.lbfactor=1
<?xml version="1.0" encoding="UTF-8"?>
<Server port="8005" shutdown="SHUTDOWN">
  <Service name="Catalina">
    <Connector port="8009" protocol="AJP/1.3" />

    <Engine name="Catalina" defaultHost="localhost">
      <Host name="localhost" appBase="webapps" />
      <Host name="xyz.com" appBase="/web/xyz.com" />
    </Engine>
  </Service>
</Server>

Blender: Install Blender 2.7 from PPA

PPA for Blender 2.4 and 2.6 (and 2.7)

$ blender
connect failed: No such file or directory
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

# Blender 2.70 (sub 0), Commit date: 2014-03-20 17:45, Hash dfa5ced

# backtrace
/usr/lib/blender/blender() [0x8750fce]
[0xb7765400]
/usr/lib/i386-linux-gnu/libLLVM-3.2.so.1(_ZNK4llvm6Triple11getArchNameEv+0x20) [0xb33e3060]
/usr/lib/i386-linux-gnu/libLLVM-3.2.so.1(_ZN4llvm6TripleC2ERKNS_5TwineE+0x41) [0xb33e3841]
/usr/lib/i386-linux-gnu/libgallium.so.0(lp_build_create_jit_compiler_for_module+0x57d) [0xa9d58e6d]
/usr/lib/i386-linux-gnu/libgallium.so.0(gallivm_create+0xba) [0xa9d3431a]
/usr/lib/i386-linux-gnu/libgallium.so.0(draw_llvm_create_variant+0x42) [0xa9d55382]
/usr/lib/i386-linux-gnu/libgallium.so.0(+0x1468ee) [0xa9d568ee]
/usr/lib/i386-linux-gnu/libgallium.so.0(+0x42c7d) [0xa9c52c7d]
/usr/lib/i386-linux-gnu/libgallium.so.0(+0x3b975) [0xa9c4b975]
/usr/lib/i386-linux-gnu/libgallium.so.0(draw_vbo+0x1dd) [0xa9c4be1d]
/usr/lib/i386-linux-gnu/libgallium.so.0(st_feedback_draw_vbo+0x4f1) [0xa9d6ee81]
/usr/lib/i386-linux-gnu/libgallium.so.0(+0x158498) [0xa9d68498]
/usr/lib/i386-linux-gnu/libdricore9.2.1.so.1(+0xda64a) [0xaa0f264a]
/usr/lib/i386-linux-gnu/libdricore9.2.1.so.1(_mesa_RasterPos2f+0x28) [0xaa0f2a08]
/usr/lib/blender/blender() [0x892108c]
/usr/lib/blender/blender() [0x89212ae]
/usr/lib/blender/blender(UI_icon_draw_aspect+0x45) [0x8923755]
/usr/lib/blender/blender() [0x894850e]
/usr/lib/blender/blender() [0x8948f07]
/usr/lib/blender/blender(ui_draw_but+0x5b0) [0x894cbc0]
/usr/lib/blender/blender(uiDrawBlock+0x21d) [0x8904dcd]
/usr/lib/blender/blender(ED_region_header+0x217) [0x8a04e17]
/usr/lib/blender/blender() [0x87ac303]
/usr/lib/blender/blender(ED_region_do_draw+0xa23) [0x8a03793]
/usr/lib/blender/blender() [0x875601a]
/usr/lib/blender/blender(wm_draw_update+0x896) [0x8756d66]
/usr/lib/blender/blender(WM_main+0x38) [0x8753748]
/usr/lib/blender/blender(main+0x11d1) [0x870e6a1]
/lib/i386-linux-gnu/libc.so.6(__libc_start_main+0xf5) [0xb4c1e905]
/usr/lib/blender/blender() [0x8750806]

Bug #1216993 “connect failed : no such file or directory, Segmentation fault (core dumped)

$ ldd /usr/lib/blender/blender | grep "not found"
	libavformat.so.55 => not found
	libavcodec.so.55 => not found
	libavutil.so.52 => not found
	libavdevice.so.55 => not found

$ dpkg -L libavcodec53
/usr/lib/i386-linux-gnu/libavcodec.so.53

$ apt-cache search libav
libavcodec-dev - Development files for libavcodec
libavcodec53 - Libav codec library
libavdevice-dev - Development files for libavdevice
libavdevice53 - Libav device handling library
libavfilter-dev - Development files for libavfilter
libavfilter2 - Libav video filtering library
libavformat-dev - Development files for libavformat
libavformat53 - Libav file format library
libavutil-dev - Development files for libavutil
libavutil51 - Libav utility library

=== DOESN'T WORK ===
$ sudo apt-get install libavformat53 libavcodec53 libavutil51 libavdevice53 libavfilter2
$ sudo apt-get install libavformat-dev libavcodec-dev libavutil-dev libavdevice-dev libavfilter-dev

Hint:
FFmpeg Download
Jon Severinsson’s FFmpeg PPA
Possible to get libavcodec54 from 14.04 into 13.10?

libav – Open source audio and video processing tools
libav on debian squeeze
What is ffmpeg, avcodec, x264?

$ dpkg -L blender-codecs-ffmpeg2.1
/.
/usr
/usr/lib
/usr/lib/blender
/usr/lib/blender/ffmpeg
/usr/lib/blender/ffmpeg/2.1
/usr/lib/blender/ffmpeg/2.1/lib
/usr/lib/blender/ffmpeg/2.1/lib/libswresample.so.0.17.104
/usr/lib/blender/ffmpeg/2.1/lib/libavdevice.so.55.5.100
/usr/lib/blender/ffmpeg/2.1/lib/libavfilter.so.3.90.100
/usr/lib/blender/ffmpeg/2.1/lib/libswscale.so.2.5.101
/usr/lib/blender/ffmpeg/2.1/lib/libavformat.so.55.19.104
/usr/lib/blender/ffmpeg/2.1/lib/libavutil.so.52.48.101
/usr/lib/blender/ffmpeg/2.1/lib/libavcodec.so.55.39.101
/usr/share
/usr/share/doc
/usr/share/doc/blender-codecs-ffmpeg2.1
/usr/share/doc/blender-codecs-ffmpeg2.1/changelog.Debian.gz
/usr/share/doc/blender-codecs-ffmpeg2.1/copyright
/usr/lib/blender/ffmpeg/2.1/lib/libavdevice.so.55
/usr/lib/blender/ffmpeg/2.1/lib/libavformat.so.55
/usr/lib/blender/ffmpeg/2.1/lib/libavutil.so.52
/usr/lib/blender/ffmpeg/2.1/lib/libavfilter.so.3
/usr/lib/blender/ffmpeg/2.1/lib/libswscale.so.2
/usr/lib/blender/ffmpeg/2.1/lib/libswresample.so.0
/usr/lib/blender/ffmpeg/2.1/lib/libavcodec.so.55

$ LD_LIBRARY_PATH=/usr/lib/blender/ffmpeg/2.1/lib /usr/lib/blender/blender
connect failed: No such file or directory
Writing: /tmp/blender.crash.txt
Segmentation fault (core dumped)

$ dpkg -l | grep -i libLLVM
ii  libllvm3.1:i386                      3.1-2ubuntu2                               i386         Low-Level Virtual Machine (LLVM), runtime library
ii  libllvm3.2:i386                      1:3.2repack-7ubuntu1                       i386         Low-Level Virtual Machine (LLVM), runtime library
ii  libllvm3.3:i386                      1:3.3-5ubuntu4                             i386         Low-Level Virtual Machine (LLVM), runtime library

$ ldd /usr/lib/blender/blender | grep -i llvm
	libLLVM-3.2.so.1 => /usr/lib/i386-linux-gnu/libLLVM-3.2.so.1 (0xb3b3e000)

$ apt-cache policy libllvm3.2
libllvm3.2:
  Installed: 1:3.2repack-7ubuntu1
  Candidate: 1:3.2repack-7ubuntu1
  Version table:
 *** 1:3.2repack-7ubuntu1 0
        500 http://mirror.switch.ch/ftp/mirror/ubuntu/ saucy/universe i386 Packages
        100 /var/lib/dpkg/status

LLVM Debian/Ubuntu nightly packages
LLVM Project Blog: LLVM Debian/Ubuntu nightly packages

SpamAssassin on FreeBSD

Directories:
/usr/local/bin
/usr/local/etc/mail/spamassassin
/usr/local/share/spamassassin
/var/db/spamassassin/

Files:
/usr/local/etc/rc.d/sa-spamd

Spamassassin optimieren
Aus dem Alltag eines Sysadmin: SA-Update – Frische Instruktionen

Roaming Users

A quick guide to vpopmail with MySQL

$ ls -la /var/qmail/service/smtpd
-rwxr-xr-x  1 root  qmail  164 Mar 11  2007 add-relayclient
drwxr-sr-x  2 root  qmail  512 Mar 11  2007 env
drwxr-sr-x  5 root  qmail  512 Mar 11  2007 log
-rwxr-xr-x  1 root  qmail  517 Jun  2 11:51 run
drwx------  2 root  qmail  512 Jun  2 15:01 supervise
lrwxr-xr-x  1 root  qmail   32 Mar 11  2007 tcp -> /usr/local/vpopmail/etc/tcp.smtp
lrwxr-xr-x  1 root  qmail   36 Mar 11  2007 tcp.cdb -> /usr/local/vpopmail/etc/tcp.smtp.cdb

$ ls -la /usr/local/vpopmail/etc
-rw-r--r--  1 vpopmail  vchkpw    30 Mar 17  2007 inc_deps
-rw-r--r--  1 vpopmail  vchkpw    88 Mar 17  2007 lib_deps
-rw-r--r--  1 vpopmail  vchkpw     0 Mar 16  2007 open-smtp
-rw-r--r--  1 vpopmail  vchkpw     0 Mar 16  2007 open-smtp.lock
-r--r--r--  1 vpopmail  vchkpw    82 Mar 11  2007 tcp.smtp
-r--r--r--  1 vpopmail  vchkpw    26 Mar 11  2007 tcp.smtp-dist
-rw-r--r--  1 vpopmail  vchkpw  2162 Sep 30 19:40 tcp.smtp.cdb
-rw-r--r--  1 vpopmail  vchkpw  1107 Mar 11  2007 vlimits.default
-rw-r--r--  1 vpopmail  vchkpw  1107 Mar 17  2007 vlimits.default-dist
-rw-r-----  1 vpopmail  vchkpw   843 Mar 17  2007 vpopmail.mysql

Hints

Fine-tuning SpamAssassin
Location of spamd log file?

$ fgrep spamd /var/log/maillog | less

Patches

Bug 6937 – 3.3.2 and Perl 5.18.0: Altering hash requires restarting loop else UNDEFINED behavior.
Spamassassin problem since upgrading Perl

Rules

/var/db/spamassassin/3.003002/updates_spamassassin_org/

Aktuelle SpamAssassin-Regeln von Heinlein Support

RCVD_IN_PBL
MIME_HTML_MOSTLY

Sep 30 14:13:54 te-clan spamd[16391]: spamd: processing message <007701cfdca4$9823e430$c86bac90$@XXX.ch> for vpopmail:89 
Sep 30 14:13:56 te-clan spamd[16391]: spamd: identified spam (7.5/7.0) for vpopmail:89 in 1.6 seconds, 2697 bytes. 
Sep 30 14:13:56 te-clan spamd[16391]: spamd: result: Y 7 - BAYES_20,DOS_OUTLOOK_TO_MX,FSL_HELO_NON_FQDN_1,HELO_NO_DOMAIN,HTML_MESSAGE,MIME_HTML_MOSTLY,RCVD_IN_PBL,RCVD_IN_SORBS_DUL,RDNS_NONE scantime=1.6,size=2697,user=vpopmail,uid=89,required_score=7.0,rhost=localhost,raddr=127.0.0.1,rport=58348,mid=<007701cfdca4$9823e430$c86bac90$@XXX.ch>,bayes=0.055594,autolearn=no 

X-Spam-Status Header

Forcing SpamAssassin To Add The X-Spam-Status Header To Ham For Debugging

qmail / vpopmail

Start/Stop

$ /usr/local/etc/rc.d/svscan stop
$ /usr/local/etc/rc.d/svscan start

Queue Handling

$ /var/qmail/bin/qmail-qstat
$ /var/qmail/bin/qmail-qread
$ find /var/qmail/queue -name NNNN| xargs cat | less

for i in bounce info intd local mess remote todo; do
  find /var/qmail/queue/$i -type f -exec rm {} \;
done

Viewing Messages in Your Qmail Queue
Forcefully clearing the qmail queue
E-Mail Warteschlange löschen

Spam Blacklist

How to Remove Your IP from the Gmail Blacklist
Blocklist Removal Center
The Anti-Abuse Project – Multi-RBL Check
DNSBL.info
ImproWare Antispam
abuse.ch ZeuS
List of Removal Links for Active Blacklists
drbcheck: dr. Jørgen Mash’s DNS database list checker

FAQ

0. How can I set one virtual domain to be the primary domain for
   the machine? We don't want to have any /etc/passwd users.
1. How do I pop in to pick up my virtual domain email?
2. How do I forward all mail that doesn't match any pop users or .qmail
   files for a particular domain?
3. How do I bounce all mail that doesn't match any pop users or .qmail
   files for a particular domain?
4. How do I allow roaming users to use our smtp server without opening
   the machine up to everyone on the internet? 
5. What is a sample start script for the pop server?
6. How do hard quota's for users work?
7. I installed qmail in a place other than /var/qmail. How should
8. I want to use a different file name than /etc/tcp.smtp for my
9. How can we use an IP address per domain, so that users don't need
   to authenticate with user%domain or user@domain, 
   they just want to use "user"?
11. Logging? Please tell me about logging
12. How do I alias a new virtual domain to a current virtualdomain?
13. How do I post a email to all users of a virtualdomain or a set
    of domains?
14. Is there a mailing list available for vpopmail package?
15. How do I setup vpopmail to talk to mysql?
16. I want to upgrade vpopmail, what do I need to worry about?
17. Will IMAP work with vpopmail?
18. Can I use vpopmail with IMP (www.horde.org/imp)?
19. What is the difference between the --enable-large-site=y or n
20. How do I control the database and table names in mysql?
21. Why can't pop authenticate on my slackware installation? 
22. How do I forward all email to a different site?
23. How come, about every hour or so, everything stops working?
24. We are using NFS and sometimes things break! 
25. How to use ssh tunnels with pop?
26. vaddomain fails on my Debian qmail installation
27. How do I log when people authenticate with pop? 
28. How do I compile sqwebmail with vpopmail and mysql?
29. How can I uninstall vpopmail? 
30. I get errors about not finding a .so library, how to fix?
31. What is the relationship between ~vpopmail/etc/open-smtp
    ~vpopmail/etc/tcp.smtp and ~vpopmail/etc/tcp.smtp.cdb and how do they work with
    the smtpserver?
32. I don't want to bounce emails for non existent users. Instead I want
    to delete them, how?
33. Quota usage doesn't decrease after deleting messages with qmail-pop3d!
34. How do I get Courier-IMAP use vpopmail's "roaming users"?
35. How to run vadddomain as non root
36. I want to have vpopmail access mysql as vpopmail and not root. What 
    sql commands to I run? 
37. Is there commercial support available?

Don’t bounce emails, just delete it

32. I don't want to bounce emails for non existent users. Instead I want
    to delete them, how?

   The last parameter in the .qmail-default file tells vdelivermail
   what to do with non-matching emails. The default is to bounce
   the email back to the sender. But you can also delete it instead.

   update your .qmail-default file  from something like this:
   | /home/vpopmail/bin/vdelivermail '' bounce-no-mailbox 

   to something like this:
   | /home/vpopmail/bin/vdelivermail '' delete 

Inter7 vpopmail FAQ

VT / Console / Xterm escape sequence

^V-Key  Console (80x25)      Xterm (KDE)       Xterm/Nxterm (Gnome)
------ Disp   Binary        Disp   Binary        Disp  Binary
Home   ^[[1~  1B 5B 31 7E   ^[[H   1B 5B 48      ^[OH  1B 4F 48
End    ^[[4~  1B 5B 34 7E   ^[[F   1B 5B 46      ^[OF  1B 4F 46

Delete ^[[3~  1B 5B 33 7E   ^?     7F            ^?    7F
Backsp ^?     7F            ^H     08            ^H    08
Insert ^[[2~  1B 5B 32 7E   ^[[2~  1B 5B 32 7E   ^[[2~ 1B 5B 32 7E

PageUp ^[[5~  1B 5B 35 7E   ^[[5~  1B 5B 35 7E   ^[[5~ 1B 5B 35 7E
PageDn ^[[6~  1B 5B 36 7E   ^[[6~  1B 5B 36 7E   ^[[6~ 1B 5B 36 7E

Up     ^[[A   1B 5B 41      ^[OA   1B 4F 41      ^[OA  1B 4F 41
Down   ^[[B   1B 5B 42      ^[OB   1B 4F 42      ^[OB  1B 4F 42
Right  ^[[C   1B 5B 43      ^[OC   1B 4F 43      ^[OC  1B 4F 43
Left   ^[[D   1B 5B 44      ^[OD   1B 4F 44      ^[OD  1B 4F 44 

Default VT escape sequences sent by our VT emulator
Linux Backspace/Delete mini-HOWTO
Consistent BackSpace and Delete Configuration
The Linux keyboard and console HOWTO: Delete and Backspace