LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 01-21-2008, 04:23 PM   #1
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
CentOS - Minimal Install


I have a server running CentOS 4.5. It was installed using the minimal software option. After the installation I removed some extra packages i.e. Power Management.

The current list of start-up process is:

Code:
haldaemon       0:off   1:off   2:off   3:on    4:on    5:on    6:off
netfs           0:off   1:off   2:off   3:on    4:on    5:on    6:off
messagebus      0:off   1:off   2:off   3:on    4:on    5:on    6:off
microcode_ctl   0:off   1:off   2:on    3:on    4:on    5:on    6:off
kudzu           0:off   1:off   2:off   3:on    4:on    5:on    6:off
sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off
syslog          0:off   1:off   2:on    3:on    4:on    5:on    6:off
crond           0:off   1:off   2:on    3:on    4:on    5:on    6:off
xinetd          0:off   1:off   2:off   3:on    4:on    5:on    6:off
atd             0:off   1:off   2:off   3:on    4:on    5:on    6:off
ntpd            0:off   1:off   2:off   3:on    4:off   5:on    6:off
irqbalance      0:off   1:off   2:off   3:on    4:on    5:on    6:off
iptables        0:off   1:off   2:on    3:on    4:on    5:on    6:off
autofs          0:off   1:off   2:off   3:on    4:on    5:on    6:off
network         0:off   1:off   2:on    3:on    4:on    5:on    6:off
rawdevices      0:off   1:off   2:off   3:on    4:on    5:on    6:off
openibd         0:off   1:off   2:on    3:on    4:on    5:on    6:off
anacron         0:off   1:off   2:on    3:on    4:on    5:on    6:off
lvm2-monitor    0:off   1:on    2:on    3:on    4:on    5:on    6:off
sshd            0:off   1:off   2:on    3:on    4:on    5:on    6:off
smartd          0:off   1:off   2:on    3:on    4:on    5:on    6:off
cups            0:off   1:off   2:on    3:on    4:on    5:off   6:off
The server works fine; therefore, I do not have a problem as such.

I would like to strip my installation even more by removing CUPS. I am following the rule, if it's not installed it can't cause a security hole or slow my system. Trying to remove CUPS resulted in the following:

Code:
[~]#  rpm -e cups

error: Failed dependencies:
        /usr/bin/lp is needed by (installed) redhat-lsb-3.0-8.EL.i386
        /usr/bin/lpr is needed by (installed) redhat-lsb-3.0-8.EL.i386
Right, with a bit of searching I found the lsb is the Linux Standard Base project. Therefore it sounds reasonable to keep CUPS; but, why leave CUPS installed when I never intend to print.

Can anyone advise? (Am I mad)
 
Old 01-21-2008, 05:04 PM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 56
leave it installed but disable the service;
service cups stop
chkconfig --levels 2345 cups off
(so it will not restart in the future)

You can do the same chkconfig option with other services like kudzu also.
 
Old 01-21-2008, 05:11 PM   #3
Brian1
Guru
 
Registered: Jan 2003
Location: Seymour, Indiana
Distribution: Distribution: RHEL 5 with Pieces of this and that. Kernel 2.6.23.1, KDE 3.5.8 and KDE 4.0 beta, Plu
Posts: 5,700

Rep: Reputation: 61
Not sure if it is actually needed but so many rpms have requirements that aren't really needed. For now I would do as mentioned. Turn the service off. Doesn't really take up much space.

Brian
 
Old 01-22-2008, 03:21 AM   #4
harry edwards
Member
 
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Original Poster
Rep: Reputation: 48
Thanks I'll stop the service as suggested.
 
Old 01-22-2008, 05:33 AM   #5
unSpawn
Moderator
 
Registered: May 2001
Posts: 26,944
Blog Entries: 54

Rep: Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731Reputation: 2731
If nothing else needs printing then it's perfectly possible to keep redhat-lsb (using 'lsb_release --all' doesn't need printing) and ditch CUPS w/o any problems. Just add the "--nodeps" switch when using "-e". Adding "tsflags" in yum.conf and using "--repackage" switch with "rpm -e" will dump the uninstalled package in /var/spool/repackage so you can have rollback, just in case.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Minimal centos via kickstart not working abcdefg Red Hat 5 11-01-2008 12:11 PM
LXer: Install CentOS 5 DomU on CentOS 5 Dom0(64 bit) from NFS share LXer Syndicated Linux News 0 11-09-2007 03:41 AM
[SOLVED] which one to install centOS 4 or centOS 5 ? Pls HELP !!! vikas027 Linux - Newbie 2 05-13-2007 06:04 AM
Minimal CD install help E.M.P99 Linux - Newbie 16 03-10-2006 02:57 PM
Minimal install AlberTUX Slackware 1 11-23-2005 01:55 AM


All times are GMT -5. The time now is 03:32 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration