DebianThis 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.
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.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I am relatively new to Debian, and would like to know how to disable certain services, such as Network Manager and Bittorrent tracker, from automatically starting at system boot. I am used to Slackware, where you just removed executable permissions in the /etc/rc.d directory, which is obviously different in Debian. I see that, during bootup, scripts are being executed from a /scripts directory, however this directory does not seem to appear in the root directory. Thanks.
All services are supposed to be started by the files found in the /etc/rc?.d/ directories with the /etc/rc2.d/ directory being the default run level the others (3,4 and 5) are configured identically, these files then have a symbolic link to the corresponding files in the /etc/init.d/ directory. If you wish for a service not to start by default then you can rename/remove it from the /etc/rc2.d directory and your change will be preserved on package upgrade as long as one of the start links still appear in one of the other (3,4 and 5) directories. Or you can use the update-rc.d command to change the link(s) and if you want to start the service after then you can use /etc/init.d/service_name start if you leave the start off the end it will give you the options that can be used like stop, restart, reload ...
For the other part of your question about the programs starting from some /scripts directory there is something weird going on that I have never seen happen on my system unless you mean the /etc/init.d directory which is a normal place for this to happen in. I think I would check to see if somehow your box has been taken over as I don't know of any bittorrent client that starts automatically on boot so that is a little suspicious and it definitely should not be getting started from some /scripts directory on a Debian system.
I don't believe that there has been any malicious programs installed on this system, since it is just a new install and that it has not been connected to the network yet. I don't have the exact information displayed at boot-up, but the message displayed does indicate that there is something running from a /scripts directory somewhere.
I don't believe that there has been any malicious programs installed on this system, since it is just a new install and that it has not been connected to the network yet. I don't have the exact information displayed at boot-up, but the message displayed does indicate that there is something running from a /scripts directory somewhere.
Well then not much chance of it at all, I think we will need to see the exact message to be able to tell you what is going on.
Another way to control startup services is to install sysv-rc-conf (aptitude install sysv-rc-conf or apt-get install sysv-rc-conf) and then run it. You can then check or uncheck services by runlevel. It's a slightly more automated way of controlling services (that is, you don't have to rename anything by hand, just run along a simple ncurses display checking and unchecking to your heart's content).
the bittorrent service appears to be part of a default install of etch. It's on all my boxes and I never specifically installed it.
sysv-rc-conf is easy enough to use to disable it though. no clue why it's enabled by default.
Bittorrent is popular enough that it's now part of the default set of programs/services built into the Gnome desktop environment. If you installed the Desktop environment choice during the installation of Etch, it's built into that. (I agree that it's a larger question why Gnome and or Debian made that choice, but at least that might tell you when/how it got installed on your system.)
Well, the first thing to do is figure out which scripts are called. Post the contents of the /etc/rc2.d directory. The easiest way is to use the ls command. Open a terminal, become root with su and enter your root-password. Then, do
Code:
ls -al /etc/rc2.d/ > rc2.txt
This tells the ls command to name all files (the a option) and list the permissions and in this case, to where the link leads too (the l option). It then re-directs that output not to your screen, but to a file (the > re-directs and you name the file, in this case rc2.txt). You'll find that text file in the current directory, so you can view it with
Code:
cat rc2.txt
Substitute cat with gedit if you want something more graphical When you post the contents of the text file, use the code tags (like I did above) to distinguish between the output of a command and your reply.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.