Tech & Toys
-
Adjusting prefs from the command line
To adjust the various system preferences from the command line you need the
systemsetup
utility which ships with OSX Server although I’ve found some versions of OS X client have it installed in/System/Library/CoreServices/RemoteManagement/ARDAgent.app/Contents/Support
. On my G5 with Tiger (10.4.8) installed I used systemsetup-tiger and on my iMac (Intel) that was missing so I used systemsetup-panther which also worked.You can adjust all sorts of things with the tool -help shows you all the options, I wanted to adjust sleep times. Below is an example session, showing the settings before and after I had made the change
# ./systemsetup-panther -getsleep Sleep: Computer sleeps after 10 minutes Sleep: Display sleeps after 10 minutes Sleep: Disk sleeps after 10 minutes # sudo ./systemsetup-panther -setcomputersleep 60 setcomputersleep: 60 # ./systemsetup-panther -getsleep Sleep: Computer sleeps after 60 minutes Sleep: Display sleeps after 10 minutes Sleep: Disk sleeps after 10 minutes
-
Big zippo Little zippo Orange zippo
Just found this hanging around in an ‘undated’ folder, I carried a zippo of one kind or another for over 10 years and now I dont even know where any of them are!
-
New Office^H^H^H^H^HSpare room
So the office has had a spring clean, I’ve got 50% less computers and a smaller desk. I think I like it! /me taps fingers waiting for iMac
-
Random Blenheim HDR
Another silly HDR image, this time of Blenheim Palace
-
Todays del.icio.us bookmarks
-
Acme Technology Computer Cases —
nice range of server cases Tagged as: server pc components useful
-
Nice howto describing how to setup squid as a reverse proxy or web accelerator Tagged as: squid howto useful
-
-
SystemRescueCd PXE Boot
I’ve moved this post into a page specifically about the SystemRescueCd which can be found here (Broken link
/systemrescuecd-network-boot/).
-
Linux on Compaq EVO T20
I’ve recently spent some time trying to get linux running out of the embedded firmware on a Compaq Evo T20. I’ve succeeded with a lot of help from this page. I’ll be adding some notes on how I did it and how I used ThinStation to get the NX client in the firmware.
-
Network aliases
To add an alias to a network device on freebsd do this:
[root@book etc]# ifconfig fxp0 alias 10.0.0.2 netmask 255.255.255.255
Note: The netmask is always /32
To remove one do this:
# ifconfig fxp0 -alias 10.0.0.2
To add these to
rc.conf
do something like:ifconfig_fxp0="inet 10.0.0.1 netmask 255.255.255.240" ifconfig_fxp0_alias0="10.0.0.2 netmask 255.255.255.255"
-
RPM spec file conditionals
I never remember how to do this, if you need vendor specific bits inside a spec file (like init scripts etc) you can use this to do different things depending on vendor.
%if "%{_vendor}" == "suse" # Suse specific stuff %endif %if "%{_vendor}" == "redhat" # Redhat specific stuff %endif
If…else works like this:
%if "%{vendor}" == "suse" # Suse specific stuff %else # Redhat specific stuff %endif
-
St Pauls