折腾: 管理音乐库

在iTunes、Bandcamp、Mora等网站购买本地数字音乐
哪里可以买到真正的无损音源?(或者接近无损)?

调研

调研list

Subsonic

Subsonic arm ffmpeg decode error

arm replace ffmpeg

sudo apt-get install ffmpeg
sudo rm /var/subsonic/transcode/ffmpeg
sudo ln -s /usr/bin/ffmpeg /var/subsonic/transcode/ffmpeg

systemctl restart subsonic

Airsonic

docker deploy

docker run \
  -v data:/airsonic/data \
  -v music:/airsonic/music \
  -v playlists:/airsonic/playlists \
  -v podcasts:/airsonic/podcasts \
  -p 4040:4040 \
  -d \
  airsonic/airsonic

对比

  1. 费用,Airsonic免费;Subsonic有一个付费订阅($12/y, $99/lifetime),主要包括Web端使用,以及一些无用的功能(自定义域名balabala)
  2. Airsonic支持排除路径、文件链接(可以排除部分专辑目录) Airsonic exclude&ignore files

todo

  • koel 看起来不错,需实测
  • jellyfin、plex 只用来听歌没必要,需实测
  • ampache 对比下sonic,需实测
  • mopidy、funkwhale,需实测

screenshots

Subsonic

Subsonic

Subsonic lyrics

Subsonic lyrics

docker asf挂卡/命令/farm/command

install docker

install docker
install docker-compose

安装asf

ASF Github

创建asf配置文件目录,config文件写到该目录, 在线生成config

IPC

配置文件asf/IPC.config

{
  "Kestrel": {
    "Endpoints": {
      "HTTP": {
        "Url": "http://*:1242"
      }
    }
  }
}

nginx代理IPC

https://github.com/JustArchiNET/ArchiSteamFarm/wiki/IPC#can-i-use-asfs-ipc-behind-a-reverse-proxy-such-as-apache-or-nginx

运行docker

docker pull justarchi/archisteamfarm
docker run -it -p 1242:1242 -v /path_2_local_asf_folder/asf:/app/config justarchi/archisteamfarm -d

asf command

https://github.com/JustArchiNET/ArchiSteamFarm/wiki/Commands

手机令牌二次验证

ASF.json中允许headless命令

input chyi TwoFactorAuthentication xxxxx

mqtt &

mqtt是一种基于订阅/发布(subscribe/publish)的机制运行的应用层协议

mqtt文档

mqtt中文翻译

docker-compose安装rabbitmq

Official github download docker-compose.yml

version: "3.2"
services:
  rabbitmq:
    image: rabbitmq:3.9.5-management
    container_name: 'rabbitmq'
    ports:
        - 5672:5672
        - 15672:15672
    volumes:
        - ~/.docker-conf/rabbitmq/data/:/var/lib/rabbitmq/
        - ~/.docker-conf/rabbitmq/log/:/var/log/rabbitmq
    networks:
        - rabbitmq_net

networks:
  rabbitmq_net:
    driver: bridge

启用插件

rabbitmq-plugins enable rabbitmq_management

ls

rabbitmq-plugins list

##相关文档 协议介绍

Linux进程守护

crontab

service

edit /etc/systemd/system/x.service

[Unit]
Description=ServerStatus.chyi.org
After=network.service

[Service]
Type=simple
ExecStart=/usr/bin/python2.7 /root/Git/serverstatus/client-linux.py
Restart=on-failure

[Install]
WantedBy=multi-user.target

start and enable

systemctl start x
systemctl enable x

reload to update

systemctl daemon-reload
systemctl start x
systemctl status x
systemctl restart x
systemctl stop x

supervisor

install

apt-get install supervisor
pip3 install supervisor
yum install supervisor