-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbasic.sh
More file actions
24 lines (22 loc) · 978 Bytes
/
basic.sh
File metadata and controls
24 lines (22 loc) · 978 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/usr/bin/env bash
#set -o xtrace
set -o nounset
set -o errexit
sed -i "s/SELINUX=enforcing/SELINUX=disabled/" /etc/selinux/config
sed -i "s/#UseDNS yes/UseDNS no/" /etc/ssh/sshd_config
systemctl stop firewalld
systemctl disable firewalld
yum -y remove wpa_supplicant iprutils iwl*firmware libertas* ivtv* alsa-* btrfs-progs* aic94xx-firmware kexec-tools NetworkManager* microcode_ctl
systemctl enable network
systemctl start network
plymouth-set-default-theme details
dracut -f
yum -y install open-vm-tools wireshark man rng-tools unzip bind-utils yum-utils chrony
yum-config-manager --enable ol7_optional_latest
yum-config-manager --enable ol7_addons
rpm -ivh https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
yum -y install htop screen tmux byobu rpmconf
yum-config-manager --add-repo=https://copr.fedorainfracloud.org/coprs/carlwgeorge/ripgrep/repo/epel-7/carlwgeorge-ripgrep-epel-7.repo
yum -y install ripgrep
systemctl enable chronyd
yum -y upgrade