LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 09-03-2012, 09:00 PM   #1
hgdcjq
LQ Newbie
 
Registered: Aug 2012
Posts: 29

Rep: Reputation: Disabled
Smile 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?
 
Old 09-03-2012, 09:10 PM   #2
escaflown
Member
 
Registered: Apr 2009
Location: Canada
Distribution: Slackware
Posts: 237

Rep: Reputation: 30
Quote:
Originally Posted by hgdcjq View Post
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"
 
Old 09-03-2012, 10:03 PM   #3
NeoMetal
Member
 
Registered: Aug 2004
Location: MD
Distribution: Slackware
Posts: 106

Rep: Reputation: 19
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.
 
Old 09-03-2012, 10:23 PM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,441

Rep: Reputation: 70
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.
 
Old 09-03-2012, 11:31 PM   #5
hgdcjq
LQ Newbie
 
Registered: Aug 2012
Posts: 29

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by shadowsnipes View Post
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?
 
Old 09-03-2012, 11:57 PM   #6
Hannes Worst
Member
 
Registered: Jul 2008
Location: Tilburg, The Netherlands
Distribution: Antix, Slackware, NetBSD
Posts: 90

Rep: Reputation: 37
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.

Last edited by Hannes Worst; 09-03-2012 at 11:59 PM.
 
1 members found this post helpful.
Old 09-04-2012, 02:48 AM   #7
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Debian sid + kde 3.5 & 4.4
Posts: 6,823

Rep: Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949Reputation: 1949
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.

Last edited by David the H.; 09-04-2012 at 02:51 AM.
 
1 members found this post helpful.
Old 09-04-2012, 04:11 AM   #8
GazL
Senior Member
 
Registered: May 2008
Posts: 3,440

Rep: Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960Reputation: 960
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.

Last edited by GazL; 09-04-2012 at 04:32 AM.
 
1 members found this post helpful.
Old 09-04-2012, 05:32 AM   #9
BlackRider
Member
 
Registered: Aug 2011
Distribution: Slackware
Posts: 261

Rep: Reputation: 82
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.
 
1 members found this post helpful.
Old 09-04-2012, 05:58 AM   #10
jjthomas
Member
 
Registered: Jan 2004
Location: Tacoma, WA
Distribution: Slackware 14
Posts: 242
Blog Entries: 2

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

-JJ
 
Old 09-04-2012, 10:04 AM   #11
w1k0
Senior Member
 
Registered: May 2008
Location: Poland
Distribution: Slackware, Mint
Posts: 1,240

Rep: Reputation: 196Reputation: 196
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/).
 
1 members found this post helpful.
Old 09-04-2012, 08:22 PM   #12
hgdcjq
LQ Newbie
 
Registered: Aug 2012
Posts: 29

Original Poster
Rep: Reputation: Disabled
Thanks, I have used a screen and I find it fine. And I prefer to use mplayer.Anyway,thanks for your help.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: Listen to your music anywhere with Subsonic LXer Syndicated Linux News 0 11-05-2008 05:20 PM
how to listen to music through ssh dont_stop_me Linux - Networking 4 11-30-2006 07:00 AM
Listen to music on my laptop from my server... pAn1k Linux - Networking 4 12-31-2004 02:03 PM
listen live music.. mahamkali Linux - General 1 12-06-2003 02:34 PM
i just want to listen to music airWave Slackware 9 04-29-2003 12:05 AM


All times are GMT -5. The time now is 03:57 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration