LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-16-2013, 08:47 AM   #1
Vijay karthik
LQ Newbie
 
Registered: Nov 2013
Posts: 7

Rep: Reputation: Disabled
Problems in running an mp3 file in startup of linux


Hello Sir/Madam,
Actually, I am working with Linux version 2.6.29-10.. I have to run an mp3 file in the startup of linux... But I dont know how to do it.... I entered into sudo mode.. The following were the results shown...

cd etc/rc.d/rc.local

touch /var/lock/subsys/local

I dont know how to write an mp3 file into this editor window... Its very urgent....

Help is appreciated.....
 
Old 11-16-2013, 06:56 PM   #2
frankbell
LQ Guru
 
Registered: Jan 2006
Location: Virginia, USA
Distribution: Slackware, Debian, Mint, OpenBSD
Posts: 11,342
Blog Entries: 12

Rep: Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730Reputation: 2730
I've never done anything like that, but I guess you could try using mplayer with something like this, since mplayer can play audio (or video) from the command line:

mplayer [path/to/audio]

It might be best to put it in a script which could then be called by rc.local.

If you are using a distro that plays some sort of start-up sound, there might be a conflict that needs to be resolved.

Also, if your distro does have a startup sound, you could see whether you could replace that sound with your mp3.

I have no idea whether either of these would actually work and no desire to test them on my own systems.

Here's a thread from the Ubuntu forums that you might find useful: http://askubuntu.com/questions/9853/...run-on-startup

Last edited by frankbell; 11-16-2013 at 07:01 PM.
 
1 members found this post helpful.
Old 11-16-2013, 07:26 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
Quote:
I am working with Linux version 2.6.29-10.
there is no operating system called "Linux version 2.6.29-10"

now there are some OLD operating systems using that kernel
the 2.6.29-10 kernel was used in ,the very old and very DEAD fedora 10 .

even RHEL/Centos6.4 is using the 2.6.32 kernel

and RHEL/Centos5.9 is using the 2.6.18 kernel


if this is a redhat install post the output of this
Code:
cat /etc/redhat-release
------- or this -------
cat /etc/*release
 
Old 11-18-2013, 08:43 AM   #4
Vijay karthik
LQ Newbie
 
Registered: Nov 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you frank for your kind reply but what am i saying is that i have to provide some 20 audio files so that i have to access the file and and every time i work on that processor.....
Can u please help with that...
Moreover i am not familiar with shell script....
can u please help me out.....
 
Old 11-18-2013, 09:30 AM   #5
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,101
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
Hello. Can also try converting it to a free format like .ogg then use:
Code:
play /Music/....ogg
(back up all important data) plus can modify your Linux from another 'live' check the first link in my signature. For shell Rute is a start as well as searching and trying basic commands and bash scripts+++ Have Fun.
 
Old 11-18-2013, 10:00 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,870

Rep: Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249Reputation: 1249
You need to post information on which of the 700+ distributions of Linux you are using as the methodology varies. If you want to play a music file on start or access a music directory, you should be able to do that with a one line script. If you would provide this information and more specifics on exactly what you want you will probably get an answer.
 
Old 11-18-2013, 10:32 AM   #7
Vijay karthik
LQ Newbie
 
Registered: Nov 2013
Posts: 7

Original Poster
Rep: Reputation: Disabled
Thank you yancek for ur information ... What version i am currently working over is that I am using fedora and I am not specific about the version number.... probably it should be 11 or 10... I am using linux version 2.6.29-10.. what i really need is that i have to run a audio file in my startup menu of my fedora version...

I entered into bootloader for accessing the startup menu.. I need a shell script for accessing it...

Help is appreciated...
 
Old 11-18-2013, 10:36 AM   #8
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US, Earth, end border$! ◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that works well on my cheapest, has been KDE or CLI but open... http://goo.gl/NqgqJx &c ;-)
Posts: 3,101
Blog Entries: 2

Rep: Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840Reputation: 840
@yancek:+: It's funny reading that I was just pondering how many Linuces there could be (and of course know impossible to search every geeks storage ) Distrowatch is at 765ish and Wikipedia has this: http://en.wikipedia.org/wiki/List_of..._distributions . . .

Edit: @Vijay karthik: not on the net we hope...

Last edited by jamison20000e; 08-18-2014 at 01:52 PM.
 
Old 11-18-2013, 11:06 AM   #9
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 16,818

Rep: Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408Reputation: 2408
fedora 10 is 9 and soon to be 10 VERSIONS and 5 YEARS out of date
the repos that have the codecs to play mp3's no longer exist ( mostly)


also fedora NEVER will ship with NON FREE software
mp3 is so patent encumbered that it is illegal to redistribute it with the operating system
you have to install the music codecs from third party repos
and for fedora 10
those repos are mostly no more

you can try the ancient install instructions for 10
http://www.mjmwired.net/resources/mj...a-f10.html#mp3
but they will not work

you will need to use rpmfusion rep[o
http://www.mjmwired.net/resources/mj...a-f10.html#yum

you will need to manually edit the ancent fedora 10 repo files to point to the software repos from 2008
http://download1.rpmfusion.org/free/...10/Everything/

Last edited by John VV; 11-18-2013 at 11:11 AM.
 
  


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
Running Bash File On Startup Cobozco Linux - Newbie 4 06-13-2013 04:53 PM
Problems in running a script as a daemon at startup fahad26 Programming 5 03-07-2012 08:24 AM
websphere causing problems on running startup.sh ozone1410 Linux - Software 0 06-12-2011 01:26 PM
Problems with running a c++ file in linux elenax Linux - Newbie 4 03-13-2011 09:38 AM
Running an executable file at startup in Fedora 9 vinayblore Linux - Newbie 3 04-03-2009 06:20 AM


All times are GMT -5. The time now is 04:42 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration