Debian This forum is for the discussion of Debian Linux.
|
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
02-10-2006, 05:27 AM
|
#1
|
|
Member
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Rep:
|
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?
|
|
|
|
02-10-2006, 06:43 AM
|
#2
|
|
Member
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61
Rep:
|
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.
|
|
|
|
02-10-2006, 06:57 AM
|
#3
|
|
Member
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Original Poster
Rep:
|
Actually I don't use update-rc.d, just rename it to start with K...
|
|
|
|
02-10-2006, 03:51 PM
|
#4
|
|
Member
Registered: Nov 2004
Distribution: Mandriva ONE/ Kubuntu 8.04
Posts: 61
Rep:
|
google pebble linux... it's woody pared to the bone..used for wireless access points
|
|
|
|
02-11-2006, 02:22 PM
|
#5
|
|
Member
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61
Rep:
|
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.
|
|
|
|
02-11-2006, 02:43 PM
|
#6
|
|
Member
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Original Poster
Rep:
|
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...   
|
|
|
|
02-13-2006, 01:54 AM
|
#7
|
|
Member
Registered: Dec 2005
Location: Espaņa
Distribution: Fedora Core 8 + Debian 4.0 + Vista
Posts: 61
Rep:
|
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!
|
|
|
|
02-13-2006, 03:21 AM
|
#8
|
|
Member
Registered: Sep 2005
Location: Split, Croatia
Distribution: Gentoo/Debian
Posts: 140
Original Poster
Rep:
|
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. 
|
|
|
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 06:36 AM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|