Scratch 3 documentation for Ubuntu

Vimal has completed B.E Mechanical Engineering and has experience in various profiles as executive operations, Engineering maintenance, deputy manager- management systems, quality control in a glass container company 12 years. Presently with Redshade Robotics as a mentor cum trainer for embedded systems and robotics using Arduino for 2 years. Already, he offered an Arduino robotics course for STEM land facilitators.

In the website release the scratch 3 desktop and Mac Os version. They didn’t release the Ubuntu version. Vimal goes through these websites like node.js, electron.js, and  scratch_blocks. And he built the scratch 3_desktop Application for Ubuntu.

And also he taught his knowledge to Sandhiya and Praba. How to do the scratch 3 _desktop Application in runtime.

And We use these two websites like node.js and electron.js to develop any application.

This is the documentation: scratch-desktop

Setting up Cadence and Centos

Install Centos:

Did not work:

  1. Installed Centos 32 bit OS.
  2. We realized that Cadence need CentOS 64 bit OS .

To find the OS and CPU do

  • # lscpu
  • It should give something like this:
    • Architecture:          i686 == this indicates the OS
    • CPU op-mode(s):        32-bit, 64-bit == this indicates the OS


  1. Installed Centos 64 bit OS KDE version. Download LiveCD version with KDE or other desktop (we did KDE)
  2. Somehow we changed KDE to Gnome version of CentOS.
# yum -y groups install “GNOME Desktop”

Note: If you want  to install a KDE version please use the following command:

# yum -y groups install “KDE Plasma Workspaces”

Below link will help you to install various Desktops:

  1. We installed CentOS 7.4

To check what version of Centos you have use the following command:

cat /etc/centos-release


Install Cadence:


  1. We used Iscape to install all the packages needed for Cadence.
    1. Unzip and untar the file in a directory
    2. tar -zxvf IScape04.23-s012lnx86.t.Z
    3. iscape/bin/

This will open up a GUI:

Iscape is a user interface where we can install packages by giving a control file. This control file will have all the packages and will automatically download , install and configure the packages you want.

This is little tricky. When you load in the control file

  1. Search and give control file

In our case the control file was called



In installing we got many errors and we were not able to install the complete package.

Install the latest of everything i.e. HotFix if available

  1. The directory of downloads and installs is


We missed the name of the user so we created another userWe added something to be able to use the UI to add a user.

# sudo yum -y install system-config-users



We need to configure the licenses.

After configuring,

To run Cadence:

Start terminal and type

# csh

# virtuoso

How to compress image size in Ubuntu

1. Open the terminal (Ctrl + Alt + T).

2. Install imagemagick by

sudo apt-get install imagemagick

2. Go to the directory of the folder in which you want to reduce the image size.

3. Then type the following command

mogrify -resize 800x * 

Example :

dell@Inspiron:~/Desktop/Image/$ mogrify -resize 800x *

Installing Scratch on a 64x machine & creating desktop icon. (Ubuntu)

The following instruction can be used to install scratch in a 64x machine.



  • Download the Adobe Air and Scratch files from:

  • The following libraries are needed:

    sudo apt-get install libxt6:i386 libnspr4-0d:i386 libgtk2.0-0:i386 libstdc++6:i386 libnss3-1d:i386 lib32nss-mdns libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386

  • Now you have to create a symbolic link to your gnome keyring:

    sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/

    sudo ln -s /usr/lib/x86_64-linux-gnu/ /usr/lib/

  • cd into the directory with the AdobeAIRInstaller.bin
  • sudo ./AdobeAIRInstaller.bin
  • Now install Scratch 2:

    sudo “Adobe AIR Application Installer” /path/to/scratch2/installer/Scratch-437.air

Now making scratch an executable and run when double clicked ( usually needs manual configuration in Ubuntu)

1. define .sb2 file’s type
sudo vi /usr/share/mime/package/***.xml
*** is new file’s name. Set is as you like. ex)scratch2
write text below in the file

<?xml version=“1.0” encoding=“UTF-8”?>
<mime-info xmlns=”“>
<mime-type type=”application/x-scratch2“>
<glob pattern=”*.sb2“/>

2. associate .sb2 file with scratch 2 application
Find ”” file under directory of /usr/share/applications/ ,
and add only one line in the last line of that desktop file.

3. update
sudo update-desktop-databese
sudo update-mime-database

4. reboot PC

Common mistakes or typos:
– “/usr/share/mime/package/” should be “/usr/share/mime/packages/”;
– “sudo update-desktop-databese” should be “sudo update-desktop-database”;
– “sudo update-mime-database” should be “sudo update-mime-database /usr/share/mime”



Incremental Backup for Ubuntu

The command :

tar -cvfz -X excludeList -g 20150407.snar 20150407-full.tar.gz ~

tar-cvfz – creates all the files.

-X excludeList – creates a folder where one can exclude the files that need not be backed up.

-g .snar – this is the command used for incremental backup.

.tar.gz ~ – create .gz files which can be extracted later

  • At first do a full blind backup of all your files.
  • Then for the next backup, create a new .snar file and copy the old .snar to the new one.