-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprep.sh
More file actions
executable file
·39 lines (29 loc) · 939 Bytes
/
prep.sh
File metadata and controls
executable file
·39 lines (29 loc) · 939 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
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/bin/sh
#
# Openstack file copy helper - helps set up RHEL 7 for openstack
#
# Run as root
#
echo "Setting up subscription-manager..."
subscription-manager attach --pool=8a85f9864a7bffa2014a7e1e28bc39d1
echo "Installing base packages..."
yum install net-tools mlocate vim-enhanced vim-filesystem telnet psmisc bind-utils git screen ntp
echo "Installing vimrc..."
cp vimrc ~/.vimrc
echo "Copying WPA Supplicant files..."
cp wpa_supplicant /etc/sysconfig/wpa_supplicant
cp wpa_supplicant.conf /etc/wpa_supplicant/wpa_supplicant.conf
echo "Copying the route service..."
cp route.service /usr/lib/systemd/system/route.service
echo "Copying hosts..."
cp hosts /etc/hosts
echo <<EoT
File copying done.
You should now run the following manually ON THE SYSTEM CONSOLE -
systemctl stop NetworkManager
systemctl disable NetworkManager
systemctl enable wpa_supplicant
systemctl enable route
systemctl enable network
and then reboot
EoT