Skip to content

Instantly share code, notes, and snippets.

@matog
Last active November 22, 2021 18:58
Show Gist options
  • Save matog/e0af355c3e110e28df6e09f83034123c to your computer and use it in GitHub Desktop.
Save matog/e0af355c3e110e28df6e09f83034123c to your computer and use it in GitHub Desktop.
Apuntes para la instalación de dockSTARTer

Apuntes para la instalación de dockSTARTer

Problemas de permisoss para agregar la root folder a sonarr y radarr

sudo chown -R $USER:$USER /home/mato/storage

DuckDNS

https://www.duckdns.org/install.jsp#linux-cron

Software

https://github.com/GhostWriters/DockSTARTer

Comandos básicos

sudo ds -u          # Actualiza Dockstarter  
sudo ds -e          # Luego de actualizado, reescribe y actualiza el _.env_
sudo ds -p          # This cleans up the DS install, p stands for prune in this case. This recovers space from old images if they were somehow left over.
docker logs bazarr  # Log de apps de Dockstarter
ds -c restart       # Reinicia Dockstarter
ds -c / ds -c up does the following: 
- If the containers don't already exist create them with the latest images 
- If the container exists and there is no new image already pulled locally it will start any stopped containers 
- If the container exists and there is a new image pulled locally it will recreate the container using the new image. 
- It will not pull new images 
ds -c pull updates the images but doesn't recreate the containers.

Crear un bot de telegram para Radarr/Sonarr (ver gist oculto)

  1. Enviar un mensaje al usuario @botfather en Telegram con el texto /newbot y seguir las indicaciones. Copiar el token

  2. Crear un grupo en telegram, y agregar al bot creado y sumar al bot @get_id_bot

  3. Enviar un mensaje al grupo con el texto /my_id

  4. Arroja dos resultados:

    Your Chat ID = ******
    Your group Chat ID : -*****

  5. Si queremos que el bot envíe mensajes al grupo, copiamos el group Chat ID (con el singno -), si queremos mensajes directos del bot, copiamos el Chat ID

(Personal: Buscar el grupo Multimedia, donde tengo el bot @get_id_bot_ como miembre)

NextCloud

Cambiar el pass del usuario mato:

docker exec -it nextcloud bash
sudo -u abc php7 /config/www/nextcloud/occ user:resetpassword mato

Modifcar el config.php para que no tirer el error de "Trusted Domains"

Buscar en

.docker/config/nextcloud/www/nextcloud/config

el archivo config.php y agregar

array (
    0 => '192.168.0.183:444',
    1 => 'https://MiDominio.duckdns.org',
),

y

'overwrite.cli.url' => 'https://MiDominio.duckdns.org',
'overwritewebroot' => '/nextcloud',
'overwritehost' => 'MiDominio.duckdns.org',
'overwriteprotocol' => 'https',
'trusted_proxies' => ['swag'],

Ubooquity

Detalle de los puertos para gestionar y para administrar:

http://192.168.0.183:2203/ubooquity/admin  
http://192.168.0.183:2202/ubooquity/

Flood y rTorrent

#VPN Settings  
LAN_NETWORK=192.168.0.0/24  
NS1=1.1.1.1  
NS2=8.8.8.8  
VPN_ENABLE=no  
VPN_OPTIONS=  
VPN_PASS=  
VPN_PROV=pia  
VPN_USER=  

If you run the GUI and go to config > VPN and then go through each variable until you get to the lan_network it detects what you should use

You just pick the system detected option

###RTORRENTVPN
RTORRENTVPN_ENABLED=true  
RTORRENTVPN_BACKUP_CONFIG=true  
RTORRENTVPN_NETWORK_MODE=  
RTORRENTVPN_PORT_3000=3000  
RTORRENTVPN_PORT_8118=8118  
RTORRENTVPN_PORT_9080=9080  
RTORRENTVPN_PORT_9443=9443  
RTORRENTVPN_ENABLE_AUTODL_IRSSI=no  
RTORRENTVPN_ENABLE_FLOOD=both  
RTORRENTVPN_ENABLE_PRIVOXY=no  

En el setup de flood, en el navegador, setear

rTorrent Host: 127.0.0.1  
rTorrent Port: 5000

Logarr

Rutas a los logs de las apps

"Sonarr" => '/var/log/logarrlogs/sonarr/logs/sonarr.txt',
"Radarr" => '/var/log/logarrlogs/radarr/logs/radarr.txt',
"Jackett" => '/var/log/logarrlogs/jackett/logs/jackett.txt',

Organizr

Transmission en Home Screen

http://192.168.0.183:9091/transmission

Hydra2

Si aparece el cartel "You are not allowed to visit that section", borrar cookies y después (no se cuan necesario es) setear "Use CSRF protection" en OFF

Grafana, InfluxDB y Telegraf

(Nota: INFLUXDB_PORT_8086=8065 en .env file.) Telegraf instalado directamente desde repositorios, no desde una imagen docker.

Guía:

https://blog.linuxserver.io/2017/11/25/how-to-monitor-your-server-using-grafana-influxdb-and-telegraf/

Configurando el DATA SOURCE:

- HTTP: 
    URL: http://192.168.0.183:8065
- InfluxDB Details:
    Database: Telegraf
    User: root
    Password: root

Telegraf:

# Download the key
curl -sL https://repos.influxdata.com/influxdb.key | sudo apt-key add -

# Add the repo
echo "deb https://repos.influxdata.com/debian stretch stable" | sudo tee /etc/apt/sources.list.d/influxdb.list

# Update sources, install and start telegraf
sudo apt update && sudo apt install telegraf

# Instalamos algunas apps para tomar varias métricas 
apt install hddtemp lm-sensors

Editamos etc/telegraf.conf

# Global Agent Configuration
[agent]
hostname = "hakase-tig"
flush_interval = "15s"
interval = "15s"

# Input Plugins
[[inputs.cpu]]
percpu = true
totalcpu = true
collect_cpu_time = false
report_active = false
[[inputs.disk]]
ignore_fs = ["tmpfs", "devtmpfs", "devfs"]
[[inputs.io]]
[[inputs.mem]]
[[inputs.net]]
[[inputs.system]]
[[inputs.swap]]
[[inputs.netstat]]
[[inputs.processes]]
[[inputs.kernel]]

# Output Plugin InfluxDB
[[outputs.influxdb]]
database = "telegraf"
urls = [ "http://192.168.0.183:8065" ]
username = "telegraf"
password = "hakase-ndlr"

Y corremos:

systemctl restart telegraf
systemctl status telegraf -l

En caso de olvidarse el password:

docker exec -i grafana grafana-cli admin reset-admin-password NEWPASS

Jellyfin

Al instalarlo con DockStarter, genera problemas de permisos. Copiar los permisos de cualqueier app funcionando en las carpetas de Jellyfin en ~/.docker/config/jellyfin y en ~/.docker/compose/.apps/jellyfin

La app de android se puede descargar de https://repo.jellyfin.org/releases/client/android/

Emby y Jellyfin

Agregar una carpeta con imágentes en la library:

~/.docker/compose/.apps/emby/emby.yml

En el tag Volumes agregar:

- ${MEDIADIR_PICTURES}:/data/pictures
- ${MEDIADIR_PICTURES}:/pictures

Y en el .env, en la sección # Universal Settings completar con el nombre de la carpeta del servidor (pictures en este caso):

MEDIADIR_PICTURES=/home/mato/mediaserver/pictures

(no estoy tan seguro que esto último sea necesario)

Para poder mapear las carpetas multimedia de otros discos, en .env:

DOCKERSHAREDDIR=/mnt

Bazarr

docker stop bazarr
docker rm bazarr
# Borrar la caperta config de Bazarr: .docker/config/bazarr
ds -c

Backup periódicos

Primero, setear el directorio de backup en el archivo .env.

# Backup Settings
...
BACKUP_CONFDIR=/home/mato/backups/dockerconfigs
BACKUP_RETENTION=4 # Para que no dejé 512 copias. Leer en https://dockstarter.com/advanced/backups/
...

Se puede agregar un cron

sudo crontab -e

Y agregar:

0 2 * * * /home/<USER>/.docker/main.sh -b med

Esa línea correría un backup todos los días a las 2am

Guacamole

Deafuault user: guacadmin
Deafuault password: guacadmin

Calibre Web

Copiar la base de datos de calibre (que es necesario conseguir de una versión desktop) en /books.

Default User: admin
Default Pass: admin123

Letsencrypt

Para tener la carpeta www como servidor en mydomain.duckdns.org

AirSonic

IP:Port/airsonic

Transmission

Habilitar el acceso desde fuera de la red, y por duckdns:

"rpc-authentication-required": true,
"rpc-host-whitelist": "https://MiDominio.duckdns.org",
"rpc-password": "PASSWORD_ACA_ENTRE_COMILLAS"

Y navegar a la pagina (notar el /)

    https://chapango.duckdns.org/transmission/web/
@matog
Copy link
Author

matog commented Mar 18, 2020

Captura de pantalla de 2020-03-18 19-42-48

@matog
Copy link
Author

matog commented Mar 18, 2020

Captura de pantalla de 2020-03-18 19-44-07

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment