Archive for August, 2005

Clear DHCP Leases in Linux

Sunday, August 21st, 2005







When switching networks the DHCP lease on a network adapter such as eth1 is not always cleared causing problems connecting to another network. You can manually remove the lease by going to:

/var/lib/dhcp/*.leases


Return Path of APTCUSTOM Folder

Tuesday, August 16th, 2005

Function for finding the location of the customer folder for Epic
Editor and Styler.

_custom::get_custom_directory();

Optional Ant Tasks

Wednesday, August 10th, 2005







Not all tasks are built into the core distribution of ANT. There are additional tasks that ANT can perform if the option is available.

For a list of optional tasks refer to:


Suspend to Memory

Wednesday, August 10th, 2005







ACPI, which stands for Advanced Configuration and Power Interface, is the successor to APM (Advanced Power Management). The specification provides for many functions besides power management, such as thermal management and plug-and-play events.

The purpose of this post is to outline the steps for setting up ACPI suspend to memory under Fedora Core 4. When the lid is closed on the laptop, the system should suspend.

File setup

Create the file /etc/acpi/events/lid.conf containing the lines

  event=button[/]lid
  action=/etc/acpi/actions/sleep.sh

Create the file /etc/acpi/actions/sleep.sh containing the lines

  #!/bin/sh
  /usr/bin/dbus-send --system
      --dest=org.freedesktop.NetworkManager
      --type=method_call
 /org/freedesktop/NetworkManager
 org.freedesktop.NetworkManager.sleep

  /sbin/hwclock --systohc
  echo -n mem > /sys/power/state
  /sbin/hwclock --hctosys

and make it executable.

  chmod 755 /etc/acpi/actions/sleep.sh

Helpful Sources of Information


Removing RPMs from Linux

Thursday, August 4th, 2005







One task that is often needed is the ability to remove rpms that are currently installed.

The following example demonstrates how to remove installed rpms.

Lets say we need to find the apache package. First you need to find the specific version.

[root@localhost]# rpm -qa apache | grep apache
apache-1.3.19-5
[root@localhost]#

So, we need to remove the apache-1.3.19-5 package.

[root@localhost]# rpm -w apache-1.3.19-5

All gone assuming there were no dependency problems.