Mike Elliott | f137b2c | 2019-04-30 16:28:07 -0400 | [diff] [blame] | 1 | #!/bin/bash |
2 | |||||
3 | apt-get update | ||||
4 | |||||
5 | IP_ADDR=`ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}'` | ||||
6 | HOSTNAME=`hostname` | ||||
7 | |||||
8 | echo "$IP_ADDR $HOSTNAME" >> /etc/hosts | ||||
9 | |||||
10 | sudo apt-get install make -y | ||||
11 | |||||
12 | # nfs server | ||||
13 | sudo apt-get install nfs-kernel-server -y | ||||
14 | |||||
15 | sudo mkdir -p /nfs_share | ||||
16 | sudo chown nobody:nogroup /nfs_share/ | ||||
17 | |||||
18 | exit 0 |