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
Category Archives: system operating
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”
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
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
Save all images on page
Copy everything to directory structure: wget -E -H -k -K -p http://the.site/dir search .jpgs in structure and copy all to one dir: find . -name *.jpg -exec mv ‘{}’ /target/dir \;
How we log apache
We have a site specific logfile and one main file for all sites on the server. The main one has a special log format, that allows to see the www adress of the server in the webalizer log: apache2.conf:LogFormat “%h %l %u %t \”GET %V\” %>s %b \”%{Referer}i\” \”%{User-Agent}i\” \”%r\” %P” extended So here it […]
E-Mail Config/Test
E-Mail Test mit Telnet: myMac:~ c1audio$ telnet vmk.zhdk.ch 25 Trying 195.176.254.139… Connected to vmk.zhdk.ch. Escape character is ‘^]’. 220 php5.vmk.zhdk.ch ESMTP Exim 4.69 Tue, 31 Jan 2012 07:26:07 -0500 HELO 172.31.40.115 250 php5.vmk.zhdk.ch Hello 172.31.40.115 [172.31.40.115] MAIL FROM:xy@z.ch 250 OK RCPT TO:ab@c.ch 250 Accepted DATA 354 Enter message, ending with “.” on a line by […]