Installing Scratch
From InstallationWiki
| Official Page |
| Project Documentation |
| Download |
|
Contents |
Install Scratch
To download Scratch for Windows, Mac OS X, or Linux, go to http://scratch.mit.edu/ and follow the download link. You will be prompted to register first. Fill in all of the form's requested information or none of it, depending on your desired level of privacy.
Click the Continue to Scratch Download button to display the Scratch Download page.
Here, you can download the installer for your operating system, as shown in the previous screenshot. Feel free to skip ahead to your system.
Windows
For a normal Windows installation, we can download the Scratch installer, which guides us through the installation steps. When you launch the installer, Windows may complain that the Scratch installer is unsigned. You'll need to accept the message by clicking on the Run button, which implies you trust that the Scratch installer will not do harmful things to your computer.
|
If you have a version of Scratch installed, the installer removes the old version prior to installing the new version, which will cause you to lose any customized projects you may have saved to the Projects folder. |
As you click through the installer, the only decision you have to make is where you want to install the Scratch program files. The default location is C:\Program Files\Scratch, but you can change it as needed.
The installer will automatically launch Scratch after the installation finishes.
Run Scratch from flash drive
The Scratch team provides a ZIP file that contains all the program files we need to run Scratch, but it doesn't contain a point-and-click installer. The ZIP installation enables people who do not have administrator rights on their computers to install Scratch. We can also use the ZIP file to extract the Scratch program files to a USB flash drive for portable Scratch programming.
To get started, download the Windows ZIP file from the Scratch Download page. After the download completes, extract the files.
When prompted to choose a destination folder, enter the location of the flash drive. In my example, that's the E:\ drive.
The files will be extracted to the E:\Scratch folder. To open Scratch, browse to the E:\Scratch folder and double-click on Scratch.exe. Refer to the following screenshot:
Integrate Scratch with the PortableApps.com suite
'Port'ableApps.com provides a convenient way for users to run many popular open source applications, such as OpenOffice.Org and Firefox from a flash drive. The suite provides a menu of applications when you click on the PortableApps.com icon in the Windows system tray.
While the applications available directly from http://www.PortableApps.com have their own installers, adding Scratch to the menu is as simple as moving the Scratch program files to the PortableApps folder on the flash drive.
To make Scratch appear on the menu, extract the Scratch program files to the PortableApps folder. In my example, I have installed Scratch to E:\PortableApps\Scratch.
To make the PortableApps menu display the Scratch icon, open the PortableApps menu, and then select Options | Refresh App Icons.
Installation on Macintosh
The Mac OS X install follows the standard Macintosh installation procedures. Download the Mac OS dmg image from the Scratch Download page. Open the Scratch installer by double-clicking on the file you have downloaded. To install, drag the Scratch folder onto the Applications folder.
The installer creates a Scratch folder within the Applications folder. To launch Scratch, navigate to the Applications | Scratch folder and double-click on Scratch.app.
Run Scratch on USB flash drive
Like the Windows version, the OS X version of Scratch can be installed on a flash drive. Instead of dragging the Scratch installer to the Applications folder, drag it to the flash drive instead. This creates a Scratch folder on the flash drive.
Installation on Linux
At the time of this writing, the Scratch team provided a source install and a binary installer for Debian systems, such as Ubuntu. These versions are considered experimental. Linux users can also run Scratch using the Windows application loader Wine (www.winehq.org). Let's take a look at an Ubuntu 8.10 installation and then a Wine installation.
Download the Ubuntu installer from the Scratch Download page. After the download completes, double-click on the file you have downloaded to open the Package Installer, and then click on Install Package.
Enter your password when prompted, and Scratch will begin the installation. The installer puts a Scratch icon in the Applications | Education menu. Click on it to launch Scratch.
If the application doesn't display, continue with the troubleshooting problem.
Troubleshooting
When we launch the application from the menu icon, Ubuntu suppresses the error messages; therefore, we need to open a terminal window to get a handle on the problem. Try to launch the application by typing the command scratch.
Chances are you're encountering an error that says the aoss package can't be found.
To install the aoss package, open the Synaptic Package Manager from the System| Administration menu. When you do a search for "aoss" you'll find the package alsa-oss, which is an Advanced Linux Sound Architecture (ALSA) wrapper for Open Source Software (OSS) applications. You can read the package description if you'd like, but basically this package helps Scratch play sound.
Mark the package for installation. Then apply the changes to install alsa-oss. Now, Scratch will open when you launch it from the Applications | Education menu.
Or, you can just type sudo apt-get install alsa-oss at the command prompt, providing your password as needed.
Limitations
As you might expect with an experimental package, we can anticipate some problems. The biggest problem at the time of this writing was with the sound components of Scratch. You can check the current status at http://info.scratch.mit.edu/Linux_installer.
If you don't want to deal with experimental versions of Scratch, try Wine.
Wine and Scratch
If you need a more stable version, the Windows version of Scratch runs fine on Linux using the Windows application loader, Wine. Follow these steps:
1. Install the Wine package via Synaptic.
2. Download the Windows installer from the Scratch Download page.
3. Open a terminal window and run the command: wine Desktop/ScratchInstaller*
- his command assumes you're working from your home directory and you have downloaded the installer to your desktop.
4. From here, the Scratch installer looks just like it does on native Windows. Follow the default installation choices.
Double-click the Scratch icon on your Ubuntu desktop to open Scratch.
Confirm Java install
We don't need Java to develop Scratch programs, but we do need Java to view our projects on the Web. Most people's web browser will be configured to run Java already, so let's quickly test our browser setup.
Open your web browser and go to http://javatester.org. Click on the link at the top of the page that says, Test the version of Java your browser is using.
If Java is correctly installed, you will see your version of Java inside a pink rectangle, as shown in the following screenshot:
If the test indicates that Java is installed, you're done messing around. If you don't have Java installed, then you need to install it. Windows and Mac users can visit http://www.java.com to download and install the version for your operating system.
Ubuntu users can use Synaptic to install Java from the Ubuntu software repositories. Alternatively, the command sudo apt-get install sun-java6-jre will install Java support.
Redistribute Scratch freely
Put Scratch on a flash drive or burn it to a CD and give it away to your friends, students, and colleagues. Scratch encourages sharing as long as you abide by the license.
You can view the entire Scratch license online at http://info.scratch.mit.edu/Scratch_License. In short, this license grants you the right to distribute Scratch and all its supporting materials, including media files and documentation.
If you do distribute Scratch, you must include the license file and this statement: "Scratch is developed by the Lifelong Kindergarten group at the MIT Media Lab. See http://scratch.mit.edu"
Source code license
Scratch is written in Squeak, an open source implementation of the Smalltalk-80 language. The Scratch source code is available under a second license that grants you the right to modify and distribute the source code as necessary, including derivative works. You can view the license information online at http://info.scratch.mit.edu/Source_Code. Here's a summary of the license:
- You cannot include the word "Scratch" in the name of the derivative work, except to say, "Based on Scratch from the MIT Media Laboratory."
- You must remove the official and trademarked Scratch logo and cat from derivative works.
- You cannot make the derivative work upload projects to the Scratch web site.
Share alike
All Scratch projects available on the Scratch web site and the sample projects included with the installation are available under the Creative Commons Attribution-Share Alike license. This license grants other Scratch users the right to copy and remix the Scratch projects.
Any derivative work you create from a Creative Commons licenses project will also be licensed under the Creative Commons Attribution-Share Alike license. Likewise, any project you make available on the Scratch web site will be licensed to share, including any image files.
As the license implies, you need to attribute your derivative work, as in "this project based on the Pong project by the Scratch sample projects team." That way, you give proper credit to the original author.
For more information on Creative Commons, visit http://creativecommons.org/licenses/by-sa/3.0/.
Source
The source of this content is Chapter 2: Installing Scratch of Scratch 1.4: Beginner’s Guide by Michael Badger (Packt Publishing, 2009).
