Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Fri 14 Dec 2018, 06:44
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
How to keep the startup sound through upgrades
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
GrumpyWolfe


Joined: 26 Nov 2006
Posts: 496

PostPosted: Tue 27 May 2008, 20:07    Post subject:  How to keep the startup sound through upgrades
Subject description: alternative meathod using startup folder
 

Hi all

When I was testing out the puppylinux 4 from alpha to final each time that I upgraded I would lose me startup sound. I think that some may like what I have do to my system to keep my startup sound between upgrades.

In the Startup director you will create a file called startupsound now you can name it anything you want I just like to have names that let me know what it is for. Then open Geany text editor and put this simple code in there

Code:

#!/bin/sh
aplay /root/my-documents/HOWL.WAV &


save the file and then open up the Startup folder and right click on the file at the bottom of the menu you will see permissions, left click on permissions when open click on the yes button this will set permissions so it will run at start up. Now your sounds will be there with each upgrade accept when you wipe the drive.

_________________
Live and Let Live

Acer Aspire One N450 1.66GHz

MyWolfe at Sourceforge
MyWolfe Blog
MyWolfe Groups
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15239
Location: Paradox Realm

PostPosted: Tue 27 May 2008, 22:42    Post subject:  

ahem . . . psst . . . in your instructions . . .
Startup director = Startup directory
Smile

Have used your simple and useful technique
in these instructions on adding a yodel (keeps me crazy) Wink

How do I add a Tmxxine Yodel at startup?
http://tmxxine.com/wik/wikka.php?wakka=LinuxTmxxineUpgrades

_________________
YinYana AI Buddhism
Back to top
View user's profile Send private message Visit poster's website 
runtt21


Joined: 07 Jun 2008
Posts: 1651
Location: BigD Texas

PostPosted: Mon 21 Jul 2008, 18:49    Post subject: Thanks  

Thanks you very much guys!!!!! Now my puppies sound just like my sabayon 3.4e on start up!!!!!
Back to top
View user's profile Send private message Visit poster's website 
sideburns

Joined: 27 Aug 2008
Posts: 56
Location: Freedonia

PostPosted: Mon 22 Sep 2008, 01:47    Post subject:  

It occurs to me that if you put a line like that at the very end of .xinitrc , it wouldn't execute until you logged out, giving you a shutdown sound. Of course, this wouldn't survive an upgrade, but you can't always have everything. Thoughts, suggestions, comments?
_________________
Registered Linux user #470359
Back to top
View user's profile Send private message Visit poster's website 
lupitasosa

Joined: 05 Oct 2008
Posts: 17

PostPosted: Wed 08 Oct 2008, 17:25    Post subject: I can't  

I have been trying all day... Why I can't do it? I follow the directions. I make a new file in /root/startup. Then I open it and copy paste the code you gave, then i right click on the file, then permissions, yes button. I restart and nothing happens. Why? Please help me. Thank you.
Back to top
View user's profile Send private message 
lupitasosa

Joined: 05 Oct 2008
Posts: 17

PostPosted: Wed 08 Oct 2008, 18:00    Post subject: I just made it  

I followed your instructions, and then in permissions I selected "quiet" in a little square, and it worked. Now i want to know what is this "quiet" for. And if is there a way to hear a shutdown sound. Thank you.
Back to top
View user's profile Send private message 
sideburns

Joined: 27 Aug 2008
Posts: 56
Location: Freedonia

PostPosted: Wed 08 Oct 2008, 18:18    Post subject: Re: I can't  

lupitasosa wrote:
I have been trying all day... Why I can't do it? I follow the directions. I make a new file in /root/startup. Then I open it and copy paste the code you gave, then i right click on the file, then permissions, yes button. I restart and nothing happens. Why? Please help me. Thank you.


This is because it has to be in /root/Startup, not /root/startup. Linux is relentlessly case sensitive.

BTW, my idea about a shutdown sound didn't work. Does anybody know where the scripts are that Linux uses to shut down?

_________________
Registered Linux user #470359
Back to top
View user's profile Send private message Visit poster's website 
legendofthor

Joined: 17 May 2007
Posts: 219
Location: Queensland Australia

PostPosted: Thu 09 Oct 2008, 08:29    Post subject:  

gday
shutdown is located in
/usr/X11R7/bin/wmpoweroff
a. i assume your using "Dingo" of which I have little experience so it may be called something different....
open as text and chuck it at the top - I think I got it to work when I was playing round with 2.16 (i'll see if i can dig it up) - I also remember that I got a better sound using the play command but I might be wrong... memory's gone - must be tired
hope that helps
cheers
martin
Back to top
View user's profile Send private message 
sideburns

Joined: 27 Aug 2008
Posts: 56
Location: Freedonia

PostPosted: Thu 09 Oct 2008, 20:41    Post subject:  

Thanx, but it didn't work. The first time, I used

aplay /root/Downoad/file.wav &

and the second time in the foreground, but no joy. Also, Dingo doesn't have the play command. On my desktop (with Fedora 9) that brings up sox, but that doesn't seem to be available either. What calls that script? Maybe if I put it just before that it would work.

No, it's not urgent or anything, but I'm a geek and tweaking things like this is fun. BTW, my puppy startup sound is a recording of the MGM lion.

_________________
Registered Linux user #470359
Back to top
View user's profile Send private message Visit poster's website 
puppyluvr


Joined: 06 Jan 2008
Posts: 3485
Location: Chickasha Oklahoma

PostPosted: Fri 10 Oct 2008, 00:05    Post subject:  

Very Happy Hello,
From the readme in ect/init.d in Puppy 301:

Quote:
At bootup, the /etc/rc.d/rc.local0 script will run all scripts found in
/etc/init.d/, with the commandline parameter 'start'.
At shutdown, the /etc/rc.d/rc.shutdown script will run all scripts found in
/etc/init.d/, with the commandline parameter 'stop'.

Note that /etc/rc.d/init.d is a symlink to /etc/init.d

Note, the scripts in /etc/init.d/ can have any name, but must have their executable
flag set. Any file that does not the the 'x' flag set will be ignored.


Hope this helps...
...Jay...
Back to top
View user's profile Send private message Visit poster's website 
sideburns

Joined: 27 Aug 2008
Posts: 56
Location: Freedonia

PostPosted: Fri 10 Oct 2008, 02:28    Post subject:  

That didn't work either. Then, I tried to play the file from a command line: "cannot play non-PCM encoded .wav file." D'oh!

Now, I need to find a .wav it will play. Thanx anyway.

_________________
Registered Linux user #470359
Back to top
View user's profile Send private message Visit poster's website 
Puppy Dog


Joined: 21 May 2005
Posts: 58

PostPosted: Tue 14 Oct 2008, 17:41    Post subject:  

Thanks GrumpyWolfe,

I've got sound on every boot as well as my internet startup page
on the screen. I'm using the 2barks.wav found in /usr/share/audio.

Now, if only they made a coffee pot with a USB---- Very Happy

_________________
"Best In Show"
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0967s ][ Queries: 12 (0.0274s) ][ GZIP on ]