Category Archives: Ubuntu

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.