*  Nanopi Neo2 for Sound source

Nanopi-neo2 SPDIF Dietpi Music Server DIY

Flag Counter

Your Browzer and +OS is

Your OS of PC is
show and indicates X11 U,Linux,BSD if see those/you are using BSD/Linux/Unix family
Smart phone are Linux or BSD UNIX


Japanese to Engish translated by Google Translate has been converted to English. Please understand that the English text is not a complete translation.


🇯🇵Dietpi-Nanopi-Neo2-Music Server Japanese

mpd




cat

If you are using IPV6 and you can not get sound please add bind_to_address "0.0.0.0" at mpd.conf

real size of Nanopi

Real Size of Nanopi-Neo2 Cheap and beautiful board construction 40 mm x 40 mm

Since there is no suitable OS, please try only those who can use U-Boot and those who know how to operate Linux that can use Armbian and Dietpi.
Dietpi Music Server


allemande 2A3

Allemande 2A3 Single-Ended Amplifier



     

Audio Line is just this, Nanopi-Neo2 and self-made DAC only. DACs are DIY made and commercially available SPDIF input DACs, and there are products from about $ 20 to several hundred dollars.
Connect an amplifier to the output of that DAC.
If you do the same thing with Raspberry pi, you will need an SPDIF conversion board. Place a board called a hat on the Raspberry pi.




I will explain below.
Be sure to attach the heat sink. Purchase a dedicated heat sink (400 yen) at the store where you purchased the Nano. Install the heat sink before connecting the power supply, and then boot.
By the way, Boots has the same meaning and writing style as boots. As mentioned on the purchase site, Nanopi's pi is python's Pi (pi-py). Compatibility between Nanopi-Neo and Neo2
No, it means that the CPU is different. In other words, Neo is 32bit (H3) and Neo2 is 64bit (H5). It seems that it can be used for anything. With ssh you don't need a monitor.
In the case of this OS, if you reboot, # reboot will not reboot and the power will be turned off. It was OK with # shutdown -r now.
# shutdown -h now will turn off the power. At first I installed debian, but there was nothing wrong with it, but I don't know the repository and I can't install mpd.
I can't help but boot to Ubuntu, but when I look at the file name, the suffix is ​​Neo. I didn't understand this, and when I looked closely after half a day, it was for Neo.
You can install anything on x86 etc., but was it about 10 years ago that you separated for 32-bit and 64-bit? In other words, this Neo is also available for 32-bit and 64-bit.
Get the 64-bit version from the link.
Before I bought it, I had a lot of trouble, I don't have an HDMI terminal. It's just an ARM board with a LAN port. I got used to SSH from my experience with Raspberry Pi, so
I didn't have a big problem, but it was my impression of using it. Since the AC adapter is 1A or less, it is OK with the power supply of the smartphone, the main unit price is 2600 yen (Akizuki) There is a LAN,
If you have a host PC, you can experiment. LAN cables are also available at 100%, so the most expensive parts are DAC and micro SD? Experiment with a total system of about 6000 yen
It is possible. What does the OS use? Use Dietpi or Armbian. Please go to each site and download the OS for Nanopi-Neo2.

Raspberrypi or Nanopineo2 is required to create a music server. Nanopineo2 or Pine64 is required for SPDIF output. If you can, please use Nanopi-Neo2 or Pine64.
OS is each version of Dietpi and Armbian. In the case of Raspberry pi, it will be Raspbian, each OS. For MPD, get the source of each version of MPD. If you can access with SSH
Right-click with the mouse Copy the URL of the source and # wget then drag URL it to the specified location. Please decide a specific place for the place. After that,
decompress and compile the source, but each user needs to compile the library.
Please install by yourself. The basic names of the libraries are listed on this site, but if you get an error during compilation you will need to manually install the missing libraries.
In some cases, you may have to compile the source and install the library. Most libraries can be installed with the name # apt install library. Installation by all means
If you can't, you'll have to compile the source. All libraries may be installed by adding # apt install abcde * "*".

This one-board price is good, it's big, it consumes less power, and I think it's a very good one-board PC to learn Linux, but you need a main PC
Dietpi Music Server


OS down load


Armbian

Can not get buster Deitpi any more ,so please try to use Armbian or Dietpi-Buster copydietpi


Installation of Python and Ninja This time it will be Dietpi Bullseye


I was able to do it well at first, but I brought the source and installed it, but due to the change in the compilation method, I made it possible to install Ubuntu (Debian) conveniently.
It was possible to install with apt-get. Both Python and pip can now be installed with apt-get install. Python is also installed by specifying the version.
Ninja etc. takes a lot of time to install, I remember that it was possible to install faster using git etc. meson and ninja are installed using pip,
I feel that it was faster to download and install the archive. So, it became as follows. It is difficult to install meson and it is difficult to understand English.
The developers are probably Latin people, and they can't explain enough English, and when I go to a Japanese site, they don't translate well from English to Japanese, so it's complicated. I want you to translate without using a translator.
I ended up using Bullseye. I think this is also an incomplete library. It may stabilize after about a year. Buster couldn't install meson 0.60 and I had no choice but to use Bullseeye.
Others Please also install wget git # apt-get install xz-utils. It is convenient to install vi or emacs. You can freely view and move files with emacs.


# apt-get install python3-sphinx needs to be installed.
# apt-get install c ++
# pip installation
# apt-get install python3.9 #Bullseye is now 3.9
# apt install python3-pip # pip installation
# apt-get install libmpdclient2-dev if can not .. # apt-get install libmpdclient *
# apt-get install libboost1.74-dev libboost1.67-dev
# python3 -m pip install ninja # (1.0.1)
# python3 -m pip install meson # (0.60)
Now it's time to compile and install mpd. As always, you will have to download and compile the mpd source. The compilation and installation methods have changed.
This is a change in the method of installing mpd from source, which has changed since 0.21.XX. In the case of Dietpi, there is only a route, so please add a general user. In this state Use
#. sudo cannot be recognized. Please install git, g ++, C ++ 17 C ++ 20 cmake sox ffmpeg curl etc. before doing the following. Please note that it takes a long time to compile.

# apt install build-essential libicu-dev Library installation apt install meson g ++ \ libfmt-dev in the green background Please copy, paste and install after \, please be sure to do it

Use the following command to download, compile and install the Boost package. Compiling # ./b2 -a takes a lot of time. If boost cannot be installed
I can't compile and install the mpd source. I think it's better to compile the source than with git. Either one is fine. In my case boost_1_75_0.tar.gz.
I downloaded and compiled
. The following are almost common techniques. If it was a salaryman, he said that he was still compiling even if he went to the office in the morning and came home.
It is this boost installation that takes a long time to install a new mpd. Note \ Compiling takes time, so please do it in winter or force air cooling. Check the location of
mpd.service. In this case, it is in /usr/local/lib/systemd ~, so you may need to copy it to another location. Or in the source
There is, so you may need to forcibly copy it to a specific location from there. Please download the source of boost below. Boost ORG to get boost new one
Be sure to install it before compiling.
You don't need to install Boost below, but it's a good idea to do it once. It takes about 24 hours.

# cd boost
# ./bootstrap.sh
# ./b2 headers
# ./b2 -a
# ./b2 install


I was able to install it in a fairly short time. I don't know if this is a Bullseye effect or a library effect, though I don't know if the meson is an upgraded relationship or a ninja relationship.
I'm sure these have affected the compilation faster. Bullseye is still a new OS, so I think it will have an effect. Since meson and ninja are new every day regardless of Debian
The installation process will be different each time. In Dietpi Buster, even if you can not install by FTP archive from the command line, it may not be possible depending on the day.
I think that the influence of the server is coming out due to the influence of corona. There is no proof that the installation example introduced here is correct, and it may not be possible to install it on different days.
If you get an error in the mpd status, there is a DOC in the local source, so if you copy it to mpd.conf and modify it step by step, you can make a music server.

The TKZ driver can be installed on the SSH terminal or with SAMBA enabled and saved in it if he copies it into dtb/allwinner.
The location will be in /boot/. Edit armbianEnv.txt and add driver. What is the driver? Download it into boot, unzip it and copy it to dtb/allwinner.
I think that installation from the source of mpd can be done in the same way if it is an Armbian, Dietpi, Raspberrypi or Debian OS. Raspbian is a Debian-based OS
mympd doesn't seem to be able to install Bullaeye. The distribution seems to be up to Buster. In the case of Raspbian, it seems to enter without problems. After all it seems that it is impossible with a derived OS.


Mr. TKZ IPDIF driver

Webradio Station's file

About webradio can get by Cantata too


Dietpi mympd

Dietpi myMPD 1st Dic 2021


Upgrade of mpd

You have to use Bullseye Dietpi somehow, it is related to the version of meson and ninja. Buster is fine as long as it is mpd 0.23.3 or lower, but it will be stuck in compilation in higher versions.
Therefore, I use Bullseye. The application installed after that is mympd. Please note that if you install or delete using Dietpi, the directory will be deleted.
Let's compile and install the source as much as possible. However, the library can be installed with apt-get pip etc., so I think it is good to use it a lot. Subsequent images are from Dietpi Bullseye
This is an image. Mympd mpd should be installed by compiling the source. mpd is his latest mpd 0.23.4, but then on December 2, 2021 he became mpd 0.23.5, so I made it mpd 0.23.5.

Archive to install libmpdclient-dev libboost1.74-dev libmpg123-dev These dabels are required. Be sure to have emacs installed. Then it will be compiled.


mpd 0.23.5

mpd 0.23.5 by Dietpi bullseye 4th Dic 2021



mpd 0.23.5

icewm and mympd Dietpi Bullseye 4th Dic 2021

About myMPD I feel that myMPD included in Dietpi is good

Both the original and Dietpi were not good at reading, and when I got tired of the settings and left it for about 6 hours and checked it again, it was in the normal state. If it makes sense, it will be displayed in the normal state after a long time.
myMPD I installed it with two Nanopi-Neo2 at the same time. The git version may be good, the site that introduces myMPD doesn't introduce anything about URLs, and at first you may be confused about how to display it.
Below are two examples of myMP. It may be better to install nginx, I think you don't have to.
Do not install many applications with Dietpi. At least never install mpd. This page is a site that introduces the installation of mpd source.

A) is Nanopi-Neo2 Dietpi Buster mpd 0.23.5.
B) is Nanopi-Neo2 Dietpi Bullseye mpd 0.23.5.


my Desk top

my PC: Fedora Core 64bit Linux Vaio using Icewm



Dietpi Buster

https://192.168.1.2/#/Playback! 0/0/-/-/-/



Dietpi Bullseye

https://192.168.1.17/#/Playback!0/100/-/-/-/




mpd 0.23.5

mpd 0.23.5 by Dietpi Bullseye SPDIF using mympd



samba share does not work any Bullseye version


apt-get install samba-vfs-modules Bullseye is a debian-generated Samba error-free, invisible failure, unauthenticated issue. Therefore, files cannot be exchanged.
I was in great trouble. The same is true for Armibian, and when I saw it on the net, it was avoided and I was in trouble because there was no report.
If you install samba-vfs-modules described in the blog of the person who moved to Atlanta, USA
It can be avoided, but the entire OS will be enabled, but I don't think it can be used.
As I said somewhere, the Samba error reminds me that sharing would cause security issues and would be abolished. So I have to avoid it in some way
Debian isn't too lazy, Samba just made sharing unusable, not an error. I don't know what to do with this, but it's pretty good in Armbian, so Armbian got his 4.8.
Maybe you're still using it. If you renew anything, you will not be able to reinstall it. The previous version is python3, but this Bullseye is python 3.9, so the previous version is
I can't compile even the source.
winbind: Is it a shared program to be embedded in Samba? The conventional Samba had these built-in. Starting with 4.13, this winbind is required. In this application
It will be possible to use it in the same way as conventional samba. For CentOS
yum -y install samba-winbind samba-winbind-clients ← winbind installation
It is said to be
, so you can find an application that does the same thing in Debian. There are other settings.




# apt -y install winbind libpam-winbind libnss-winbind krb5-config samba-dsdb-modules samba-vfs-modules

mkdir: created directory '/var/lib/samba/winbindd_privileged'
changed group of '/var/lib/samba/winbindd_privileged' from root to winbindd_priv
mode of '/var/lib/samba/winbindd_privileged' changed from 0755 (rwxr-xr-x) to 0750 (rwxr-x---)
Created symlink /etc/systemd/system/multi-user.target.wants/winbind.service → /lib/systemd/system/winbind.service.
Setting up libgpgme11:arm64 (1.14.0-1+b2) ...
Setting up krb5-config (2.6+nmu1) ...
Setting up libnss-winbind:arm64 (2:4.13.13+dfsg-1~deb11u2) ...
Setting up liburing1:arm64 (0.7-3) ...
Setting up samba-dsdb-modules:arm64 (2:4.13.13+dfsg-1~deb11u2) ...
Setting up libpam-winbind:arm64 (2:4.13.13+dfsg-1~deb11u2) ...
Setting up samba-vfs-modules:arm64 (2:4.13.13+dfsg-1~deb11u2) ...
Processing triggers for libc-bin (2.31-13+deb11u2) ...

Actually Bullseye can not use new samba 4.13.X so must be use 4.9.X by Buster .buster can complie mpd 0.23.4 depend on library.

new mympd

2021.Dec 19er myMPD for Nanopi neo 2



myMPD

myMPD + Nanopi-neo2 Music Server 19th Dec 2021 any one can do



It took a few weeks. If this Linux Audio faoundation was found from the beginning, it would have worked straightforwardly, but to get this mympd to work
Do not use the application that comes with Daiet Pi. The attached application is convenient but dangerous, so I don't use it, Armbian is fine.
Armbian couldn't find the IP and used Dietpi.
Dietpi-software only works with Alas, emacs, and samba. Do not use anything else. Please keep in mind.
1) mpd is much faster to compile and install the source. I think this is due to the library.
2) Please install git, cmake C ++ etc.
3) mympd follows the link introduced above. Please install mpd properly and install 23.0 or above.
Bullseye uses Buster because samba cannot work. You can't use Focal, basically the same for Focal and Bullseye.
/run/mpd/socket If it doesn't exist, it won't work. If mpd can be installed from the source smoothly, it will work smoothly.



How soulution of problem samba



1] Connect to it directly in explorer by it's ip address - for example:
\\192.168.1.100
[2] Win10 can use mDNS to connect to the server - addressed by it's host name with a .local attached at the end:
\\ubuntu-server-host-name.local
Just make sure avahi is installed on Ubuntu:
sudo apt install avahi-daemon
If you really want Win10 to be able to discover your server you really only have 2 options:
[A] Win10 uses something called WS-Discovery ( WSD ) to discover hosts. Samba doesn't do WSD but with a bit of work you can make it work:
Download the folder:
wget https://github.com/christgau/wsdd/archive/master.zip
UnZip it:
#unzip master.zip
Rename the python script:
sudo mv wsdd-master/src/wsdd.py wsdd-master/src/wsdd
Copy it to bin:
sudo cp wsdd-master/src/wsdd /usr/bin
Copy the systemd service file to /etc/systemd/system:
sudo cp wsdd-master/etc/systemd/wsdd.service /etc/systemd/system
Reload the service:
sudo systemctl daemon-reload
Start the service:
sudo systemctl start wsdd
Enable the service so it starts at boot:
sudo systemctl enable wsdd
[B] Enable NetBIOS on both Win10 and Ubuntu - This is something Win10 is trying to get away from since it considers it a security issue:
In Win10: Control Panel > Programs and Features > Turn Windows features on or off > SMB 1.0/CIFS File Sharing Support > SMB 1.0/CIFS Client.
In Ubuntu: Edit /etc/samba/smb.conf and right under the workgroup = WORKGROUP line add this one:

server min protocol = NT1

You would think that a simple restart of the service would be enough - and it might be in your case:
$sudo service smbd restart

But NetBIOS is a relic of a bygone era and you might have to reboot the box.
NetBIOS is a nasty thing to work with so you may need to do some other tweaks to get it working.
Share


If you forcibly translate these, it will be strange, so if you know how to read the command, you can easily understand the processing method. This is Samba enabled.
Now, I'm going to use Bullseye Debian as a force. ask UBUNTU Thank you very much. After all there was a simple improvement method.
WSD servers is the official name. There are smart people out there. Thank you.



Note:
A) is Nanopi-Neo2 Dietpi Buster mpd 0.23.5. I think it's up to Buster. In other words, you can't use it freely with Bullseye. Also, since Buter is up to 2024, what will happen after that?
B) is Nanopi-Neo2 Armbian Bullseye mpd 0.23.5. It is the operation of samba, but the cause of the slow operation when used for a music server is unknown.

As a result, I said that Bullseye can be used in the current state, but it is difficult to use. Is it the setting of mpd? I'm not sure if it's a bug in samba, but it doesn't work like Buster.
I need to study how samba works, that is, about them. I want to improve samba.



bullseye

Bullseye + cantata Music Server and Samba


Nothing problem to use as Music Server and music file got from the other PC trough by samba just show you by cantata



myMPD

The right is Armbian Bullseye mpd 0.22.1. The left is Dietpi Buster source compilation mpd 0.23.5


I will explain. Dietpi's Default doesn't use nginx, it seems to use lighttpd. Therefore, the operation is unstable, so I will use Nginix according to the introduction site.
Nginix also uses Moodeaudio and Volumio2. There are various things that can be operated with Java. I'm still getting an error in both nginx status, but I haven't resolved it
mpd and mympd are normal and there are no errors, so they can be used as they are. If there is a read error, create an empty file in /etc/mympd.conf.
Start reading. Save the cover file as folder.jpg. It is lowercase. The capital letters were not read. Or it will be cover.jpg.
How to create an empty file is # touch /etc/mympd.conf. I didn't need /etc/mympd.conf to install this site.
Port etc. need to be set separately in other files. Settings such as 80 becoming 8080 are required. Set the files under /var/lib/ mympd one by one.
For Raspberrypi family are using Raspbian,Debian etc so nothing problem to use at all .


new myMPD
Linux Audio Foundation

Introduce myMPD how to install ,good site




Note: Note:
1) Armbian Bullseye has a problem with the compiler. In other words, I can't compile a simple MPD, there seems to be a problem with C ++ or GCC.
SAMBA works.
2) Dietpi Bullseye has no problem with mpd compilation, but SAMBA does not work properly.
In other words, Bullseye cannot operate normally at this stage. From an amateur's point of view, I think it will be usable after a year.
I installed C ++ and spit out an error at 70th place and spit out. I understand that C ++ is the cause, but I can't compile without C ++,
What stops is why it stops. I stopped at a library called icu, so apt install libicu * apt install luajit
apt install I installed and tested 3 of clang, but it didn't play and the compilation proceeded. This is OK.
Armbian bullseye's mpd 0.23.5 music server.
The left is Dietpi Buster. On the right he is Armbian Bullseye Both are mpd 0.23.5



mpd 0.23.5 Armbian and Dietpi

Armbian bullseye and Dietpi buster both are mpd 0.23.5



mympd

Buster Dietpi mpd 0.23.5 by Nanopi-Neo2 23rd Dec 2021



bullseye

Bullseye Armbian mpd 0.23.4 by Nanopi-Neo2 23rd Dec 2021



mympd

mympd 24th Dec 2021 by Armbian mpd 0.23.5



Quite good system for Music Server DIY .sound is depend on what's kind of audio system do you have.
very much usefull system and can buit up Music Server low cost. presentation is very nice .even sound too



dietpi neopineo2

Dietpi nanopineo2 Buster mpd 0.23.5 on 29er Dec 2021



Dietpi myMPD mpd 0.23.5

Dietpi nanopineo2 Buster mpd 0.23.5 on 29er Dec 2021



Detpi-buster mympd

Nanopi-Neo2 mympd



Armbian Bullseye

Bullseye Armbian for Nanopi-Neo2 mpd 0.23.5 SPDIF out put 1st Jan 2022



ncpmc install for control

Install on Dietpi or Raspbian, Ubuntu, Debian terminal as follows. It will be a light and convenient controller. It is very convenient.
$ sudo apt install ncpmc
$ ncpmc



ncpmc by Armbian

Starts on the terminal, you can select and move songs in great detail. Use mympd as a presentation and use ncpmc for operation



samba

This is an example of samba using Armbian Bullseye. The one-board PC is Nanopi-Neo2 64bit version. It is a Music Server using this. There is no problem with Buster,
Bullseye has limited ways to build samba. This is especially a problem caused by Samba 4.13 and above. Therefore, SKYMPC cannot be used due to the specifications.
Therefore, MPDClient is limited. You can use mympd, you can't use SkyMPC, so use other clients with Cantata, ncpmc, etc.
In effect, use WSDD to enable samba. Please refer to the following, there is also an introduction on an external site at the beginning of this page.

how to install wsdd

Bluetooth added to Nanop-Neo2 by Armbian Bullseye


bluetooth

Elecom LBT-UAN05C2/N Bluetooth USB Dongle




blue tooth


dongle

LBT-UAN05C2/N Elecom dongle



pairing with smartphone

I paired it with my smartphone, but it doesn't work,




In the end, it was connected, but the sound hasn't come out yet. From now on, the problem of sound is the problem of DAC and sound interface.
I think I was able to build it so that I could understand it by looking at the image.
I was able to pair, and the rest is only related to the sound. This music server is originally silent, so this is the only problem. I'll show you the evidence





bluetooth


As far as you can see, you can recognize that Bluetooth is possible even with Nanopi-neo2 + dongle. Let's introduce the reference site below.
However, you need to install python3.9. You can install Bluez-tools with pip. Recent information on apt-get stated that default was removed.
You need to create and install the files to build by yourself. However, it turned out that it is relatively easy to build even with Nanopi-neo2.
First, let's make a sound. I think it will be SPDIF this time as well. I have already installed the ES9018 DIY DAC, so I plan to use it.


Reference 3
lsmod

show lsmod for bluetooth by Armbisn Bullseye Music Server mpd 0.23.6 By Nanopi-neo2



connection

smart phone name show by terminal so pairing is already



However, there was a problem, and if I updated it, it would be clear ...? The connection is no longer possible.
If you want to try this, never # apt-get update. It is a very dangerous act and you will never be able to connect. Unfortunately, it can't be helped,
It's a long-standing fate of updating Linux. It is unclear what to do in the future. There is also mpd compilation, which is not easy,



re connected

I was able to reconnect, but it is unstable. I tried installing with another micro SD, but I couldn't install it.




Music server music selection and operation with ncmpc


ncmpc

It is a convenient mpd client that performs operations such as song selection by ncmpc



nanopi-neo2 music-server

ALi

Dietpi Bullseye for Nanopi-Neo2 is now available


As for the background, Armbian Bullseye has fallen. That's why Dietpi Bullseye appeared. mpd is Default, then I plan to compile and install the source
It remains Defaults. The required applications are installed manually without using Dietpi-software. The sound output is SPDIF. I am using TKZ's DTB archive.
Dietpi Bullseye Music Server with myMPD installed and checking the operation. It is mpd 0.23.6. You can enjoy comfortable music without stress.
Please refer to the Linux Audio Foundation site for each installation.


 About wsdd
Sometimes this Share is disabled. Someone breaks into the LAN line and modifies this file. As a result, WSDD will not work and you will not be able to import music sources.
In such a case, delete all the directories. Then try reinstalling. I'm sure it will work.
When you go out, it is recommended to disconnect the power supply and line of the router.
wsdd is in the repository in other distributions and can be installed properly. In other words, you can install it with apt-get.

In this section, we are experimenting with Nanopi-Neo2, but the same thing can be used with Raspberrypi's one board PC as long as you are using a Debian OS.
kieth Jarrett piano play


Koln concert

Keith Jarrett heard with

mpd is exceptional. I think it's a great pianist



Dietpi mympd

Mympd by Dietpi Bullseye Music Server




detect mpd


mpd conf

mpd.conf a part of driver is shown


Billy Childs



7th Avenue


In this section, we are experimenting with Nanopi-Neo2,
but the same thing can be used with Raspberrypi's one board PC as long as you are using a Debian OS.



since 22nd Nov 2021 NanoPi-Neo2 Pi Music Server how to last up date 12th June 2022

Single Ended Amplifier D.I.Y edited with BlueFish By JH1 DAS ex WB4ACI from Sakura Chiba Japan

How to build up Amplifier Single Ended Amplifier 2022