Archive
Posts from 2009
What Ubuntu package contains the file I'm trying to install?
I've really like how yum has the "whatprovides" keyword. You can execute And yum will search all of the known packages within the installed repositories and return back the package you need to install in order to have the "startkde" binary. At that point, all thats needed is a But how do we do this on Ubuntu and other Linuxes which have apt-get and aptitude? I found that this same functionality can be searched using the "apt-files" package…
$ read more →Viewing the contents of an initrd image
I was doing some research tonight, and needed to look inside my initrd image to see if a couple of device drivers were present. Initrd images are stored as compressed cpio archives, which allows a pipeline like the following to be used to extract the contents of an image: Once extracted, you can use cd and cat to view the files and directories that are part of the image:
$ read more →How The ISC DHCP Server Derives Host Names
Like most DHCP implementations, the ISC DHCP server supports sending host names in response to a DHCP DISCOVERY message. The host name is sent when DHCP option 12 is requested by the client, and the name is derived from one of two locations: The ISC DHCP server will look up the IP address in DNS The server will use an administratively defined host name To configure ISC DHCP to set the host-name option based on DNS data, you can set the "get-lease-hostnames" directive to true: get-lease-hostnames true; If you are unable to use DNS to derive the host name, you are still in luck. You can specify the name to assign to the client in a host block: In the example above, the host name "thecrue.prefetch.net" will be assigned to the client with mac address 00:24:8c:4e:07:f6. If you have a large number of hosts and you want to use the name that is attached to the host directive, you can use the "use-host-decl-names" directive…
$ read more →Building ISC DHCP 4.X on Solaris hosts
I attempted to upgrade my ISC DHCP installation to dhcp-4.1.1b1 this past weekend, and ran into the following configure error: Th config.log had a number of errors similar to the following: Which are due to missing system headers. I reviewed the list of packages that were installed, and sure enough SUNWhea (this package contains the various header files) was missing. I installed this package as well as a number of others: Any everything compiled and installed perfectly.
$ read more →Using the CPU power management features in Solaris
I mentioned previously that I built out some new hardware. When I was spec'ing out the hardware, I made sure to get "green" components that supported advanced power management features. Solaris is able to take advantage of the CPU power states, and can lower the processor operating frequency when a server is idle. Power managementis handled by the the Solaris kernel, and configured through the /etc/power.conf configuration file…
$ read more →