-
-
Notifications
You must be signed in to change notification settings - Fork 101
/
Copy pathstop-services.sh
executable file
·44 lines (44 loc) · 1.72 KB
/
stop-services.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/bin/bash
for i in $(ls /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor); do echo performance | sudo tee $i; done
echo 0 | sudo tee /proc/sys/vm/compaction_proactiveness
echo 0 | sudo tee /sys/kernel/mm/ksm/run
echo 1000 | sudo tee /sys/kernel/mm/lru_gen/min_ttl_ms
echo 5 | sudo tee /proc/sys/vm/dirty_ratio
echo 5 | sudo tee /proc/sys/vm/dirty_background_ratio
sudo systemctl stop proc-sys-fs-binfmt_misc.automount
sudo systemctl stop bluetooth.service
sudo systemctl stop cron.service
sudo systemctl stop cups.path
sudo systemctl stop cups.socket
sudo systemctl stop cups.service
sudo systemctl stop colord.service
sudo systemctl stop cups-browsed.service
sudo systemctl stop fwupd.service
sudo systemctl stop gnome-remote-desktop.service
sudo systemctl stop iio-sensor-proxy.service
sudo systemctl stop ModemManager.service
sudo systemctl stop packagekit.service
sudo systemctl stop power-profiles-daemon.service
sudo systemctl stop syslog.socket
sudo systemctl stop rsyslog.service
sudo systemctl stop snapd.service
sudo systemctl stop snapd.socket
sudo systemctl stop systemd-journald.service
sudo systemctl stop systemd-journald.socket
sudo systemctl stop systemd-journald-dev-log.socket
sudo systemctl stop systemd-oomd.service
sudo systemctl stop systemd-oomd.socket
sudo systemctl stop systemd-hostnamed.service
sudo systemctl stop systemd-timesyncd.service
sudo systemctl stop switcheroo-control.service
sudo systemctl stop thermald.service
sudo systemctl stop udisks2.service
sudo systemctl stop unattended-upgrades.service
sudo systemctl stop upower.service
sudo service apparmor stop
sudo service apport stop
sudo service bluetooth stop
sudo service openvpn stop
sudo service plymouth-log stop
sudo service ufw stop
sudo service sysstat stop