LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 02-10-2006, 05:27 AM   #1
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Blog Entries: 8

Rep: Reputation: 15
Question customizing my rc2.d


I've wanted to ask this for some time, but never actually got to it... well better now then never
I want to get rid of anything I don't need in my rc2.d (my default), this is how it looks now...
Code:
# ls S
S10sysklogd           S20inetd                S21nfs-common
S11klogd              S20makedev              S89atd
S18portmap            S20nfs-kernel-server    S89cron
S20dbus               S20resmgr               S99gdm
S20dbus-1             S20ssh                  S99rmnologin
S20dirmngr            S21fam                  S99stop-bootlogd
Do I need nfs ? I don't use it at all ? rmlogin ? I don't think so...
Well the question is, what's essential or what can I do without?
 
Old 02-10-2006, 06:43 AM   #2
guedellas
Member
 
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61

Rep: Reputation: 15
Are you using X?? Because I think that S99rmnologin is necessary to make login in X. As you have gdm I guess so, so I recommend you not to "update-rc.d -f rmnologin remove".

I had some troubles when I decide to clean my rc2.d because I wiped out this service and then an error always was prompted when I tried my login.

If you don't want to share files through your LAN, you can remove nfs services.
If you don't want to RPC a server, you can clean portmap.
If you don't want ssh services (for secure remote access), you can clean ssh.

Probably, the easy way is knowing what services do you want to use.
But you can feel free to experiment with update-rc.d (you know, what happens if I wipe this... )

Can't help with the other services.
 
Old 02-10-2006, 06:57 AM   #3
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140

Original Poster
Blog Entries: 8

Rep: Reputation: 15
Actually I don't use update-rc.d, just rename it to start with K...
 
Old 02-10-2006, 03:51 PM   #4
geden
Member
 
Registered: Nov 2004
Distribution: Mandriva ONE/ Kubuntu 8.04
Posts: 61

Rep: Reputation: 15
google pebble linux... it's woody pared to the bone..used for wireless access points
 
Old 02-11-2006, 02:22 PM   #5
guedellas
Member
 
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61

Rep: Reputation: 15
Quote:
Originally Posted by divukman
Actually I don't use update-rc.d, just rename it to start with K...
Well AFAIK, SXXname is just a link to an .sh placed in /etc/init.d/. If you change the name to K, this script will be executed also and your daemon will be started. If you don't want this, just remove the link (it's safe, you are not deleting the .sh) Maybe moving it to another name (not equal to S or K, as K means kills) also works.

update-rc.d facilitate you to accomplish this task, because each service should have its begining and its ending.
 
Old 02-11-2006, 02:43 PM   #6
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140

Original Poster
Blog Entries: 8

Rep: Reputation: 15
Question

Quote:
Originally Posted by guedellas
Well AFAIK, SXXname is just a link to an .sh placed in /etc/init.d/. If you change the name to K, this script will be executed also and your daemon will be started.
Well, I believe that renaming it to Kxxxx will not start the daemon as K means stop the service... and from what I can see on my system I'm not mistaken...
 
Old 02-13-2006, 01:54 AM   #7
guedellas
Member
 
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61

Rep: Reputation: 15
I got your point, and yes, I think you're write. (it made sense for me when I though it, but with your explanation my reasoning is obviously wrong).

thanks pal!
 
Old 02-13-2006, 03:21 AM   #8
divukman
Member
 
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140

Original Poster
Blog Entries: 8

Rep: Reputation: 15
Talking

Quote:
Originally Posted by guedellas
I got your point, and yes, I think you're write. (it made sense for me when I though it, but with your explanation my reasoning is obviously wrong).

thanks pal!
Yes, but you are right, service should have it's beginning and ending and therefore using update-rc.d is probably the best option. However renaming is perhaps a good way of determining what you don't need.... and then using update-rc.d.
 
  


Reply



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
reports on 10.rc2? freychef Slackware 18 06-23-2004 09:27 PM
Mandrake 10 RC2, where? tijs Mandriva 2 02-27-2004 11:00 AM
mandrake 9.2 rc2 PCLinux Mandriva 8 10-06-2003 07:01 AM
Is there an iso for 9.1 rc2 out? ducatiboy Slackware 12 09-28-2003 10:17 AM
2.4.17-rc2 and NO SOUND LardOfTheFries Linux - Software 6 02-02-2002 07:59 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 02:22 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration