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 Sat 27 May 2017, 14:00
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
How to turn Puppy's bark back on?
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [9 Posts]  
Author Message
GarySmith

Joined: 17 Oct 2014
Posts: 104

PostPosted: Sun 09 Nov 2014, 13:57    Post subject:  How to turn Puppy's bark back on?  

This is one of those stories no one would believe but as usual with my life, very true.

May daughter has been wanting a puppy for years and I've denied her due to the cat and now rabbits that need tending every day.

When first firing up the Linux for the first time I heard a "bark, bark" but went to the window a short distance away to discover from where the sound had come. Didn't take long to figure this one out.

Trouble is that now that I've loaded Puppy to my hard drive I'm no longer getting the bark anymore. How do I turn it back on again?

Thank you,

Gary Smith
___________
Back to top
View user's profile Send private message 
bigpup


Joined: 11 Oct 2009
Posts: 8704
Location: Charleston S.C. USA

PostPosted: Sun 09 Nov 2014, 14:50    Post subject:  

This is one way:
Make a script file with this code:

#!/bin/sh
aplay /usr/share/audio/2barks.au

Place this script file in /root/Startup directory.
You will get two barks, at boot, at start of desktop.

How to make script file.
In Rox file manager:
Go to /root/Startup.
Right click in open area.
In menu, go to new->Script.
Give script a name like puppy bark.
Should now have file puppy bark in /root/Startup.
Right click on puppy bark file.
select Open as Text.
Now in text editor, make text look like above code.
Save changes.
Close text editor.
Now should have working text script file puppy bark.

_________________
I have found, in trying to help people, that the things they do not tell you, are usually the clue to solving the problem.
When I was a kid I wanted to be older.... This is not what I expected Shocked
Back to top
View user's profile Send private message 
GarySmith

Joined: 17 Oct 2014
Posts: 104

PostPosted: Mon 10 Nov 2014, 06:15    Post subject: Barking Puppy  

Thanks for the answer to this one.

When I setup my daughters PC with Puppy she'll then get a funny every time she boots the machine up and running.

Have a great week too.

Gary Smith
__________
Back to top
View user's profile Send private message 
Burn_IT


Joined: 12 Aug 2006
Posts: 2790
Location: Tamworth UK

PostPosted: Mon 10 Nov 2014, 15:37    Post subject:  

I changed mine to a cat meowing; it drives both the cats and dog mad.
_________________
"Just think of it as leaving early to avoid the rush" - T Pratchett
Back to top
View user's profile Send private message 
orrin


Joined: 05 Sep 2016
Posts: 88
Location: sparks, NV

PostPosted: Fri 19 May 2017, 13:19    Post subject:  

bigpup wrote:
This is one way:
Make a script file with this code:

#!/bin/sh
aplay /usr/share/audio/2barks.au

Place this script file in /root/Startup directory.
You will get two barks, at boot, at start of desktop.

How to make script file.
In Rox file manager:
Go to /root/Startup.
Right click in open area.
In menu, go to new->Script.
Give script a name like puppy bark.
Should now have file puppy bark in /root/Startup.
Right click on puppy bark file.
select Open as Text.
Now in text editor, make text look like above code.
Save changes.
Close text editor.
Now should have working text script file puppy bark.


This works, but how to delay the bark a bit. It barks while the screen is still loading?

_________________
Orrin - Engineer/Photographer/Webmaster

Back to top
View user's profile Send private message Visit poster's website 
mostly_lurking

Joined: 25 Jun 2014
Posts: 164

PostPosted: Fri 19 May 2017, 14:58    Post subject:  

orrin wrote:
This works, but how to delay the bark a bit. It barks while the screen is still loading?

The "sleep" command can be used to add a delay:
Code:
#!/bin/sh
sleep 5
aplay /usr/share/audio/2barks.au

This makes the script pause for 5 seconds before it plays the sound.
Back to top
View user's profile Send private message 
orrin


Joined: 05 Sep 2016
Posts: 88
Location: sparks, NV

PostPosted: Fri 19 May 2017, 15:42    Post subject:  

mostly_lurking wrote:
orrin wrote:
This works, but how to delay the bark a bit. It barks while the screen is still loading?

The "sleep" command can be used to add a delay:
Code:
#!/bin/sh
sleep 5
aplay /usr/share/audio/2barks.au

This makes the script pause for 5 seconds before it plays the sound.


Thanks for the information! sleep 10 works best for my system.

_________________
Orrin - Engineer/Photographer/Webmaster

Back to top
View user's profile Send private message Visit poster's website 
musher0


Joined: 04 Jan 2009
Posts: 10169
Location: Gatineau (Qc), Canada

PostPosted: Fri 19 May 2017, 15:54    Post subject:  

Burn_IT wrote:
I changed mine to a cat meowing; it drives both the cats and dog mad.
Sadist! Twisted Evil
_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 10169
Location: Gatineau (Qc), Canada

PostPosted: Fri 19 May 2017, 16:16    Post subject:  

Hello, orrin.

To delay the bark(s) or to become nuts over them Very Happy, you could do this --
because there's also a sound file with a single bark at
/usr/share/audio/bark.au -- :
Code:
#!/bin/sh
# barks.sh # Intended as a joke! :-)
####
for i in 1 2 3;do
   for j in 3 2 1;do
      aplay /usr/share/audio/bark.au
      sleep "$j"."$i"s
      aplay /usr/share/audio/2barks.au
      sleep "$i"."$j"s
   done
done
I suspect you could introduce bash's random function in there somewhere
to control the time. Twisted Evil And then your loved ones won't know whether
to send you (or me!) to the psychiatric or veterinary hospital!!!!

Have fun!

_________________
musher0
~~~~~~~~~~
« Un insensé sur le trône n'est qu'un singe sur le haut d'un toit. » / "A madman
on the throne is just a monkey on top of a roof." (Bernard de Clervaux)
Back to top
View user's profile Send private message 
Display posts from previous:   Sort by:   
Page 1 of 1 [9 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
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.0505s ][ Queries: 14 (0.0079s) ][ GZIP on ]