Sunday, September 2, 2018

My personal Xubuntu htpc/server setup

1. Install Xubuntu

Enable auto login https://askubuntu.com/questions/530072/how-to-auto-login-in-xubuntu
Install Chrome
Install Chrome Remote Desktop + make it use same windows server...
Using Vino instead

2. Install Emby

Mount my external HDD for Emby to have full control:
https://emby.media/community/index.php?/topic/32218-file-permissions-guide-for-new-linux-users/ and https://askubuntu.com/questions/502727/how-do-i-automount-partitions-on-statup-xubuntu-14-04,
also some bonus information for possible future use:
https://emby.media/community/index.php?/topic/37535-building-emby-in-ubuntu-server/

Autostart Emby https://emby.media/community/index.php?/topic/31993-emby-server-doesnt-autostart/
service file location /etc/systemd/system/multi-user.target.wants/emby-daemon.service
config /etc/emby-server.conf
[Service]
ExecStartPre=/bin/sleep 30

3. Install Kodi

Fix libcec https://forum.kodi.tv/showthread.php?tid=226183

4. Install Dropbox

Fix Dropbox...

5. Install Docker and a few containers


sudo docker run -d --name portainer --restart=always -p 9000:9000 -v /var/run/docker.sock:/var/run/docker.sock portainer/portainer

Get the containers and some instructions from https://gitlab.com/hotio/suitarr/blob/master/README.md and https://www.smarthomebeginner.com/install-sonarr-using-docker/

sudo docker run -d --name sonarr --restart=always -p 8989:8989 -e PUID=1000 -e PGID=1000 -e UMASK=022 -e VERSION=image -v /etc/localtime:/etc/localtime:ro -v /home/docker/sonarr/config:/config -v /mnt/my_passport/TV\ Series:/tv -v /home/docker/sonarr/downloads:/downloads hotio/suitarr:sonarr

Important: Sonarr needs adjustments in Settings -> Download Client -> Remote Path Mappings

sudo docker run -d --name jackett --restart=always -p 9117:9117 -e PUID=1000 -e PGID=1000 -e UMASK=022 -e VERSION=image -v /etc/localtime:/etc/localtime:ro -v /home/docker/jackett/config:/config hotio/suitarr:jackett

sudo docker run -d --name radarr --restart=always -p 7878:7878 -e PUID=1000 -e PGID=1000 -e UMASK=022 -e VERSION=image -v /etc/localtime:/etc/localtime:ro -v /home/docker/radarr/config:/config -v /mnt/my_passport/Movies/Other:/movies -v /home/docker/radarr/downloads:/downloads hotio/suitarr:radarr

6. And finally the web server

https://lowendbox.com/blog/how-to-setup-apache-virtual-hosts-on-ubuntu-16-04/
Required for WordPress: https://www.digitalocean.com/community/tutorials/how-to-rewrite-urls-with-mod_rewrite-for-apache-on-ubuntu-16-04 https://www.digitalocean.com/community/tutorials/how-to-secure-apache-with-let-s-encrypt-on-ubuntu-16-04https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-16-04
https://www.digitalocean.com/community/tutorials/how-to-install-and-secure-phpmyadmin-on-ubuntu-16-04