You are not logged in.
Pages: 1
Hello!
Before anything i like to say that my English is not very good, so i hope that you understand.
I noticed that my system it's become slow when start, so i want to know what programs (services o scripts) start with him.
When the system start i see the list of program but i can't rich to write down them because it's so fast.
I know that you can get a list of program in the autostart.sh file but there isn't the programs i looking for. For example i see something about bluetooth when the system start, but is not in that list.
How i can get those programs?
Thanks in advance
Last edited by emek (2015-05-30 20:37:27)
Offline
The autostart file just starts applications specified for the user. The system start-up process is before that, and the services which are started can be viewed with systemd commands:
See how long your system takes to start up with
[damo@cb-desktop ~]$ systemd-analyze
Startup finished in 1.222s (kernel) + 1.039s (userspace) = 2.262s
See what is started with
systemd-analyze blame
Prevent a unit from starting with
sudo systemctl disable NAME.service
Get brief information with
systemctl --help
...and don't forget the manpages
BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator
Offline
Hello,
i try to use systemd, but i have not install it 8.(
Can i install it without problem?
Last edited by emek (2015-05-31 18:15:45)
Offline
Can i install it without problem?
If you're using #! Waldorf don't bother, it will probably end badly...
What are you using, exactly?
Offline
It's Crunchbang Waldorf
Offline
Use this to list all services:
# chkconfig --list
Disable unnecessary services with:
# chkconfig <name of service> off
For the graphical desktop, look in ~/.config/openbox/autostart and /etc/xdg/autostart for programs you can remove.
Offline
It's Crunchbang Waldorf
Sorry, my bad. I thought I was replying in the bunsenLabs section. Ooops :8
BunsenLabs Group on deviantArt
damo's gallery on deviantArt
Openbox themes
Forum Moderator
Offline
@emek: You're English is good enough for me to understand; don't sweat it. If you want a list of all packages on your system, open up a terminal window and enter the following:
dpkg -l > <path>package-list_YYYYMMDD.txt
This will generate a text file containing all of the packages currently installed on your system. To see a list of loaded and running packages, use a program like htop, which is included with CrunchBang, or install gnome-system-monitor (which is nicer IMO) from the Debian repo.
Linux User #586672
Come and Die -- Kyle Idleman
Offline
Thanks a lot to all for help me.
Use this to list all services:
# chkconfig --list
Disable unnecessary services with:
# chkconfig <name of service> off
For the graphical desktop, look in ~/.config/openbox/autostart and /etc/xdg/autostart for programs you can remove.
System say " bash: chkconfig: command not found "
@emek: You're English is good enough for me to understand; don't sweat it. If you want a list of all packages on your system, open up a terminal window and enter the following:
dpkg -l > <path>package-list_YYYYMMDD.txt
This will generate a text file containing all of the packages currently installed on your system. To see a list of loaded and running packages, use a program like htop, which is included with CrunchBang, or install gnome-system-monitor (which is nicer IMO) from the Debian repo.
I delete the <path> part and give a lot of program. The problem is the list don't show me the startup programs.
What i can do?
Offline
You may need to install chkconfig
sudo apt-get install chkconfig
if it's already installed (apt will give you a message if it is) then it isn't in your $PATH. It needs root privileges so I'm guessing it gets installed to /sbin.
you can try:
sudo /sbin/chkconfig
Another good program to check programs run at startup is rcconf
sudo apt-get install rcconf
Last edited by PackRat (2015-06-02 00:22:30)
"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe
Offline
I delete the <path> part and give a lot of program. The problem is the list don't show me the startup programs.
What i can do?
Correct, the list will not tell you what the startup programs are. I wasn't exactly sure what you were looking for so I included that tip just in case. My apologies if my tip caused confusion.
Linux User #586672
Come and Die -- Kyle Idleman
Offline
System say " bash: chkconfig: command not found "
I may be wrong about that -- I have no experience of SysVinit and the only non-systemd box I have is FreeBSD
Offline
I would recommend this for a quick&easy solution:
Another good program to check programs run at startup is rcconf
sudo apt-get install rcconf
If you want to get your hands greasy this is another way of managing services with sysvinit (in debian and its derivatives):
who -r
tells you your current runlevel.
Example:
unfugr@debakel:~$ who -r
run-level 2 2015-06-02 10:11 last=S
tells me I am in runlevel 2 and the last runlevel before that was runlevel S.
Now I can do
unfugr@debakel:~$ ls -l /etc/rc2.d/
total 4
lrwxrwxrwx 1 root root 14 Mär 24 01:33 K01dbus -> ../init.d/dbus
lrwxrwxrwx 1 root root 16 Mär 26 03:19 K01gdomap -> ../init.d/gdomap
-rw-r--r-- 1 root root 677 Apr 6 20:44 README
lrwxrwxrwx 1 root root 18 Mai 11 14:31 S01bootlogs -> ../init.d/bootlogs
lrwxrwxrwx 1 root root 17 Mai 21 11:54 S01hddtemp -> ../init.d/hddtemp
lrwxrwxrwx 1 root root 14 Mär 23 21:59 S01motd -> ../init.d/motd
lrwxrwxrwx 1 root root 18 Mai 11 14:31 S02rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root 19 Mai 11 14:31 S02rmnologin -> ../init.d/rmnologin
Yay! they have a README. Read it. It is fun.
cat /etc/rc2.d/README
[...]To disable a service in this runlevel, rename its script in this
directory so that the new name begins with a 'K' and a two-digit
number, and run 'update-rc.d script defaults' to reorder the scripts
according to dependencies[...]
So: Everyting that starts with an 'S' gets run upon entering the runlevel, everything that starts with a 'K' is ignored¹.
Your list of services will probably be a bit longer than mine.
Another way instead of renaming
sudo mv /etc/rc2.d/S01annoyingservice /etc/rc2/K01annoyingservice
and running
sudo update-rc.d
afterwards as the readme tells us, is this (silly example):
root@debakel:/home/unfugr# update-rc.d motd disable 2
insserv: warning: current start runlevel(s) (1 3 4 5) of script `motd' overrides LSB defaults (1 2 3 4 5).
insserv: warning: current stop runlevel(s) (2) of script `motd' overrides LSB defaults (empty).
In waldorf you would run
sudo update-rc.d <name of service> disable|enable <number(s) of runlevel(s)>
More / deeper information:
man update-rc.d
I hope this is more helpful than confusing...
-----------------------------------------
Aftertought: If you are planning to switch to BunsenLabs as soon as it is ready (which will come with systemd by default) it is probably the easiest thing to install rcconf for the time being because all that I wrote will be obsolete then (except you want to switch BL back to sysvinit).
In standard BunsenLabs what damo wrote in post #2 will be the way to go.
Last edited by unfugr (2015-06-03 00:31:31)
Offline
^ and that's why I like systemd
But seriously, thanks unfugr -- very useful!
Offline
Thank you, HoaS.
Yes, sometimes I miss some of the systemd commands, but then ... for me sysvinit is somehow simpler to understand.
I really don't know why I can't wrap my head around systemd.
----------------------
¹ Erm... I wrote partial bogus up there. 'K' does not mean that this service is ignored, but that it is stopped (if running) upon entering the runlevel. That can be a huge difference.
It was early in the day and I hadn't had any medication. :8
Last edited by unfugr (2015-06-03 00:35:31)
Offline
^ Lack of concrete documentation most likely. Arch is the best source for it and even it can be sparse at times. I image with time and useage that situation will improve tremendously. There is still a lot about systemd that I just don't understand yet.
Offline
Lack of concrete documentation
man systemd
apropos systemd
Offline
man systemd apropos systemd
Oh...you're so fastidious and precise.
Linux User #586672
Come and Die -- Kyle Idleman
Offline
Thanks unfugr !
I disable bluetooth and openvpn. I don't touch nothing more because i don't know what they do.
lrwxrwxrwx 1 root root 19 May 30 17:56 K01bluetooth -> ../init.d/bluetooth
lrwxrwxrwx 1 root root 17 May 30 17:56 K01openvpn -> ../init.d/openvpn
-rw-r--r-- 1 root root 677 Jul 14 2013 README
lrwxrwxrwx 1 root root 14 Mar 22 20:14 S01motd -> ../init.d/motd
lrwxrwxrwx 1 root root 17 Mar 22 01:35 S01preload -> ../init.d/preload
lrwxrwxrwx 1 root root 17 Mar 22 20:14 S01rsyslog -> ../init.d/rsyslog
lrwxrwxrwx 1 root root 14 Mar 22 20:14 S01slim -> ../init.d/slim
lrwxrwxrwx 1 root root 14 Mar 22 00:33 S01sudo -> ../init.d/sudo
lrwxrwxrwx 1 root root 14 Mar 22 20:14 S02dbus -> ../init.d/dbus
lrwxrwxrwx 1 root root 21 Mar 22 20:14 S02loadcpufreq -> ../init.d/loadcpufreq
lrwxrwxrwx 1 root root 13 Mar 22 20:14 S02ntp -> ../init.d/ntp
lrwxrwxrwx 1 root root 15 Mar 22 20:14 S02rsync -> ../init.d/rsync
lrwxrwxrwx 1 root root 22 Mar 22 20:14 S03avahi-daemon -> ../init.d/avahi-daemon
lrwxrwxrwx 1 root root 25 Mar 22 20:14 S03network-manager -> ../init.d/network-manager
lrwxrwxrwx 1 root root 18 May 30 17:56 S04bootlogs -> ../init.d/bootlogs
lrwxrwxrwx 1 root root 20 May 30 17:56 S04pulseaudio -> ../init.d/pulseaudio
lrwxrwxrwx 1 root root 15 May 30 17:56 S04saned -> ../init.d/saned
lrwxrwxrwx 1 root root 19 May 30 17:56 S05minissdpd -> ../init.d/minissdpd
lrwxrwxrwx 1 root root 18 May 30 17:56 S05rc.local -> ../init.d/rc.local
lrwxrwxrwx 1 root root 19 May 30 17:56 S05rmnologin -> ../init.d/rmnologin
I have been reading this post from Unia http://crunchbang.org/forums/viewtopic.php?id=10761
to know what services i can disable.
Thanks a lot to all !!
Last edited by emek (2015-06-04 12:19:30)
Offline
Most services have a man page so you can see what service they provide.
If you're unfamiliar with man (manual) pages, in the terminal:
man <name of program>
brings up the man page. For example, saned is one of the services you have at startup;
man saned
will bring up the manual for saned and you can read that saned is a scanner access daemon. If you don't have access to a scanner, you may not want to start saned.
"It does not require many words to speak the truth." - Chief Joseph, Nez Perce tribe
Offline
^this!
And:
In vanilla crunchbang the runlevels 2 3 4 and 5 do exactly the same (I have loooked it up having booted into the live iso and I hope I haven't misread something). 3 4 and 5 are so to speak free to be played with if you want to keep runlevel 2 vanilla(-ish) as a fallback solution.
How?
sudo update-rc.d <name of service a> disable 4
sudo update-rc.d <name of service b> disable 4
...
and then to switch runlevels:
sudo init 4
... and see what happens.
To go back:
sudo init 2
Now if you want to boot with your customized runlevel 4, you can do the following:
Open /etc/inittab with your favourite text editor using root privileges...
sudo nano /etc/inittab
...and change this (line 5 in my debian jessie)
# The default runlevel.
id:2:initdefault:
like so:
# The default runlevel.
id:4:initdefault:
This can easily be fixed from a live system if something goes totally pear-shaped.
Oh. And I would not recommend to play with runlevels S 0 1 and 6 for the time being as you can really mess things up there.
Read the comments in /etc/inittab, they explain why.
________________
Sidenote: If you should want to try what happens when disabling slim (I don't say you should) I recommend to work outside of X because it will kill your openbox session.
You can always use
sudo update-rc.d <name-of-service> stop|start
to try something out temporarily.
Last edited by unfugr (2015-06-04 16:05:18)
Offline
Pages: 1
Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat