DietPi icon indicating copy to clipboard operation
DietPi copied to clipboard

Can someone help me with MPD

Open KenMoreira opened this issue 2 years ago β€’ 20 comments

Trying to play music from usb stick on ALLO USBRIDGE Dietpi (Bullseye)

I know i need MPD and some software to control it. My understanding Bullseye comes with MPD. I just need help getting it to read the the thumb drive as a drive. And then setting up a web based UI to be the controller.

KenMoreira avatar Jun 20 '22 14:06 KenMoreira

Did you already mounted your USB drive using dietpi-drive_manager? To make it available for the system?

Joulinar avatar Jun 20 '22 14:06 Joulinar

I just put two songs on a small drive to test it. If i can get it to work ill buy a 256Gb stick and then add music n plug it in after

KenMoreira avatar Jun 20 '22 14:06 KenMoreira

Ok i mounted the drive. in drive manager. next step ? :D

KenMoreira avatar Jun 20 '22 15:06 KenMoreira

You have the Allo USBridge with Sparky SBC, or Allo USBridge Sig with Raspberry Pi Compute Module 3+?

Those two can be ordered with DietPi and Allo GUI + audio software pre-installed indeed, which includes MPD and the O!MPD frontend. Brief instructions about how to access and use O!MPD can be found on our docs: https://dietpi.com/docs/software/media/#ompd

There are some other endpoints pre-installed, like the Roon Bridge, Shairport Sync as AirPlay backend, Squeezelite as Logitech Media Server/Squeezebox Server backend, DLNA and such.

An overview and some configuration can be also done with the Allo GUI itself at http://dietpi.local/ with [email protected] username and allo or dietpi as password (not sure which version of Allo GUI it was shipped with πŸ˜‰). More info here: https://dietpi.com/forum/t/dietpi-allo-com-web-gui-image/1523 Ay, we need to port this to our docs!

MichaIng avatar Jun 26 '22 12:06 MichaIng

yes i have the allo usbridge signature. I'll read that stuff to start

KenMoreira avatar Jun 26 '22 14:06 KenMoreira

Im not sure how this works. I try doing various FTP with my dietpi's IP but they cannot connect. Maybe i have to do something first?

O!MPDΒΆ

trying to install that one first..

KenMoreira avatar Jun 26 '22 14:06 KenMoreira

You need to install FTP or Samba server to be able to transfer music.

Joulinar avatar Jun 26 '22 14:06 Joulinar

You need to install FTP or Samba server

Or the NFS server. The Samba server however should be installed by default with the Allo GUI image. Was that really pre-installed on the SD card or did you flash a DietPi image manually? If so, then yes, those need to be installed manually. dietpi-software offers a large number of MPD frontends and other media software btw: https://dietpi.com/docs/software/media/

MichaIng avatar Jun 26 '22 15:06 MichaIng

I Got my dietpi directly from allo , and then upgraded from here to bullseye.

KenMoreira avatar Jun 26 '22 15:06 KenMoreira

i don't have access to allow GUI since upgrading though.

KenMoreira avatar Jun 26 '22 15:06 KenMoreira

Can you share following

dietpi-services status

Joulinar avatar Jun 26 '22 15:06 Joulinar

Ah, in this case I suggest to flash our Bullseye image in the first place. Upgrading the distro can work but also can fail, especially with such a large number of installed software titles, and it isn't as clean as a fresh Bullseye installation for sure. We have an image with Allo GUI and everything pre-installed as well, even a 64-bit variant: https://dietpi.com/downloads/images/DietPi_RPi-ARMv8-Bullseye_AlloGUI.7z

Allo has been informed about the new image a while ago, but re-flashing a probably large number of prepared SD cards isn't economically great, I guess πŸ˜‰.

MichaIng avatar Jun 26 '22 15:06 MichaIng

root@KensBridge:~# dietpi-services status

 DietPi-Services
─────────────────────────────────────────────────────
 Mode: status

[  OK  ] DietPi-Services | avahi-daemon          active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:05 BST; 1 day 22h ago
[  OK  ] DietPi-Services | nmbd                  active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:05 BST; 1 day 22h ago
[  OK  ] DietPi-Services | smbd                  active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:06 BST; 1 day 22h ago
[  OK  ] DietPi-Services | mariadb               active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:08 BST; 1 day 22h ago
[FAILED] DietPi-Services | ● lighttpd.service - Lighttpd Daemon
     Loaded: loaded (/lib/systemd/system/lighttpd.service; disabled; vendor pres                                                                                                                                                             et: enabled)
     Active: failed (Result: exit-code) since Fri 2022-06-24 17:55:09 BST; 1 day                                                                                                                                                              22h ago
    Process: 704 ExecStartPre=/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.c                                                                                                                                                             onf (code=exited, status=255/EXCEPTION)
        CPU: 81ms

Jun 24 17:55:09 KensBridge systemd[1]: lighttpd.service: Scheduled restart job,                                                                                                                                                              restart counter is at 5.
Jun 24 17:55:09 KensBridge systemd[1]: Stopped Lighttpd Daemon.
Jun 24 17:55:09 KensBridge systemd[1]: lighttpd.service: Start request repeated                                                                                                                                                              too quickly.
Jun 24 17:55:09 KensBridge systemd[1]: lighttpd.service: Failed with result 'exi                                                                                                                                                             t-code'.
Jun 24 17:55:09 KensBridge systemd[1]: Failed to start Lighttpd Daemon.
[  OK  ] DietPi-Services | mpd                   active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:05 BST; 1 day 22h ago
[  OK  ] DietPi-Services | shairport-sync        active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:08 BST; 1 day 22h ago
[  OK  ] DietPi-Services | squeezelite           active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:08 BST; 1 day 22h ago
[  OK  ] DietPi-Services | gmrender              active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:08 BST; 1 day 22h ago
[  OK  ] DietPi-Services | networkaudiod         active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:09 BST; 1 day 22h ago
[  OK  ] DietPi-Services | roonbridge            active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:09 BST; 1 day 22h ago
[ INFO ] DietPi-Services | logitechmediaserver   inactive (dead)
[ INFO ] DietPi-Services | noip2                 inactive (dead)
[  OK  ] DietPi-Services | netdata               active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:11 BST; 1 day 22h ago
[  OK  ] DietPi-Services | cron                  active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:11 BST; 1 day 22h ago
[  OK  ] DietPi-Services | ssh                   active (running) since Fri 2022                                                                                                                                                             -06-24 17:55:00 BST; 1 day 22h ago
[ INFO ] DietPi-Services | dietpi-vpn            inactive (dead)
[ INFO ] DietPi-Services | dietpi-cloudshell     inactive (dead)
[  OK  ] DietPi-Services | dietpi-ramlog         active (exited) since Fri 2022-                                                                                                                                                             06-24 17:54:53 BST; 1 day 22h ago
[  OK  ] DietPi-Services | dietpi-preboot        active (exited) since Fri 2022-                                                                                                                                                             06-24 17:54:54 BST; 1 day 22h ago
[  OK  ] DietPi-Services | dietpi-postboot       active (exited) since Fri 2022-                                                                                                                                                             06-24 17:55:00 BST; 1 day 22h ago
[ INFO ] DietPi-Services | dietpi-wifi-monitor   inactive (dead)

KenMoreira avatar Jun 26 '22 15:06 KenMoreira

Ok web server is failing. Can you share as well

/usr/sbin/lighttpd -tt -f /etc/lighttpd/lighttpd.conf

Joulinar avatar Jun 26 '22 15:06 Joulinar

i just flashed using that IMG u provided. I am gonna login to SSH . putty then we can take it from there ?

KenMoreira avatar Jun 26 '22 15:06 KenMoreira

Jep, also try again to connect to the Allo GUI, which should work now OOTB.

MichaIng avatar Jun 26 '22 16:06 MichaIng

the GUI does work and it shows me the link to O!MPD in there

On Sun, Jun 26, 2022 at 10:01 AM MichaIng @.***> wrote:

Jep, also try again to connect to the Allo GUI, which should work now OOTB.

β€” Reply to this email directly, view it on GitHub https://github.com/MichaIng/DietPi/issues/5569#issuecomment-1166572911, or unsubscribe https://github.com/notifications/unsubscribe-auth/AUVMFC2ZAU6OAS7PPP5G333VRB5FLANCNFSM5ZJD5TOQ . You are receiving this because you authored the thread.Message ID: @.***>

KenMoreira avatar Jun 26 '22 16:06 KenMoreira

just runnig apt upgrade. so now that everything is AS it should be lol. Ill buy a larger thumb USD drive to host ALL my audio.

however now we can actually get to work

KenMoreira avatar Jun 26 '22 16:06 KenMoreira

Ok well now that i have all that setup . what do i do/ ( i will be heading out so ill follow up later)

KenMoreira avatar Jun 26 '22 16:06 KenMoreira

Attach the external drive via dietpi-drive_manager. I suggest to move DietPi userdata to this external drive as well, which can be done in dietpi-drive_manager as well. /mnt/dietpi_userdata/Music will then be pointing to the external drive. Then transfer music e.g. via Samba to this directory.

MichaIng avatar Jun 26 '22 16:06 MichaIng

I'll mark this as closed. Feel free to reopen if required.

MichaIng avatar Sep 17 '22 14:09 MichaIng