Media
Install ffmpeg
Install for Linux Mint 21 thanks to Syeda Wardah Batool docs
sudo apt install dirmngr ca-certificates software-properties-common gnupg gnupg2 apt-transport-https
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/rob-savoury.gpg --keyserver keyserver.ubuntu.com --recv-keys E996735927E427A733BB653E374C7797FB006459
sudo gpg --list-keys
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/rob-savoury.gpg --keyserver keyserver.ubuntu.com --recv-keys E996735927E427A733BB653E374C7797FB006459
echo 'deb [signed-by=/usr/share/keyrings/rob-savoury.gpg] https://ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu jammy main' | sudo tee -a /etc/apt/sources.list.d/ffmpeg-4-rob-savoury.list
sudo apt update && sudo apt upgrade
sudo apt install ffmpegDVDs
mount a dvd
sudo mount /dev/sr0 /media/dvdromSince I don't do this frequently using a GUI is fine for me. backing up DVDs with makemkv, following guide here
sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev qtbase5-dev zlib1g-devHandbrake-CLI
Install dependecies and Handbrkake with CLI:
sudo apt-get install libavcodec-extra libdvd-pkg regionset
sudo dpkg-reconfigure 
sudo apt install handbrake handbrake-clirun handbrake-cli
HandBrakeCLI -i /media/dvdrom -o /data/Movies/my_dvd_backup.mp4 --preset="Fast 1080p30"MakeMkv
The below commands combine the ones from above as well. Build-tools and ffmpeg need to be available for makemkv to be installed.
sudo apt-get install build-essential pkg-config libc6-dev libssl-dev libexpat1-dev libavcodec-dev libgl1-mesa-dev qtbase5-dev zlib1g-dev
sudo apt install dirmngr ca-certificates software-properties-common gnupg gnupg2 apt-transport-https
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/rob-savoury.gpg --keyserver keyserver.ubuntu.com --recv-keys E996735927E427A733BB653E374C7797FB006459
sudo gpg --list-keys
sudo gpg --no-default-keyring --keyring /usr/share/keyrings/rob-savoury.gpg --keyserver keyserver.ubuntu.com --recv-keys E996735927E427A733BB653E374C7797FB006459
echo 'deb [signed-by=/usr/share/keyrings/rob-savoury.gpg] https://ppa.launchpadcontent.net/savoury1/ffmpeg4/ubuntu jammy main' | sudo tee -a /etc/apt/sources.list.d/ffmpeg-4-rob-savoury.list
sudo apt update && sudo apt upgrade
sudo apt install ffmpeg
wget https://www.makemkv.com/download/makemkv-bin-1.17.6.tar.gz
wget https://www.makemkv.com/download/makemkv-oss-1.17.6.tar.gz
tar -xvf makemkv-bin-1.17.6.tar.gz
tar -xvf makemkv-oss-1.17.6.tar.gz
cd ../makemkv-oss-1.17.6
./configure
make
sudo make install
cd ../makemkv-bin-1.17.6
make
sudo make install
makemkvCopy DVDs
makemkvcon mkv disc:0 all /path/to/folderCDs
Backing up CDs with abcde. abcde stores the output in Unknown_Artist-Unknown_Album/ directory lame is needed for mp3 encoding and eye3 is used for metadata tags.
sudo apt-get install abcde eyed3 lame 
abcde -o mp3Tags can be edited with Rhytmbox in GUI
Plex
Plex could not read from a NAS NFS that I mounted on my home directory. I had to add the plex user to my usergroup ro fix it.
systemctl status plexmediaserver.service
groups
groups plex
MYGROUP="$USER"
sudo usermod -a -G $MYGROUP plex
systemctl status plexmediaserver.service
systemctl restart plexmediaserver.serviceGames
Agar.IO
I used this clone to run on a server. Running setup
git clone https://github.com/huytd/agar.io-clone.git
cd agar.io-clone
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/master/install.sh | bash
nvm install --lts
source ~/.bashrc 
npm install
npm run startClones repo, install npm and runs the server on port 3000 Create a systemd file /etc/systemd/system/agar-io.service
[Unit]
Description=Agar.io Node.js Application
After=network.target
[Service]
Type=simple
WorkingDirectory=/home/ubuntu/agar.io-clone
ExecStart=/home/ubuntu/.nvm/versions/node/v20.16.0/bin/node ./bin/server/server.js
Restart=on-failure
RestartSec=10
User=ubuntu
Group=ubuntu
Environment=PATH=/usr/bin:/usr/local/bin
Environment=NODE_ENV=production
[Install]
WantedBy=multi-user.targetReload systemd after changes to service file and run service
systemctl daemon-reload
sudo systemctl 
sudo systemctl status agar-io.service
sudo systemctl start agar-io.serviceNot sure if updating manifest.yml file does anything
---
applications:
- name: agar-clone
  memory: 4096M
  disk_quota: 4G
  buildpack: nodejs_buildpack
  host: agar-clone
  domain: mybluemix.net
  timeout: 180
  env:
    NPM_CONFIG_PRODUCTION: falseCaddy
Install Caddy docs
sudo apt install -y debian-keyring debian-archive-keyring apt-transport-https curl 
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/gpg.key' | sudo gpg --dearmor -o /usr/share/keyrings/caddy-stable-archive-keyring.gpg
curl -1sLf 'https://dl.cloudsmith.io/public/caddy/stable/debian.deb.txt' | sudo tee /etc/apt/sources.list.d/caddy-stable.list
chmod o+r /usr/share/keyrings/caddy-stable-archive-keyring.gpg
chmod o+r /etc/apt/sources.list.d/caddy-stable.list
sudo apt update
sudo apt install caddyAdd caddy user to user group so it can access files in user directories.
sudo usermod -aG $USER caddyI store my Caddyfile at my projects location, so I create a symlink to not have to manage files in system directories
sudo ln -s ~/projects/Sandbox/Caddyfile /etc/caddy/CaddyfileLast updated