Welcome to ARMBIAN 5.44 user-built Ubuntu 18.04.1 LTS 3.14.29
System load: 1.10 0.75 0.33 Up time: 3 min
Memory usage: 10 % of 766MB IP: 192.168.2.43
Usage of /: 3% of 29G
New to Armbian? Check the documentation first: https://docs.armbian.com
Changing password for root.
(current) UNIX password:
输入root的旧密码:1234
Enter new UNIX password:
输入root的新密码:
Retype new UNIX password:
再次输入root的新密码:
显示:
Thank you for choosing Armbian! Support: www.armbian.com
Creating a new user account. Press <Ctrl-C> to abort
Please provide a username (eg. your forename):
输入将要创建的新用户名:
Enter new UNIX password:
输入新用户的密码:
Retype new UNIX password:
再次输入新用户的密码:
Full Name []:
回车
Room Number []:
回车
Work Phone []:
回车
Home Phone []:
回车
Other []:
回车
Is the information correct? [Y/n]
输入:y
然后系统重启,关闭PuTTY。
Welcome to ARMBIAN 5.44 user-built Ubuntu 18.04.1 LTS 3.14.29
System load: 2.22 0.94 0.35 Up time: 2 min
Memory usage: 17 % of 766MB IP: 192.168.2.43
Usage of /: 4% of 29G
[ General system configuration (beta): armbian-config ]
Last login: Sun Feb 6 03:40:16 2022 from 192.168.2.25
root@aml:~#
二.更新系统
apt-get update
apt-get upgrade
出错提示
E: Could not get lock /var/lib/dpkg/lock - open (11: Resource temporarily unavailable)
E: Unable to lock the administration directory (/var/lib/dpkg/), is another process using it?
dpkg: dependency problems prevent configuration of squeezelite:
squeezelite depends on libavcodec57 (>= 7:3.2) | libavcodec-extra57 (>= 7:3.2); however:
Package libavcodec57 is not installed.
Package libavcodec-extra57 is not installed.
squeezelite depends on libavformat57 (>= 7:3.2); however:
Package libavformat57 is not installed.
squeezelite depends on libavutil55 (>= 7:3.2); however:
Package libavutil55 is not installed.
squeezelite depends on libfaad2 (>= 2.7); however:
Package libfaad2 is not installed.
squeezelite depends on libflac8 (>= 1.3.0); however:
Package libflac8 is not installed.
squeezelite depends on libmad0 (>= 0.15.1b-3); however:
Package libmad0 is not installed.
squeezelite depends on libmpg123-0 (>= 1.10.0); however:
Package libmpg123-0 is not installed.
squeezelite depends on libsoxr0 (>= 0.1.0); however:
Package libsoxr0 is not installed.
squeezelite depends on libvorbisfile3 (>= 1.1.2); however:
Package libvorbisfile3 is not installed.
dpkg: error processing package squeezelite (--install):
dependency problems - leaving unconfigured
Processing triggers for systemd (237-3ubuntu10.53) ...
Processing triggers for man-db (2.8.3-2ubuntu0.1) ...
Errors were encountered while processing:
squeezelite
解决方法:
apt --fix-broken install
输入squeezelite -?
显示
root@aml:~# squeezelite -?
Squeezelite v1.8, Copyright 2012-2015 Adrian Smith. See -t for license terms
Usage: squeezelite [options]
-s <server>[:<port>] Connect to specified server, otherwise uses autodiscovery to find server
-o <output device> Specify output device, default "default", - = output to stdout
-l List output devices
-a <b>:<p>:<f>:<m> Specify ALSA params to open output device, b = buffer time in ms or size in bytes, p = period count or size in bytes, f sample format (16|24|24_3|32), m = use mmap (0|1)
-a <f> Specify sample format (16|24|32) of output file when using -o - to output samples to stdout (interleaved little endian only)
-b <stream>:<output> Specify internal Stream and Output buffer sizes in Kbytes
-c <codec1>,<codec2> Restrict codecs to those specified, otherwise load all available codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec)
-C <timeout> Close output device when idle after timeout seconds, default is to keep it open while player is 'on'
-d <log>=<level> Set logging level, logs: all|slimproto|stream|decode|output|ir, level: info|debug|sdebug
-e <codec1>,<codec2> Explicitly exclude native support of one or more codecs; known codecs: flac,pcm,mp3,ogg,aac,wma,alac,dsd (mad,mpg for specific mp3 codec)
-f <logfile> Write debug to logfile
-i [<filename>] Enable lirc remote control support (lirc config file ~/.lircrc used if filename not specified)
-m <mac addr> Set mac address, format: ab:cd:ef:12:34:56
-M <modelname> Set the squeezelite player model name sent to the server (default: SqueezeLite)
-n <name> Set the player name
-N <filename> Store player name in filename to allow server defined name changes to be shared between servers (not supported with -n)
-p <priority> Set real time priority of output thread (1-99)
-P <filename> Store the process id (PID) in filename
-r <rates>[:<delay>] Sample rates supported, allows output to be off when squeezelite is started; rates = <maxrate>|<minrate>-<maxrate>|<rate1>,<rate2>,<rate3>; delay = optional delay switching rates in ms
-R -u [params] Resample, params = <recipe>:<flags>:<attenuation>:<precision>:<passband_end>:<stopband_start>:<phase_response>,
recipe = (v|h|m|l|q)(L|I|M)(s) [E|X], E = exception - resample only if native rate not supported, X = async - resample to max rate for device, otherwise to max sync rate
flags = num in hex,
attenuation = attenuation in dB to apply (default is -1db if not explicitly set),
precision = number of bits precision (NB. HQ = 20. VHQ = 28),
passband_end = number in percent (0dB pt. bandwidth to preserve. nyquist = 100%),
stopband_start = number in percent (Aliasing/imaging control. > passband_end),
phase_response = 0-100 (0 = minimum / 50 = linear / 100 = maximum)
-D [delay] Output device supports DSD over PCM (DoP), delay = optional delay switching between PCM and DoP in ms
-v Visualiser support
-L List volume controls for output device
-U <control> Unmute ALSA control and set to full volume (not supported with -V)
-V <control> Use ALSA control for volume adjustment, otherwise use software volume adjustment
-z Daemonize
-t License terms
-? Display this help text
Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR DSD LINKALL
则表示squeezelite安装成功
四.设置squeezelite
将USB解码器用USB线同数码视讯Q5连接上
用squeezelite -l查看USB解码器的编号
显示
root@aml:~# squeezelite -l
Output devices:
null - Discard all samples (playback) or generate zero samples (capture)
default:CARD=HAP90SD - TEAC HA-P90SD, USB Audio - Default Audio Device
sysdefault:CARD=HAP90SD - TEAC HA-P90SD, USB Audio - Default Audio Device
front:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - Front speakers
surround21:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - 2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - 4.0 Surround output to Front and Rear speakers
surround41:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - 4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - 5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - 7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - Direct sample mixing device
dsnoop:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - Direct sample snooping device
hw:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - Direct hardware device without any conversions
plughw:CARD=HAP90SD,DEV=0 - TEAC HA-P90SD, USB Audio - Hardware device with all software conversions
也可以用cat /proc/asound/cards命令查看USB解码器
cat /proc/asound/cards
显示
1 [HAP90SD ]: USB-Audio - TEAC HA-P90SD
TEAC CORPORATION TEAC HA-P90SD at usb-c9000000.dwc2_a-1, high speed
nano /etc/rc.local
将以下命令写入文件(必须在exit 0之前)
/etc/rc.local全部内容:
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# By default this script does nothing.