-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.sh
executable file
·42 lines (33 loc) · 1.27 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
#!/usr/bin/env bash
# install required system packages
sudo apt-get update
sudo apt-get upgrade
sudo apt-get install -y python3 python3-pip mpd mpc mpg123
# install required python packages
pip3 install -r requirements.txt
# create directories
sudo mkdir -p /media/usb_stick
mkdir ~/music
# mpd config (make sure this matches the music dir in config.py)
sudo sed -i "s@music_directory.*@music_directory \"$HOME/music\"@g" /etc/mpd.conf
sudo sed -i "s@#.*device.*hw:0,0.*@device \"hw:0,0\"@g" /etc/mpd.conf
# install services
sudo systemctl enable ~/lolo/services/volume.service
sudo systemctl enable ~/lolo/services/lolo.service
sudo systemctl start volume
sudo systemctl start lolo
# disable unneeded services (boot faster)
sudo systemctl disable ntp.service
sudo systemctl disable dphys-swapfile.service
sudo systemctl disable keyboard-setup.service
sudo systemctl disable apt-daily.service
sudo systemctl disable wifi-country.service
sudo systemctl disable hciuart.service
sudo systemctl disable raspi-config.service
sudo systemctl disable avahi-daemon.service
sudo systemctl disable triggerhappy.service
# remove plymouth (boot faster)
sudo apt-get purge --remove plymouth
# install boot config
sudo mv /boot/config.txt /boot/config.txt.orig
sudo cp boot-config.txt /boot/config.txt