LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop
User Name
Password
Linux - Desktop This forum is for the discussion of all Linux Software used in a desktop context.

Notices


Reply
  Search this Thread
Old 02-02-2009, 01:02 AM   #1
El1iP3S01D
LQ Newbie
 
Registered: Apr 2008
Location: Bklyn
Distribution: Debian Etch amd64
Posts: 21

Rep: Reputation: 15
Fellow Linux users, How do i start my favorite song when i boot up my Debian PC?


How do i configure my favorite song to start when i boot my Debian PC?
 
Old 02-02-2009, 03:10 AM   #2
David the H.
Bash Guru
 
Registered: Jun 2004
Location: Osaka, Japan
Distribution: Arch + Xfce
Posts: 6,852

Rep: Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037Reputation: 2037
The answer depends a bit on what desktop you're running, because they have different startup procedures. KDE has a "system notifications" section in its control center that can be configured to run sounds on events, for example.

But in general, all you really have to do is set up a command and have it run on login. The problem is that there are many different ways to do this. I would personally just create a shortcut or script with the command "play mysongfile.ogg" ("play" is provided by the sox program, you can use other commands like mplayer instead) in your DE's startup/autorun folder or in some startup file.
 
Old 02-02-2009, 11:00 AM   #3
El1iP3S01D
LQ Newbie
 
Registered: Apr 2008
Location: Bklyn
Distribution: Debian Etch amd64
Posts: 21

Original Poster
Rep: Reputation: 15
David the H.

I'm using Debian Lenny amd64, and i have Rhythmbox and Totem player...So, how do i implement what u suggested?
 
Old 02-03-2009, 04:58 PM   #4
stratotak
Member
 
Registered: Sep 2005
Distribution: Today Debian . Tomorrow ..??
Posts: 386

Rep: Reputation: 39
You could just go into sound events..and choose the song as log on sound..
 
Old 02-03-2009, 06:32 PM   #5
Quakeboy02
Senior Member
 
Registered: Nov 2006
Distribution: Debian Linux 11 (Bullseye)
Posts: 3,407

Rep: Reputation: 141Reputation: 141
You could probably add a script to /etc/rc2.d. There's a README file so follow the naming convention to get your script to run. You will probably need a high number like S99xxxx so that it tries to run late in the boot cycle. Your script will probably look something like this:

/etc/rc2.d/S99bootsong
Code:
#!/bin/sh
/usr/bin/rhythmbox "/data/My Music/Nickel Creek/This Side/01 - Smoothie Song.ogg"
 
Old 02-04-2009, 02:56 AM   #6
blackhole54
Senior Member
 
Registered: Mar 2006
Posts: 1,896

Rep: Reputation: 61
Quote:
Originally Posted by Quakeboy02 View Post
Your script will probably look something like this:

/etc/rc2.d/S99bootsong
Code:
#!/bin/sh
/usr/bin/rhythmbox "/data/My Music/Nickel Creek/This Side/01 - Smoothie Song.ogg"
You could just add the second line to /etc/rc.local and dispense with creating an extra script. /etc/rc.local is normally the last script to execute on a normal boot. (It doesn't run at all when you boot into single user mode, aka recovery mode.) If you decide to add this to /etc/rc.local, make sure you add it before the exit 0 zero statement! (Yes, I made that blunder once.)

Note that whether as a separate script or as part of /etc/rc.local, this will run when the system boots while some of the earlier suggestions run when you log in.

Last edited by blackhole54; 02-04-2009 at 02:59 AM. Reason: that line -> the second line
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Hello Fellow Linux Users adantona LinuxQuestions.org Member Intro 3 12-30-2008 06:34 PM
Debian users: what's your favorite IRC client? bezdomny Linux - Software 2 08-06-2008 06:45 PM
Hello Fellow Linux Users! linnerd40 LinuxQuestions.org Member Intro 1 10-05-2006 03:30 PM
cupsd and regular users/start at boot? Slovak Slackware 1 12-07-2004 11:08 AM
hi to fellow Gnu/Linux users ! explosive LinuxQuestions.org Member Intro 2 07-17-2004 02:39 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Desktop

All times are GMT -5. The time now is 02:59 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
Open Source Consulting | Domain Registration