SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
To echo some of the replies in this thread, I play music on my text terminals as well, so I have used some of the solutions already listed.
mpg123 for mp3 files, although I also use mplayer. mpg123 took some time to figure out that infinite loop is --loop -1 and not --loop 0 like in mplayer. Of course, ogg does it completely differently with -r. And then, of course mpg123 and mplayer end by hitting "q", but for ogg123 you need Ctrl-C.
Except for the occasional mp3 or ogg, my library is in flac, which ogg123 plays perfectly fine. I don't remember my objection to flac123, but it may have been that it didn't display file-tags. I have my collection as albums (mostly classical and movie scores with the occasional gothic rock thrown in) and so I use the following batch file to play random albums (an album being defined as music files in the same folder). I navigate to the top folder in a tree (for example ost or bach) and run:
Code:
#!/bin/bash
while :
do
ogg123 $(ls -1 | shuf -n 1)
sleep 2
done
I don't know if this actually helps anyone, but if it does, that's a bonus. I tried using a musicplayer like Deadbeef, but it just seemed like overkill. If my batch file ever stops working, I guess I would use MOC, as I tried it and it seemed ok, but I didn't find a way to play random albums on it. Granted I didn't look very hard, but there you have it.
(Edit: fixed the code box)
Last edited by reclusivewriter; 03-15-2021 at 03:49 PM.
You know, I'd heard that name mentioned before, but because Soma was a highly addictive drug in a SF story I'd read ages ago, I ignored it.
Today, after reading this thread, I did some searching and that was a voyage of discovery, indeed. I found a cool-looking and cool website, which had other links of interest in addition to soma. Then, before going through the whole download-build-compile-etc., loop, I, on a lark typed "soma" in the console and ... I already have it? Or it's part of slackware?
I picked a station and ... wow, it works without me even having to select a sound driver. Very cool!
Today, after reading this thread, I did some searching and that was a voyage of discovery, indeed. I found a cool-looking and cool website, which had other links of interest in addition to soma. Then, before going through the whole download-build-compile-etc., loop, I, on a lark typed "soma" in the console and ... I already have it? Or it's part of slackware?
I picked a station and ... wow, it works without me even having to select a sound driver. Very cool!
I feel like I'm the last to know about this?
Yes, soma has been a part of Slackware for a long time, and it is exclusive to Slackware. It is my go-to for music listening in Slackware. I'm glad you discovered it and like it! That's the beauty of Slackware, there's always something more to discover.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.