Octo Performance Engineering

Friday, November 24, 2006

Copying a Unix Directory Tree

If you wish to copy an entire directory tree to another location while retaining the file permissions and ownerships, run the commands:

$ cd source_dir
$ find . -depth -print | cpio -pdv dest_dir

Wow!

Tuesday, November 21, 2006

Extracting Files in an RPM File

Maybe I am missing something but I couldn't figure out how to extract files in RPM files with the rpm command. Use the handy-dandy rpm2cpio command. For example,

rpm2cpio rpmfile | cpio -iv

If you'd like to list the content of an RPM file, do the following:

rpm -qlp rpmfile

Thursday, November 09, 2006

Running coLinux on a dual-core system

When running coLinux on a dual-core system, it blue-screens with the DRIVER_IRQL_NOT_LESS_OR_EQUAL error. In order to get around the problem, boot.ini must be modified. Ordinarily, the noexecute option is set to "optin" to indicate that the no-execute protection (also known as Data Execution Protection - DEP) is enabled. While it is useful for preventing malicious code from exploiting buffer overflow bugs, DEP must be disabled to run coLinux on dual-core systems. To do so, select system on the control panel. Click on the Advanced tab. In the "Startup and Recovery" section, click on the "Settings" button. In the "System startup" section, click on the "Edit" button. A notepad with boot.ini will appear. Modify "/noexecute=optin" as "/noexecute=AlwaysOff". Save the change and reboot the system.