forked from PhotonVision/photon-image-modifier
-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_opi5.sh
executable file
·46 lines (35 loc) · 944 Bytes
/
install_opi5.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
# Create pi/raspberry login
if id "$1" >/dev/null 2>&1; then
echo 'user found'
else
echo "creating pi user"
useradd pi -b /home
usermod -a -G sudo pi
mkdir /home/pi
chown -R pi /home/pi
fi
echo "pi:raspberry" | chpasswd
apt-get update
wget https://git.io/JJrEP -O install.sh
chmod +x install.sh
sed -i 's/# AllowedCPUs=4-7/AllowedCPUs=4-7/g' install.sh
./install.sh
rm install.sh
# Remove extra packages
echo "Purging extra things"
apt-get remove -y gdb gcc g++ linux-headers* libgcc*-dev
apt-get remove -y snapd
apt-get autoremove -y
echo "Installing additional things"
sudo apt-get update
apt-get install -y network-manager net-tools libatomic1
# mrcal stuff
apt-get install -y libcholmod3 liblapack3 libsuitesparseconfig5
cat > /etc/netplan/00-default-nm-renderer.yaml <<EOF
network:
renderer: NetworkManager
EOF
rm -rf /var/lib/apt/lists/*
apt-get clean
rm -rf /usr/share/doc
rm -rf /usr/share/locale/