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

#1 2007-03-09 12:07:45

lucduponcheel
Scratcher
Registered: 2007-03-09
Posts: 1

ITopic: scratch on linux

EDIT BY ANDRESMH:

See this for more info about the latest efforts by the Scratch Team to bring an easy to use installer of Scratch to Linux:
http://info.scratch.mit.edu/Linux_installer

EDIT BY LIGHTNIN:
Keep in mind, this thread was started a long time ago! So check the link above or other recent entries for the latest news about Scratch on Linux.

~~~~~~~~~~~~~~~~~~~~~~~
Hi all,

Is it not possible to provide a binary scratch build for linux(es)?
Or is the MAC binary build linux compatible?
Anyway, I'd like to play around with this, but I'm running ubuntu-linux.
Or is there such a thing as a source tree where we can brew our own binary build from?

Thx, and lots of succes with this fancy new language!!

Luc Duponcheel

Last edited by Lightnin (2009-12-01 17:11:20)

Offline

 

#2 2007-03-09 15:15:53

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

Re: ITopic: scratch on linux

The binary is linux-compatible, since squeak is using a VM, hence platform-independent. The way, I'm running scratch on ubuntu-linux:

* The windows-binary is a self-extracting zip-archive. Running the .exe with wine lets you extract it. You get a folder containing the image-file Scratch.image.

* You need to install squeak-vm. Then you can start Scratch from the command-line with 'squeak /path/to/your/Scratch.image'

* The only feature not working is the fullscreen-presentation-mode.

Markus

Offline

 

#3 2007-03-09 22:36:33

johnm
Scratcher
Registered: 2007-03-08
Posts: 100+

Re: ITopic: scratch on linux

We hope to make Scratch work on Linux eventually but, unfortunately, it will probably not be soon. As Markus says, you can get much of Scratch to work on Linux by using a Linux Squeak VM. But a number of things don't work:

  - presentation mode (as noted)
  - image effects
  - the "note" and "drum" commands (require a MIDI package)
  - support for the (optional) Scratch Board hardware

Although it may be a while before we officially support Linux, it's great that folks like Markus can tell you how to get it (mostly) working. Thanks, Markus.

  -- John (for the Scratch team)

Last edited by johnm (2007-03-09 22:38:01)

Offline

 

#4 2007-03-13 23:14:49

millner
Scratcher
Registered: 2007-03-13
Posts: 25

Re: ITopic: scratch on linux

I'd like to append two notes to johnm's post about what does not currently work with Scratch 1.0 running on Linux machines:
-recording sound was not fully supported
-the (optional) Scratch Board hardware is a sensor board that will be released (as a beta prototype) mid 2007 - http://scratch.mit.edu/scratchboard. It will initially be supported on Windows and Macs - Linux support will come eventually.

Offline

 

#5 2007-03-29 13:11:24

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

Re: ITopic: scratch on linux

I also found this step-by-step tutorial on how to run Scratch on Linux. It's in Spanish but I think the commands are pretty self-explanatory.


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

Offline

 

#6 2007-03-31 19:25:46

johnm
Scratcher
Registered: 2007-03-08
Posts: 100+

Re: ITopic: scratch on linux

Ian Piumarta recently made Squeak able to record sounds on Linux. So I think that works now, at least if your Linux supports the ALSA sound package.

Offline

 

#7 2007-03-31 20:06:55

smartsphere
Scratcher
Registered: 2007-03-31
Posts: 1

Re: ITopic: scratch on linux

You can translate the web page from Spanish to (english, french etc) using
the babel Fish translator at http://world.altavista.com/babelfish/tr
(google has on too )

In the URL paste in the address from the spanish page.

http://eccp.blogspot.com/2007/01/cmo-instalar-scratch-en-linux.html

chose spanish to english

Hope this helps

Offline

 

#8 2007-05-15 18:40:40

djh
Scratcher
Registered: 2007-05-15
Posts: 1

Re: ITopic: scratch on linux

I'm surprised that the scratch team excludes Linux.

It seems excessive to have to set up wine just to extract an archive.

Is it possible that the scratch project could supply a straightforward zip file (or tgz or bz2 etc) as well as the windows self-extracting version?

Alternatively, has anybody else already extracted it and can make it available in an open form?

Thanks Dave

Offline

 

#9 2007-05-15 19:01:35

fjr
Scratcher
Registered: 2007-05-15
Posts: 1

Re: ITopic: scratch on linux

I am very disappointed Scratch is not available on Linux.  We have a Microsoft-free home and my wife and young children all use Ubuntu Linux.  Can you please make it a priority to run on Linux. 

Thanks,
Franklin

Offline

 

#10 2007-05-15 23:47:17

nick
Scratcher
Registered: 2007-03-05
Posts: 19

Re: ITopic: scratch on linux

The Windows version is now available as a zip at http://scratch.mit.edu/download. We are working on getting some things (presentation mode and image effects) to compile in Linux, and creating a makefile. Eventually, we hope to have some binaries available for common linux flavors.

Offline

 

#11 2007-05-16 14:35:04

Wubby
Scratcher
Registered: 2007-05-16
Posts: 2

Re: ITopic: scratch on linux

It installs and runs great in wine-0.9.37.  I haven't got sound working yet, but since it runs so smooth, I may just not have sound right on my new system.   Sure, native is better, but until then, give it shot.

EDIT: Sound does work, so does everything else.

Last edited by Wubby (2007-05-17 09:45:47)

Offline

 

#12 2007-05-18 13:51:10

mrdatahs
Scratcher
Registered: 2007-05-18
Posts: 3

Re: ITopic: scratch on linux

Works great virtualized in Windows (I'm currently running Kubuntu with VMWare Server and Scratch on an XP virtual machine).  Here's another voice of support, though, for Scratch in Linux...Better yet, when you get it running, have it be a default package installed in Edubuntu - this is awesome software for logic, programming, algorithms, math, you name it - keep up the good work!

Offline

 

#13 2007-05-24 22:06:53

natalie
Scratch Team
Registered: 2007-03-07
Posts: 100+

Re: ITopic: scratch on linux

Also see http://scratch.mit.edu/forums/viewtopic.php?id=305

Offline

 

#14 2007-06-01 06:47:28

rioffe
Scratcher
Registered: 2007-06-01
Posts: 1

Re: ITopic: scratch on linux

nick wrote:

The Windows version is now available as a zip at http://scratch.mit.edu/download. We are working on getting some things (presentation mode and image effects) to compile in Linux, and creating a makefile. Eventually, we hope to have some binaries available for common linux flavors.

How about switching everything to CMake http://www.cmake.org

Otherwise, excellent idea, excellent implementation!!! Will try to use it to teach my son programming!

Offline

 

#15 2007-07-04 18:42:06

dank
Scratcher
Registered: 2007-07-04
Posts: 1

Re: ITopic: scratch on linux

Only thing I've hit that doesn't work in Wine on Linux so far
is the Help button in scratch.  Can a Scratch person tell
me how that's implemented so I can fix the problem in Wine?

Offline

 

#16 2007-07-24 10:52:34

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

Re: ITopic: scratch on linux

I'm trying to follow a tutorial to teach my son, and the right mouse button does nothing.
If I click on a sprite with the middle button I get the "grab screen region for new costume, export this sprite, delete" menu, but the right one does nothing (according to my tutorial it should bring up the "copy, paste, etc." menu).

Edit: the menu should be "edit image, set rotation center, grab from screen, export this sprite, copy, delete")

All the buttons work if I use a standard squeak image. I'm using the 3.9-8 squeak virtual machine under mandriva 2007.1 with kde.

Last edited by olivluca (2007-07-24 10:55:19)

Offline

 

#17 2007-07-26 08:34:15

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

Re: ITopic: scratch on linux

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)

- support for the (optional) Scratch Board hardware

the driver I see on the download page is just a driver for the usb to serial dongle, and that is supported natively under linux. BTW, my pc has a real serial port, I suppose I could use that instead? Or maybe the squeak vm under linux doesn't support serial i/o? (not that I'm planning to buy a Scratch Board, though I'd like to, unless I find 9 other folks in my area that want to buy it, so I can reduce the shipping cost).

Offline

 

#18 2007-12-05 21:26:08

olivercrazy
Scratcher
Registered: 2007-09-11
Posts: 18

Re: ITopic: scratch on linux

Well.. Tux is the linux mascot so i probaly would get one but at the end of 2007

Offline

 

#19 2007-12-27 22:49:34

Merailima
Scratcher
Registered: 2007-12-27
Posts: 2

Re: ITopic: scratch on linux

Anyway, hope you good luck! smile

Offline

 

#20 2007-12-28 09:22:41

Bingo_324
Scratcher
Registered: 2007-05-20
Posts: 11

Re: ITopic: scratch on linux

Something you could try for running Scratch in Linux under Wine is make a special version that, instead of filling the screen with presentation mode, fills the window (so the display area, in effect, enlarges to fill the window). Scratch adjusts beautifully to the window size when you run it in Windows so why not make presentation mode adjust too? Have a black, grey or whatever bar with the usual tools (green flag, stop and return to normal buttons) and the rest the project. Big ponder small.


~Bingo

TECH SUPPORT DESK: "Have you tried turning it off and turning it on again? Are you sure it's plugged in?"

Offline

 

#21 2008-02-07 23:38:58

MagiCFab
Scratcher
Registered: 2008-02-07
Posts: 1

Re: ITopic: scratch on linux

Wine is not needed under Ubuntu. Here's a quick How To:

1) Download the .ZIP file of Scratch from:
http://scratch.mit.edu/pages/download

The file is:
http://scratch.mit.edu/files/WinScratch.zip

2) Decompress it by either double-clicking on it or typing "unzip WinScratch.zip" from command line

3) Install the Squeak VM via Synaptic or command line. The package is "squeak-vm".

4) Browse to the Scratch directory,right click on the Scratch.image file. Choose "Open with other application..." and "use a custom command", type "/usr/bin/squeak" for the custom command.

The blocks buttons are somehow blank/fuzzy, though that may be an issue with my nVidia drivers.

Offline

 

#22 2008-02-15 15:59:46

Linux123
Scratcher
Registered: 2008-02-14
Posts: 4

Re: ITopic: scratch on linux

mschlager wrote:

The binary is linux-compatible, since squeak is using a VM, hence platform-independent. The way, I'm running scratch on ubuntu-linux:

* The windows-binary is a self-extracting zip-archive. Running the .exe with wine lets you extract it. You get a folder containing the image-file Scratch.image.

* You need to install squeak-vm. Then you can start Scratch from the command-line with 'squeak /path/to/your/Scratch.image'

* The only feature not working is the fullscreen-presentation-mode.

Markus

Same here

Offline

 

#23 2008-02-18 07:09:48

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: ITopic: scratch on linux

There is a linux scratch for the XO (one-laptop-per-child), but it still has some bugs (like not getting (0,0) in the center of the screen.

Offline

 

#24 2008-02-20 16:42:41

i_like_hp_
Scratcher
Registered: 2008-02-20
Posts: 4

Re: ITopic: scratch on linux

Please hurry! We Linux Bugs are waiting!  smile

Offline

 

#25 2008-02-22 10:58:50

aresnick
Scratcher
Registered: 2007-09-17
Posts: 2

Re: ITopic: scratch on linux

Does anyone know of someone getting Scratch to work on 64-bit Linux (in particular, Ubuntu) without installing a chroot? 

I've gotten Squeak working natively (is that the right word for "not using a chroot?") in 64-bit (on a sidenote, it's a shame that Synaptic can't install the squeak-vm on Ubuntu Gutsy), but trying to open Scratch yields the error, "This interpreter (vers. 68000) cannot read image file (vers. 1712914432)."

I believe this is because the Scratch image is 32-bit and my Squeak installation 64 bit (see http://lists.squeakfoundation.org/pipermail/vm-dev/2007-October/001600.html ).  Is the Scratch source available to play around with trying to build a 64-bit VM from scratch (oh man  smile  )?  I tried cloning the 32-bit image with SystemTracer64, to no avail.

Any pointers would be appreciated.  Thanks!


Gratefully,
a.

Offline

 

Board footer