Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Script auto install for begginer #7

Open
twf0 opened this issue Jun 16, 2024 · 0 comments
Open

Script auto install for begginer #7

twf0 opened this issue Jun 16, 2024 · 0 comments

Comments

@twf0
Copy link

twf0 commented Jun 16, 2024

HOME_DIR=$HOME
sudo apt update
sudo apt upgrade -y
sudo apt install -y raspi-gpio libraspberrypi-bin
sudo usermod -aG video $USER
cd $HOME_DIR
wget https://github.com/TinkerTurtle/Sentry-Picam/releases/latest/download/sentry-picam
chmod +x sentry-picam
chown -R $USER:www $HOME_DIR/www
echo -e "[Unit]\nDescription=Sentry-Picam\n\n[Service]\nExecStart=$HOME_DIR/sentry-picam -record -upmm\n\n[Install]\nWantedBy=multi-user.target" | sudo tee /etc/systemd/system/sentry.service > /dev/nullsystemctl daemon-reload
sudo systemctl enable sentry.service
sudo systemctl start sentry.service
sudo systemctl status sentry.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant