-
Notifications
You must be signed in to change notification settings - Fork 11
/
setup.sh
executable file
·40 lines (35 loc) · 1003 Bytes
/
setup.sh
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
40
#!/bin/sh -e
DEBIAN_FRONTEND=noninteractive
DEBCONF_NONINTERACTIVE_SEEN=true
echo 'tzdata tzdata/Areas select Etc' | debconf-set-selections
echo 'tzdata tzdata/Zones/Etc select UTC' | debconf-set-selections
echo "locales locales/default_environment_locale select en_US.UTF-8" | debconf-set-selections
echo "locales locales/locales_to_be_generated multiselect en_US.UTF-8 UTF-8" | debconf-set-selections
rm -f "/etc/locale.gen"
apt update -qqy
apt upgrade -qqy
apt autoremove -qqy
apt install -qqy --no-install-recommends \
bridge-utils \
dnsmasq \
hostapd \
iptables \
libconfig9 \
locales \
modemmanager \
netcat-traditional \
net-tools \
network-manager \
openssh-server \
qrtr-tools \
rmtfs \
sudo \
systemd-timesyncd \
tzdata \
wireguard-tools \
wpasupplicant
apt clean
rm -rf /var/lib/apt/lists/*
passwd -d root
echo user:1::::/home/user:/bin/bash | newusers
echo 'user ALL=(ALL:ALL) NOPASSWD: ALL' > /etc/sudoers.d/user