To lighten our system we must disable graphic effects, remove applications that start and other things typical of each environment, however regardless of what desktop environment is used, even if you do not necessarily want to lighten the system ... it is always a good practice to optimize the services that start automatically on our computer.
Applications to enable (or not) services of our system automatically there are several, I will tell you about one in particular especially for its simplicity and ease of use, it is called: rcconf
To install it simply install the package rcconf
(apt-get install rcconf
... pacman -S rcconf
Etc. ;)), then they run it (with root privileges) and something like this will appear:
They run it fine using sudo:
sudo rcconf
Or well, if you are already logged in as root, you will know what to do then 🙂
Anyway, once they run it, something like what I show you above will appear, each line is a service that may or may not be configured to start automatically with the computer, now I will explain in great detail how to work with rcconf:
- All the directional arrows vertical keyboard (up and down) will serve to move between the lines.
- With the space key the keyboard is put or removed that asterisk that you see at the beginning of several lines.
— That asterisk it means that the service of that line will start automatically with the computer. For example, in the image we see that sudo is marked with an asterisk, this means it will start automatically when I start my computer, while mysql is not selected so it will not start automatically.
- Once they finish adding and removing asterisks, pressing the Tab key ([Tab]) can go to the options Accept y CancelObviously if we place ourselves on Accept and press [Enter] our changes will be saved.
Once all this is done, the next time we start the computer, only the services that we left marked with an asterisk a moment ago will start 😉
However, if you do not want to wait and have to restart the system, if you run rcconf with parameter --now
the changes they make will take effect immediately, that is, with this parameter if they disable a service when they close rcconf that service will be stopped.
I'm not done yet… 😀… for the most freaks, they have the parameter available --expert
, which is as its name indicates the rrconf expert mode, take a look but BE CAREFUL not to destroy your system 😉
Anyway, I hope it has been useful to you.
regards
Very useful, in fact the other day I was walking like crazy trying to remember rcconf .. "I discovered" in the squeeze repo one that is also used for the same and is called sysv-rc-conf
aptitude install sysv-rc-conf
Yes, in fact sysv-rc allows you to work with the runlevels individually, something extremely useful when you need to locate processes (daemons) than different specific runlevels 😀
Thanks for your comment
Yes, I also use that one, I find it more functional. Although currently with systemd the runlevels are becoming obsolete
Ah another thing ... it is advisable after installing the rcconf to do
update-rcconf-guide
Valee, thanks for sharing it man!
Regards!
"Rcconf needs dialog or whiptail"
If you get that error, do sudo ln -s / bin / whiptail / usr / bin / whiptail and then you can execute it well 🙂
I installed dialog and it works for me, but thanks for your tip.
In the chakra repo it is not: / nor in the ccr either.
Chakra uses system d, I think that's why!
any similar tool for fedora ?? rcconf is not in the repos, neither is sysv-rc-conf
It also works to remove execution permissions from the service with chmod-x in the init.d
Good contribution 😀
Thank you very much for the contribution
Arch Linux doesn't support any more initscripts so the package won't work 😛
An app like this is missing for distros with systemd
Hello, it installs well, but when I mark the service I want to start with the system and re-enter rcconf, the service that I had marked is no longer there. I want to start lampp as a daemon on debian. this is what i have done about the file:
1. Create a file called lampp and save it in /etc/init.d
Step2: It only remains to add a new service
update-rc.d -f lampp defaults
in / opt / lampp / htdocs is where you save the projects
script from lampp file
#! / Bin / bash
#
### BEGIN INIT INFO
# Provides: apache2 httpd2 xampp
# Required-Start: $ local_fs $ remote_fs $ network
# Required-Stop: $ local_fs $ remote_fs $ network
# Default-Start: 3 5
# Default-Stop: 0 1 2 6
# Short-Description: XAMPP
# Description: Starts and stops personalize-XAMPP
### END INIT INFO
case $ 1 in
"Start")
service mysql stop
/ opt / lampp / lampp startapache%
/ opt / lampp / lampp startmysql%
service mysql stop
;;
"Stop")
/ opt / lampp / lampp stop
;;
"Restart")
/ opt / lampp / lampp stop
Sleep 4
/ opt / lampp / lampp startapache%
/ opt / lampp / lampp startmysql%
;;
esac
I get this "rcconf needs dialog or whiptail" when I put "sudo rcconf" ??