Home > bash, Linux, LinuxCommands > centos 7 disable useless services

centos 7 disable useless services

January 4th, 2017 Leave a comment Go to comments

This some of the tuning I do on a centos 7 install

REMOVE USLESS NETWORK INTERFACE
brctl delbr virbr0
systemctl get-default
systemctl set-default multi-user.target

DISABLE USELESS SERVICES
ON GUI INSTALLS:
systemctl disable polkit.service libstoragemgmt.service avahi-daemon.service rhnsd.service alsa-state.service wpa_supplicant.service gssproxy.service ModemManager.service irqbalance.service atd.service smartd.service abrt-xorg.service abrtd.service cups.service
systemctl stop polkit.service libstoragemgmt.service avahi-daemon.service rhnsd.service alsa-state.service wpa_supplicant.service gssproxy.service ModemManager.service irqbalance.service atd.service smartd.service abrt-xorg.service abrtd.service cups.service
ON BASIC WEB INSTALLS:
systemctl disable firewalld.service irqbalance.service abrtd.service polkit.service smartd.service wpa_supplicant.service atd.service
systemctl stop firewalld.service irqbalance.service abrtd.service polkit.service smartd.service wpa_supplicant.service atd.service
mv /usr/sbin/wpa_supplicant /usr/sbin/wpa_supplicant_REMOVED
pkill wpa_supplicant

systemctl list-units –type service |grep running

RENAME NETWORK INTERFACE
mv /etc/sysconfig/network-scripts/ifcfg-eno16777984 /etc/sysconfig/network-scripts/ifcfg-eth0
vi /etc/default/grub
GRUB_CMDLINE_LINUX=”crashkernel=auto rd.lvm.lv=centos/root rd.lvm.lv=centos/swap rhgb quiet nr_cups=2 net.ifnames=0 biosdevname=0v ”
grub2-mkconfig -o /boot/grub2/grub.cfg

sed -i ‘s/enforcing/disabled/g’ /etc/selinux/config
sestatus
#NEED REBOOT

DISABLE IPV6
cat /etc/sysconfig/network-scripts/ifcfg-eth0
TYPE=Ethernet
BOOTPROTO=none
DEFROUTE=yes
IPV4_FAILURE_FATAL=no
IPV6INIT=no
IPV6_AUTOCONF=no
IPV6_DEFROUTE=no
IPV6_FAILURE_FATAL=no
NAME=eth0
UUID=0271b1ee-6a44-4ad6-a832-eadde5fe844d
DEVICE=eth0
ONBOOT=yes
HWADDR=00:50:56:A7:2D:EC
IPADDR=172.27.33.99
PREFIX=24
GATEWAY=172.27.33.231
IPV6_PEERDNS=no
IPV6_PEERROUTES=no

TOO MANY RCUOS PROCESS
Turn off the vm.
Edit settings > Options > Advanced > Memory / CPU Hotplug
In “CPU Hot Plug”, disable “CPU hot plug for this virtual machine.”
Power on.

here is the script:

  1. February 24th, 2017 at 15:14 | #1

    I am genuinely happy to glance at this web site posts which contains plenty of valuable information, thanks for providing these statistics.
    help for small businesses
    http://www.dealhint.eu

  2. February 24th, 2017 at 23:32 | #2

    Hello there, You have done a fantastic job. I’ll certainly digg it and for my part recommend to my friends. I am confident they’ll be benefited from this website.
    college tips http://www.educationhints.eu

  3. February 25th, 2017 at 03:55 | #3

    You can download 7000000 Tracks, high Quality 320kbbs.
    Beatport, Traxsource and FLAC 14TB. Private FTP
    All Genre House, Club, Dance, Minimal, Psy-Trance, Dubstep….
    http://0daymusic.org/premium.php

  4. February 25th, 2017 at 13:37 | #4

    I’ve been surfing online greater than 3 hours today, but I by no means discovered any fascinating article like yours. It’s lovely worth sufficient for me. In my opinion, if all webmasters and bloggers made excellent content as you did, the internet might be a lot more useful than ever before.
    dept of edu http://www.edutips.eu

  1. No trackbacks yet.
What is 3 + 10 ?
Please leave these two fields as-is:
IMPORTANT! To be able to proceed, you need to solve the following simple math (so we know that you are a human) :-)

*