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 — 2 DROP all — 3 DROP all — 4 DROP all — 5 DROP all — 6 DROP all — 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 How I got multitouch working with qt5 and ubuntu 12.10 on a Acer Netbook (Aspire 1825PTZ): Installed qt5-sdk-rc1 from git clone qt5 cd qt5/qtbase/src/platformsupport/input/evdevtouch/ edit evdevtouch.pri, uncomment DEFINES += USE_MTDEV compile qt5 according to instructions in 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; ; ::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

A way to translte OSC-Messages to Midi Signals using puredata: #N canvas 100 620 674 308 10; #X obj 151 121 unpack 0 0 0; #X obj 205 242 print; #X obj 153 170 ctlout; #X obj 240 126 unpack 0 0 0; #X obj 236 167 noteout; #X obj 324 167 bendout; #X obj […]

Copy everything to directory structure: wget -E -H -k -K -p 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 […]

Block ping from localhost root@ace1:/home/c1audio# iptables -A INPUT -s -p icmp -j DROP root@ace1:/home/c1audio# iptables -L Chain INPUT (policy ACCEPT) target     prot opt source               destination DROP       icmp —  localhost            anywhere Chain FORWARD (policy ACCEPT) target     prot opt source               destination Chain OUTPUT (policy ACCEPT) target     prot opt source               destination root@ace1:/home/c1audio# ping PING ( […]

E-Mail Test mit Telnet: myMac:~ c1audio$ telnet 25 Trying… Connected to Escape character is ‘^]’. 220 ESMTP Exim 4.69 Tue, 31 Jan 2012 07:26:07 -0500 HELO 250 Hello [] MAIL 250 OK RCPT 250 Accepted DATA 354 Enter message, ending with “.” on a line by […]