mirror of
https://github.com/acedanger/shell.git
synced 2025-12-06 01:10:12 -08:00
3c7307ed4815d236667d5857a7abb2d0f63b2011
- Changed Nala installation approach to use more reliable methods - First try to use Nala from standard repositories if available - Fall back to Ubuntu PPA if not available in standard repos - Removed reliance on the Volian repository key that was causing 404 errors
no longer using portainer so bye bitch and github-cli was failing - https://github.com/cli/cli/issues/9569
Shell Scripts and Dotfiles Repository
This repository contains various shell scripts for managing media-related tasks and dotfiles for system configuration.
Available Scripts
- Backup Media Script: Documentation for the
backup-media.shscript. plex.sh: Script to manage the Plex Media Server (start, stop, restart, status).backup-plex.sh: Script to back up Plex Media Server databases and related files.folder-metrics.sh: Script to calculate disk usage and file count for a directory and its subdirectories.
Documentation
- Plex Backup Script Documentation: Detailed documentation for the
backup-plex.shscript. - Plex Management Script Documentation: Detailed documentation for the
plex.shscript. - Folder Metrics Script Documentation: Detailed documentation for the
folder-metrics.shscript.
Dotfiles
The repository includes dotfiles for system configuration in the dotfiles directory. These can be automatically set up using the bootstrap script:
curl -fsSL https://raw.githubusercontent.com/acedanger/shell/main/bootstrap.sh | bash
For more information about the dotfiles, see Dotfiles README.
plex.sh
This script is used to manage the Plex Media Server service on a systemd-based Linux distribution. It provides the following functionalities:
- start: Starts the Plex Media Server.
- stop: Stops the Plex Media Server.
- restart: Restarts the Plex Media Server.
- status: Displays the current status of the Plex Media Server.
Usage
Note that these commands will run as root.
./shell/plex.sh {start|stop|restart|status}
Description
Languages
Shell
84.6%
PowerShell
5.3%
Go
3.2%
HTML
3.2%
Python
2.2%
Other
1.5%