Citizens guide to the 21st century
scratch book of what you should know to be a citizen of the 21st century

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

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 […]

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 […]

~/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”  

Literature wiki.ubuntu.com/Multitouch/Testing askubuntu.com/questions/182348/how-to-get-touchscreen-working-on-lenovo-ideacentre-a720 www.kernel.org/doc/Documentation/input/multi-touch-protocol.txt 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 releases.qt-project.org/qt5.0/rc2/qt-linux-opensource-5.0.0-rc2-x86-offline.run git clone 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 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/ […]

sudo etherwake -b 00:26:6c:17:c4:2c

/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

Copy everything to directory structure: wget -E -H -k -K -p the.site/dir search .jpgs in structure and copy all to one dir: find . -name *.jpg -exec mv ‘{}’ /target/dir \;

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 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 […]

# vzlist | grep -v CTID | awk {‘print ” echo -n “””$1″ – “” ; vzctl exec “$1″ cat /proc/loadavg ” ‘} | sh “On Linux the load average includes processes blocking on I/O. A slow disk setup can cause a high load.” openvz.org/pipermail/users/2009-March/002766.html

Clone website. New site url: mysql> update wp_options set option_value=”newurl.xyz” where option_name=”home”; mysql> update wp_options set option_value=”newurl.xyz” where option_name=”siteurl”; Disable comments: mysql> update wp_options set option_value=’closed’ where option_name=’default_comment_status’; mysql> UPDATE wp_posts SET comment_status=”closed”; Prevent any changes: move away wp-admin and wp-login.php