Skip to Content

Ubuntu Configurations / Tweaks / Tips and Tricks

Services

Adding/removing services in Ubuntu

Tested on Ubuntu 8.04 / Ubuntu 8.10 / Ubuntu 9.04 / Ubuntu 9.10

sudo update-rc.d -f <service> add
sudo update-rc.d -f <service> remove

System Information

Getting Full System Information

Dmidecode reports information about your system's hardware as described in your system BIOS according to the SMBIOS/DMI standard (see a sample output). This information typically includes system manufacturer, model name, serial number, BIOS version, asset tag as well as a lot of other details of varying level of interest and reliability depending on the manufacturer.

sudo dmidecode -s system-manufacturer
sudo dmidecode -s system-product-name
sudo dmidecode -s system-version
sudo dmidecode

Getting DSDT (Differentiated System Description table)

  1. Install acpidump from the pmtools package available at ftp://ftp.kernel.org/pub/linux/kernel/people/lenb/acpi/utils/
  2. Install iasl from the ACPICA downloads at Intel's website http://developer.intel.com/technology/iapc/acpi/downloads.htm
  3. Dump the binary DSDT with
    acpidump -b -t DSDT -o DSDT.aml
  4. Disassemble the DSDT with
    iasl -d DSDT.aml
USB Drive Configuration

Changing drive labels for drives with ext2, ext3, ext4 filesystems

sudo e2label <device> <label>

apt-get Package Manager

Cleanup the apt-get cache to free space

sudo apt-get clean