Guillaume Lambert | d9017ef | 2021-03-08 21:38:31 +0100 | [diff] [blame] | 1 | #!/bin/sh |
Mike Elliott | f137b2c | 2019-04-30 16:28:07 -0400 | [diff] [blame] | 2 | |
| 3 | apt-get update |
| 4 | |
Guillaume Lambert | d9017ef | 2021-03-08 21:38:31 +0100 | [diff] [blame] | 5 | IP_ADDR=$(ip address |grep ens|grep inet|awk '{print $2}'| awk -F / '{print $1}') |
| 6 | HOST_NAME=$(hostname) |
Mike Elliott | f137b2c | 2019-04-30 16:28:07 -0400 | [diff] [blame] | 7 | |
Guillaume Lambert | d9017ef | 2021-03-08 21:38:31 +0100 | [diff] [blame] | 8 | echo "$IP_ADDR $HOST_NAME" >> /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 |