This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#26 2008-03-22 01:21:38

alemor
Scratcher
Registered: 2008-03-22
Posts: 1

Re: ITopic: scratch on linux

I also wonder whether the source code of Scratch is available. It looks like a good environment for children to learn, but lack of source code usually means hidden commercial interests, and I will not allow my children to play with it unless I am sure there are no commercial interests dressing as "research". Availability of source code will be a proof of true and honest non-profit goals of Scratch creators. Otherwise, it is just another party trying to take advantage of my children.

Offline

 

#27 2008-03-22 04:25:03

Jens
Scratcher
Registered: 2007-06-04
Posts: 1000+

Re: ITopic: scratch on linux

alemenor, you can download the complete Source Code for Scratch, including the complete programming environment for free from http://scratch.mit.edu/pages/source . If you browse through the forums you'll also notice that some derivative works have already been made available to the public.


Jens Mönig

Offline

 

#28 2008-03-30 15:16:47

tunki
Scratcher
Registered: 2008-03-30
Posts: 6

Re: ITopic: scratch on linux

Hello

Sounds (note/drum) work well in Linux under wine.  I had to start timidity in server mode:
timidity -iA -Os
before starting Scratch.

I installed Scratch for Windows in the Wine environment using the installer.
My system has Fedora 8, wine 0.9.56, timidity 2.13, Scratch 1.2.1

I teach in Peru and we are having a lot of fun with Scratch here.  Thank you for this great software.

Daniel

Offline

 

#29 2008-07-20 17:54:24

mschlager
Scratcher
Registered: 2007-03-09
Posts: 15

Re: ITopic: scratch on linux

Presentation mode and graphic effects work in Linux (ubuntu), c.f.
http://scratch.mit.edu/forums/viewtopic … 791#p54791.

Offline

 

#30 2008-08-17 21:48:24

logcat
Scratcher
Registered: 2008-06-12
Posts: 2

Re: ITopic: scratch on linux

If you use linux ubuntu just go to add remove programes and search wine install it then install windows scractch then slect on the installer open with and choose wine install scracth and it works!

Offline

 

#31 2008-08-18 04:36:59

macbook97
Scratcher
Registered: 2008-07-19
Posts: 4

Re: ITopic: scratch on linux

if your thinking of writing a scratch program for linux then you might ans well write it in linux  smile

Offline

 

#32 2008-10-16 21:10:48

maxsteele2
Scratcher
Registered: 2007-10-30
Posts: 28

Re: ITopic: scratch on linux

macbook97 wrote:

if your thinking of writing a scratch program for linux then you might ans well write it in linux  smile

Yeah, Linux is poen-source anyways.


"All the war-propaganda, all the screaming and lies and hatred, comes invariably from people who are not fighting." George Orwell, author

Offline

 

#33 2008-11-10 03:42:58

olivluca
Scratcher
Registered: 2007-07-24
Posts: 7

Re: ITopic: scratch on linux

olivluca wrote:

johnm wrote:

- the "note" and "drum" commands (require a MIDI package)

what do you mean with a "MIDI package"? I tried with either a real midi device (a yamaha piano) or fluidsynth. With both methods I can reproduce midi file with, e.g., kmid.
OTOH squeak (I mean squeak.image) has a rudimentary midi player (If I drag & drop a midi file to the squeak window it plays just fine)

I checked out an svn version of the squeak vm since it now has a midi plugin that plays through alsa.
I'm running timidity and the wine version of scratch can play the notes through it, however the linux version with the new vm still doesn't. Any hint? Do I have to do something special to enable the Midi Plugin or should it be automatically loaded by scratch?
BTW, with the new vm (and also with the released 3.10-1) the close button does nothing.

Offline

 

#34 2008-11-10 13:25:17

olivluca
Scratcher
Registered: 2007-07-24
Posts: 7

Re: ITopic: scratch on linux

I enabled debug output in the MIDIPlugin and it seems that scratch is using it, so maybe the problem is that the MIDIPlugin doesn't work with timidity?

Offline

 

#35 2008-11-10 15:32:04

olivluca
Scratcher
Registered: 2007-07-24
Posts: 7

Re: ITopic: scratch on linux

I hacked an "snd_seq_connect_to(seq, out_port, 128,0)" into the function sqMIDIOpenPort and now I can play notes under linux.
There must be a cleaner way, meanwhile I'm trying to backport the midi plugin to the 3.9.8 squeak vm.

Offline

 

#36 2008-11-11 16:28:13

olivluca
Scratcher
Registered: 2007-07-24
Posts: 7

Re: ITopic: scratch on linux

While I managed to backport working midi to the 3.9.8 squeak vm (which, otoh, doesn't recognize special characters like ñ and ç) I encountered another problem with my hack to connect squeak midi to timidity:
iif I play a drum/note (i.e. I use midi) before playing a sound, playing sound afterward doesn't work. The same happen if I use the recorder. If I disconnect squeak from the timidity port (using aconnect) everything works again.
The error I see when sound doesn't play anymore is:

ALSA lib pcm_dmix.c:975:(snd_pcm_dmix_open) unable to create IPC semaphore
startSound: snd_pcm_open: Permission denied

Offline

 

#37 2008-11-13 22:08:35

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

Wow, great stuff! I'm trying to help out on the midi issues under linux too, so can test out anything you come up with (Ubuntu 8.04).  In exploring this issue I came upon command aplaymidi -l, which lists all active midi ports, and it does appear that when installed timidity is always listening on 128:0 (whether it has been executed first in server mode or not).  So aplaymidi will play files when given the correct port as an argument without having to start timidity in server mode.

Last edited by Lightnin (2008-11-13 22:08:58)


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#38 2008-11-16 23:13:12

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

More interesting information related to Scratch / Squeak midi stuff:
http://lists.laptop.org/pipermail/etoys/2007-March/000473.html


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#39 2008-11-25 15:19:22

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: ITopic: scratch on linux

Please see the latest on a Linux Installer over at
http://info.scratch.mit.edu/Linux_installer


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#40 2008-12-05 21:49:58

A-MAN
Scratcher
Registered: 2008-12-05
Posts: 1

Re: ITopic: scratch on linux

How do u get Scratch to work on Linux? I mean really some people can. They explain it but I just do not under stand what they are trying to say!

A-MAN

Offline

 

#41 2008-12-07 15:56:16

Tookelso
Scratcher
Registered: 2007-06-09
Posts: 3

Re: ITopic: scratch on linux

Hello,

I tested the scratch_1.3.1-0.4_i386.deb, and I was impressed.

  * Tested on Ubuntu 8.04
  * The installer created a Scratch menu entry in GNOME, under "Applications"...."Programming".  Very nice touch!!!
  * I ran several of the sample programs, and the response time on the programs was fine.  I will test some of the more intensive games later, and give a follow-up.
  * Uninstall worked successfully from Synaptic Package Manager, as far as I can tell.  It removed the Scratch Menu Entry from the Applications menu.  I didn't check whether it removed the binaries though.
 
Bugs/Problems

  * When you go to Open a project, there are four buttons on the side.  These four buttons are shortcuts for "Home", "Projects", "My Computer", and "Desktop".  The only one that really takes you to the correct place in the filesystem is the "Projects" button.  However, I know that this is probably difficult to fix.
  * When you press "Save", the default place where Scratch wants you to save your project is to the "Projects" folder.  This is reasonable.  However, the .deb package installs Scratch to a directory that is not writable by the average user.  So, when you go to save, and choose the default location "Projects", you get a "permission denied" error.

Good job!

Offline

 

#42 2008-12-08 10:45:29

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: ITopic: scratch on linux

Thanks for the feedback Tookelso.

Would you point  "My Computer" to /? Home to the current user's home directory (~user)? And desktop to ~/Desktop?

Where should it save projects by default? ~/Documents?


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#43 2008-12-08 12:14:43

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

Wow, that .deb works great - smooth install on my Ubuntu 8.04! Huzzah and great work to all who contributed to the making of this package!

My $0.02 on default file locations...

My Computer - It is hard to think of a good clean solution for this - perhaps / is best for now.  Ideally you would want it to show the user drives and media attached to the computer - the same thing Nautilus shows you when click Places > Computer on the default Ubuntu menu. But this doesn't seem to really exist in the filesystem so I guess Nautilus is simulating it.

Home - yes, user's home directory.
desktop - yes, user's desktop.

Where to save projects by default? ~/Documents would be a good compromise. Another thing to consider would be to have Scratch check if this is the first time it has been run by the user and if so create a directory called "Scratch" in their home folder and copy the Media and Projects folders into it. This might avoid some of the permission problems users might otherwise encounter if they tweak a project that came with Scratch and try to save it in its original file / location.


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#44 2008-12-17 09:44:28

Lightnin
Scratch Team
Registered: 2008-11-03
Posts: 1000+

Re: ITopic: scratch on linux

Just tried latest .deb here: http://info.scratch.mit.edu/Linux_installer
Still has system beep on visual effects problem.


Help Scratchers make the leap to 2.0!
http://img818.imageshack.us/img818/6844/transitionteam.jpg

Offline

 

#45 2008-12-27 18:40:54

haloman3
Scratcher
Registered: 2008-10-24
Posts: 1

Re: ITopic: scratch on linux

hi I'm using ubuntu linex and i can't use scratch game on the Internet

Offline

 

#46 2008-12-28 02:41:44

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: ITopic: scratch on linux

Hi,
I made another workaround for MIDI problem.
http://squeakland.jp/abee/tmp/ScratchSourceCode1.3.1synth.zip
Squeak has a built-in synth and my patch uses it, if MIDI port does not exist.
I tested it on Ubuntu 8.10. It works fine. But built-in synth has limited instruments less than GM. And sound quality is not good.

Best,
Kazuhio Abe

Offline

 

#47 2008-12-28 08:50:00

GoldenAxe
Scratcher
Registered: 2008-12-10
Posts: 48

Re: ITopic: scratch on linux

We Linux Bugs are waiting ^_^

Offline

 

#48 2009-01-03 20:13:28

rcodinap
Scratcher
Registered: 2009-01-03
Posts: 1

Re: ITopic: scratch on linux

abee wrote:

Hi,
I made another workaround for MIDI problem.
http://squeakland.jp/abee/tmp/ScratchSourceCode1.3.1synth.zip
Squeak has a built-in synth and my patch uses it, if MIDI port does not exist.
I tested it on Ubuntu 8.10. It works fine. But built-in synth has limited instruments less than GM. And sound quality is not good.

Best,
Kazuhio Abe

Being pretty new in Linux (currently in Ubuntu 8.10), I wonder if you or someone could provide a .deb package to test that patch. I downloaded this, but I don know what to do with it.

I installed this on the 2 Ubuntu 8.10 of my kids, the only problem I identified so far is the sound: none. It cannot record neither sounds from the microphone.

When launching from the terminal, it would give me the following error when playing sound meow, but not when playing note or playing drum, although in any case I get a sound out of my system. The error is:

soundStart: snd_add_pcm_handler: Function not implemented
soundStart: snd_add_pcm_handler: Function not implemented
(the error is duplicated)

To install Scratch on my 2 systems I just run the command on the instructions, and then right clicked the downloaded file on the File Browser, and choosed Open with "GDebi Package Installer".

I agree with other comments so far that the default save to locations are problematic currently. Having the user's home folder or desktops would be much better.

Thanks!

Offline

 

#49 2009-01-05 21:21:39

abee
Scratcher
Registered: 2007-05-25
Posts: 100+

Re: ITopic: scratch on linux

Hi, rcodinap,

I guess you need to add a vm option to use sound function.

/usr/lib/scratch/squeak/3.9-8/squeak  -plugins /usr/lib/scratch/squeak/3.9-8  -vm-sound-OSS ScratchSourceCode1.3.1synth.image

If you cannot hear any sound, try to use -vm-sound-ALSA instead of -vm-sound-OSS.

Cheers,
Kazuhiro Abe

Offline

 

#50 2009-01-20 16:23:01

DrLee
Scratcher
Registered: 2009-01-20
Posts: 1

Re: ITopic: scratch on linux

Hi all,

This review of the scratch_1.3.1-0.4_i386.deb really impressed me.
Overall I found it worked really well for me.
The tips you gave were extremely usefull!Simulation pret immobilier

Thanks a lot!

Last edited by DrLee (2009-01-20 16:23:28)

Offline

 

Board footer