August 18, 2008, 6:09 pm
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:
August 18, 2008, 10:00 am
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.
December 20, 2007, 12:25 pm
Nice little reg hack to dsiable the Caps lock key in windows here.
December 19, 2007, 11:47 am
Laptop for reference HP Compaq 6910p Notebook
Specs:
- 75Gb Disk
- 2.0 Ghz Core 2 Duo
- 1Gb Ram
December 3, 2007, 12:29 pm
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
September 13, 2007, 11:29 am
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
August 26, 2007, 11:39 am
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!
August 21, 2007, 8:59 pm
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.
August 21, 2007, 8:56 pm
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
August 13, 2007, 3:03 pm
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