Files
homeserver/install.sh

23 lines
521 B
Bash

#!/bin/bash
# install preconditions
apt update
apt dist-upgrade -y
# set manual IP address
nmcli con mod "eth0" ipv4.addresses 192.168.178.5/24
nmcli con mod "eth0" ipv4.gateway 192.168.178.1
nmcli con mod "eth0" ipv4.dns ""
nmcli con mod "eth0" ipv4.dns "192.168.178.5 8.8.8.8"
nmcli con mod "eth0" ipv4.method manual
nmcli con up "eth0"
#install dnsmasq
apt install dnsmasq net-tools -y
cp dnsmasq.conf /etc/dnsmasq.conf
# install ntp
apt install chrony -y
mkdir /etc/chrony/
cp chrony.conf /etc/chrony/chrony.conf