Tiny Core Linux

Tiny Core Extensions => TCE Talk => Topic started by: mb on December 18, 2011, 07:47:28 AM

Title: MPC (Music Player Controller, MPD)
Post by: mb on December 18, 2011, 07:47:28 AM
There is a tcz for MPD but not the command-line controller app MPC. I know there is ncmpcpp, but is there another command line MPD controller?

How would i go about installing MPC myself?.. i don't think it has any dependencies other than MPD, but i'm not familiar with the process.
Title: Re: MPC (Music Player Controller, MPD)
Post by: hiro on December 18, 2011, 08:28:49 AM
There is a mpc.tcz in the 3.x repo. Just use that.
Title: Re: MPC (Music Player Controller, MPD)
Post by: mb on December 18, 2011, 08:50:58 AM
The mpc.tz in the repos is not the MPC that has anything to do with MPD. It's some high precision calculation thing.

At least that is the case with 4.1. If the 3.x version is the MPC i'm looking for (i'd be suprised); then how do i use the 3.x repos.
Title: Re: MPC (Music Player Controller, MPD)
Post by: hiro on December 18, 2011, 08:56:49 AM
It's difficult to find from the tinycore main site but I recommend you make this bookmark: http://distro.ibiblio.org/tinycorelinux/3.x/tcz/index_nojs.html (http://distro.ibiblio.org/tinycorelinux/3.x/tcz/index_nojs.html)

Sorry, the 3.x and 4.x namespaces shouldn't collide in such a way. I hope someone else can find a solution for this.

Change the links to .info files or so to have a .tcz ending
Title: Re: MPC (Music Player Controller, MPD)
Post by: Rich on December 18, 2011, 09:00:20 AM
Hi mb
The mpc in 4.x was called libmpc in 3.x, looks like a typo. The mpc in 3.x is what you are looking for.
Title: Re: MPC (Music Player Controller, MPD)
Post by: mb on December 18, 2011, 10:33:00 AM
I saved the .tcz, md5 etc in /tmp with wget, then used 'tce-load -wi mpc.tcz' to install it, which it said was OK. The mpc command isn't found and all 'find -name mpc' finds are in /tmp/tcloop and /usr/local/tce.installed, both of which complain about permissions and don't run. So i'm guessing i did it wrong.

??

it would be really nice to have this mpc (and an mpd that doesn't require X and the kitchen sink) in the 4.x repos, too.
Title: Re: MPC (Music Player Controller, MPD)
Post by: hiro on December 18, 2011, 11:16:14 AM
It's tce-load -i ./mpc.tcz in the directory you downloaded it.
See the documentation on the main site, too.
There are some scripts lying around that try to make this process easier but I didn't ever try them.

I made sure there's at least one minimal mpd version available on 3.x but I had no time to look into 4.x. Also some people build packages automatically without any real testing and I can't keep up with their speed ;)

Would you please try the mpd-minimal extension on your system? Then we can give an OK to the core team to cp these two packages to the 4.x repo.
Title: Re: MPC (Music Player Controller, MPD)
Post by: mb on December 18, 2011, 11:27:28 AM
When i run 'tce-load -i ./mpc.tcz' i am told 'already installed'. Note i installed with -wi which should load on boot? (I have been using the documentation that i have found.)

I'm happy to test mpd-minimal; but how do i find what is included?? (i want support for most playback formats, just not anything that requires huge and mostly-unrelated dependencies)

Also, is there an easy way to uninstall the main mpd package and all its dependencies from command line??
Title: Re: MPC (Music Player Controller, MPD)
Post by: hiro on December 18, 2011, 11:55:22 AM
Sorry, this kind of information seems indeed to be lacking on the web site. I gathered most of my knowledge about using tc from commandline by reading the shell scripts out of which most core specific functionality consists.
I figured this to be faster than searching the web site and wikis/forums or endless googling.
What you want to look into is your onboot.lst file and the source of tce-load (run vi `which tce-load` on the command line).
You can simply remove the corresponding .tcz files from your tce dir from commandline. Afterwards reboot to have a clean state again.
Title: Re: MPC (Music Player Controller, MPD)
Post by: mb on December 18, 2011, 01:22:15 PM
is there a script available to remove the relevant dependancies using the .dep file??
Title: Re: MPC (Music Player Controller, MPD)
Post by: mb on December 18, 2011, 03:51:30 PM
still trying to get mpc to work.. i'm not certain what i did wrong in the first place.. but i deleted the .tcz etc, redownloaded and ran 'tce-load -i ./mpc.tcz' and got the error 'squashfs_rad_data failed to read block 0x0, unable to read squashfs_super_block, mounting /dev/loop111 on /tmp/tcloop/mpc failed: I/O error'
Title: Re: MPC (Music Player Controller, MPD)
Post by: gerald_clark on December 18, 2011, 04:11:08 PM
If you deleted the .tcz, you need to reboot before reloading.
Title: Re: MPC (Music Player Controller, MPD)
Post by: mb on December 18, 2011, 09:59:21 PM
i had restarted. But i reinstalled i figured that would be easier than uninstalling the gazillion mpd dependencies.

Anyway after a long struggle of figuring out WTH i was supposed to be doing, i can confirm mpd-minimal and mpc from the 3.x repos works fine (so far) with the 4.1 ! 8)
[[NB: i tested mpd with openssl-0.9.8, which is listed in the dependencies... not the 1.0 version which is in the 4.x repo. I'm sure it will work as a drop in, mostly a heads-up that the mpd-min dependencies need updating there. Also the MPD version is a little out of date (doesn't support auto-updating) so it'd be nice to have an update sometime]]

Could we please have the current 'mpc' renamed back to mpclib, a lot of potential for confusion there.
Title: Re: MPC (Music Player Controller, MPD)
Post by: Juanito on December 18, 2011, 10:16:40 PM
Could we please have the current 'mpc' renamed back to mpclib, a lot of potential for confusion there.

I think most of the extensions are named after the source code name, which is mpc (rather than libmpc), maybe we could rename the music player to MPC or similar?
Title: Re: MPC (Music Player Controller, MPD)
Post by: Rich on December 19, 2011, 12:56:09 AM
Hi Juanito
The mpc.tcz that is currently in the 4.x repository only contains 3 libmpc.so files. The description
reads  complex floating-point library. This is just an updated version of libmpc.tcz from the 3.x
repository that appears to have been accidentally misnamed while being moved to 4.x.

          [EDIT]: Just noticed the Change-log says it was renamed.
Title: Re: MPC (Music Player Controller, MPD)
Post by: maro on December 19, 2011, 12:57:42 AM
Can we please avoid a situation where two extension names exists that only differ in their mix of upper and lower case (e.g. 'MPC.tcz' and 'mpc.tcz').

I for one have my private extension mirror on a NTFS partition, which is obviously not case-sensitive and this would open the door for all sorts of "fun & games". Yeah that's a lame excuse, but I'm pretty sure such a "clash of names" would fool a whole range of users.
Title: Re: MPC (Music Player Controller, MPD)
Post by: Rich on December 19, 2011, 01:28:52 AM
I'm inclined to agree. I can already see some users using wget and the wrong case for extensions
that differ only in case and not getting what they expected.
Title: Re: MPC (Music Player Controller, MPD)
Post by: hiro on December 19, 2011, 07:04:22 AM
The music player client extension was there first, so it should get preference.
Title: Re: MPC (Music Player Controller, MPD)
Post by: PET-240 on October 09, 2013, 07:21:00 AM
Just wondering where this is at currently?
New to figuring out the loading etc of mpd and what not, would dearly love to use TC and mpd for a music player.
Can anyone advise the process or is interested in development kudos?

Thanks,

Drew
Title: Re: MPC (Music Player Controller, MPD)
Post by: bmarkus on October 09, 2013, 07:25:17 AM
mpc is in the repository as well as cmus
Title: Re: MPC (Music Player Controller, MPD)
Post by: jls on October 09, 2013, 07:45:39 AM
in the 5.x repo mpc is complex floating-point library, not music player controller
Title: Re: MPC (Music Player Controller, MPD)
Post by: bmarkus on October 09, 2013, 07:54:42 AM
Nobody referred to the version
Title: Re: MPC (Music Player Controller, MPD)
Post by: bmarkus on October 09, 2013, 08:09:48 AM
It is a very bad idea to have two extension the same name differing only in case. Also it is not about which was first added to the repo; on this basis you can't rename a well know application just because one added it later. mpc is one of the crucial applications and part of the toolchain, math and scientific libs. You can not rename it.

First it is not clear which music player you are talking about. If you provide the reference to the home site, we can discuss it. For example MOC is well known console player, see http://moc.daper.net/

Unfortunatels their last and first beta is one year old, and both this and previous version is buggy and no progerss seen.
Title: Re: MPC (Music Player Controller, MPD)
Post by: Peterek on November 06, 2013, 08:05:50 AM

mpd = http://www.musicpd.org/ (http://www.musicpd.org/)                         Music Player Daemon
mpc = http://www.musicpd.org/clients/mpc/ (http://www.musicpd.org/clients/mpc/)       Music Player Client

but in repo
mpc = complex floating-point library

So two different software but the same name.
Title: Re: MPC (Music Player Controller, MPD)
Post by: Juanito on November 06, 2013, 08:11:08 AM
Not exactly:

mpc = complex floating-point library

MPC = Music Player Client

Since linux filesystems will differentiate between the two, the name is not the same.
Title: Re: MPC (Music Player Controller, MPD)
Post by: hiro on November 06, 2013, 12:29:26 PM
Can we please avoid a situation where two extension names exists that only differ in their mix of upper and lower case (e.g. 'MPC.tcz' and 'mpc.tcz').

I for one have my private extension mirror on a NTFS partition, which is obviously not case-sensitive and this would open the door for all sorts of "fun & games". Yeah that's a lame excuse, but I'm pretty sure such a "clash of names" would fool a whole range of users.

And to add up on that point:
Could we please, in case of doubt, just leave everything like it is instead of changing the naming of two extensions to each other and back?
Title: Re: MPC (Music Player Controller, MPD)
Post by: jls on November 07, 2013, 11:32:01 AM
Hi
but if u use a non linux file system mpd = MPD