-
Notifications
You must be signed in to change notification settings - Fork 3
/
install.sh
executable file
·44 lines (40 loc) · 1.19 KB
/
install.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
#!/bin/bash
# Verbose
set -x
VLUBDIR=/home/volumio/vlub
# Setup system
apt update -y
apt-get install -y vim python-pip python-configparser dos2unix file unzip imagemagick
pip install python-mpd2
pip install pyserial
pip install requests
pip install Enum
pip install libusb1==1.9.2
pip install lcd2usb
pip install --pre lcdbackpack
systemctl disable graphical.target
systemctl set-default multi-user.target
systemctl start multi-user.target
# Disable Local Chromium interface for volumio
systemctl stop volumio-kiosk
systemctl disable volumio-kiosk
# Setup ROSELCD
#dos2unix $VLUBDIR/ROSELCDd.py
chmod 755 $VLUBDIR/ROSELCDd.py
#ln -sf $VLUBDIR/volumio-lcd.service /etc/systemd/system
install -m 0755 $VLUBDIR/volumio-lcd.service /etc/systemd/system
install -m 0644 $VLUBDIR/99-Volumio-lcd.rules /etc/udev/rules.d/
# Detect local screens to improve default conf
nb=`ls /dev/ttyACM* | wc -l`
if [ _"$nb" != _"" ] && [ $nb -gt 0 ]; then
sed -i "s/nb = 2/nb = $nb/" $VLUBDIR/ROSELCDd.conf
fi
install -m 0644 $VLUBDIR/ROSELCDd.conf /etc
systemctl enable volumio-lcd
systemctl restart volumio-lcd
#reboot
# Get plugin code
# git clone volumio-plugin
# cd plugin
# Install that plugin locally
# volumio plugin refresh