1.Error: Class ‘PEAR’ not found -> Add following to open-basedir: php_admin_value open_basedir “/home/services:/tmp:/usr/share/roundcube:/usr/share/php:/var/lib/roundcube:/etc/roundcube” 2. Error: DB Error: [26] file is encrypted or is not a database -> Convert old database: sqlite vmk.rcm.db .dump | sqlite3 vmk.rcm.sqlite3.db
Author Archives: guide
shell to analyze logs – introduction
die gesamte datei anzeigen $ cat access-blick.log den schluss der datei anzeigen $ tail access-blick.log den schluss der datei fortlaufend anzeigen $ tail -f access-blick.log alle zeilen anzeigen, die den text “mozilla” enthalten $ grep mozilla access-blick.log das pipe symbol | wird dazu verwendet, die Ausgabe eines Programms an ein anderes […]
IPTABLES stuff
root@framework4 ~ # iptables -L INPUT -n –line-numbers Chain INPUT (policy ACCEPT) num target prot opt source destination 1 DROP all — 223.4.55.49 0.0.0.0/0 2 DROP all — 174.143.151.104 0.0.0.0/0 3 DROP all — 88.198.249.15 0.0.0.0/0 4 DROP all — 61.147.116.62 0.0.0.0/0 5 DROP all — 116.124.128.226 0.0.0.0/0 6 DROP all — 37.59.40.10 0.0.0.0/0 7 […]
delete a whole lot of crap in Maildir
~/Maildir/cur# for i in `grep Tiki *|awk ‘{split($0,a,”:”); print a[1]”:”a[2] }’`; do rm $i; done Deletes all mails in Maildir inbox containing “Tiki”
crop batch
for i in *; do convert -crop 654×993+620+266 “$i” “$i.conv.png” ; done
Thoughts on digital citizenship
I used to be a digital citizen long before I heard this expression for the first time. I started computing in 1984 and I am very familiar with all kind of applied digital technologies. I prefer to call myself citizen of the 21st century because this includes belief in values like freedom of belief, sexuality […]
linux multitouch qt5 ubuntu 12.10
Literature https://wiki.ubuntu.com/Multitouch/Testing http://askubuntu.com/questions/182348/how-to-get-touchscreen-working-on-lenovo-ideacentre-a720 http://www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt http://gabrbedd.wordpress.com/2012/07/10/getting-multitouch-qt-on-ubuntu-12-04/ How I got multitouch working with qt5 and ubuntu 12.10 on a Acer Netbook (Aspire 1825PTZ): Installed qt5-sdk-rc1 from http://releases.qt-project.org/qt5.0/rc2/qt-linux-opensource-5.0.0-rc2-x86-offline.run git clone git://gitorious.org/qt/qt5.git qt5 cd qt5/qtbase/src/platformsupport/input/evdevtouch/ edit evdevtouch.pri, uncomment DEFINES += USE_MTDEV compile qt5 according to instructions in http://qt-project.org/wiki/Building_Qt_5_from_Git Installation/replace current libs: cd ~/Qt5.0.0-rc1/5.0.0-rc1/gcc mv lib lib.no_mtdev ln -s ~/qt5/qtbase/lib/ […]
etherwake
sudo etherwake -b 00:26:6c:17:c4:2c
opencv example
sudo apt-get install build-essential ffmpeg libavcodec-dev libavformat-dev libswscale-dev libjpeg-dev libpng-dev libtiff-dev libjasper-dev cmake subversion libgtk2.0-dev pkg-config python git libv4l-dev liblo-dev wget http://sourceforge.net/projects/opencvlibrary/files/opencv-unix/2.4.2/OpenCV-2.4.2.tar.bz2/download http://docs.opencv.org/doc/tutorials/introduction/linux_install/linux_install.html#linux-installation
exim4 receive config
/etc/hostmane: containe ip of host /etc/mailname: contains host part of sender adress /etc/exim4/update-exim4-conf.conf: dc_eximconfig_configtype=’internet’ dc_other_hostnames=’46.x.y.z’ dc_local_interfaces=’46.x.y.z; 127.0.0.1 ; ::1′ dc_readhost=” dc_relay_domains=” dc_minimaldns=’false’ dc_relay_nets=” dc_smarthost=” CFILEMODE=’644′ dc_use_split_config=’false’ dc_hide_mailname=” dc_mailname_in_oh=’true’ dc_localdelivery=’maildir_home’ test: mail -s hello xy@zzz.ch