ARM系列主板安装moOde等数播系统
Androidnews
2024.08.11
说明:
本安装教程不保证所有arm主板都能安装成功;
本安装教程虽然劲量简单,但是还是需要一定的Linux功底;
本安装教程以Debian的bookworm为基底实现,如果想使用其它版本,请结合教程自己摸索;
本安装教程都以root账户执行;
本安装教程使用Xshell_Plus_v6.0.0095.zip作为SSH和SCP工具,解压,绿化;
其它未经事宜请大家自己摸索:)
测试安装通过硬件:
RK3399系列
aml s905系列
全志Hx系列
推荐固件包下载网站:
https://github.com/ophub/
https://files.kos.org.cn/
https://www.armbian.com/
完整安装包工具下载:
链接:https://pan.baidu.com/s/1Kd1EcAsVmoL5Qr4sXp41Dw?pwd=rq9g
安装swap管理
apt install -y dphys-swapfile
设置时区
tzselect
选4 Asia->选10 China->选1 Beijing->选1 yes
hwclock --systohc
查看时间
date -R
设置语言
localectl set-locale LANG=zh_CN.UTF-8
locale-gen
修改系统源
nano /etc/apt/sources.list
# /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
修改armbian源
cd /usr/share/keyrings
wget https://mirrors.tuna.tsinghua.edu.cn/armbian/armbian.key
nano /etc/apt/sources.list.d/armbian.list
# /etc/apt/sources.list.d/armbian.list
deb [signed-by=/usr/share/keyrings/armbian.key] https://mirrors.tuna.tsinghua.edu.cn/armbian bookworm main bookworm-utils bookworm-desktop
添加moOde-player源
wget https://dl.cloudsmith.io/public/moodeaudio/m8y/setup.deb.sh
chmod +x setup.deb.sh
./setup.deb.sh
nano /etc/apt/sources.list.d/moodeaudio-m8y.list
# /etc/apt/sources.list.d/moodeaudio-m8y.list
deb [signed-by=/usr/share/keyrings/moodeaudio-m8y-archive-keyring.gpg] https://dl.cloudsmith.io/public/moodeaudio/m8y/deb/raspbian bookworm main
deb-src [signed-by=/usr/share/keyrings/moodeaudio-m8y-archive-keyring.gpg] https://dl.cloudsmith.io/public/moodeaudio/m8y/deb/raspbian bookworm main
rm setup.deb.sh
添加upmpdcli源
添加秘钥
cd /usr/share/keyrings
wget https://www.lesbonscomptes.com/pages/lesbonscomptes.gpg
添加源列表
cd /etc/apt/sources.list.d
wget https://www.lesbonscomptes.com/upmpdcli/pages/upmpdcli-rbookworm.list
添加raspberrypi源
cd /usr/share/keyrings
wget https://archive.raspberrypi.org/debian/raspberrypi.gpg.key
cd /etc/apt/sources.list.d
nano /etc/apt/sources.list.d/raspi.list
# /etc/apt/sources.list.d/raspi.list
#deb [signed-by=/usr/share/keyrings/raspberrypi.gpg.key] https://archive.raspberrypi.org/debian/ bookworm main untested
deb [signed-by=/usr/share/keyrings/raspberrypi.gpg.key] https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bookworm main untested
apt update
apt upgrade
安装moOde
上传moode-player_9.0.0-1moode1~pre1_all.deb文件到/tmp
cd /tmp
apt install -y ./moode-player_9.0.0-1moode1~pre1_all.deb
注意,安装此版本不会出现重启问题。
apt install -y moode-player
注意,如此安装会安装最新版本,不推荐,可能会出现自动重启问题,当然如果是树莓派没有此问题。
出现bluez-firmware安装错误,执行下面命令
cd /var/cache/apt/archives
ls bluez-firmware*
dpkg -i --force-overwrite ./bluez-firmware_1.2-4+rpt10_all.deb
注意根据实际情况填写bluez-文件
继续安装
apt install -f
如果以上方式不能安装,接下来再次运行
dpkg -i --force-overwrite ./moode-player_9.0.0-1moode1~pre1_all.deb
安装完毕提示reboot重启,moOde安装完毕。
安装Logitech Media Server
下载地址:https://lyrion.org/lms-server-repository/
cd /tmp
wget https://downloads.lms-community.org/nightly/logitechmediaserver_8.5.3~1721022124_arm.deb
apt install -y ./logitechmediaserver_8.5.3~1721022124_arm.deb
浏览器登陆IP:9000
设置,插件管理,输入地址,应用
推荐(最新版本已经内置第三方插件):
https://raw.kkgithub.com/LMS-Community/lms-plugin-repository/master/extensions.xml
http://39.106.196.235/extensions.xml
选择Material Skin、DSDPlayer等插件
停止LMS自动启动
systemctl disable logitechmediaserver
logitech media server的Squeezelite可以通过在安卓手机安装xTune-v1.3.6.apk或者天韵宝盒LMS控制器.apk或者手机浏览器ip:9000实现手机控制
遇到不能启动squeezelite的问题,建立以下文件
配置默认声卡,查看所有声卡
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: S905XP212 [S905X-P212], device 0: fe.dai-link-0 (*) []
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: x20 [xCORE USB Audio 2.0], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
建立声卡设置文件(根据自己arm板实际情况填写)
nano /etc/asound.conf
#nano /etc/asound.conf
pcm.!default {
type hw
card 1
device 0
}
ctl.!default {
type hw
card 1
}
建立squeezelite启动服务文件
nano /etc/systemd/system/squeezelite.service
# /etc/systemd/system/squeezelite.service
[Unit]
Description=Squeezelite LMS player
After=network.target
[Service]
Type=forking
ExecStart=/etc/init.d/squeezelite start
ExecStop=/etc/init.d/squeezelite stop
PIDFile=/run/squeezelite.pid
[Install]
#WantedBy=multi-user.target
WantedBy=default.target
每次修改service文件,需要运行重新加载配置文件
systemctl daemon-reload
重启squeezelite
systemctl restart squeezelite
查看squeezelite是否成功启动
systemctl status squeezelite
停止squeezelite自动启动
systemctl disable squeezelite
安装RoonBridge
cd /tmp
wget https://download.roonlabs.net/builds/roonbridge-installer-linuxarmv8.sh
chmod +x roonbridge-installer-linuxarmv8.sh
./roonbridge-installer-linuxarmv8.sh
停止RoonBridge自动启动
systemctl disable roonbridge
安装HQPlayer NAA
cd /tmp
wget https://www.signalyst.eu/bins/naa/linux/bookworm/networkaudiod_5.0.1-60_arm64.deb
apt install -y ./networkaudiod_5.0.1-60_arm64.deb
停止NAA自动启动
systemctl disable networkaudiod
安装aplayer数播系统
下载得到aplayer-arm64_2.114.rar解压,得到aplayer目录,使用工具上传目录到/usr/share
ssh工具登录
cd /usr/share/aplayer
chmod +x start.sh
./start.sh
安装-音频设备控制面板
下载得到service_control.rar解压,得到三个文件
使用工具上传三个文件到/var/www
浏览器登录:ip/s.html
安装清理
apt clean
apt --purge autoremove
到这里可以开始听音乐了。
汉化moOde
从https://gitee.com/androidnews/moode-audioplay-zh_cn下载相对应版本汉化包(或者百度网盘下载)
wget https://gitee.com/androidnews/moode-audioplay-zh_cn/repository/archive/master.zip
unzip master.zip
cd /home/pi/moode-audioplay-zh_cn-master/9.0.1
cp -rf ./www/* /var/www
音乐服务系统
moode-player:ip
LMS:ip:9000
先启动Squeezelite再启动LMS
Aplayer ip:7778
先启动aplayer
aprenderer ip:7779
先启动aprenderer
注意:
1、moOde音乐播放系统默认自动开启;
2、如果想要本机使用logitech media server播放音乐,需要停止moOde播放,并同时启动Squeezelite和LMS;
3、logitech media server的Squeezelite和NAA、RoonBridge以及Aplayer的aprenderer不能同时启动,每次只能启动其中一个音乐桥服务。
moOde播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Audio,Output device这里选择USB声卡,点击SET,点击Library,Music Database项目,点击REGENERATE,点击房子图标,返回播放界面,可以播放了
RoonBridge播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Renderers,RoonBridge项目,Service由OFF点击到ON,启动roon,选择armbian音频设备,播放,如果moOde界面卡RoonBridge,直接浏览器地址栏输入IP/ren-config.php RoonBridge项目,Service由ON点击到OFF
LMS播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Renderers,Squeezelite项目,Service由OFF点击到ON,启动LMS,IP:9000,可以播放音乐了。
注意:
如果是USB或者TF卡安装好系统,用nand-sata-install写入emmc,会出现删除/mnt目录下/mnt/NAS和/mnt/SDCARD目录的情况,自己重新建立相应目录就可以了。
魔盒NetworkTerminations使用nand-sata-install写入emmc,设备选择111 s905w TX3-Mini meson-gxl-s905w-tx3-mini.dtb
私家云/比特米盒/CM2-B使用nand-sata-install写入emmc,设备选择109 s905x T95,XiaoMI-3S,X96 meson-gxl-s905x-p212.dtb
在Linux系统中,可以使用systemctl命令来管理和查看所有服务。
以下是查看所有服务的命令,这个命令会列出所有服务,包括正在运行的和非活动的:
systemctl list-units --type=service --all
如果你只想查看服务的简单列表,可以使用systemctl命令结合grep来过滤输出,这将只显示当前正在运行的服务:
systemctl list-units --type=service --all | grep running
如果你想查看启用了的服务(即它们在启动时自动启动),这将列出所有设置为在启动时启动的服务:
systemctl list-unit-files --type=service --state=enabled
为media在mnt建立软链接
ln -s /media/ /mnt/SDCARD/DiskData
Androidnews
2024.08.11
说明:
本安装教程不保证所有arm主板都能安装成功;
本安装教程虽然劲量简单,但是还是需要一定的Linux功底;
本安装教程以Debian的bookworm为基底实现,如果想使用其它版本,请结合教程自己摸索;
本安装教程都以root账户执行;
本安装教程使用Xshell_Plus_v6.0.0095.zip作为SSH和SCP工具,解压,绿化;
其它未经事宜请大家自己摸索:)
测试安装通过硬件:
RK3399系列
aml s905系列
全志Hx系列
推荐固件包下载网站:
https://github.com/ophub/
https://files.kos.org.cn/
https://www.armbian.com/
完整安装包工具下载:
链接:https://pan.baidu.com/s/1Kd1EcAsVmoL5Qr4sXp41Dw?pwd=rq9g
安装swap管理
apt install -y dphys-swapfile
设置时区
tzselect
选4 Asia->选10 China->选1 Beijing->选1 yes
hwclock --systohc
查看时间
date -R
设置语言
localectl set-locale LANG=zh_CN.UTF-8
locale-gen
修改系统源
nano /etc/apt/sources.list
# /etc/apt/sources.list
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-updates main contrib non-free non-free-firmware
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb-src https://mirrors.tuna.tsinghua.edu.cn/debian/ bookworm-backports main contrib non-free non-free-firmware
deb https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
deb-src https://security.debian.org/debian-security bookworm-security main contrib non-free non-free-firmware
修改armbian源
cd /usr/share/keyrings
wget https://mirrors.tuna.tsinghua.edu.cn/armbian/armbian.key
nano /etc/apt/sources.list.d/armbian.list
# /etc/apt/sources.list.d/armbian.list
deb [signed-by=/usr/share/keyrings/armbian.key] https://mirrors.tuna.tsinghua.edu.cn/armbian bookworm main bookworm-utils bookworm-desktop
添加moOde-player源
wget https://dl.cloudsmith.io/public/moodeaudio/m8y/setup.deb.sh
chmod +x setup.deb.sh
./setup.deb.sh
nano /etc/apt/sources.list.d/moodeaudio-m8y.list
# /etc/apt/sources.list.d/moodeaudio-m8y.list
deb [signed-by=/usr/share/keyrings/moodeaudio-m8y-archive-keyring.gpg] https://dl.cloudsmith.io/public/moodeaudio/m8y/deb/raspbian bookworm main
deb-src [signed-by=/usr/share/keyrings/moodeaudio-m8y-archive-keyring.gpg] https://dl.cloudsmith.io/public/moodeaudio/m8y/deb/raspbian bookworm main
rm setup.deb.sh
添加upmpdcli源
添加秘钥
cd /usr/share/keyrings
wget https://www.lesbonscomptes.com/pages/lesbonscomptes.gpg
添加源列表
cd /etc/apt/sources.list.d
wget https://www.lesbonscomptes.com/upmpdcli/pages/upmpdcli-rbookworm.list
添加raspberrypi源
cd /usr/share/keyrings
wget https://archive.raspberrypi.org/debian/raspberrypi.gpg.key
cd /etc/apt/sources.list.d
nano /etc/apt/sources.list.d/raspi.list
# /etc/apt/sources.list.d/raspi.list
#deb [signed-by=/usr/share/keyrings/raspberrypi.gpg.key] https://archive.raspberrypi.org/debian/ bookworm main untested
deb [signed-by=/usr/share/keyrings/raspberrypi.gpg.key] https://mirrors.tuna.tsinghua.edu.cn/raspberrypi/ bookworm main untested
apt update
apt upgrade
安装moOde
上传moode-player_9.0.0-1moode1~pre1_all.deb文件到/tmp
cd /tmp
apt install -y ./moode-player_9.0.0-1moode1~pre1_all.deb
注意,安装此版本不会出现重启问题。
apt install -y moode-player
注意,如此安装会安装最新版本,不推荐,可能会出现自动重启问题,当然如果是树莓派没有此问题。
出现bluez-firmware安装错误,执行下面命令
cd /var/cache/apt/archives
ls bluez-firmware*
dpkg -i --force-overwrite ./bluez-firmware_1.2-4+rpt10_all.deb
注意根据实际情况填写bluez-文件
继续安装
apt install -f
如果以上方式不能安装,接下来再次运行
dpkg -i --force-overwrite ./moode-player_9.0.0-1moode1~pre1_all.deb
安装完毕提示reboot重启,moOde安装完毕。
安装Logitech Media Server
下载地址:https://lyrion.org/lms-server-repository/
cd /tmp
wget https://downloads.lms-community.org/nightly/logitechmediaserver_8.5.3~1721022124_arm.deb
apt install -y ./logitechmediaserver_8.5.3~1721022124_arm.deb
浏览器登陆IP:9000
设置,插件管理,输入地址,应用
推荐(最新版本已经内置第三方插件):
https://raw.kkgithub.com/LMS-Community/lms-plugin-repository/master/extensions.xml
http://39.106.196.235/extensions.xml
选择Material Skin、DSDPlayer等插件
停止LMS自动启动
systemctl disable logitechmediaserver
logitech media server的Squeezelite可以通过在安卓手机安装xTune-v1.3.6.apk或者天韵宝盒LMS控制器.apk或者手机浏览器ip:9000实现手机控制
遇到不能启动squeezelite的问题,建立以下文件
配置默认声卡,查看所有声卡
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: S905XP212 [S905X-P212], device 0: fe.dai-link-0 (*) []
Subdevices: 0/1
Subdevice #0: subdevice #0
card 1: x20 [xCORE USB Audio 2.0], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0
建立声卡设置文件(根据自己arm板实际情况填写)
nano /etc/asound.conf
#nano /etc/asound.conf
pcm.!default {
type hw
card 1
device 0
}
ctl.!default {
type hw
card 1
}
建立squeezelite启动服务文件
nano /etc/systemd/system/squeezelite.service
# /etc/systemd/system/squeezelite.service
[Unit]
Description=Squeezelite LMS player
After=network.target
[Service]
Type=forking
ExecStart=/etc/init.d/squeezelite start
ExecStop=/etc/init.d/squeezelite stop
PIDFile=/run/squeezelite.pid
[Install]
#WantedBy=multi-user.target
WantedBy=default.target
每次修改service文件,需要运行重新加载配置文件
systemctl daemon-reload
重启squeezelite
systemctl restart squeezelite
查看squeezelite是否成功启动
systemctl status squeezelite
停止squeezelite自动启动
systemctl disable squeezelite
安装RoonBridge
cd /tmp
wget https://download.roonlabs.net/builds/roonbridge-installer-linuxarmv8.sh
chmod +x roonbridge-installer-linuxarmv8.sh
./roonbridge-installer-linuxarmv8.sh
停止RoonBridge自动启动
systemctl disable roonbridge
安装HQPlayer NAA
cd /tmp
wget https://www.signalyst.eu/bins/naa/linux/bookworm/networkaudiod_5.0.1-60_arm64.deb
apt install -y ./networkaudiod_5.0.1-60_arm64.deb
停止NAA自动启动
systemctl disable networkaudiod
安装aplayer数播系统
下载得到aplayer-arm64_2.114.rar解压,得到aplayer目录,使用工具上传目录到/usr/share
ssh工具登录
cd /usr/share/aplayer
chmod +x start.sh
./start.sh
安装-音频设备控制面板
下载得到service_control.rar解压,得到三个文件
使用工具上传三个文件到/var/www
浏览器登录:ip/s.html
安装清理
apt clean
apt --purge autoremove
到这里可以开始听音乐了。
汉化moOde
从https://gitee.com/androidnews/moode-audioplay-zh_cn下载相对应版本汉化包(或者百度网盘下载)
wget https://gitee.com/androidnews/moode-audioplay-zh_cn/repository/archive/master.zip
unzip master.zip
cd /home/pi/moode-audioplay-zh_cn-master/9.0.1
cp -rf ./www/* /var/www
音乐服务系统
moode-player:ip
LMS:ip:9000
先启动Squeezelite再启动LMS
Aplayer ip:7778
先启动aplayer
aprenderer ip:7779
先启动aprenderer
注意:
1、moOde音乐播放系统默认自动开启;
2、如果想要本机使用logitech media server播放音乐,需要停止moOde播放,并同时启动Squeezelite和LMS;
3、logitech media server的Squeezelite和NAA、RoonBridge以及Aplayer的aprenderer不能同时启动,每次只能启动其中一个音乐桥服务。
moOde播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Audio,Output device这里选择USB声卡,点击SET,点击Library,Music Database项目,点击REGENERATE,点击房子图标,返回播放界面,可以播放了
RoonBridge播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Renderers,RoonBridge项目,Service由OFF点击到ON,启动roon,选择armbian音频设备,播放,如果moOde界面卡RoonBridge,直接浏览器地址栏输入IP/ren-config.php RoonBridge项目,Service由ON点击到OFF
LMS播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Renderers,Squeezelite项目,Service由OFF点击到ON,启动LMS,IP:9000,可以播放音乐了。
注意:
如果是USB或者TF卡安装好系统,用nand-sata-install写入emmc,会出现删除/mnt目录下/mnt/NAS和/mnt/SDCARD目录的情况,自己重新建立相应目录就可以了。
魔盒NetworkTerminations使用nand-sata-install写入emmc,设备选择111 s905w TX3-Mini meson-gxl-s905w-tx3-mini.dtb
私家云/比特米盒/CM2-B使用nand-sata-install写入emmc,设备选择109 s905x T95,XiaoMI-3S,X96 meson-gxl-s905x-p212.dtb
在Linux系统中,可以使用systemctl命令来管理和查看所有服务。
以下是查看所有服务的命令,这个命令会列出所有服务,包括正在运行的和非活动的:
systemctl list-units --type=service --all
如果你只想查看服务的简单列表,可以使用systemctl命令结合grep来过滤输出,这将只显示当前正在运行的服务:
systemctl list-units --type=service --all | grep running
如果你想查看启用了的服务(即它们在启动时自动启动),这将列出所有设置为在启动时启动的服务:
systemctl list-unit-files --type=service --state=enabled
为media在mnt建立软链接
ln -s /media/ /mnt/SDCARD/DiskData