-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·23 lines (18 loc) · 878 Bytes
/
setup.sh
File metadata and controls
executable file
·23 lines (18 loc) · 878 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
# Clean Armbian Bullseye Minimal setup
apt update && apt upgrade -y
# Install dependencies
apt install python3-pip python3-cffi libasound2 -y
pip install alsa-midi
# Configure run at startup
cp ./onair-link.py /bin
(crontab -l 2>/dev/null; echo "@reboot onair-link.py &") | crontab -
# Network configuration
nmcli connection add type ethernet ifname eth0 con-name eth0-auto
nmcli connection modify eth0-auto ipv6.method disabled
nmcli connection modify eth0-auto connection.autoconnect-priority 100
nmcli connection modify eth0-auto connection.autoconnect-retries 2
nmcli connection modify eth0-auto ipv4.dhcp-timeout 10
nmcli connection add type ethernet ifname eth0 con-name eth0-ll
nmcli connection modify eth0-ll ipv4.method link-local ipv6.method disabled
nmcli connection modify eth0-ll connection.autoconnect-priority 50
nmcli connection delete 'Wired connection 1'