djbdns, daemontools and ucspi-tcp RPMS

Every so often I need a copy of one or all of these on a new machine. I tend to normally use RPM based distros and always have issues trying to find RPMS of these packages. As a result I’ve packaged them up and put them in my svn repo.

Feel free to checkout that directory, it includes a readme of how to build them for a system I’ve yet to need them on. replace the fc7 or el5 with something appropriate for your distribution.

Direct download links:

Redhat/Centos 5:

Fedora 7:

djbdns dnscache log converter

I’ve just had to struggle with the hex ip addresses which dnscache logs, after a bit of searching I found some nice notes about the log format here thanks to Rob Mayoff.

Finally I found this handy perl script.

Disable Caps Lock in Windows

Nice little reg hack to dsiable the Caps lock key in windows here.

HP Compaq 6910p Notebook

Laptop for reference HP Compaq 6910p Notebook

Specs:

  • 75Gb Disk
  • 2.0 Ghz Core 2 Duo
  • 1Gb Ram

exiqgrep – searching the eixm queue

I’ve just had to delete a bunch of messages from an Exim queue and I found this to be useful:

# exiqgrep -f billg@microsoft.com

Will print out details for any messages from that address.

To delete any messages from a person use the f as well as the i flags to print out just the message id, this can neatly be piped to xargs:

# exiqgrep -i billg@microsoft.com | xargs exim -Mrm

Apache Allow From IP or password

I can never remember the syntax to allow access to a directory from an IP or range of IP’s without a password but falling through to using a password from all other IP’s. The below works in a .htaccess file:

AuthName "some name"
AuthUserFile /some/htaccess.file
AuthType Basic
Order Allow,Deny
Require valid-user
Allow From 127.0.0.1
Satisfy Any

VMware any-any patch

I’ve had troubles with vmware on redhat/fedora in the past. (See here or here) But I’ve now found a one stop solution to putting VMware on all things RedHat or Fedora. Follow the instructions in this VMware forum post. This has worked for me with VMware Server on Fedora 6 and 7 and also VMware Workstation 6 on Fedora 7. Thanks Petr!

Solaris 10 restarting services

To restart things run:

# svcadm restart ssh

To list the currently known svcs use:

# svcs

Sun have a nice guide here on their BigAdmin site.

Changing IP address on Solaris 10

I’ve recently been caught out whilst trying to change the IP on a Solaris 10 machine. It used to be the /etc/hostname.pcn0 (or whatever type of interface it was) had o match the entry in /etc/hosts. Now it seems this isn’t the only place you need to make the change, you also need to change the IP in /etc/inet/ipnodes as-well, which is the same format as /etc/hosts

SELinux tit bits

I’ve just discovered you can switch selinux into Permissive mode whilst the machine is running
This shows that we are currently enforcing:

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   enforcing
Mode from config file:          enforcing
Policy version:                 21
Policy from config file:        targeted

To switch into permissive mood:

# setenforce Permissive

And another sestatus shows the change

# sestatus
SELinux status:                 enabled
SELinuxfs mount:                /selinux
Current mode:                   permissive
Mode from config file:          enforcing
Policy version:                 21
Policy from config file:        targeted