forked from tesberry/tesberry
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·49 lines (40 loc) · 1.63 KB
/
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
41
42
43
44
45
46
47
48
49
#!/bin/bash
# Update device
echo "-------- Updating device --------"
sudo apt update
sudo apt upgrade -y
# Install docker
echo "-------- Install docker --------"
sudo apt install -y \
ca-certificates \
curl \
gnupg \
lsb-release
curl -fsSL https://download.docker.com/linux/debian/gpg | sudo gpg --dearmor -o /usr/share/keyrings/docker-archive-keyring.gpg
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/docker-archive-keyring.gpg] https://download.docker.com/linux/debian \
$(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo apt-get update
sudo apt-get install -y docker-ce docker-ce-cli containerd.io
sudo groupadd docker
sudo usermod -aG docker $USER
newgrp docker
# Install docker-compose
echo "-------- Install docker-compose --------"
sudo curl -L "https://github.com/docker/compose/releases/download/v2.9.0/docker-compose-linux-armv7" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
# Get tesberry
echo "-------- tesberry --------"
git clone https://github.com/tesberry/tesberry.git
cd tesberry
docker-compose build
docker-compose up -d
# Improve Boot Time
echo "-------- Improve Boot Time --------"
echo "disable_splash=1" >> /boot/config.txt
echo "boot_delay=0" >> /boot/config.txt
echo -n " fastboot" >> /boot/cmdline.txt
# Create udev rule thats specific to carlinkit device for Apple CarPlay
echo "-------- Setting up Apple CarPlay --------"
echo "SUBSYSTEM==\"usb\", ATTR{idVendor}==\"1314\", ATTR{idProduct}==\"1520\", MODE=\"0660\", GROUP=\"plugdev\"" | sudo tee /etc/udev/rules.d/52-nodecarplay.rules
echo "-------- Done --------"