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

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

/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

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 the.site/dir search .jpgs in structure and copy all to one dir: find . -name *.jpg -exec mv ‘{}’ /target/dir \;

Block ping from localhost root@ace1:/home/c1audio# iptables -A INPUT -s 127.0.0.1 -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 127.0.0.1 PING 127.0.0.1 (127.0.0.1) […]

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

services.vmk.zhdk.ch/calc/Calcium39.pl?CalendarName=snm_kalender&Op=iCalSubscribe&x=1

root@files2010:~# apt-get install ntp root@snd2011:/# dpkg-reconfigure tzdata Current default time zone: ‘Europe/Zurich’ Local time is now:      Thu Nov 10 13:18:41 CET 2011. Universal Time is now:  Thu Nov 10 12:18:41 UTC 2011.

1. Checken, ob Netzwerkzugriff auf die Drucker vorhanden ist: printy.vmk.zhdk.ch:631/printers/laserjet printy.vmk.zhdk.ch:631/printers/laserjet2 2. Systemeinstellungen Drucken & Faxen öffnen 3. Adresse wie folgt eintragen: 4. Treiber / “Druckersoftware auswählen” 5. “hp laserjet 5100” im Suchfeld eingeben und folgenden Treiber auswählen 6. Treiberoptionen anwählen… fertig.

apt-get install nagios-nrpe-server nagios-plugins wget www.lsi.com/downloads/Public/SATA/SATA%20Common%20Files/cli_linux_10.2.1_9.5.4.zip unzip cli_linux_10.2.1_9.5.4.zip mv x86_64/tw_cli /usr/local/sbin/ root@vz2010:~# cat /etc/nagios/nrpe_local.cfg command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 command[check_raid]=/bin/cat /tmp/3ware command[check_disk]=/usr/lib/nagios/plugins/check_disk -w 10M -c 20M -p /dev/sda1 command[check_vz]=/usr/lib/nagios/plugins/check_vz_ubc root@vz2010:~# grep observer /etc/nagios/nrpe.cfg allowed_hosts=observer.vmk.zhdk.ch root@vz2010:~# crontab -l * * * * * cat /proc/user_beancounters > /tmp/user_beancounters * * * * * /usr/lib/nagios/plugins/check_3ware.pl -d c2 >/tmp/3ware […]