-
Notifications
You must be signed in to change notification settings - Fork 11
/
install_limelight.sh
executable file
·40 lines (31 loc) · 1.27 KB
/
install_limelight.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
# Run normal photon installer
chmod +x ./install.sh
./install.sh --install-nm=yes --arch=aarch64
# edit boot partition
install -m 644 limelight/config.txt /boot/
install -m 644 userconf.txt /boot/
# install LL DTS
dtc -O dtb limelight/gloworm-dt.dts -o /boot/dt-blob.bin
# Kill wifi and other networking things
install -v -m 644 files/wait.conf /etc/systemd/system/dhcpcd.service.d/
install -v files/rpi-blacklist.conf /etc/modprobe.d/blacklist.conf
# Update pigipio service file to listen locally
install -v -m 644 files/pigpiod.service /lib/systemd/system/pigpiod.service
systemctl daemon-reload
# Enable ssh/pigpiod
systemctl enable ssh
systemctl enable pigpiod
# Remove extra packages too
echo "Purging extra things"
apt-get purge -y gdb gcc g++ linux-headers* libgcc*-dev libqt* wpasupplicant wireless-tools firmware-atheros firmware-brcm80211 firmware-libertas firmware-misc-nonfree firmware-realtek raspberrypi-net-mods
apt-get autoremove -y
echo "Installing additional things"
sudo apt-get update
apt-get install -y pigpiod pigpio device-tree-compiler
apt-get install -y network-manager net-tools
# libcamera-driver stuff
apt-get install -y libegl1 libopengl0 libgl1-mesa-dri libcamera-dev libgbm1
rm -rf /var/lib/apt/lists/*
apt-get clean
rm -rf /usr/share/doc
rm -rf /usr/share/locale/