Enable NFS services for HADR
You might need to enable network file system (NFS) services when configuring the High Availability Disaster Recovery (HADR) or Database Partioning (DPF) DB2 features. For example, with HADR, you might want to set up a slave database that shares a backup with the master database through NFS. These commands should enable NFS services on most [...]
iptables pitfall
An important thing to remember about rulesets in /etc/sysconfig/iptables is that they are chains. The first rule is applied, followed by the second, and so on. It’s the opposite of CSS that way. More specific rules should go first, while all-encompassing rules should go last. I was trying to open the usual DB2 ports on [...]
device br0 already exists
Here’s how you solve either of the following errors on Ubuntu (and possibly Debian): device br0 already exists; can’t create bridge with the same name device eth0 is already a member of a bridge; can’t enslave it to bridge br1. Removing the device specs from /etc/network/interfaces and restarting the network doesn’t actually remove the device [...]
Disabling PHP in a specific directory
To disable the PHP processor in a given directory, put the following in an .htaccess file. If one doesn’t exist, create it. # Disable PHP AddHandler default-handler php RemoveType application/x-httpd-php php # Make .php files display as plain text AddType text/plain php This assumes an Apache server. PHP on IIS may involve different steps. [...]
History meme
Substantial content is in the pipes, but in the meantime here’s Arve Bersvendsen’s history meme: history | awk ‘{a[$2]++ } END{for(i in a){print a[i] " " i}}’|sort -rn|head In my cygwin: 52 python 44 ssh 33 exit 33 cd 18 ls 7 java 5 diff 4 nano 2 ping 1 svn And on [...]
Unknown root password in SuSE Linux
After I installed Suse Linux Enterprise Desktop 10, I tried to update it. It prompted me for a root password even though the install hadn’t asked for one — it had only created a regular user. Sudo didn’t help. I tried booting in single-user mode, but that also prompted me for the root password. Finally, [...]