Enable NFS services for HADR

13:35 on Sat 2010-06-26 by Leons Petrazickis DB2, Unix

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

17:07 on Thu 2010-03-11 by Leons Petrazickis Unix

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

11:57 on Fri 2009-08-21 by Leons Petrazickis Unix

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

18:10 on Fri 2008-11-14 by Leons Petrazickis PHP, Unix, Web Development

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

12:27 on Tue 2008-04-15 by Leons Petrazickis Unix

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

12:43 on Mon 2008-03-03 by Leons Petrazickis Unix

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, [...]