Danke vovchik
Uuups,I used the original xcowsay, now taken the modified xpupsay and it works - wow!
Thanks to the guys!
Markus
xcowsay talking lobster? new x message display with icon
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
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
Is that the simplest for loop?
- Attachments
-
- pupschool1.zip
- (109.77 KiB) Downloaded 755 times
Last edited by Lobster on Tue 20 Dec 2011, 06:32, edited 2 times in total.
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
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
- Lobster
- Official Crustacean
- Posts: 15522
- Joined: Wed 04 May 2005, 06:06
- Location: Paradox Realm
- Contact:
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
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
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.
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
- antiloquax
- Posts: 405
- Joined: Fri 27 Jan 2012, 09:17
Hi Lobster,
I hadn't noticed this before. I must have a go!
mark
I hadn't noticed this before. I must have a go!
mark
My System:Arch-Arm on RPi!
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.
"[url=http://murga-linux.com/puppy/viewtopic.php?t=76049l]RacyPy[/url]" puplet on Toshiba Tecra 8200. PIII, 256 MB RAM.
[url=http://raspberrypy.tumblr.com/]RaspberryPy[/url]: Lobster and I blog about the RPi.