Tech & Toys
-
Quicksilver aka. Launchbar replacement
I’ve been using LaunchBar for sometime now, but since the panther upgrade it never quite seemed the same. Now I discover Quicksilver (Broken link
http://blacktree.com/apps/index.html?quicksilver/index.html) from BlackTree Apps (Broken linkhttp://blacktree.com/apps/) which does the same job, but somehow feels nicer to use.
-
Useful Command line reference
Stripes posted this (Broken link
http://www.kernelthread.com/mac/osx/tools.html) nice site full of usefull OS X specific command line tools
-
Samba 3.0.1 - The Samba of Pain
Right. We were having massive problems with DCOM authentication time outs and odd, occasional, browsing issues on the domain. Upgrading to Samba 3.0.2_rc2 (and I would hope 3.0.2 which was released today) fixed them all.
-
RPM Command hangs
I occasionally get
rpm
commands hanging, they are only killable with a -9. This Redhat bugzilla entry offers a solution:rm -f /var/lib/rpm/__db*.
Which seems to work…
-
Mail Scripts
Steve sent along this (Broken link
http://homepage.mac.com/aamann/) useful collection of Mail and Eudora scripts
-
Caching windowsupdate in squid
Windows update tells proxy servers not to cache its downloads. To get round this in squid, add the following to your acls:
acl windowsupdate dstdomain .windowsupdate.com never_direct allow windowsupdate
never_direct
tells squid to always try to get the object from cache even if the client specifically asks for it.UPDATE: I found that Microsoft change the updates whilst keeping the old filename, and this will break if you cache the files. So the best solution is to use SUS (Broken link ~~http://microsoft.com/sus/~~).
-
amanda disk only backups
I’ve just found this quite usefull in setting up amanda to do disk only backups.
-
Forcing a linux NIC to a particular setting
To force a linux nic to 100Meg Full Duplex for example:
[root@ sm-b01 network-scripts]# mii-tool eth0: no autonegotiation, 100baseTx-HD, link ok eth1: no autonegotiation, 100baseTx-HD, link ok [root@sm-b01 root]# mii-tool -F 100baseTx-FD eth0 [root@sm-b01 root]# mii-tool -F 100baseTx-FD eth1 [root@sm-b01 root]# mii-tool eth0: 100 Mbit, full duplex, link ok eth1: 100 Mbit, full duplex, link ok
UPDATE: I have since discovered that mii-tool doesnt support gigabit ethernet NICs, to force these to a particular setting, or to see what setting they have auto-negotiated use
ethtool
, which is included in RedHat 9, but if you dont have it you can get it from Source Forge.ethtool
can be used to set and get the current state:[root@mon-b01 root]# ethtool eth1 Settings for eth1: Supported ports: [ TP MII ] Supported link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Supports auto-negotiation: Yes Advertised link modes: 10baseT/Half 10baseT/Full 100baseT/Half 100baseT/Full Advertised auto-negotiation: No Speed: 100Mb/s Duplex: Full Port: Twisted Pair PHYAD: 1 Transceiver: internal Auto-negotiation: off Supports Wake-on: puag Wake-on: g Link detected: yes [root@mon-b01 root]# ethtool -s eth1 speed 100 duplex full
UPDATE: Have found this post which explains how to set the duplex and speed settings permanently on RedHat 9, although will probably work for most distributions.
The options you can pass to the network drivers (for the e100 module) are well documented here (Broken link
http://www.scyld.com/network/eepro100.html) and most of the other network drivers are documented back (Broken linkhttp://www.scyld.com/network/index.html#pci) a page.
-
iSync and Sony Ericsson P900 problems
Remove everything from this directory, apart from 2 files:
/Library/Application Support/SyncService/501
(501 being by uid). The two files to keep are:
BTConduitDefaults.plist SymbianConduitDefaults.plist
The latter was full of shite so I made it look like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple. com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <array> <dict> <key>kNSSyncDeviceID</key> <string>00-0a-d9-e8-b7-3a</string> <strong><---- change this to your mac address</strong> <key>kNSSyncDeviceName</key> <string>P900</string> <key>kNSSyncDeviceShouldSlowSyncCalendars</key> <true/> <key>kNSSyncDeviceShouldSlowSyncContacts</key> <true/> <key>kNSSyncDeviceUseCalendars</key> <true/> <key>kNSSyncDeviceUseContacts</key> <true/> </dict> </array> </plist>
Then try to repair the phone, it should find it and so does iSync.
Thanks to Steve for this fix
-
Perl CPAN reconfiguration
To reconfigure CPAN:
% towel root # perl -MCPAN -e shell cpan shell -- CPAN exploration and modules installation (v1.59_54) ReadLine support available (try 'install Bundle::CPAN') cpan> o conf init /usr/lib/perl5/5.6.1/CPAN/Config.pm initialized. CPAN is the world-wide archive of perl resources. It consists of about 100 sites that all replicate the same contents all around the globe. Many countries have at least one CPAN site already. The resources found on CPAN are easily accessible with the CPAN.pm module. If you want to use CPAN.pm, you have to configure it properly. If you do not want to enter a dialog now, you can answer 'no' to this question and I'll try to autoconfigure. (Note: you can revisit this dialog anytime later by typing 'o conf init' at the cpan prompt.) Are you ready for manual configuration? [yes]