Page 1 of 3 123 LastLast
Results 1 to 10 of 23

Thread: Remove Unnecessary Packages and Other Random Tidbits

  1. #1
    Join Date
    Apr 2006
    Location
    Illinois, USA
    Beans
    1,283
    Distro
    Ubuntu 11.04 Natty Narwhal

    Remove Unnecessary Packages and Other Random Tidbits

    This is a general guide to the some things that I like to remember whenever I reinstall, including a long list of packages that can be potentially removed.
    This is based on Gnome, but some things should or can be common with KDE or Xubuntu.
    If I have something wrong or you have any questions, feel free to let me know. I'll try to update this as much as possible.


    Packages I install/utilize:

    smartmontools

    • Find power cycles (and more) of hard disk (the following command indicates if you have the hard drive bug, it's up to you if you think it needs fixing based on that information)

    Code:
    sudo smartctl -d ata -a /dev/sda | grep Cycle
    gnomesword

    • Bible software.

    gthumb

    • Though eog is installed by default, it seems to use a lot of memory. Gthumb also provides many useful basic functions such as cropping, mass resize/convert, and color adjustment.

    firestarter

    • A GUI to configure iptables firewall.

    icedtea

    • Free implementation of the Java environment.

    audacity

    • Very good audio editing program.

    dvdrip

    • For making video files from DVDs.

    boinc
    boinc-manager

    • Client and manager program respectively for distributed computing. You can install just the client and manage it remotely.

    sensors-applet

    • Monitor temperature and fan speeds on the panel through acpi, lm-sensors, hddtemp, etc. You may want to set lm-sensors up with:

    Code:
     sudo sensors-detect
    Nautilus has a few plugins available, notably:
    image resize

    • Provides options to rotate and resize images from the right-click menu.

    open terminal

    • Provides on option to open a terminal from the right-click menu. Clicking on/in a directory opens a terminal starting in that directory, clicking on the desktop will open it in your home folder.

    gksu

    • Provides an option to open a file as root. Useful to not have to use the above plugin or root user Nautilus.

    sound convert

    • Provides options to convert audio files from the right click menu. I haven't had much luck with it, but it could be useful.

    emerald
    emerald-theme-manager

    • An alternative to Metacity that can handle transparency, very customizable, themes available here.

    compizconfig-settings-manager

    • Enable plugins and alter their settings for Compiz.

    ndiswrapper
    ndisgtk

    • Use Windows drivers for wireless cards. This has been my best friend through most of my time with Linux.

    conky

    • Place customized information on your desktop. More info here.

    five-a-day-applet


    Code:
    deb http://ppa.launchpad.net/5-a-day/ubuntu hardy main
    avant-window-navigator

    • This is like the Mac OS X bar. Gdesklets has an attempt at this, too, but I have been very impressed at this program. It combines launchers with a window list, and can also have applets like the Gnome panel. Between this and Conky, along with a couple of short programs I wrote, I no longer need my Gnome panel.

    balsa

    • An email program. I've had problems every time I've used Evolution. Thunderbird is nice, but I've found Balsa to be very fast, and integrates well with Gnome.

    espeak

    • This is a very simple text to speech program that is installed by default. I think with a little creativity it could be very useful. For example, I had it read a warning when my processor got too hot.
    • You can have it read a text file via

    Code:
    espeak -f /path/to/file
    REMOVALS

    I have spent a lot of time trying to cut down Ubuntu installs to fit on 1.5 GB hard drives and into RAM, so anything that I can remove is helpful sometimes.
    These are programs and packages that I have found I don't need. You may need them. I'll try to explain (to you and myself both) what they do. Based on that, it's your decision. If in doubt, don't remove anything. Aptitude will tell you of almost anything that will totally break your system or another package, but try to remember what you have done in case something breaks.
    There are many guides on the forums about how to remove unused packages, and they can make a great second step to removing things from this list, especially gtkorphan.
    If a package A depends on package B, then removing package B will also remove package A, e.g. removing apturl will remove ubufox

    ubuntu-desktop

    • This is what is called a "metapackage." It doesn't actually contain anything, it just makes sure that all of the default desktop applications are installed. If you remove something it depends on, it will be removed too. That's fine. When (if) you upgrade, it may be a good idea to reinstall it.

    ttf

    • If you search for this in Synaptic you will find that a lot of other language fonts are installed by default. If you don't plan an reading or writing with them, you can remove them.

    bluez-gnome
    bluez-utils

    • If you don't have Bluetooth capability, you can remove these packages.

    xscreensaver-gl
    xscreensaver-data
    rss-glx
    screensaver-default-images

    • I'm not interested in using any pretty screensavers on my laptop. I just blank the screen rather than make it heat up or waste CPU time. Leaving gnome-screensaver retains the basic ability.

    tomboy

    • An application for note taking that I have never used.

    ekiga
    libopal-2.2

    • Something like Skype, you can talk/conference over the Internet. I've never used it.

    xcursor-themes

    • Extra themes for your mouse cursor.

    language-support-writing-en
    language-support-en
    language-support-translations-en

    • All of these are metapackages that depend on all of the writing tools, general language support, and translations for English (or whatever language you have installed, the last two letters will be different).

    myspell-en-za

    • South African English dictionary.

    openoffice.org-l10n-en-gb
    openoffice.org-help-en-gb

    • British English translation and help for OpenOffice.

    openoffice.org-l10n-en-za

    • South African English translation for OpenOffice.

    openoffice.org-thesaurus-en-au

    • Australian English thesaurus for OpenOffice.

    yelp

    • Help viewer. I choose to use the forums and the internet rather than any of the locally installed help.

    gimp-help-common
    gimp-help-en

    • Help files for the Gimp. Again, I prefer online.

    gnome-user-guide

    • User guide for Gnome. Again, I prefer getting anything I need online.

    diveintopython

    • Ever wanted to learn the Python programming language? This is the book for you! Check into it. Otherwise, you can remove it.

    ubuntu-docs

    • General Ubuntu documentation. I prefer online.

    thunderbird-locale-en-gb

    • This Great Britain locale for Thunderbird is installed though Thunderbird isn't, which is odd. One of the language support packages depends on it.

    linux-generic
    linux-restricted-modules-generic

    • These are metapackages for the kernel versions and restricted modules respectively.

    linux-restricted-modules-2.6.24-16-generic

    • This provides madwifi (Atheros), fglrx (ATI), nvidia, fcdsl2, fcdslsl, fcdslslusb, fcdslusb, fcdslusb2, fcpci (AVM ISDN), fcdsl, fcdslusba, fcusb, fwlanusb, fxusb (AVM ISDN x86 only). If you don't use any of these, you can remove it.

    nvidia-kernel-common

    • For the nvidia driver.

    linux-headers-generic

    • This is a metapackage.

    linux-headers-2.6.24-16
    linux-headers-2.6.24-16-generic

    • These are only needed if you need to recompile the kernel.

    ppp
    pppconfig
    pppoeconf
    wvdial

    • Used in modem and similar connections. Not needed for wireless or ethernet connections.

    xsane
    xsane-common

    • Used for scanners.

    tracker
    tracker-search-tool
    libdeskbar-tracker
    libtracker-gtk0

    • Desktop search tool. I don't find it useful enough to keep.

    zenity

    • Displays dialog boxes.

    gnome-games
    gnome-games-data
    gnome-cards-data

    • The default gnome games. I don't play them enough to keep them.

    scim
    scim-bridge-agent
    scim-bridge-client-gtk
    scim-gtk2-immodule
    scim-modules-socket
    libscim8c2a
    libchewing (thank you Wim De Winter)

    • A way to set up input for languages with different alphabets.

    brltty
    brltty-x11

    • For Braille interfaces.

    gnome-app-install

    • The nice Add/Remove Applications in the menu.

    ubufox

    • This helps with the installation of flash and other plugins for Firefox.

    apturl

    • This is a dependency of ubufox, it allows packages to be installed with the syntax "apt : package"

    python-pyatspi
    at-spi

    • Accessibility support.

    mousetweaks

    • Mouse accessibility support.

    gnome-mag

    • The Gnome magnifier. I'd prefer the Compiz plugin.

    gnome-orca

    • Gnome screen reader.

    bogofilter
    bogofilter-bdb
    libgsl0ldbl

    • Spam filter for use with Evolution or maybe Thunderbird.

    ubuntu-sounds

    • Ubuntu's sounds.

    example-content

    • Sample files to use when testing/showing off Ubuntu.

    evolution-exchange

    • Evolution plugin for Microsoft Exchange mail.

    evolution-webcal

    • Evolution plugin for web-based calendars.

    guile-1.6-libs

    • A programming language.

    gnome-pilot
    gnome-pilot-conduits

    • Tools for PalmPilot devices.

    gnome-accessibility-themes

    • A high-contrast theme.

    eog

    • As I mentioned above, I prefer gthumb.

    deskbar-applet

    • The Deskbar applet for the panel.

    contact-lookup-applet

    • The contact lookup applet for the panel.

    fast-user-switch-applet

    • The applet for switching users for the panel.

    jockey-common
    jockey-gtk

    • This program is responsible for installing restricted drivers such as nvidia or b43.

    splix

    • This is a driver for samsung laser printers.

    min12xxw

    • Printer driver for KonicaMinolta PagePro.

    xserver-xorg-video-all

    • You should be able to remove this metapackage, as well as everything but v4l, vesa, vga, fbdev, dummy, and the one you are using. If you are using a proprietary driver, such as nvidia, it might be a good idea to leave the open source driver, nv, just in case.

    tsclient

    • For connecting to other machines remotely.

    vino

    • Server that allows others to access your desktop remotely.

    sound-juicer

    • A CD ripper, Rhythmbox takes care of my needs.

    make

    • For compiling packages.

    lftp

    • For getting files via ftp using the command line.
    • I think this is required for the Rhythmbox Cover Art and Lyrics plugins.


    Miscellaneous tips:

    Control Processor scaling from the panel applet:
    Code:
    sudo dpkg-reconfigure gnome-applets
    "Yes" to run cpufreq as root. Possibly a security problem, but I've risked it.

    Change percentage reserved for root on filesystem. This is responsible for the difference between "Free" and "Available" space. (-m <percent>)
    Code:
    tune2fs -m 1 /dev/external
    Run a script at boot
    Code:
    /etc/init.d/something.sh
    sudo chmod 755 something.sh
    sudo update-rc.d something.sh defaults
    OR

    Boot scripts
    Code:
    /etc/rc.d/rc2.d/SXXscript
    Shutdown scripts
    Code:
    /etc/rc.d/rc0.d/KXXscript
    Run in order of number XX.

    Great Firefox addons:

    Adblock Plus

    • You can subscribe to lists that will block ads and content for you. I always add EasyElement+EasyList from the subscription site.
    • Removes 99.99% of ads, depending on what sites you visit.
    • You can also add wildcard filters to block items.

    Cooliris Previews

    • A way to open a webpage or image without opening a whole new tab, in its own pseudo-window inside the browser. You can also bookmark pages in a similar temporary way.

    PicLens

    • Windows/Mac only (for now, they say), but very cool way to browse pictures and movies from Google, YouTube, and some other sites.
    • Until it's supported on Linux, searchme.com offers a similar interface that is web-based.


    I'll end with a script to save battery power. This is placed in /etc/acpi/battery.d and /etc/acpi/ac.d, and I've named it 99-savings.sh. This causes it to run every time the system switches from AC to battery or vice versa, and the script knows which part to run based on whether it's on AC or battery. It's a combination of a script I found somewhere on the forums, the powertop suggestions. I added some processes that I don't really want running while on battery power that will be stopped but started again when back on AC.
    I've tested it a bit, and I don't think that every line does exactly what it should. I think some other power management utilities write their own values in some of these places. All in all, though, I think it's worth it.
    Update August 16, 2008 - Added xbacklight commands at the end of each section. You have to install xbacklight and tell Gnome power manager in the power settings not to manage your screen brightness for this to work. I was thinking that it would be nice if it would remember what your brightness was before going on battery instead of setting its arbitrary value, and then I thought - hey, I think I could do that! So with my usual odd variable and hackish methods, I think it can remember what your backlight was before you went on battery and reset it when you go back on AC. You can change the value after xbacklight -set from 30 to whatever percent you wish.
    For some reason, every time I run xbacklight, regardless of what I have the setting at or whether it's as me or root, it reports 42.857143 when I run it. But the script seems to work. Go figure.
    Code:
    #!/bin/bash
     
    # Go fast.  More or less Ubuntu defaults
    if on_ac_power; then
      hdparm -B 255 -S 240 -M 254 /dev/sda
      mount -o remount,commit=5 /
      mount -o remount,commit=5 /home
      echo 0 > /proc/sys/vm/laptop_mode
      echo 10 > /proc/sys/vm/dirty_ratio
      echo 5 > /proc/sys/vm/dirty_background_ratio
      echo 500 > /proc/sys/vm/dirty_writeback_centisecs
      echo 0 > /sys/module/snd_hda_intel/parameters/power_save
      echo max_performance > /sys/class/scsi_host/host0/link_power_management_policy
      iwpriv wlan0 power_profile 1
      echo 50 > /proc/sys/vm/swappiness
      echo 3000 > /proc/sys/vm/dirty_expire_centisecs
      hal-disable-polling --device /dev/scd0 --enable-polling
      /etc/init.d/postfix start
      /etc/init.d/anacron start
      /etc/init.d/ntp start
      LINEBACKER=$(/tmp/backlightgot)
      xbacklight -set $LINEBACKER
    else # Save power
      hdparm -B 1 -S 4 -M 128 /dev/sda
      mount -o remount,commit=600 /
      mount -o remount,commit=600 /home
      echo 5 > /proc/sys/vm/laptop_mode
      echo 40 > /proc/sys/vm/dirty_ratio
      echo 1 > /proc/sys/vm/dirty_background_ratio
      echo 30000 > /proc/sys/vm/dirty_writeback_centisecs
      echo 10 > /sys/module/snd_hda_intel/parameters/power_save
      echo min_power > /sys/class/scsi_host/host0/link_power_management_policy
      iwpriv wlan0 power_profile 5
      echo 10 > /proc/sys/vm/swappiness
      echo 0 > /proc/sys/vm/dirty_expire_centisecs
      hal-disable-polling --device /dev/scd0
      /etc/init.d/postfix stop
      /etc/init.d/anacron stop
      /etc/init.d/ntp stop
      /etc/init.d/rsync stop
      /etc/init.d/smartmontools stop
      xbacklight > /tmp/xbacklightgot
      xbacklight -set 30
    fi
    Last edited by Sam Lars; August 17th, 2008 at 05:10 AM. Reason: Add brightness control to script
    If I'm not being clear enough or giving you enough information, just ask

    "But woe to him who is alone when he falls, for he has no one to help him up."

    Smooth scrolling for GTK!

  2. #2
    Join Date
    Jul 2006
    Location
    Sydney, Australia
    Beans
    174
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Remove Unnecessary Packages and Other Random Tidbits

    This looks really interesting, but can you repost it with the formatting/html tags fixed?

  3. #3
    Join Date
    Apr 2006
    Location
    Illinois, USA
    Beans
    1,283
    Distro
    Ubuntu 11.04 Natty Narwhal

    Re: Remove Unnecessary Packages and Other Random Tidbits

    Sure thing, it's done, with a few updates included. Thanks for letting me know, I had some problems getting it to submit, and since it didn't directly post here, I didn't notice.
    If I'm not being clear enough or giving you enough information, just ask

    "But woe to him who is alone when he falls, for he has no one to help him up."

    Smooth scrolling for GTK!

  4. #4
    Join Date
    May 2007
    Location
    Toronto, Canada
    Beans
    4,508
    Distro
    Ubuntu

    Re: Remove Unnecessary Packages and Other Random Tidbits

    Does "sudo smartctl -d ata -a /dev/sda | grep Cycle" fix the harddrive bug if you have it?

  5. #5
    Join Date
    Jul 2007
    Location
    Jersey, USA
    Beans
    7
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Remove Unnecessary Packages and Other Random Tidbits

    No, that command will not fix it, that command will just help you figure out if you have the cycle count problem in the first place.

    You might want to check here, or here, but be sure that you read the disclaimers and instructions VERY carefully. And if you doubt anything, don't do it.

  6. #6
    Join Date
    Sep 2007
    Location
    Pteleos Greece
    Beans
    408
    Distro
    Ubuntu Development Release

    Re: Remove Unnecessary Packages and Other Random Tidbits

    very good post, full of details , thanks
    i removed some packages that i didn't want

    "Computers are like air conditioners, when you open WINDOW$ they stop working."
    Όσο ζώ μαθαίνω ...
    If Microsoft ever does applications for Linux it means I've won.
    Linus Torvalds

  7. #7
    Join Date
    Jun 2006
    Location
    $ pwd _
    Beans
    3,999
    Distro
    Ubuntu 12.10 Quantal Quetzal

    Re: Remove Unnecessary Packages and Other Random Tidbits

    Thank You Sam Lars. I have been/was looking to remove some unneeded packages on my laptop.

  8. #8
    Join Date
    Nov 2006
    Location
    China
    Beans
    169
    Distro
    Xubuntu 8.04 Hardy Heron

    Re: Remove Unnecessary Packages and Other Random Tidbits

    Thanx, this was incredibly helpful. Down to 1.1 gig used.
    Last edited by leetrefz; June 11th, 2008 at 06:41 AM.
    VIA PX mobo, VIA C7 1Ghz CPU, 4Gb ATA SSD, laptop LCD via VGA, Xubuntu 8.04

  9. #9
    Join Date
    Jun 2007
    Beans
    236

    Re: Remove Unnecessary Packages and Other Random Tidbits

    How do you get those plugins for Nautilus? I thought I could find them in Edit->Preferences or somewhere like that, but I haven't been able to find them. Do I have to download something?

    EDIT: Just found them via Synaptic!
    Last edited by muadnu; June 10th, 2008 at 08:06 PM.

  10. #10
    Join Date
    Apr 2007
    Location
    Southampton, UK
    Beans
    232
    Distro
    Ubuntu

    Re: Remove Unnecessary Packages and Other Random Tidbits

    Another one to remove is diveintopython (a book about programming).

    https://bugs.edge.launchpad.net/ubuntu/+bug/241920
    Linux User #381008
    Ubuntu User #22532

    Need help with Ubuntu? Ask the experts at http://askubuntu.com

Page 1 of 3 123 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •