SGMLXML.net A place for SGML and XML application developers.

August 21, 2005

Clear DHCP Leases in Linux

Filed under: Linux — cangione @ 1:18 am







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


August 16, 2005

Return Path of APTCUSTOM Folder

Filed under: ACL — @ 11:58 pm

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

_custom::get_custom_directory();

August 10, 2005

Optional Ant Tasks

Filed under: ANT — cangione @ 1:12 am







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

Filed under: Linux — cangione @ 12:15 am







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


August 4, 2005

Removing RPMs from Linux

Filed under: Linux — cangione @ 2:28 am







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.

[<a HREF="mailto:root@locallocalhost">root@localhost</a>]# rpm -qa apache | grep apache
apache-1.3.19-5
[<a HREF="mailto:root@localhost">root@localhost</a>]#

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

[<a HREF="mailto:root@localhost">root@localhost</a>]# rpm -w apache-1.3.19-5

All gone assuming there were no dependency problems.

Powered by WordPress