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) […]
Category Archives: pure computing
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 […]
Gimme all VEs load averages
# 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.” http://openvz.org/pipermail/users/2009-March/002766.html
Scientific and educational sources
http://cnx.org http://www.mitpressjournals.org/cmj http://lac.linuxaudio.org/2012/ http://ieeexplore.ieee.org
Mod wordpress to searchable static archive
Clone website. New site url: mysql> update wp_options set option_value=”http://newurl.xyz” where option_name=”home”; mysql> update wp_options set option_value=”http://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
VMK Kalender in iCal o.ä. abonnieren
webcal://services.vmk.zhdk.ch/calc/Calcium39.pl?CalendarName=snm_kalender&Op=iCalSubscribe&x=1
mount iso image (loop) in fstab
root@files2010:~# cat /etc/fstab … /root/images/clonezilla-live-1.2.10-14-i686-pae.iso /liveiso/1 udf,iso9660 user,loop 0 0 /root/images/ubuntu-11.10-desktop-i386.iso /liveiso/2 udf,iso9660 user,loop 0 0 /root/images/ubuntu-11.10-desktop-amd64.iso /liveiso/3 udf,iso9660 user,loop 0 0
Windows 7 automatisch herunterfahren in 1 Stunde
run cmd C:\Users\online>shutdown /s /t 3600 /f
keep server time up to date
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.
Drucken mit CUPS/IPP/OSX 10.6.8
1. Checken, ob Netzwerkzugriff auf die Drucker vorhanden ist: http://printy.vmk.zhdk.ch:631/printers/laserjet http://printy.vmk.zhdk.ch:631/printers/laserjet2 2. Systemeinstellungen Drucken & Faxen öffnen 3. Adresse ipp://printy.vmk.zhdk.ch:631/printers/laserjet 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.