Debian 9 Stretch
This thread is dedicated for tips & tricks, guiding, installing and tweaking Debian 9 Stretch, MPD and Upmpdcli.
https://www.lejonklou.com/forum/
Code: Select all
su
Code: Select all
apt-get install sudo
Code: Select all
adduser <username>
Code: Select all
usermod -aG sudo <username>
Code: Select all
sudo apt-get install alsa-utils alsa-tools
Code: Select all
sudo apt-get install python3 python3-pip ninja-build
Code: Select all
sudo pip3 install meson
Code: Select all
sudo apt-get install libboost-dev
Code: Select all
sudo apt-get install libpcre3-dev \
libmad0-dev libmpg123-dev libid3tag0-dev \
libflac-dev libvorbis-dev libopus-dev \
libadplug-dev libaudiofile-dev libsndfile1-dev libfaad-dev \
libfluidsynth-dev libgme-dev libmikmod2-dev libmodplug-dev \
libmpcdec-dev libwavpack-dev libwildmidi-dev \
libsidplay2-dev libsidutils-dev libresid-builder-dev \
libavcodec-dev libavformat-dev \
libmp3lame-dev libtwolame-dev libshine-dev \
libsamplerate0-dev libsoxr-dev \
libbz2-dev libcdio-paranoia-dev libiso9660-dev libmms-dev \
libzzip-dev \
libcurl4-gnutls-dev libyajl-dev libexpat-dev \
libasound2-dev libao-dev libjack-jackd2-dev libopenal-dev \
libpulse-dev libshout3-dev \
libsndio-dev \
libmpdclient-dev \
libnfs-dev libsmbclient-dev \
libupnp-dev \
libavahi-client-dev \
libsqlite3-dev \
libsystemd-dev libwrap0-dev \
libgtest-dev \
libboost-dev \
libicu-dev
Code: Select all
sudo nano /etc/mpd.conf
Code: Select all
# Files and directories #######################################################
music_directory "/home/usbaudio/share/music"
playlist_directory "/home/usbaudio/share/playlist"
db_file "/var/lib/mpd/tag_cache"
log_file "/var/log/mpd/mpd.log"
pid_file "/var/run/mpd/pid"
state_file "/var/lib/mpd/state"
sticker_file "/var/lib/mpd/sticker.sql"
# General music daemon options ################################################
user "mpd"
group "audio"
# For network
#bind_to_address "localhost"
port "6600"
auto_update "yes"
# Symbolic link behavior ######################################################
follow_outside_symlinks "yes"
follow_inside_symlinks "yes"
# Zeroconf / Avahi Service Discovery ##########################################
#zeroconf_enabled "yes"
#zeroconf_name "debianmusic"
# Input #######################################################################
#input {
# plugin "curl"
# proxy "proxy.isp.com:8080"
# proxy_user "user"
# proxy_password "password"
#}
# Audio Output ################################################################
audio_output {
type "alsa"
name "My Alsa Device"
device "hw:0,0"
}
# Volume control mixer ########################################################
#mixer_type "hardware"
#mixer_type "software"
mixer_type "disabled"
# Character Encoding ##########################################################
filesystem_charset "UTF-8"
id3v1_encoding "UTF-8"
###############################################################################
Code: Select all
aplay -l
Code: Select all
sudo adduser mpd audio
Code: Select all
sudo nano /usr/local/lib/systemd/system/mpd.service
Code: Select all
ExecStart=/usr/local/bin/mpd --no-daemon /etc/mpd.conf
Code: Select all
sudo systemctl daemon-reload
sudo systemctl restart mpd
Code: Select all
sudo systemctl enable mpd
Code: Select all
sudo systemctl -l status mpd
Code: Select all
sudo mkdir /var/log/mpd
sudo nano /var/log/mpd/mpd.log
Code: Select all
sudo nano /etc/apt/sources.list
Code: Select all
deb http://deb.debian.org/debian experimental main
Code: Select all
sudo apt-get update
Code: Select all
sudo apt-get -t experimental install mpd
Code: Select all
apt-get -t experimental install <packagename>
Code: Select all
sudo apt-get install dirmngr
Code: Select all
gpg --keyserver pool.sks-keyservers.net --recv-key F8E3347256922A8AE767605B7808CE96D38B9201
Code: Select all
gpg --export '7808CE96D38B9201' | sudo apt-key add -
Code: Select all
sudo nano /etc/apt/sources.list.d/upmpdcli.list
Code: Select all
deb http://www.lesbonscomptes.com/upmpdcli/downloads/debian/ stretch main
deb-src http://www.lesbonscomptes.com/upmpdcli/downloads/debian/ stretch main
Code: Select all
E: The method driver /usr/lib/apt/methods/https could not be found.
Code: Select all
sudo apt-get install apt-transport-https
Code: Select all
sudo apt-get update
sudo apt-get install upmpdcli
# Optional streaming services
sudo apt-get install upmpdcli-qobuz
sudo apt-get install upmpdcli-gmusic
sudo apt-get install upmpdcli-tidal
# Optional Songcast gateway
sudo apt-get install sc2mpd
# Optional Songcast Receiver control web interface
sudo apt-get install scweb
Code: Select all
alsamixer
Code: Select all
sudo cat /proc/asound/card0/pcm0p/sub0/hw_params
Code: Select all
uname -r
Code: Select all
sudo apt-get search Linux-kernel
Code: Select all
sudo apt-get install Linux-kernel-<versions>
Code: Select all
sudo apt-get update
sudo apt-get upgrade
Code: Select all
sudo adduser audio
Code: Select all
@audio - rtprio 99
@audio - memlock unlimited
@audio - nice -10
Code: Select all
sudo nano /etc/mpd.conf
Code: Select all
audio_buffer_size "256"
Code: Select all
sudo nano /etc/systemd/logind.conf
Code: Select all
sudo apt-get install mingetty
Code: Select all
sudo systemctl edit getty@tty1
Code: Select all
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin root --noclear %I 38400 linux
Code: Select all
sudo systemctl enable [email protected]
reboot
Not sure what you are trying to say here Flojo…flojo wrote: ↑2018-12-17 21:18 Thanks again, Sopper. All done. Started on some additional tweaks from https://wiki.linuxaudio.org/wiki/system_configuration: on CPU frequency scaling I configured echo -n performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor as the instructions under Debian forced me to install another package
Code: Select all
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Yes, it sure is.
Hi Sopper, I tried to say if you run the echo -n performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor command, that's a onetimer. If you want to make the performance setting lasting, you need installing the package cpufrequtils. I should have taken some time to write my post. Sorry for the confusion.Sopper wrote: ↑2018-12-17 22:21 Not sure what you are trying to say here Flojo…
You can check the state with this command:Code: Select all
cat /sys/devices/system/cpu/cpu0/cpufreq/scaling_governor
Ah, ok, i understand now.flojo wrote: ↑2018-12-18 09:36 Hi Sopper, I tried to say if you run the echo -n performance | sudo tee /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor command, that's a onetimer. If you want to make the performance setting lasting, you need installing the package cpufrequtils. I should have taken some time to write my post. Sorry for the confusion.
Code: Select all
sudo cpufreq-set -r -g performance
Code: Select all
ENABLE="true"
GOVERNOR="performance"
MAX_SPEED="0"
MIN_SPEED="0"
If you don't acces music files on your ssd in the HAKAI, and, just like me, use the HAKAI just as music player who gets the music from a NAS or streaming service, i don't think it matters. But can't hurt to try… i would go for noatime first, makes the most sense to me.
I have it set on performance and couldnt detect differences. But it calms my mind thinking the processor works at maximum capacity when needed. The real-time kernel should provide the lowest possible latency of all kernels; very useful for recording... in playback i think it's somewhat overrated. I couldnt get it to work, so cannot give feedback on performance.
I don't know, but i like to have the latest/newest (there is a reason why they make newer kernels/software).
No idea, where did you get this information from? I like to read that bit too.
No there is no reason. I got it from a guide and it stated that Grub bootloader could have problems with EFI. I did not detect any problems with Grub, EFI or not…
I don't think it matters much; we are just running a small setup for music, so i dont think it will have any impact, but who knows…
Running graphical desktop environment takes alot more recources and we don't want that. I am not sure if it impacts muscial performance. SSH is the way to go anyways; it allows to modify about anything you want (with root-acces). The graphical desktop provides just basic options. Laptop + couch + SSH; much more convenient.
No problem, it's fun to do.
I don't recall where I found the suggestion to update the microcode - maybe it was just a sense of latest-greatest...
I think it's a good idea to update the microcode in general.tokenbrit wrote: ↑2018-12-18 18:00 I don't recall where I found the suggestion to update the microcode - maybe it was just a sense of latest-greatest...
Good idea? https://wiki.debian.org/Microcode
Or not? https://www.theregister.co.uk/2018/08/2 ... h_licence/
Code: Select all
alsamixer
True and good to mention! I will add it to the install instructionflojo wrote: ↑2018-12-18 22:11 Volume out of my Debian box turned out to be lower than my DS. Volume level of my HD+ was only at 41 (out of 100). You can control the Volume of your HD+ (and all other DACs) using
You get a nice mixer. Using F6 you can select your DAC and adjust the output/volume of your DAC and level it to other devicesCode: Select all
alsamixer
I tried Daphile before Volumio. That's all.FairPlayMotty wrote: ↑2018-12-19 03:11 Sopper,
As you're no doubt aware there are literally dozens of linux audio players. In fact there are at least 175 players based upon MPD (hence the name of Client175). Here is a list:
https://alternativeto.net/software/volu ... form=linux
Clementine appears to be the popular pic of Linux review sites.
Question: What alternatives to Volumio did you audition before going for Debian Stretch and MPD?
If you are happy with the way it sounds now, by all means, stick to it.FairPlayMotty wrote: ↑2018-12-19 03:11 My Hakai players both sound terrific with Volumio controlled by HiFi Cast. I'm reluctant to change from Volumio to another player unless there's evidence of a significant improvement. I'm enjoying the music too much to divert time to another distro without evidence. The topic you've raised is interesting though. A very merry Christmas to all and a happy New Year!
Haven't tested the difference between 0.20.23 and 0.21.3 but might try that someday.
I've worked in IT for many years (incl. one year in Amsterdam). What you're doing is innovative and interesting but is the final player still a Hakai? Good luck with it but for Android users Volumio doesn't seem to be a problem at all - I forget it's even in there. My only issue with my Hakai set up is only having two when one in the kitchen would be great!I tried Daphile before Volumio. That's all.
With all the problems with/in Volumio, i figured we don't need a compilation or pre-build system; we can build our own.
Why wouldn't it be a HAKAI? Maybe you should re-read the HAKAI opening post written by Fredrik and determine what makes a HAKAI a HAKAI... or maybe the name doesn't matter and all that does matter is the music it produces.FairPlayMotty wrote: ↑2018-12-19 17:14 What you're doing is innovative and interesting but is the final player still a Hakai?
I'm not sure why or if it is Apple related; it didn't work with Kazoo on laptop or web-ui either. I do know that later MPD and Upmpdcli versions have fixed a lot of bugs; so it did also fix my/our issues.FairPlayMotty wrote: ↑2018-12-19 17:14 Good luck with it but for Android users Volumio doesn't seem to be a problem at all - I forget it's even in there.
No clue what you are trying to say here... what risks?FairPlayMotty wrote: ↑2018-12-19 17:14 You're effectively changing the firmware of the original Hakai based on next to no research into the mass of alternatives that are out there - that approach to development is fraught with risk.
I do consultancy work for global banks and asset managers recommending systems. Not one would pay me for a recommendation that didn't compare an adequate number of systems. There are numerous Linux based audio systems out there. You seem to have looked at one before Volumio and then decided on a build. Even for an experienced code professional that's a very risky approach.No clue what you are trying to say here... what risks?