Practical scripts for Ubuntu 22 LTS that actually work and solve real problems.
chrome-guardian.sh - Monitors Chrome and automatically restarts it when it crashes. Because Chrome crashes a lot.
chrome-indestructible.sh - Restarts Chrome with anti-crash settings. Kills all Chrome processes first and cleans cache.
check-guardian.sh - Check guardian status and clean up duplicate processes.
fix-screen-share.sh - Fixes screen sharing in Ubuntu 22 when it stops working (especially in Wayland). Doesn't close your apps.
discord-updater.sh - Updates Discord to the latest version automatically.
install.sh - Automated installer that sets up everything and configures aliases.
git clone https://github.com/0xjesus/ubuntu-scripts.git
cd ubuntu-scripts
./install.sh
source ~/.zshrcAfter installation, these commands are available from anywhere:
bash
fix-screen # Fix screen sharing issues
restart-chrome # Restart Chrome with crash protection
start-guardian # Start Chrome crash monitor
stop-guardian # Stop Chrome crash monitor
check-guardian # Check guardian status and clean duplicates
update-discord # Update Discord to latest versionTo get the latest version of scripts:
bash
cd ubuntu-scripts
git pull origin main- Chrome Guardian: Runs in background monitoring Chrome crashes and auto-restarts
- Screen Share Fix: Essential for Zoom/Teams meetings when sharing stops working
- Discord Updater: Keep Discord up to date without manual downloads
- Guardian Checker: Prevent duplicate guardians from running
- ✅ Smart Installation - Detects your shell (bash/zsh) and configures automatically
- ✅ Syntax Testing - All scripts are tested before installation
- ✅ No Duplicates - Guardian checker prevents multiple instances
- ✅ Verbose Logging - Know exactly what's happening
- ✅ Safe Operations - Won't close your apps unexpectedly
- Ubuntu 22 LTS (primary target)
- Works with bash or zsh
- Some scripts require sudo for system operations
- If aliases don't work:
source ~/.zshrc(or~/.bashrc) - If guardian isn't working:
check-guardianto diagnose - If screen sharing fails:
fix-screenand restart your meeting app - Check logs in the repo directory for detailed information
Works best on Ubuntu 22 LTS with Wayland. Your mileage may vary on other distros.