Remove Services that you don't need

From MEPIS Documentation Wiki

(Difference between revisions)
Jump to: navigation, search
(clarification, links)
Line 1: Line 1:
It's a good idea to remove services that start at boot time and you don't need (for security reasons and to limit resources utilization)
It's a good idea to remove services that start at boot time and you don't need (for security reasons and to limit resources utilization)
-
For example to stop spamassassin from starting execute this command as root:
+
For example to stop [http://spamassassin.apache.org/ spamassassin] from starting, execute this command as root:
  update-rc.d -f ''spamassassin'' remove
  update-rc.d -f ''spamassassin'' remove
-
Another way to manage services is to use KSysV to edit Mepis [[runlevel]]s (apt-get install ksysv).
+
Another way to manage services is to use [http://packages.debian.org/stable/admin/ksysv KSysV] to edit Mepis [[runlevel]]s (apt-get install ksysv).
List of services that you '''might''' not need:
List of services that you '''might''' not need:
Line 20: Line 20:
  # Loibl's Script  
  # Loibl's Script  
  deb http://www.andreas-loibl.de/linux/debian/
  deb http://www.andreas-loibl.de/linux/debian/
-
Do an apt-get update && apt-get install freeze-rc.d
+
Do an  
 +
apt-get update && apt-get install freeze-rc.d
Before upgrading type "freeze rc.d" . After the upgrade or before you make any changes to your startup scripts you need to type "unfreeze rc.d"  out.  
Before upgrading type "freeze rc.d" . After the upgrade or before you make any changes to your startup scripts you need to type "unfreeze rc.d"  out.  

Revision as of 00:51, 20 March 2007

It's a good idea to remove services that start at boot time and you don't need (for security reasons and to limit resources utilization)

For example to stop spamassassin from starting, execute this command as root:

update-rc.d -f spamassassin remove

Another way to manage services is to use KSysV to edit Mepis runlevels (apt-get install ksysv).

List of services that you might not need:

  • spamassassin - e-mail filter
  • hpoj - HP Office Jet printer driver (if you don't have HP printer)
  • cupsys - Common UNIX Printing System(tm) (if you don't have a printer)
  • ntpdate - set system time from NTP servers

More info about Linux services here and here


You will notice that after upgrades the services that you stopped will start back up if they were upgraded.

Here's where to get a script to stop that. Add the following to /etc/apt/sources.list

# Loibl's Script 
deb http://www.andreas-loibl.de/linux/debian/

Do an

apt-get update && apt-get install freeze-rc.d

Before upgrading type "freeze rc.d" . After the upgrade or before you make any changes to your startup scripts you need to type "unfreeze rc.d" out.

If you would rather have the script than add another repo you can go to this page: http://andreas-loibl.de/content/linux/scripte/freeze-rc.d.html (it's in German though.)


See other Quick Fixes | FAQ | Main Page

Personal tools