Dead silent dedicated Linux music server for USB DAC's.

0 Members and 1 Guest are viewing this topic. Read 267972 times.

TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #680 on: 15 Jul 2011, 02:11 am »
Are you SURE there is a carriage return at the very end of that last line?

100% sure!

TomS

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #681 on: 15 Jul 2011, 02:25 am »
More good news.  I tried this line in my fstab file and it works:

//192.168.0.50/Media/Music /mnt/tunes cifs defaults 0 0

Thanks Tom!

I can now see my music under /mnt/tunes on the Alix.  :thumb:

So now I just edit mpd.conf and I'm done?
I'm confused. Did you do this and have success from a mount command on the command line or did you put it in fstab? If the latter the only way to get it to work is boot it or mount -a which reads the fstab file.

TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #682 on: 15 Jul 2011, 02:32 am »
I'm confused. Did you do this and have success from a mount command on the command line or did you put it in fstab? If the latter the only way to get it to work is boot it or mount -a which reads the fstab file.

I add the line to the fstab file and save it.  I go to Putty and issue the command "mount -a", I enter the password, and it works.  Then I issue the command "remountro" and exit Putty.  Then I reboot the Alix and it hangs. 

I then have to use Ubuntu on my main PC to edit fstab by removing the line I added.  Then the Alix boots and I can see it again.


TomS

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #683 on: 15 Jul 2011, 03:13 am »
I add the line to the fstab file and save it.  I go to Putty and issue the command "mount -a", I enter the password, and it works.  Then I issue the command "remountro" and exit Putty.  Then I reboot the Alix and it hangs. 

I then have to use Ubuntu on my main PC to edit fstab by removing the line I added.  Then the Alix boots and I can see it again.
I'm guessing it's hanging waiting for a password. You might research the mount command on how to pass the user/password to it, try it on command line first to see if it gets past the prompt.

TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #684 on: 15 Jul 2011, 03:20 am »
I'm guessing it's hanging waiting for a password. You might research the mount command on how to pass the user/password to it, try it on command line first to see if it gets past the prompt.

That makes sense because I need to enter a password when using the mount -a command.  I know what I'm going to try in the morning.


TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #685 on: 15 Jul 2011, 01:40 pm »
Ok, more baby steps...

I seem to have everything working.  The Alix can now be rebooted and it sees my Windows share under /mnt/tunes.

So I edited my mpd.conf file to this:

music_directory     "/mnt/tunes"
playlist_directory     "/mnt/tunes/mpd/playlists"
db_file     "/mnt/tunes/mpd/tag_cache"
log_file     "/mnt/tunes/mpd/mpd.log"
pid_file     "/mnt/tunes/mpd/pid"
state_file     "/mnt/tunes/mpd/state"
user     "mpduser"
bind_to_address     "any"

When I try to connect to MPD using GMPC, I get "error code 13:problems connecting to "192.168.0.100" on port 6600"

Everything seems correct, so I don't understand what's wrong.  Hopefully this is the last piece of the puzzle!

ted_b

  • Volunteer
  • Posts: 6345
  • "we're all bozos on this bus" F.T.
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #686 on: 15 Jul 2011, 01:54 pm »
Terry,
I never edited any of the state/log/db/pid lines, FYI.  And what does your audio section look like?  Is your DAC defined in mpd.config (i.e hw 0,0, etc).  What does "aplay -l" give you in putty (should show your audio devices)?

TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #687 on: 15 Jul 2011, 01:58 pm »
Terry,
I never edited any of the state/log/db/pid lines, FYI.  And what does your audio section look like?  Is your DAC defined in mpd.config (i.e hw 0,0, etc).  What does "aplay -l" give you in putty (should show your audio devices)?

Should I have my DAC connected to the Alix for this?

ted_b

  • Volunteer
  • Posts: 6345
  • "we're all bozos on this bus" F.T.
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #688 on: 15 Jul 2011, 02:00 pm »
Yep

TomS

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #689 on: 15 Jul 2011, 02:10 pm »
Check the line with "bind_to_address". There may be one commented out - # starts the line if it is a comment

Should be this:

bind_to_address "any"

TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #690 on: 15 Jul 2011, 02:15 pm »
Here is what my audio section looks like:

audio_output {
   type      "alsa"
   name      "My ALSA Device"
   device      "hw:0,0"   # optional
   format      "44100:16:2"   # optional
   mixer_device   "default"   # optional
   mixer_control   "PCM"      # optional
   mixer_index   "0"      # optional

The command aplay -l give this:

"aplay: device_list:235: no soundcards found..."

Tom:

I read that the "bind_to_address" should be set to "any", is that not correct?

TomS

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #691 on: 15 Jul 2011, 02:20 pm »
Yes, my bad. I corrected my post. I'm not at home today so don't have access to my setup.

You would need a usb device hooked up for aplay to see.

TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #692 on: 15 Jul 2011, 02:22 pm »
Yes, my bad. I corrected my post. I'm not at home today so don't have access to my setup.

You would need a usb device hooked up for aplay to see.

Is it possible that when I added the user "mpduser" to my Alix, I don't have the permissions right or something?

TomS

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #693 on: 15 Jul 2011, 02:28 pm »
Is Alix on 192.168.0.100 or 50?

TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #694 on: 15 Jul 2011, 02:36 pm »
Is Alix on 192.168.0.100 or 50?

The Alix is: 192.168.0.100  My Windows server is: 192.168.0.50

Ok, 1 step closer.

I edited my mpd.conf file to have "root" as the user and it worked.  So I must not have the right permissions on "mpduser".  How do I fix that?

So GMPC is working, sort of.  I won't get into some problem I see yet, but I have a track ready to go, and when I click play, I get this message briefly on GMPC: "MPD reported the following error: "problems opening audio device"

I do not know if my USB DAC is compatible or not.  I found 1 post where a guy was using my DAC (Music Hall 25.2) with a Vortex Box. 

TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #695 on: 15 Jul 2011, 02:45 pm »
 :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol: :lol:

Sorry guys, I forgot to plug the USB cable into the Alix.  I have now so that should help, no?

So now I'm the newest Alix user! :thumb:

Thank you guys so much for all of the help.  In the end, this was so easy it makes me sad that it took days to do something I could now do in 5 minutes!

So my only remaining problem is the "mpduser" on the Alix must not have the right permissions.  I don't understand this stuff at all, so what do I do to fix that?


jrebman

  • Full Member
  • Posts: 2778
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #696 on: 15 Jul 2011, 03:29 pm »
Terry,

That rocks!  Congratulations!

-- Jim

nyc_paramedic

  • Full Member
  • Posts: 456
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #697 on: 15 Jul 2011, 03:34 pm »
Is it possible that when I added the user "mpduser" to my Alix, I don't have the permissions right or something?

As root, you need to add mpduser to the audio group: adduser mpduser audio

TJHUB

Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #698 on: 15 Jul 2011, 04:46 pm »
Terry,

That rocks!  Congratulations!

-- Jim

Thanks Jim.  It feels great that I got through this and it works!  :D



As root, you need to add mpduser to the audio group: adduser mpduser audio

I added mpduser to the audio group and that part worked, but GMPC still doesn't work unless I use "root". 


nyc_paramedic

  • Full Member
  • Posts: 456
Re: Dead silent dedicated Linux music server for USB DAC's.
« Reply #699 on: 15 Jul 2011, 10:22 pm »
Thanks Jim.  It feels great that I got through this and it works!  :D



I added mpduser to the audio group and that part worked, but GMPC still doesn't work unless I use "root".

From which machine are your trying to launch GMPC?