|
一.在电脑上安装ubuntu-22.04.5-live-server-amd64
请参考:《ubuntu server 2204 安装(图解)》https://blog.csdn.net/ziqibit/article/details/129932038
1.在U盘上烧录ubuntu-22.04.5-live-server-amd64
固件下载地址:https://mirrors.jlu.edu.cn/ubuntu-releases/22.04.5/ubuntu-22.04.5-live-server-amd64.iso
2.在电脑上安装ubuntu-22.04.5-live-server-amd64
2.1.安装过程:
关键点:
2.1.1. 必须在安装时设置静态IP地址:
填写:
Subnet: 192.168.5.0/24
Address: 192.168.5.120
Gateway: 192.168.5.1
Name servers: 192.168.5.2
Search domains: 不填
选择Save
2.1.2. SSH服务必须选
[ ] Install OpenSSH server
前面的 [ ] 中必须打上 X 即:[X]
3.登录ubuntu-22.04.5-live-server-amd64,更新软件
用cqzhangjunhua登录,密码是67773240(这是我设置的用户名和密码)
显示:
Welcome to (GNU/Linux 5.15.0-88-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
* Support: https://ubuntu.com/advantage
System information as of Thu Nov 2 02:24:43 AM UTC 2023
System load: 0.1142578125 Temperature: 57.0 C
Usage of /: 12.1% of 56.88GB Processes: 184
Memory usage: 1% Users logged in: 0
Swap usage: 0% IPv4 address for enp1s0: 192.168.5.35
Expanded Security Maintenance for Applications is not enabled.
31 updates can be applied immediately.
To see these additional updates run: apt list --upgradable
Enable ESM Apps to receive additional future security updates.
See https://ubuntu.com/esm or run: sudo pro status
The programs included with the Ubuntu system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.
Ubuntu comes with ABSOLUTELY NO WARRANTY, to the extent permitted by
applicable law.
To run a command as administrator (user "root"), use "sudo <command>".
See "man sudo_root" for details.
cqzhangjunhua@ubuntu:~$
4.解决不能以root用户登录问题
sudo passwd root ## 设置root用户的密码
sudo passwd -u root ## 启用root用户,这将解锁root用户,允许其登录。
sudo nano /etc/ssh/sshd_config
注释掉 PermitRootLogin prohibit-password
添加 PermitRootLogin yes
保存退出(Ctrl+O、Enter、Ctrl+X)。
sudo service ssh restart ## 重启ssh服务
sudo reboot
以root登录
nano /etc/apt/sources.list
deb http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-security main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-updates main restricted universe multiverse
deb http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
deb-src http://mirrors.aliyun.com/ubuntu/ jammy-backports main restricted universe multiverse
保存退出(Ctrl+O、Enter、Ctrl+X)。
设置亚洲上海时区
timedatectl set-timezone Asia/Shanghai
输入命令:
apt-get update
apt-get upgrade
二.安装ubuntu的实时内核
ubuntu-22.04.5-live-server-amd64要安装官方的实时内核,必须在下列网站申请免费个人令牌
https://cn.ubuntu.com/support/pro
https://ubuntu.com/security/livepatch
内核实时补丁
免费个人令牌:XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
安装
apt install ubuntu-advantage-tools #安装pro包
pro attach XXXXXXXXXXXXXXXXXXXXXXXXXXXXX
pro enable realtime-kernel #启动realtime补丁
重启系统
reboot
查看内核
uname -a
显示:
root@ubuntu22:~# uname -a
Linux ubuntu22 5.15.0-1053-realtime #59-Ubuntu SMP PREEMPT_RT Fri Jan 12 20:29:00 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux
三. 安装 Hqplayerd(deb) for Ubuntu-Server 22.04 LTS(代号 Jammy Jellyfish )的相关包
下载地址:https://www.sonarnerd.net/src/jammy/
3.1. 安装依赖包-libgmpris
将下载好的依赖包拷贝到/home目录
cd /home
依赖包-libgmpris 的安装顺序
01. dpkg -i libgmpris_2.2.1-10_amd64.deb
02. dpkg -i libgmpris-dbg_2.2.1-10_amd64.deb
03. dpkg -i libgmpris-dev_2.2.1-10_amd64.deb
04. dpkg -i linux-headers-5.15.123-jl+_5.15.123-jl+-1_amd64.deb
05. dpkg -i linux-headers-6.1.73-jl+_6.1.73-jl+-7_amd64.deb
06. dpkg -i linux-headers-6.6.15-jl+_6.6.15-00011-g06f68f5359ba-7_amd64.deb
07. dpkg -i linux-headers-6.6.16-jl+_6.6.16-00012-g23c67b8b9821-8_amd64.deb
08. dpkg -i linux-image-5.15.123-jl+_5.15.123-jl+-1_amd64.deb
09. dpkg -i linux-image-6.1.73-jl+_6.1.73-jl+-7_amd64.deb
10. dpkg -i linux-image-6.6.15-jl+_6.6.15-00011-g06f68f5359ba-7_amd64.deb
11. dpkg -i linux-image-6.6.16-jl+_6.6.16-00012-g23c67b8b9821-8_amd64.deb
3.1. 安装依赖包HQplayer主程序
下载地址:https://signalyst.com/bins/hqplayerd/jammy/
将下载好的主程序包拷贝到/home目录
cd /home
dpkg -i hqplayerd_5.7.0-21intel_amd64.deb
出现:出错提示
解决方法;
apt --fix-broken install
dpkg -i hqplayerd_5.7.0-21intel_amd64.deb
没有再出现出错提示,则表示安装完成。
启动
hqplayerd hq hq & ## 没有出错提示,看到一堆信息后,回车
ps -ef | grep -i hq
systemctl enable hqplayerd
systemctl start hqplayerd
hqplayerd -s hq 123 ## 更改登陆用户名和密码(自己改用户名hq密码123)
reboot
等待一会,在浏览器输入:http://192.168.5.110:8088 (改为自己的IP)
四. HQplayer嵌入版设置要点:
请参见《Hqplayer embedded hq 嵌入版如何使用分享》http://www.erji.net/forum.php?mo ... &extra=page%3D1
4.1. 如果输出设备是NAA
首先点击“Configuration”,
在“Backend”的下拉框里选“Network Audio”
点击“Aaaly”,等待10秒钟,
在“Network Audio backend”框里选择你的NAA,我这里选的是“ubuntu22s: HU400 HiFi 2.0: USB Audio”
关键点
无论是在“ALSA backend”还是在“Network Audio backend”都必须在“DAC bit”的框里,输入数字:24 或 32,不能为:0。
点击“Aaaly”,等待10秒钟,
4.2. 如果想用 JRiver 或 foobar2000 播放器推流给HQplayer,
必须在 UPnP 下,将 Freewheel 前的方框打上√
点击“Aaaly”,等待10秒钟,
五. 向安装了 HQplayer嵌入版的硬盘拷贝音乐文件并播放
请参见《Hqplayer embedded hq 嵌入版如何使用分享》http://www.erji.net/forum.php?mo ... &extra=page%3D1
5.1. 拷贝音乐文件
在Windows里,用WinSCP软件,将音乐文件拷贝到/media目录下
5.2. 播放拷贝好的音乐文件
点击 Library,在弹出的页面里,
在 Path 下面的方框里输入: /media
点击方框下面的 Scan,等待一会,在其下方将会出现很多音乐文件夹,
点击想要播放的音乐文件夹,在出现的单个音乐文件中,点击右前方的播放按钮就开始播放了。
|
|