Krzysztof Opasiak | fe651c1 | 2021-06-23 10:59:03 +0200 | [diff] [blame] | 1 | #!/bin/bash |
Mike Elliott | f137b2c | 2019-04-30 16:28:07 -0400 | [diff] [blame] | 2 | |
| 3 | apt-get update |
| 4 | |
Krzysztof Opasiak | fe651c1 | 2021-06-23 10:59:03 +0200 | [diff] [blame] | 5 | IP_ADDR=`ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}'` |
| 6 | HOSTNAME=`hostname` |
Mike Elliott | f137b2c | 2019-04-30 16:28:07 -0400 | [diff] [blame] | 7 | |
Krzysztof Opasiak | fe651c1 | 2021-06-23 10:59:03 +0200 | [diff] [blame] | 8 | echo "$IP_ADDR $HOSTNAME" >> /etc/hosts |
Mike Elliott | f137b2c | 2019-04-30 16:28:07 -0400 | [diff] [blame] | 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 |