hpr4634 :: Upgrade Failsause
operat0r goes over how he rebuit his Plex root FS
Hosted by operat0r on Thursday, 2026-05-07 is flagged as Clean and is released under a CC-BY-SA license.
media, debian, linux, hardware, support.
2.
Listen in ogg,
opus,
or mp3 format. Play now:
Duration: 00:20:46
Download the transcription and
subtitles.
general.
https://rufus.ie/en/
Kasa Smart Plug Mini with Energy Monitoring, Smart Home Wi-Fi Outlet Works with Alexa, Google Home & IFTTT, Wi-Fi Simple Setup, No Hub Required (KP115), White
INIT STUFF
Sudoers
Apps
apt update && apt install -y psmisc screen net-tools snapd pipx xbindkeys xbindkeys-config git nmap mono-runtime etherwake cloudflare-ddns mlocate samba
# python pipx gahh
su plex -
pipx install python-kasa
# sudo
mkdir /root/PYTHONVENV/
python3 -m venv /root/PYTHONVENV/
pipx install python-kasa
pipx ensurepath
# update db
mount -a
sed 's/\/media//g' -i.bak /etc/updatedb.conf
updatedb
Contab
0 0 * * * /usr/local/bin/cloudflare-ddns --update-now
0 7 * * * /usr/local/bin/etherwake -i enp1s0 -D "d8:bb:c1:a2:2c:0b"
0 3 * * * /usr/bin/veracrypt -d
0 0 5 * * /usr/local/sbin/BSA.sh
Mounts
cat /etc/fstab
UUID=2317187b-c592-46a7-8d8e-45c7d1eae7fc / ext4 errors=remount-ro 0 1
UUID=61A0-586A /boot/efi vfat umask=0077 0 1
UUID=db166a45-1afb-47dc-85cd-cbfcb06a9766 none swap sw 0 0
# data
UUID=dbb20dc6-9487-4510-9ab1-c7bbc3014cdb /media/data ext4 defaults,nofail,noatime 0 2
# moredata
UUID=5df24408-36ae-4205-8ecb-9d523dc4d820 /media/moredata ext4 defaults,nofail,noatime 0 2
# backup
UUID=c1aac0d2-73ca-4d95-883f-5e1f43b5cd13 /media/backup ext4 defaults,nofail,noatime 0 2
Tunefs
sudo tune2fs -c 5 -i 7d -C 1 /dev/sdd2
sudo tune2fs -c 5 -i 7d -C 1 /dev/sdb1
sudo tune2fs -c 5 -i 7d -C 1 /dev/sda1
sudo tune2fs -c 5 -i 7d -C 1 /dev/sdc1
XFCE
Autologin
# /etc/lightdm/lightdm.conf
[Seat:*]
autologin-user=plex
autologin-user-timeout=0
# Enable service
systemctl enable lightdm
UPower ( do not run pwrstatd )
cat ./UPower/UPower.conf
[UPower]
EnableWattsUpPro=false
NoPollBatteries=false
IgnoreLid=false
UsePercentageForPolicy=true
PercentageLow=10
PercentageCritical=3
PercentageAction=2
TimeLow=1200
TimeCritical=300
TimeAction=120
CriticalPowerAction=HybridSleep
PLEX
RESTORE/BACKUP
/home/plex/Library
/media/moredata/_PLEX/usr/lib/plexmediaserver/
Backup ?
https://github.com/sinicide/ansible-vm/blob/master/roles/plex/files/pms-backup.sh
Autostart Plex
/home/plex/.config/autostart# cat PLEX_STARTUP.desktop
[Desktop Entry]
Encoding=UTF-8
Version=0.9.4
Type=Application
Name=KODI_STARTUP
Comment=KODI_STARTUP
Exec=/home/plex/.local/bin/Plex.sh
OnlyShowIn=XFCE;
StartupNotify=false
Terminal=false
Hidden=false
RunHook=0
OMBI
Sabnsbd+
IDK ... ?!!?!?!?
251 pipx install git+https://github.com/sabnzbd/sabnzbd.git
252 pipx install sabnzbd
253 pipx inject sabnzbd feedparser configobj cherrypy portend chardet cheetah3 puremagic guessit babelfish tmdbsimple
254 pipx install sabnzbd
255 python3 -m venv venv
256 source venv/bin/activate
257 pip install -r requirements.txt
258 cat > ~/sabnzbd/sabnzbd-wrapper.sh << 'EOF'
259 #!/bin/bash
260 cd ~/sabnzbd
261 source venv/bin/activate
262 python3 SABnzbd.py "$@"
263 EOF
264 chmod +x ~/sabnzbd/sabnzbd-wrapper.sh
265 sudo ln -s ~/sabnzbd/sabnzbd-wrapper.sh /usr/local/bin/sabnzbd
266 sudo apt install unrar par2 unzip p7zip-full
267 sudo apt install par2 unzip p7zip-full
268 sudo apt install unrar par2 unzip p7zip-full
269 which sabnsbd
270 /usr/local/bin/sabnzbd
271 apt-cache search unrar
272 apt install unrar-free
273 sudo unrar-free
274 sudo apt install unrar-free
275 /usr/local/bin/sabnzbd
cat > ~/sabnzbd/sabnzbd-wrapper.sh << 'EOF'
#!/bin/bash
cd ~/sabnzbd
source venv/bin/activate
python3 SABnzbd.py "$@"
EOF
Sonarr
Radarr
Scripts
Lights
WatchDog
# see kasa stuff ...
/root/.local/pipx/venvs/python-kasa/bin/kasa --host WATCHDOG.localdomain off
Sunshine/Moonlight
# client
snap install moonlight
Plex HTPC (Snapd)
snap install snapd
snap refresh snapd
snap install plex-htpc
SMB/NFS
apt install samba
/etc/samba/smb.conf
systemctl restart samba
VeraCrypt
BlueTooth (Xbox)
apt install bluetooth bluez bluez-tools rfkill
bluetoothctl
# hold little button on top ...then type scan on to turn scanning on
# devices to list connected devices
#1 under the batt cover
remove 40:8E:2C:3A:9F:DA
pair 40:8E:2C:3A:9F:DA
trust 40:8E:2C:3A:9F:DA
connect 40:8E:2C:3A:9F:DA
remove 40:8E:2C:3A:A4:2F
pair 40:8E:2C:3A:A4:2F
trust 40:8E:2C:3A:A4:2F
connect 40:8E:2C:3A:A4:2F