Page 5 of 5
Posted: Tue 07 Sep 2010, 11:03
by mave
Danke vovchik
Uuups,I used the original xcowsay, now taken the modified xpupsay and it works - wow!
Thanks to the guys!
Markus
Posted: Sun 18 Dec 2011, 13:20
by Lobster
In my efforts to educate myself and perhaps the children who will be learning programming on Puppy running on raspberry pi (when available) I have created a complete first lesson in Bash script using xpupsay . . .
The downloadable zip file includes all you need including xpupsay
which works OK in Puppy 5.3.1 - the only system I tried it on
To run the tutorial you need to install xpupsay
just click on xpupsay.pet
You will need to change the permissions of script files
with the .sh - to allow them to run
in puppy - right click on the file in rox
(click on the home icon - you are in rox)
and change permissions
The first program is a hello world example
Code: Select all
#! /bin/bash
# 16 Dec 2011 Lobster
# Example 1 hello world example
xpupsay "hello world"
xpupsay "puppy power"
Code: Select all
#! /bin/bash
# 16 Dec 2011 Lobster
# Example 3 play audio loop
xpupsay "Let's boogy"
for i in {1..5}
do
aplay /usr/share/audio/beep_high.wav
aplay /usr/share/audio/beep_high.wav
sleep .2
aplay /usr/share/audio/beep_low.wav
sleep 1
aplay /usr/share/audio/beep_high.wav
aplay /usr/share/audio/audio/error.wav
done
moving right up to example 3 which covers the first use of loops
Is that the simplest for loop?
Posted: Sun 18 Dec 2011, 15:11
by vovchik
Dear Lobster,
Very nice start. I could see a complete tutorial, and having teachers flock to puppy as a preferred vehicle for teaching basic programming concepts. Too much work for me, but it could be a collective effort. If my memory serves me right, quite a bit of work was done already on an edupuppy at some point but i don't know what's in it. I'll have to have a look.
With kind regards,
vovchik
Posted: Fri 06 Jul 2012, 16:00
by Lobster
Well now . . .
Talking cows, need raspberries (a well known fact)
Using genuine raspberry pi, some scripting help,
- real alpha 2 software from Barry K and Lobsterian almost programming
I have been working on this script
Code: Select all
#! /bin/bash
xcowsay --image /root/a_rap/lobster.png --time=1 Hello Raspberrians, Lobster here with Puppi
xcowsay --image /root/a_rap/puppi.png --time=1 Hello Lobster. Hello world. Hello Puppys.
xcowsay --image /root/a_rap/lobster.png --time=1 Puppy are you really running on Raspberries?
xcowsay --image /root/a_rap/puppi.png --time=1 I am being tested on Raspberry Pi
xcowsay --image /root/a_rap/lobster.png --time=1 Puppi, you changed your name slightly?
xcowsay --image /root/a_rap/puppi.png --time=1 Just a slice of Pi . . .
xcowsay --image /root/a_rap/lobster.png --time=1 Ha Ha . . . What is the Raspberry Pi?
xcowsay --image /root/a_rap/puppi.png --time=1 The smallest, dinkiest, cheapest motherboard . . .
xcowsay --image /root/a_rap/lobster.png --time=1 What can you do on it Puppi?
xcowsay --image /root/a_rap/puppi.png --time=1 I will demonstrate . . .
abiword text.abw &
sleep 3
killall abiword
inkscapelite draw1 &
sleep 3
killall inkscapelite
gnumeric Book1.gnumeric &
sleep 3
killall gnumeric
xcowsay --image /root/a_rap/puppi.png --time=1 Browse, calculate, FTP etc
/usr/local/bin/defaultbrowser http://puppylinux.org/wikka/PuppiPlan &
sleep 3
killall defaultbrowser
xcowsay --image /root/a_rap/lobster.png --time=1 Very cool. Where can I get all that?
xcowsay --image /root/a_rap/puppi.png --time=1 Google 'raspberry puppi'
xcowsay --image /root/a_rap/lobster.png --time=1 Pawsome. Woof. Woof.
I produced this video (still some bugs in my attempts at code)
http://youtu.be/c7MvS_3BHYY
and I have included all the files I have used including a recording script from Mick
You will need to install xcowsay on Puppy Sap alpha 2, which you can do with the package manager and download from Debian main
Some of the programs are not displaying properly . . .
will have to do some more coding or ask for further suggestions
Puppy is Pawsome
Posted: Sun 22 Jul 2012, 11:58
by antiloquax
Hi Lobster,
I hadn't noticed this before. I must have a go!
mark