LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (http://www.linuxquestions.org/questions/slackware-14/)
-   -   how to listen to music background (http://www.linuxquestions.org/questions/slackware-14/how-to-listen-to-music-background-4175425502/)

hgdcjq 09-03-2012 09:00 PM

how to listen to music background
 
hi guys,I want to know you guys how to listen to music background for I need to do other work at the meantime under console. And any software under slackware let
me listen to music online?

escaflown 09-03-2012 09:10 PM

Quote:

Originally Posted by hgdcjq (Post 4771910)
hi guys,I want to know you guys how to listen to music background for I need to do other work at the meantime under console. And any software under slackware let
me listen to music online?

I use "soma" in "yakuake"

NeoMetal 09-03-2012 10:03 PM

If you have to use the same terminal, I'd probably do something like 'nohup mplayer -shuffle ~/Music/*/* &' Depending on where you store your music and how its organized, thought it might be hard to get back interactive control.

shadowsnipes 09-03-2012 10:23 PM

I use three main pieces of software:

1) If you are a Pandora user, then check out pianobar - cli to Pandora
2) herrie is a great cli (ncurses) music player
3) mpd is a music server - it can be running as soon as your computer is booted up
The clients I use are mpc (cli client that I use to connect my keyboard shortcuts to), ncmpc (ncurses cli), and sonata (python GUI for X)

If you want to check any of these out I recommend you build them using the build scripts on slackbuilds.org (SBo).

If you are using the console and not X, I recommend using a screen session. Your programs (music) can keep running after you detach the screen session.

hgdcjq 09-03-2012 11:31 PM

Quote:

Originally Posted by shadowsnipes (Post 4771987)
I use three main pieces of software:

1) If you are a Pandora user, then check out pianobar - cli to Pandora
2) herrie is a great cli (ncurses) music player
3) mpd is a music server - it can be running as soon as your computer is booted up
The clients I use are mpc (cli client that I use to connect my keyboard shortcuts to), ncmpc (ncurses cli), and sonata (python GUI for X)

If you want to check any of these out I recommend you build them using the build scripts on slackbuilds.org (SBo).

If you are using the console and not X, I recommend using a screen session. Your programs (music) can keep running after you detach the screen session.

Do you mean I need to install both mpd and mpc on my computer?

Hannes Worst 09-03-2012 11:57 PM

I often use moc-player (command mocp) to listen to music. It's for the console and it keeps on playing until you give the command to stop (mocp -s). It's part of Slackware 13.37.

David the H. 09-04-2012 02:48 AM

A daemon-based player is probably the most flexible option, but you could also just ctrl+n to another virtual terminal, log in, and run whichever console player you want there.

Or use screen or a similar terminal multiplexer.

Edit:
Quote:

Do you mean I need to install both mpd and mpc on my computer?

mpd is a daemon; it runs as a background process. You connect to it with a client program in order to control it. mpc is one such client. There are others.

GazL 09-04-2012 04:11 AM

Code:

ogg123 -q -@ <(ls -d /local/music/*/* | shuf) &
... plays every album in my collection in random order (random album order, not shuffled tracks)

If your music is in something other than flac or ogg, you can do something very similar with mplayer. (edit: and I just noticed that NeoMetal has already shown an mplayer example)

Having said that, mpd is really the best solution for this sort of stuff if you're prepared to put in the work to install and configure it.

BlackRider 09-04-2012 05:32 AM

I use mostly MOC (music on console). I think it has already been recommended :-)

I have set a keyboard shortcut that launches a terminal with MOC's UI working. Then, selecting music and playing it takes one or two keystrokes. The UI can then be closed pressing "q" and the server just keeps playing until I launch the UI again and stop the music pressing "Q".

MOC has some memory for reproduction lists and is very fast to operate. When I show mi computer to windozers, they always comment on how fast I can turn the music I want On and Off.

jjthomas 09-04-2012 05:58 AM

XMMS in my corner. I also like to listen to music online. I'll download the .pls file and open it with XMMS.

-JJ

w1k0 09-04-2012 10:04 AM

I use MOC too -- it works nice with ReMoot (command wrapper for multimedia applications).

If you prefer server-client combination I recommend MPD or XMMS2. Below are the tips for the newcomers...

***

To use MPD install: mpd (Music Player Daemon), mpc (MPD client), and ncmpc (MPD curses client).

After the installation of MPD edit /etc/mpd.conf file and uncomment required options.

Before running MPD for the first time make the following directory:

mkdir -p ~/.mpd/playlists

Otherwise MPD displays the message:

Code:

log: problem opening log file "/home/johndoe/.mpd/log" (config line 37) for writing
Now you can start MPD with the following command:

mpd

The message:

Code:

Failed to load database: Failed to open database file "/home/johndoe/.mpd/database": No such file or directory
is harmless.

In order to scan the files from the music directory run the command such as:

mpc update /home/johndoe/music

To use MDP in the interactive mode run the command:

ncmpc

***

If you are new to XMMS2 after the installation of the program run XMMS2 daemon launcher:

xmms2-launcher

In order to add media to a playlist use the following command:

xmms2 add /home/johndoe/music/

(That assumes your user name is ``johndoe'' and your music collection is in /home/johndoe/music/ directory.)

It is possible to use XMMS2 from the command line but the easier method is to use it with some client. You will find the information about the clients for XMMS2 here: http://xmms2.org/wiki/XMMS2_Clients. Apart of the graphical clients such as Esperanza for QT4 and gxmms2 for GTK there are a few nice console clients.

I tested two console clients: ccx2 (see: http://palbo.github.com/ccx2/) and kuechenstation (see: http://kuechenstation.sourceforge.net/). The latter one requires figlet package (see: http://www.figlet.org/).

hgdcjq 09-04-2012 08:22 PM

Thanks, I have used a screen and I find it fine. And I prefer to use mplayer.Anyway,thanks for your help.


All times are GMT -5. The time now is 04:53 PM.