You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
39 lines
898 B
Bash
39 lines
898 B
Bash
#!/bin/bash
|
|
|
|
cd ~
|
|
|
|
# Install the required packages
|
|
sudo apt update -y
|
|
sudo apt install -y git curl wget nodejs npm samba samba-common-bin
|
|
|
|
git clone https://git.bpfilip.dk/fbp/video-player.git
|
|
|
|
sudo chown -R steady:steady ~/video-player
|
|
|
|
pushd ~/video-player
|
|
|
|
git pull
|
|
|
|
npm install
|
|
|
|
# Create the samba share
|
|
sudo mkdir -p /video
|
|
sudo chown -R steady:steady /video
|
|
sudo chmod -R 777 /video
|
|
|
|
cat smb.conf | sudo tee -a /etc/samba/smb.conf
|
|
|
|
sudo systemctl restart smbd
|
|
|
|
sudo cp video-player.service /etc/systemd/system/video-player.service
|
|
sudo cp video-player2.service /etc/systemd/system/video-player2.service
|
|
sudo systemctl daemon-reload
|
|
sudo systemctl enable video-player.service
|
|
sudo systemctl disable video-player2.service
|
|
sudo systemctl restart video-player.service
|
|
sudo systemctl restart video-player2.service
|
|
|
|
mkdir ~/.config/autostart
|
|
cp clock.desktop ~/.config/autostart/clock.desktop
|
|
|
|
popd |