Installing the Scratch 2.0 Editor on Linux Mint 17

I want to be able to have kids to Scratch programming without an Internet connection on an open source desktop distro, in spite of Adobe AIR no longer being actively supported on Linux.

This turns out to be not too challenging. First, get the AIR installer:

$ wget http://airdownload.adobe.com/air/lin/download/latest/AdobeAIRInstaller.bin

Make it executable.

$ sudo chmod +x AdobeAIRInstaller.bin

The AIR installer will complain that it can’t find the GNOME Keychain libraries where it expects to, so let’s set up symlinks for those (this is for a 64-bit system):

$ sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
$ sudo ln -s /usr/lib/x86_64-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0

Now, we can run the AIR installer.

$ sudo ./AdobeAIRInstaller.bin

Next, browse to http://scratch.mit.edu/scratch2download and grab the Linux version of Scratch.air. If your browser doesn’t offer to open it with the Adobe Air Installer application when it’s been downloaded, find the file, right-click on it, choose “Open with…”, browse to /usr/bin and select the Air Installer.

You should have a working version of the Scratch 2 Offline editor when the install has completed.

27 thoughts on “Installing the Scratch 2.0 Editor on Linux Mint 17”

  1. I’m trying to set up a Scratch environment on my Linux Mint machine so I can learn it myself, then get my various grandchildren going. I was very interested to see your post on http://www.acme-dot.com/installing-the-scratch-2-0-editor-on-linux-mint-17/ but unfortunatley it does not work for me.

    I set up the symlinks, but when I tried to execute the Air installer, I got error “/tmp/air.W9oRST/setup: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory”

    I’m running Linux Mint 13 Maya, kernel is Linux 3.4.0-5-generic (x86_64)

    If you could help me I would be grateful

    1. Well, that’s a pretty old version of Mint.

      You’re going to need to find the Gnome Keychain libraries. Try something like

      sudo find / -name keyring.so.0

      and see if you can locate it. Do the same for libgnome-keyring.so.0.2.0. Then set up the symlinks as directed, but pointing at the actual locations of these files.

      If you can’t find them, then the only answer I have for you is to upgrade your Mint install (which you should probably do anyway…)

      OH, WAIT. It’s looking for a GTK library…? I think you’re going to need to upgrade to something newer than Mint 13 for this to work.

  2. Hey there. Have you figured out how to make simple a site smartphone pleasant?
    I’m trying to find a theme or wordpress plugin that could possibly resolve this issue. If you have any suggestions, please share.
    Easy inquiry that’s thoroughly off of theme.
    My web site seems peculiar when surfing.

  3. Just wanted to say thanks for this post. Couldn’t get Scratch 2 to load but setting up the symlinks using your instructions fixed it. Thanks for sharing!

  4. Hi – I’m trying to get this going on a 32-bit system (it’s an old donated laptop I’m trying to re-purpose for teaching kids to code). I’ve copied your terminal commands, substituting i386-linux-gnu for x86_64-linux-gnu. But Terminal says ‘Permission denied’! When I list the directory I can see libgnome-keyring.so-0 but when I look at it in the GUI it’s listed as a ‘Link to Unknown’. Should I try to re-install GNOME KEYRING?

  5. Fixed it, I was just missing a bit of the command line. Too many hours looking at tiny screws today, I think! BUT still worth mentioning the i386-linux-gnu directory for 32-bit installations. Everything else works exactly as you describe, so THANK YOU! This is a huge help!

  6. Thanks for the tip. I hate that the authors of Scratch have made it so difficult and – closed – to install Scratch. It really ruins the point of the application.

    I hope someone forks Scratch 1.4 and keeps it open and easy!

  7. I followed the instructions exactly without problem and it seemed to install with no problems and it appears in the applications folder in the accesories folder. During the installation process I checked the box for the program to start at the completion of the installation.

    I did this installation in linux mint17.2 kde.

    My problem: When it starts I get a window that is mostly blank. There’s a bar at the top with the usual options on the right: shrink, maximize/minimize and close. On the left there’s an arrow for a drop down menu with things like mimimize, maximize, move, resize, always on top (and other display options) and close. But there’s nothing present for actually using the program.

    I closed the program an reopened it from the applications menu and it’s the same.

    I even tried rebooting and then opening it and it still gave the same result.

    What should I do?

    1. I’m not sure I could tell you without being able to poke at your PC. Maybe Java’s not properly installed?

    1. Try

      sudo apt-get update

      If that doesn’t help, you’ll have to use apt to remove and reinstall Java (the component name should be java6, I think, but I don’t have a Mint system handy for checking…)

      If you don’t know how to use apt, you need to learn how to use apt.

  8. I’ve just followed your instructions to install onto a 32bit Linux Mint 17.1 laptop.

    Air and Scratch 2 seem to install just fine, I created the necessary symlinks for libgnome-keyring form /usr/lib/i386-linux-gnu to /usr/lib.

    However when running scratch either from Desktop shortcup or from command line, i just get a white blank screen.

    I then tried creating symlinks for *gtk* found in /usr/lib/i386-linux-gnu, still no joy.

    $ java -version
    java version “1.7.0_75”
    OpenJDK Runtime Environment (IcedTea 2.5.4) (7u75-2.5.4-1~trusty1)
    OpenJDK Server VM (build 24.75-b04, mixed mode)

    So I don’t think it’s Java related, really would appreciate help here as I want to use this laptop for my son to go to CoderDojo classes, I don’t own a windows laptop so this is my only option.

    Running from CLI show no errors on screen, not sure how I might trace this further, all help appreaciated.

    cheers

    Matt
    #MattMan on freenode.net

    1. Hm, I’m not really sure what to suggest here. Seems to work fine on my Mint system, and I can’t discern what might be different from the information you’ve provided, sorry. If I have any brainstorms, I’ll let you know.

Leave a Reply

Your email address will not be published. Required fields are marked *