How to use the Nanopi neo
|
Nanopi-neo Music Server DIY 32bit SBC
🇯🇵JapaneseArmbian and Dietpi-Nanopi-Neo Music Server Japanese
Your OS and Browz are
if indicated x11 linux using Linux or PC UNIX family smartphone are almost UNIX and iphone family are UNIX
More detail for setup nanopi-neo family
This counter start 23rd Aug 2023 11:06 JST
Naopi neo and Nanopi neo2
Write anything. However, knowledge of Linux is required. Only knowledge of Linux operation. If you can operate it well, you can definitely build a music server.
Anyone can do it. I am 74 years old. It's Cancer. My main occupation was a repairer of audio products.The number of products repaired is more than 200,000 units.
First, download her binary. Dietpi or Armbian doesn't matter. Once downloaded, install Echer on your host PC.
https://etcher.balena.io/ I'm Balena. Download the application suitable for your PC's OS from here.
Unzip the downloaded OS to the host PC and save it in some folder.
Prepare a micro SD. I think 32 Gbyte 64 GByte is good. The bigger the size, the more music you can store in the micro SD.
The best host PC is Linux. This is because many MPD Client applications can be installed on Linux.
On a Linux host PC, you can format a micro SD, and you can also partition a micro SD.
If you are interested, please see my site for detailed instructions on how to use your old PC, XP or a PC with Windows 7 installed.
We recommend that you install Linux on an old PC that you no longer use and reuse it.
First, download the binary. Dietpi or Armbian doesn't matter. Once downloaded, install Echer on your host PC.
https://etcher.balena.io/ I'm Balena. Download the application suitable for your PC's OS from here.
Unzip the downloaded OS to the host PC and save it in some folder.
Prepare a micro SD. I think 32 Gbyte 64 GByte is good. The bigger the size, the more music you can store in the micro SD.
The best host PC is Linux. This is because many MPD Client applications can be installed on Linux.
On a Linux host PC, you can format a micro SD, and you can also partition a micro SD.
If you are interested, please see my site for detailed instructions on how to use your old PC, XP or a PC with Windows 7 installed.
We recommend that you install Linux on an old PC that you no longer use and reuse it.
1) Once installed, connect the LAN cable to Nanopi and turn on the power.
2) Access Dietpi or Armbian from the host PC
3) The password for Dietpi is dietpi and Armbian is 1234 then automatically ask change passwd.
4) Access from the host PC using the terminal or SSH using Putty
5) Be sure to use the # root.
6) The IP address will be ssh root@192.168.1.XX. Let's say you connect with a random IP first.
7) Let's say $ root@192.168.1.5. This is luck. If you are lucky, you can connect the first time like this.
8) If it's a DietPi, plug it in and it will start his routine update.
9) Let's change his usual password here.
10) What do you want to install once the update is finished? I will ask you, so I will not install anything.
That's it.
11) Let him reboot first. Enter $ reboot or shutdown -r now and Enter.
12) $ ssh root@192.168.1.5
13) $$ ssh root@192.168.1.5
root@192.168.1.66's password:
14) password
It connects here. This is where you start building your server. Register your username as pi for sudo.
Please add mympd if possible.
5) adduser pi
Set your password here.
Do the same for mympd. Everything is done as root, but you can also use pi, which is safer
I think. However, it requires more work, so I recommend using root.
$samba installation
# apt update
# apt install samba
# apt install emacs Install editor
VI or Nano is fine, but I think EMACS is the easiest to use.
samba installed.
Edit /etc/samba/smb.conf with emacs. The main edit is a shared directory.
Let's install mpd for convenience.
# apt install mpd
Let's install
. The latest is mpd 0.23.5. Source date is mpd 23.13 on 2023.23.Aug.
mpd 24.0 for git. When installing with Git cmake ,git ,xz-utils
Install avahi-daemon cifs-utils beforehand. Installing from source with git
Because it is basically compiled, please install ninja-build meson as well.
Then
mkdir /var/lib/mpd/music/Music
mkdir /var/lib/mpd/music/Music2
mkdit /var/lib/mpd/music/Webradio
Give permission. The directory can be /mnt/music or anywhere on your home
chmod 0777 /var/lib/mpd/music/Music
chmod 0777 /var/lib/mpd/music/Music2
chmod 0777 /var/lib/mpd/music/Webradio
This is my case.
It is very convenient if you can prepare one NAS. NAS is made with a hard disk using moodaudio.
I think a hard disk should be about 2 terabytes.
The hard disk will be a USB HDD. Prepare a SATA hard disk and install a SATA and USB adapter
The hard disk of NAS. Store tens of thousands of songs here and use them on the Nanopi music server.
Add the share part created above to the last part in his smb.conf in samba.
Basically, all you have to do is copy and build the files described on this site.
Once the sound comes out freely, let's make detailed settings.
Let's rename the server.
/etc/hostname
Edit the Enter any name you like.
When you reboot, the name of the server should be displayed.
When there is no socket
# mkdir /run/mpd : then
# systemctl disable mpd.socket
Please try this first. I think that the socket will come out with this.
If it doesn't come out
# systemctl enable mpd.socket
If you enable it, it may appear. Please do one of the above. If it does not become effective, please enable it.
simlink /etc/systemd/system/sockets.target.wants/mpd.socket → /usr/local/lib/systemd/system/mpd.socket
It will be linked to
, so # reboot after this. # If you type ls /run/mpd/ and socket is displayed in red
mpd is linked. For mympd mpd sees /run/mpd/socket. It should now appear.
still does not get show mympd
$ mympd -c
$ mympd
that's all
Mr. TKZ IPDIF driver
Webradio Station's file
About webradio can get by Cantata too
new myMPD
Introduce myMPD how to install nigix and mympd are install by this site after samba and mpd install by yourself
Mount
Mount, if you have a NAS mount it. If you have a Raspberrypi, use the Raspberrypi's simple NAS to transfer music.
root@Nanopi-neo2:~# mount.cifs //192.168.1.5/sda1-ata-wdc_wd10jfcx-68n /var/lib/mpd/music/Music -o vers=2.0 iocharset=utf8
Password for root@//192.168.1.5/sda1-ata-wdc_wd10jfcx-68n:
Enter the above command from the nanopi-neo2 command line. Each person will have different settings, so check them and set them. Be sure to install Cifs-utils.
Others You need to install avahi-daemon.
Sound will come out from Nanopi-neo2 by this operation. However, in this state, I think it would be good to check on the host PC where SkyMPC is installed.
If the II mark is displayed, there is an error in building mpd, so install the driver to Nanopi-neo2. I use TKZ's file. Unzip it in /Boot
Please. TKZ's driver is a very good file. Install with confidence. How to install is somewhere on this page? is described.
The next thing to do is edit dietpiEnv.txt. Write the driver in it. Sound should be coming out in this state, but is the sound coming out because the amplifier is broken?
Unable to confirm, please edit Env.txt.
root@Nanopi-neo2:/boot# cat dietpiEnv.txt
rootdev=UUID=a1664661-a1bd-4d5b-872f-c1c3ab1b3749
rootfstype=ext4
# The init system logs to the console defined last.
consoleargs=
usb storagequirks=
extraargs=net.ifnames=0
docker_optimizations=off
overlay_path=allwinner
overlay_prefix=sun
overlay_prefix=sun50i-h5-nanopi-neo2-spdif
overlay_prefix=sun50i-h5
overlays=usbhost1 usbhost2 spdif spdif-out
user_overlays=
----------------------------------//////
is the contents of the file. Here is the text I added in the file
overlay_prefix=sun50i-h5-nanopi-neo2-spdif
overlays=usbhost1 usbhost2 spdif spdif-out
The above spdif spdif-out is the additional part. Spdif has been discontinued from Bullseye. I have added it.
The TKZ file is versatile, so I think it can be used here as well. dtb is a file and can be edited.
MPD and Samba file
since 15th JAN 2015 Raspberry Pi B+ Music Server how to last up date 23rd Aug 2023
How to build up Amplifier Single Ended Amplifier 2023 Yachiyo Chiba Japan