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.
video-player/install.sh

44 lines
1.1 KiB
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 auto-ssh-systemd-hosts.conf /etc/ssh/ssh_config.d/auto-ssh-systemd-hosts.conf
sudo cp video-player.service /etc/systemd/system/video-player.service
sudo cp video-player2.service /etc/systemd/system/video-player2.service
sudo cp autossh.service /etc/systemd/system/autossh.service
sudo systemctl daemon-reload
sudo systemctl enable video-player.service
sudo systemctl disable video-player2.service
sudo systemctl enable autossh.service
sudo systemctl restart video-player.service
sudo systemctl restart video-player2.service
sudo systemctl restart autossh.service
mkdir ~/.config/autostart
cp clock.desktop ~/.config/autostart/clock.desktop
popd