Debian + SpecBas = load of programming fun for kids

Drop in for a chat and a cup of tea

16 posts
by steve_spt » Wed Feb 15, 2012 11:41 pm
This is what I'm goping to use on my PI, Debian + SpecBas = load of fun with my kids!

SpecBAS is an improved implementation of Sinclair BASIC for x86 PCs running Windows or Linux operating systems. SpecBAS is a 32bit application.

SpecBAS is an interpreter for a dialect of BASIC, based on Dartmouth BASIC, as was the original Sinclair BASIC. SpecBAS adds many new commands and functions such as procedures, math functions and sound using samples and music .mod files. Although not as fast as compiled languages, it is very quick.

A version is available from today on request for the PI. see http://www.specbas.co.uk/
Posts: 7
Joined: Wed Nov 16, 2011 6:30 pm
by ZXDunny » Sun Jul 08, 2012 8:00 pm
SpecBAS has now been successfully ported to the Rasberry PI!

It's only a preliminary build, but can be grabbed from here:

http://freestuff.grok.co.uk/SpecBAS-RasPi-v0.742.zip

Source can be grabbed from http://www.specbas.co.uk/ if anyone wants to try themselves - it requires lazarus and FPC, with SDL for graphics output and BASS for ARM for sound. Some of the source contains pandora defines; they're required for some bugs in the FPC compiler (SpecBAS is built primarily for windows in Delphi).

D.
Posts: 47
Joined: Sun Jul 08, 2012 7:57 pm
by ZXDunny » Tue Oct 23, 2012 6:14 pm
Thought I should post an update - SpecBAS has been updated and built for hard-abi, resulting in a very credible speedboost.

Get it from here: http://freestuff.grok.co.uk/specbas-raspi.zip

Videos of it running on the Pi:

http://www.youtube.com/watch?v=j7uNeiyW0AM
http://www.youtube.com/watch?v=lMEgAOmr7ko

Enjoy :)

D.
Posts: 47
Joined: Sun Jul 08, 2012 7:57 pm
by baggey » Sat Jan 04, 2014 6:30 pm
HI ZXDunny,

[quote="ZXDunny"]Thought I should post an update - SpecBAS has been updated and built for hard-abi, resulting in a very credible speedboost.

Get it from here: http://freestuff.grok.co.uk/specbas-raspi.zip

Videos of it running on the Pi:

http://www.youtube.com/watch?v=j7uNeiyW0AM
http://www.youtube.com/watch?v=lMEgAOmr7ko

Enjoy :)

D.[/quote]

Im a fan of the ZX Spectrum and cant wait to have ago at getting this running. The thing is im a complete NOOB to th PI and Linnux!

So just to get it running i need to have my "RASPI" running raspbian.
Next step
I download your file above and unzip?

INSTALLING
==========
Dead easy! Just do this:-

1. You must be running a linux distro with hard floating point support. Such
as the Raspbian Wheezy distribution that Raspberry recommends.

OK. Ive managed to do this. Good job i had the kids around! This was a small mission in its self!


2. Type "sudo apt-get install sdl-image1.2" to install the SDL image libary
(you may already have this installed, if so, all good!)

OK. Done this. Lots of text whizzing by. Took a while thou, suppose this is normal.


3. Copy libbass.so from the specbas archive into your /usr/lib/ directory
and make sure it's readable. i.e: "sudo cp libbass.so /usr/lib", followed by
"sudo chmod 444 /usr/lib/libbass.so"

STUCK right here!
Ive put the file on a usb flash drive and its plugged into the "RASPI".
How do i do step 3???

Kind Regards Baggey

Im a complete retard with out the KIDS to use my Rasspberry PI. ill figure out the rest later!?




4. Make sure the SpecBAS binary is executable "chmod 755 SpecBAS"
5. Run SpecBAS ("./SpecBAS")!

See, I said it was easy!

Chris C.
Posts: 26
Joined: Sat Jan 04, 2014 9:06 am
by ZXDunny » Sat Jan 04, 2014 8:13 pm
Just quickly then:

1. Open a terminal
2. Type "su" (without quotes) and press enter
3. Type in your password or whatever when prompted
4. now type in "cd /usr/lib/" (again without quotes) and press enter
5. now type in "wget https://sites.google.com/site/pauldunn/libbass.so" and press enter
6. now type in "chmod 444 /usr/lib/libbass.so" and press enter

You should be able to carry on with the rest of the instructions from there.

D.
Posts: 47
Joined: Sun Jul 08, 2012 7:57 pm
by baggey » Sat Jan 04, 2014 9:06 pm
[quote="ZXDunny"]Just quickly then:

1. Open a terminal
2. Type "su" (without quotes) and press enter

Im so sorry fella but "the whole novelty of what the raspberry pi is supposed to do is running thin"

3. Type in your password or whatever when prompted

I type my password in and "Authentication failure" default i think is "raspberry" and my password. Just dosent work!
Im by no means stupid! You may remember Playbasic Spectrum! Yep thats me!

4. now type in "cd /usr/lib/" (again without quotes) and press enter

I get the message "pi@raspberrypi /usr/lib $". Looks like dos change directory command. So ive moved to the lib folder. Good.

5. now type in "wget https://sites.google.com/site/pauldunn/libbass.so" and press enter

I get a load of text and finally "Cannot write to `libbass.so' (Permission denied). I Guess this is where the password is useful. Ive tried changing it with "sudo passwd pi". Getting "Enter new UNIX password:". So i type "pi" then getting "Retype new UNIX password:". So typed "pi". Great "passwd: password updated successfully"
I'll now go back to step 2!
Completely the same process! Im stuck in a loop.

I cant edit my "config.txt" either permission denied! I know the last quote is off topic. But i think it relates to the same issue!? Its like i dont have administrative privleges?


Kind regards Baggey
Posts: 26
Joined: Sat Jan 04, 2014 9:06 am
by ZXDunny » Mon Jan 06, 2014 9:01 am
baggey wrote:
ZXDunny wrote:Just quickly then:

1. Open a terminal
2. Type "su" (without quotes) and press enter

Im so sorry fella but "the whole novelty of what the raspberry pi is supposed to do is running thin"

3. Type in your password or whatever when prompted

I type my password in and "Authentication failure" default i think is "raspberry" and my password. Just dosent work!
Im by no means stupid! You may remember Playbasic Spectrum! Yep thats me!

4. now type in "cd /usr/lib/" (again without quotes) and press enter

I get the message "pi@raspberrypi /usr/lib $". Looks like dos change directory command. So ive moved to the lib folder. Good.

5. now type in "wget https://sites.google.com/site/pauldunn/libbass.so" and press enter

I get a load of text and finally "Cannot write to `libbass.so' (Permission denied). I Guess this is where the password is useful. Ive tried changing it with "sudo passwd pi". Getting "Enter new UNIX password:". So i type "pi" then getting "Retype new UNIX password:". So typed "pi". Great "passwd: password updated successfully"
I'll now go back to step 2!
Completely the same process! Im stuck in a loop.

I cant edit my "config.txt" either permission denied! I know the last quote is off topic. But i think it relates to the same issue!? Its like i dont have administrative privleges?


Kind regards Baggey


Yeah, you're missing admin privileges. Your user password should be whatever it was when you set up the default user on the Pi. Without the password, you can't install the lib, and SpecBAS won't run.

D.
Posts: 47
Joined: Sun Jul 08, 2012 7:57 pm
by baggey » Mon Jan 06, 2014 2:01 pm
Hi Dunny,

Im Frustrated to hell over something so simple!

Ive completely reformated, installed NOOBS, Raspbian.

Ive left user and password as default!

Logged in at the Prompt. Now im backin Raspbian. Open Lx terminal type "su"

Enter my password as "raspberry" message "su: Authentication failure"

Now this is confusing Ive managed to logon! But can't "su the password"

Really sorry this is going off topic but "For the life of me ?????????"

Baggey
Posts: 26
Joined: Sat Jan 04, 2014 9:06 am
by ZXDunny » Mon Jan 06, 2014 2:07 pm
baggey wrote:Hi Dunny,

Im Frustrated to hell over something so simple!

Ive completely reformated, installed NOOBS, Raspbian.

Ive left user and password as default!

Logged in at the Prompt. Now im backin Raspbian. Open Lx terminal type "su"

Enter my password as "raspberry" message "su: Authentication failure"

Now this is confusing Ive managed to logon! But can't "su the password"

Really sorry this is going off topic but "For the life of me ?????????"

Baggey



You likely need to be part of the sudoers group. See here:

http://www.linuxquestions.org/questions ... st-821947/

D.
Posts: 47
Joined: Sun Jul 08, 2012 7:57 pm
by baggey » Mon Jan 06, 2014 7:25 pm
ZXDunny wrote:Just quickly then:

1. Open a terminal
2. Type "su" (without quotes) and press enter
3. Type in your password or whatever when prompted
4. now type in "cd /usr/lib/" (again without quotes) and press enter
5. now type in "wget https://sites.google.com/site/pauldunn/libbass.so" and press enter
6. now type in "chmod 444 /usr/lib/libbass.so" and press enter

You should be able to carry on with the rest of the instructions from there.

D.


Hi, Just got step 5 to work!!! I used the "Root terminal" console. I did get some message warning about ROOT users i think!? But i just did steps 4,5 in this terminal. Not sure why but it worked. Im a little green in fact very green with the link you sent me. Linux is over my head at the mo! But on a step learning curve.

Im going to try step 6 after tea.

So typed "chmod 444 /usr/lib/libbass.so" and imediatly got the command prompt. No whizzing text errors? So assume this was ok.

Ive checked with file manager and i know "libbass.so" is where it should be! If only i could find "setup.exe!?"

The thing is now i cant seem to find the wood from the trees!?

What do i do now? :oops:

Baggey

Baggey
Posts: 26
Joined: Sat Jan 04, 2014 9:06 am
by ZXDunny » Mon Jan 06, 2014 8:05 pm
baggey wrote:
ZXDunny wrote:Just quickly then:

1. Open a terminal
2. Type "su" (without quotes) and press enter
3. Type in your password or whatever when prompted
4. now type in "cd /usr/lib/" (again without quotes) and press enter
5. now type in "wget https://sites.google.com/site/pauldunn/libbass.so" and press enter
6. now type in "chmod 444 /usr/lib/libbass.so" and press enter

You should be able to carry on with the rest of the instructions from there.

D.


Hi, Just got step 5 to work!!! I used the "Root terminal" console. I did get some message warning about ROOT users i think!? But i just did steps 4,5 in this terminal. Not sure why but it worked. Im a little green in fact very green with the link you sent me. Linux is over my head at the mo! But on a step learning curve.

Im going to try step 6 after tea.

So typed "chmod 444 /usr/lib/libbass.so" and imediatly got the command prompt. No whizzing text errors? So assume this was ok.

Ive checked with file manager and i know "libbass.so" is where it should be! If only i could find "setup.exe!?"

The thing is now i cant seem to find the wood from the trees!?

What do i do now? :oops:


Ok, now you need to navigate to where you installed SpecBAS - there's a file in there called, unsurprisingly, "specbas".

So issue two final commands while in specbas's directory (can't help you with finding it; you should recall where you extracted it!) :

4. Make sure the SpecBAS binary is executable "chmod 755 SpecBAS"
5. Run SpecBAS ("./SpecBAS")!

D.
Posts: 47
Joined: Sun Jul 08, 2012 7:57 pm
by baggey » Tue Jan 07, 2014 11:01 am
Hi Dunny,

Ok, now you need to navigate to where you installed SpecBAS - there's a file in there called, unsurprisingly, "specbas".

So issue two final commands while in specbas's directory (can't help you with finding it; you should recall where you extracted it!) :

4. Make sure the SpecBAS binary is executable "chmod 755 SpecBAS"
5. Run SpecBAS ("./SpecBAS")!

D.


Finally! Got it working brilliant! :D

The important factor for me has been. The use of the "root terminal" to do any terminal commands!

Why the makers of "raspbian" have put so much security on there files, like they have. I just don't know!? :roll:

I notice "SpecBAS" site is down. :cry:

Id like to get hold of a Command reference manual for it.
If i have .z80, tzx, tap type files. Can i load them in SpecBAS somehow?
Also, As im not ofay with linux. Is there a way i can create a small script on an SDcard. That would allow me to boot straight into "SpecBAS" in full screen? or "Raspbian". A bit like an "autoexec.bat" file?

Thankyou for all your help thus far. Im hopeing to revive another project i started a year ago! I had poblems finding out how the Zx80 op-codes affected the registers etc. Im hopeing now i can code an instruction, then from basic peek its results to work out how each instruction exactly works. If it does, I may revive my ZX Playbasic Emulator i was working on.

I see a use for my dear old dead rubbered keyed Speccy! Once again? With 5v in, HDMI, RCA, USB ports, RJ45, SATA etc!

Yet another project. :D What do ya think?

Kind regards Baggey
Posts: 26
Joined: Sat Jan 04, 2014 9:06 am
by ZXDunny » Tue Jan 07, 2014 4:14 pm
baggey wrote:Finally! Got it working brilliant! :D


:)

I notice "SpecBAS" site is down. :cry:

Id like to get hold of a Command reference manual for it.


https://sites.google.com/site/pauldunn/SpecOS.zip

It's in there.

If i have .z80, tzx, tap type files. Can i load them in SpecBAS somehow?
Also, As im not ofay with linux. Is there a way i can create a small script on an SDcard. That would allow me to boot straight into "SpecBAS" in full screen? or "Raspbian". A bit like an "autoexec.bat" file?


There's a guy on this forum that does just that - he has a Speccy case which autoloads a special menu from which he can jump straight into SpecBAS. I'm looking to do something similar (just SpecBAS on the PI) with my empty rubberykeys...

http://www.raspberrypi.org/phpBB3/viewt ... it=specbas

It's in there, instructions for getting the console build going - but it's quite involved though, so not for the faint-hearted :)

Thankyou for all your help thus far. Im hopeing to revive another project i started a year ago! I had poblems finding out how the Zx80 op-codes affected the registers etc. Im hopeing now i can code an instruction, then from basic peek its results to work out how each instruction exactly works. If it does, I may revive my ZX Playbasic Emulator i was working on.


Well, I'd be a tad worried about how much of the Speccy is actually implemented - it's just the BASIC, no actual emulation of the z80 Processor (as yet, that's in progress). It can't handle z80 or other Spectrum emulator files - they're meaningless in SpecBAS and the BASIC is slightly different - higher colour depth means no attributes and other issues you'll encounter. You'd be better off with a Windows machine and a copy of BASin, which does have a proper IDE for BASIC and a proper z80 emulation underneath.

D.
Posts: 47
Joined: Sun Jul 08, 2012 7:57 pm
by baggey » Tue Jan 07, 2014 6:36 pm
[quoteI notice "SpecBAS" site is down.

Id like to get hold of a Command reference manual for it.


https://sites.google.com/site/pauldunn/SpecOS.zip][/quote]

Hi, Dunny

Link for me dosen't work?

Would love to talk in depth more.

Kind Regards Baggey
Posts: 26
Joined: Sat Jan 04, 2014 9:06 am
by ZXDunny » Tue Jan 07, 2014 6:46 pm
baggey wrote:notice "SpecBAS" site is down.

Id like to get hold of a Command reference manual for it.


https://sites.google.com/site/pauldunn/SpecOS.zip


Hi, Dunny

Link for me dosen't work?


That's odd - it works fine here!

Would love to talk in depth more.


If you want to talk to me, get onto IRC in the irc.coldfront.org network, in channel #spin (password is 49152). :)

D.
Posts: 47
Joined: Sun Jul 08, 2012 7:57 pm
by ZXDunny » Fri Jan 10, 2014 4:22 pm
Just to inform those that like SpecBAS - it's been updated: viewtopic.php?f=34&t=66063

D.
Posts: 47
Joined: Sun Jul 08, 2012 7:57 pm