下载固件:rk3399-eflasher-multiple-os-20240201-25g.img
刷入TF卡,从TF卡启动,选择debian 12 bookworm安装
登陆,普通用户名和密码pi
注意:下面命令基本都需要在前面加上sudo
修改系统源,bookworm为列
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源,bookworm为列,如果没有新建文件nano /etc/apt/sources.list.d/armbian.list,原来没有这个文件,可能gpg文件也没有,需要下载armbian.gpg,放到/usr/share/keyring/
deb [signed-by=/usr/share/keyrings/armbian.gpg] https://mirrors.tuna.tsinghua.edu.cn/armbian bookworm main bookworm-utils bookworm-desktop
添加armbian源
wget https://apt.armbian.com/armbian.key -O key
gpg --dearmor < key | tee /usr/share/keyrings/armbian.gpg > /dev/null
chmod go+r /usr/share/keyrings/armbian.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://apt.armbian.com $(lsb_release -cs) main $(lsb_release -cs)-utils $(lsb_release -cs)-desktop" | tee /etc/apt/sources.list.d/armbian.list
添加moOde-player源
curl -1sLf \
'https://dl.cloudsmith.io/public/moodeaudio/m8y/setup.deb.sh' \
| -E bash
添加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
apt update
apt upgrade
安装BT
如果没有安装armbian-config则安装
apt update
apt upgrade
apt install armbian-config
armbian-config
选择Network 选择BT install
安装squeezelite
apt update
apt upgrade
apt install squeezelite
遇到不能启动squeezelite的问题
编辑/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 disable squeezelite
安装LMS
apt update
apt upgrade
apt install -y logitechmediaserver
或者
wget https://downloads.slimdevices.com/LogitechMediaServer_v8.5.0/logitechmediaserver_8.5.0_arm.deb
apt install ./logitechmediaserver_8.5.0_arm.deb
浏览器登陆IP:9000
设置,插件管理,输入地址,应用
http://39.106.196.235/extensions.xml
选择Material Skin、DSDPlayer
停止LMS自动启动
systemctl disable logitechmediaserver
安装RoonBridge
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
wget https://www.signalyst.eu/bins/naa/linux/bookworm/networkaudiod_5.0.0-59_arm64.deb
dpkg -i ./networkaudiod_5.0.0-59_arm64.deb
停止NAA自动启动
systemctl disable networkaudiod
安装supervisor
如果使用service_control.html和service_control.php控制音乐桥,可以不用安装,复制service_control.html和service_control.php到/var/www目录
apt install supervisor
cd /etc/supervisor
nano supervisor.conf
添加:
[inet_http_server]
port=0.0.0.0:8088
username=admin
password=12250909
cd /etc/supervisor/conf.d
nano hifi.conf
添加:
[group:HIFI]
programs=naa,squeezelite,LMS
stopasgroup=true
[program:naa]
command=/usr/sbin/networkaudiod
directory=/usr/sbin
user=root
autostart=false
autorestart=false
redirect_stderr=true
stdout_logfile=/opt/supervisorlog/naaout.log
stderr_logfile=/opt/supervisorlog/naaerr.log
loglvel=info
[program:squeezelite]
command=/usr/bin/squeezelite
directory=/usr/bin
user=root
autostart=false
autorestart=false
redirect_stderr=true
stdout_logfile=/opt/supervisorlog/squeezeliteout.log
stderr_logfile=/opt/supervisorlog/squeezeliteerr.log
loglvel=info
[program:LMS]
command=/usr/bin/perl /usr/sbin/squeezeboxserver
directory=/usr/bin
user=root
autostart=false
autorestart=false
redirect_stderr=true
stdout_logfile=/opt/supervisorlog/lmsout.log
stderr_logfile=/opt/supervisorlog/lmserr.log
loglvel=info
注意supervisorlog和文件*.log需要自己创建
浏览器登陆IP:8088
管理NAA,squeezelite,LMS启动停止
配置默认声卡
查看所有声卡
pi@NanoPC-T4:~$ cat /proc/asound/cards
0 [hdmisound ]: simple-card - hdmi-sound
hdmi-sound
1 [realtekrt5651co]: simple-card - realtek,rt5651-codec
realtek,rt5651-codec
2 [x20 ]: USB-Audio - xCORE USB Audio 2.0
XMOS xCORE USB Audio 2.0 at usb-fe380000.usb-1, high speed
建立设置文件
nano /etc/asound.conf
输入以下内容
#nano /etc/asound.conf
defaults.ctl.card 2
defaults.pcm.card 2
defaults.timer.card 2
到这里RK3399可以开始听音乐了。
安装moOde
第一步 安装必要包
apt install -y avahi-utils bluez bs2b-ladspa dos2unix exfat-fuse flac fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-gothic fonts-ipafont-mincho fonts-unfonts-core id3v2 inotify-tools libasound2-plugin-equal libconfuse-dev libdbus-glib-1-dev libdevmapper-event1.02.1 libmediainfo0v5 libmms0 libnss-winbind libzen0v5 mediainfo minidlna mpc nfs-kernel-server nginx nmap php-fpm php-sqlite3 php-yaml php8.2-gd python3-musicpd python3-pip python3-setuptools samba shellinabox smbclient sox squashfs-tools telnet triggerhappy udevil winbind wsdd xfsprogs xinit xorg ffmpeg libtool-bin sqlite3 lame libasound2-dev cifs-utils bzip2 lbzip2 mpd
第二步 从此处下载所有moOde的deb安装包
https://cloudsmith.io/~moodeaudio/repos/m8y/packages/?q=architecture%3Aall
复制moOde所有的deb包到home目录下
mv moode-player_9.0.0-1moode1~pre1_all.deb ../
mv moode-stations-full_9.0.0.zip ../
dpkg -i *
apt install -f
再运行一次
dpkg -i *
apt install -f
不行再运行一次
dpkg -i *
apt install -f
apt autoremove
apt clean
pi@NanoPC-T4:~$ cat /dev/null >~/.bashrc
pi@NanoPC-T4:~$ history -cw
再次使用上次的固件,插入T4板的tf插槽,移除除电源外的所有设备,重启
进入友善之臂eflash启动模式,备份固件
dpkg -i --ignore-depends=rpi-update moode-player_9.0.0-1moode1~pre1_all.deb
apt install -f
apt install -y avahi-utils bs2b-ladspa dos2unix exfat-fuse flac fonts-unfonts-core id3v2 inotify-tools libasound2-plugin-equal libconfuse-dev libdbus-glib-1-dev libdevmapper-event1.02.1 libmediainfo0v5 libmms0 libtool-bin libzen0v5 mediainfo minidlna mpc mpd nfs-kernel-server nmap php-fpm php-sqlite3 php-yaml php8.2-gd pi-bluetooth python3-musicpd python3-pip samba shellinabox smbclient sox sqlite3 squashfs-tools sysstat telnet triggerhappy udevil xfsprogs xinit xorg
再次运行
dpkg -i --ignore-depends=rpi-update moode-player_9.0.0-1moode1~pre1_all.deb
重启
挂载网盘可以使用CloudDrive2
下载
https://github.com/cloud-fs/cloud-fs.github.io
moOde播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Audio,Output device这里选择USB声卡,点击SET,点击Library,Music Database项目,点击REGENERATE,点击房子图标,返回播放界面,可以播放了
LMS播放
IP:8088
admin/12250909
HIFI:squeezelite 点击 start
HIFI:LMS 点击 start
IP:9000
浏览歌曲,点击播放
RoonBridge播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Renderers,RoonBridge项目,Service由OFF点击到ON,启动roon,选择armbian音频设备,播放,如果moOde界面卡RoonBridge,直接浏览器地址栏输入IP/ren-config.php RoonBridge项目,Service由ON点击到OFF
刷入TF卡,从TF卡启动,选择debian 12 bookworm安装
登陆,普通用户名和密码pi
注意:下面命令基本都需要在前面加上sudo
修改系统源,bookworm为列
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源,bookworm为列,如果没有新建文件nano /etc/apt/sources.list.d/armbian.list,原来没有这个文件,可能gpg文件也没有,需要下载armbian.gpg,放到/usr/share/keyring/
deb [signed-by=/usr/share/keyrings/armbian.gpg] https://mirrors.tuna.tsinghua.edu.cn/armbian bookworm main bookworm-utils bookworm-desktop
添加armbian源
wget https://apt.armbian.com/armbian.key -O key
gpg --dearmor < key | tee /usr/share/keyrings/armbian.gpg > /dev/null
chmod go+r /usr/share/keyrings/armbian.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/armbian.gpg] http://apt.armbian.com $(lsb_release -cs) main $(lsb_release -cs)-utils $(lsb_release -cs)-desktop" | tee /etc/apt/sources.list.d/armbian.list
添加moOde-player源
curl -1sLf \
'https://dl.cloudsmith.io/public/moodeaudio/m8y/setup.deb.sh' \
| -E bash
添加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
apt update
apt upgrade
安装BT
如果没有安装armbian-config则安装
apt update
apt upgrade
apt install armbian-config
armbian-config
选择Network 选择BT install
安装squeezelite
apt update
apt upgrade
apt install squeezelite
遇到不能启动squeezelite的问题
编辑/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 disable squeezelite
安装LMS
apt update
apt upgrade
apt install -y logitechmediaserver
或者
wget https://downloads.slimdevices.com/LogitechMediaServer_v8.5.0/logitechmediaserver_8.5.0_arm.deb
apt install ./logitechmediaserver_8.5.0_arm.deb
浏览器登陆IP:9000
设置,插件管理,输入地址,应用
http://39.106.196.235/extensions.xml
选择Material Skin、DSDPlayer
停止LMS自动启动
systemctl disable logitechmediaserver
安装RoonBridge
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
wget https://www.signalyst.eu/bins/naa/linux/bookworm/networkaudiod_5.0.0-59_arm64.deb
dpkg -i ./networkaudiod_5.0.0-59_arm64.deb
停止NAA自动启动
systemctl disable networkaudiod
安装supervisor
如果使用service_control.html和service_control.php控制音乐桥,可以不用安装,复制service_control.html和service_control.php到/var/www目录
apt install supervisor
cd /etc/supervisor
nano supervisor.conf
添加:
[inet_http_server]
port=0.0.0.0:8088
username=admin
password=12250909
cd /etc/supervisor/conf.d
nano hifi.conf
添加:
[group:HIFI]
programs=naa,squeezelite,LMS
stopasgroup=true
[program:naa]
command=/usr/sbin/networkaudiod
directory=/usr/sbin
user=root
autostart=false
autorestart=false
redirect_stderr=true
stdout_logfile=/opt/supervisorlog/naaout.log
stderr_logfile=/opt/supervisorlog/naaerr.log
loglvel=info
[program:squeezelite]
command=/usr/bin/squeezelite
directory=/usr/bin
user=root
autostart=false
autorestart=false
redirect_stderr=true
stdout_logfile=/opt/supervisorlog/squeezeliteout.log
stderr_logfile=/opt/supervisorlog/squeezeliteerr.log
loglvel=info
[program:LMS]
command=/usr/bin/perl /usr/sbin/squeezeboxserver
directory=/usr/bin
user=root
autostart=false
autorestart=false
redirect_stderr=true
stdout_logfile=/opt/supervisorlog/lmsout.log
stderr_logfile=/opt/supervisorlog/lmserr.log
loglvel=info
注意supervisorlog和文件*.log需要自己创建
浏览器登陆IP:8088
管理NAA,squeezelite,LMS启动停止
配置默认声卡
查看所有声卡
pi@NanoPC-T4:~$ cat /proc/asound/cards
0 [hdmisound ]: simple-card - hdmi-sound
hdmi-sound
1 [realtekrt5651co]: simple-card - realtek,rt5651-codec
realtek,rt5651-codec
2 [x20 ]: USB-Audio - xCORE USB Audio 2.0
XMOS xCORE USB Audio 2.0 at usb-fe380000.usb-1, high speed
建立设置文件
nano /etc/asound.conf
输入以下内容
#nano /etc/asound.conf
defaults.ctl.card 2
defaults.pcm.card 2
defaults.timer.card 2
到这里RK3399可以开始听音乐了。
安装moOde
第一步 安装必要包
apt install -y avahi-utils bluez bs2b-ladspa dos2unix exfat-fuse flac fonts-arphic-ukai fonts-arphic-uming fonts-ipafont-gothic fonts-ipafont-mincho fonts-unfonts-core id3v2 inotify-tools libasound2-plugin-equal libconfuse-dev libdbus-glib-1-dev libdevmapper-event1.02.1 libmediainfo0v5 libmms0 libnss-winbind libzen0v5 mediainfo minidlna mpc nfs-kernel-server nginx nmap php-fpm php-sqlite3 php-yaml php8.2-gd python3-musicpd python3-pip python3-setuptools samba shellinabox smbclient sox squashfs-tools telnet triggerhappy udevil winbind wsdd xfsprogs xinit xorg ffmpeg libtool-bin sqlite3 lame libasound2-dev cifs-utils bzip2 lbzip2 mpd
第二步 从此处下载所有moOde的deb安装包
https://cloudsmith.io/~moodeaudio/repos/m8y/packages/?q=architecture%3Aall
复制moOde所有的deb包到home目录下
mv moode-player_9.0.0-1moode1~pre1_all.deb ../
mv moode-stations-full_9.0.0.zip ../
dpkg -i *
apt install -f
再运行一次
dpkg -i *
apt install -f
不行再运行一次
dpkg -i *
apt install -f
apt autoremove
apt clean
pi@NanoPC-T4:~$ cat /dev/null >~/.bashrc
pi@NanoPC-T4:~$ history -cw
再次使用上次的固件,插入T4板的tf插槽,移除除电源外的所有设备,重启
进入友善之臂eflash启动模式,备份固件
dpkg -i --ignore-depends=rpi-update moode-player_9.0.0-1moode1~pre1_all.deb
apt install -f
apt install -y avahi-utils bs2b-ladspa dos2unix exfat-fuse flac fonts-unfonts-core id3v2 inotify-tools libasound2-plugin-equal libconfuse-dev libdbus-glib-1-dev libdevmapper-event1.02.1 libmediainfo0v5 libmms0 libtool-bin libzen0v5 mediainfo minidlna mpc mpd nfs-kernel-server nmap php-fpm php-sqlite3 php-yaml php8.2-gd pi-bluetooth python3-musicpd python3-pip samba shellinabox smbclient sox sqlite3 squashfs-tools sysstat telnet triggerhappy udevil xfsprogs xinit xorg
再次运行
dpkg -i --ignore-depends=rpi-update moode-player_9.0.0-1moode1~pre1_all.deb
重启
挂载网盘可以使用CloudDrive2
下载
https://github.com/cloud-fs/cloud-fs.github.io
moOde播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Audio,Output device这里选择USB声卡,点击SET,点击Library,Music Database项目,点击REGENERATE,点击房子图标,返回播放界面,可以播放了
LMS播放
IP:8088
admin/12250909
HIFI:squeezelite 点击 start
HIFI:LMS 点击 start
IP:9000
浏览歌曲,点击播放
RoonBridge播放
默认自动启动moOde,自动获得IP,浏览器输入IP地址,点击M图标,选Configure,选Renderers,RoonBridge项目,Service由OFF点击到ON,启动roon,选择armbian音频设备,播放,如果moOde界面卡RoonBridge,直接浏览器地址栏输入IP/ren-config.php RoonBridge项目,Service由ON点击到OFF