LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-23-2007, 08:07 AM   #1
metalx1000
Member
 
Registered: Jun 2006
Distribution: Debian
Posts: 112

Rep: Reputation: 16
Music while booting


Hello,

This may seem like an odd question but, I was wondering is there maybe away to run a command line program before Linux is done booting. Basicly I want to have my computer play a random song from my mp3 folder while the computer is booting. The more I think about it the less it seems like it is possiable. Having to load sound drivers and such. But this computer takes a minute to boot and I'd like to have music play faster then that.

It's just a thought.

I'm running Mandriva 2007

Thanks in advance for not making in fun of me if this is really a stupid Idea.
 
Old 03-23-2007, 06:10 PM   #2
SciYro
Senior Member
 
Registered: Oct 2003
Location: hopefully not here
Distribution: Gentoo
Posts: 2,038

Rep: Reputation: 51
Wow, that is a LONG time. No, while Linux is booting its impossible to do as you want, well, at least not likely.

Once Linux is done boot, its easy. Seeing how it should take about 10 seconds for Linux to boot, you'll just have to suck it up until its done. Once its done, it passes control off to /bin/init, which will continue the boot process, as in, load up the operating system. Init usually uses boot scripts, and most distros make it easy to add new boot scripts to allow you to do as you want. Still, some distros use a boot procedure in which it randomly starts scripts, in which case, you'll need a lot of time on your hands to do as you want.

Either way, why bother? Plus, as you mentioned, your drivers are not even included in your Linux, meaning you'll have to wait for init to load them, setup the sound system, and even then, some inits are not parallel, so you'll have to wait for the song to finish before init can actually move on, so all you end up doing is increasing boot time, and still no sound while its doing other things.

Really, its not worth it unless your a distribution, in which case, you can maintain it. The main way of doing what you want will probably include modifying your distro in ways that its not meant to be done, requiring that you essentially fork off the distro just be able to maintain things, lots of work for such a minor problem. Do what the rest of us do, go make a sandwich or stand up and do some exercises.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Booting error in puppy linux while booting it from fedora why ? senthilarumugam LinuxQuestions.org Member Intro 1 02-22-2007 02:43 PM
booting Linux from an image that lost booting capabilities tgr Linux - Software 1 03-05-2006 11:28 AM
If i'm dual booting, can I access my music files from my xp harddrive? mr_coffee Linux - Newbie 6 01-09-2006 12:12 PM
Mood Music, the quest for a music library app GuidoS Linux - Software 6 08-18-2004 01:12 PM
Are you dual booting and Windows stopped working (booting) then here's the answer: rberry88 Linux - General 1 02-12-2004 09:05 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 01:11 PM.

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
Open Source Consulting | Domain Registration