TV & Media Server
Here are my notes on setting up an old laptop as a home server. This discussion pairs nicely with the Raspberry Pi/Kodi TV streaming box I discuss here, and I also use this server to update my website with new webmentions as I discuss here.
Guide (Ubuntu Server):
- The Zero Dollar Home Server
- Includes how to run with lid closed
Jellyfin
Kodi
Media
Copying Files
# find disk:
sudo fdisk -l
# or
df
# or find device path with either `lsblk` or `sudo blkid` and then mount:
udisksctl mount -b /dev/sdb
# mount:
sudo mount /dev/sdb1 /media/usb/
# copy files:
cp -v -r /media/usb/DVDs/Watchmen /media/myfiles/Shows
# copy contents of folder without copying folder
# https://unix.stackexchange.com/questions/180985/how-to-copy-files-from-the-folder-without-the-folder-itself
cp -r /home/username/A/. /usr/lib/B/
Force-Unmount USB Drive
- “find every process that is accessing the /media/usb mount point and kill it,” then run
umountas usual
sudo fuser -km /media/usb
sudo umount /media/usb
Finding DVDs
YouTube
- Use this link to access the YouTube setup interface: http://<your-server-ip-address>:50152/youtube/api
- https://github.com/anxdpanic/plugin.video.youtube/issues/1016