Share your knowledge at the LQ Wiki.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 12-30-2003, 06:22 PM   #1
LQ Newbie
Registered: Mar 2003
Posts: 8

Rep: Reputation: 0
playing mp3s in background or on boot

I need to be able to do the following:

Either have my box start playing a list of mp3s through mpg123 upon bootup, or be able to log in through ssh, start playing my mp3s, then be able to logout of ssh while still having the machine play the mp3s

Old 12-31-2003, 07:23 AM   #2
Registered: Mar 2003
Location: Harrisburg, PA
Distribution: Gentoo, Debian, Ubuntu, Red Hat/CentOS
Posts: 719

Rep: Reputation: 30
Well you can't log out of ssh and still have a connection to the remote box. If you want the boot option I would write a shell script that would be started at boot and would tell your mp3 player what to play.
Old 12-31-2003, 08:08 AM   #3
LQ Newbie
Registered: Sep 2003
Location: Belgium
Distribution: Gentoo
Posts: 14

Rep: Reputation: 0
you can use the program screen.
you login through ssh, start screen and run your command for playing the mp3's, then you do CTRL+A and press D. now you can logout while screen is still active and your mp3's are playing. I think this is what your are looking for ...
Old 12-31-2003, 08:19 AM   #4
Senior Member
Registered: Dec 2000
Location: Gothenburg, SWEDEN
Distribution: OpenSUSE 10.3
Posts: 1,028

Rep: Reputation: 45
Then command nohup will possibly work too.

nohup mpg123 -Z <files to play>
Old 12-31-2003, 08:52 AM   #5
Registered: Jan 2002
Location: Missoula. Montana, USA
Distribution: Slackware (various)
Posts: 457

Rep: Reputation: 41
I use the at command. Is the "program script" the same? Basically as follows:

$ at now

PlayMusic is just a bash script, which runs ogg's or mp3's accepts requests, etc. Mind you do not run with the verbose options because unless you redirect output to /dev/null, you'll get a huge mailfile at the end of it. I stop it by the way with "killall PlayMusic".


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
No Sound When Playing MP3s? JockVSJock Ubuntu 4 06-27-2005 01:17 PM
Playing mp3s dangerousdave Linux - Newbie 4 02-14-2005 02:00 PM
playing mp3s pcdebb Linux - Newbie 12 12-03-2003 10:36 AM
Annoying background noise when playing mp3s kadaver Slackware 2 11-20-2003 05:15 PM
playing mp3s over a network thinguy10 Linux - Networking 2 01-12-2002 07:49 PM > Forums > Linux Forums > Linux - Software

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

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