How to install Sencha Cmd on Debian Jessie

How to install Sencha Cmd on Debian Jessie

A step by step instruction for installing Sencha Cmd on Linux Debian Jessie. Great reading for Linux noobies.

Sencha Cmd on Debian Jessie

In this article I will show you how to install Sencha CMD on a Debian Jessie clean install. This means that I assume that you have not installed Java, Ruby and Sencha CMD itself. This article is intended for Windows users that are not that common with Linux.


I am not a big fan of the command line, so forgive me that once in a while I use the Filemanager of the great Jessie Cinnamon GUI to make things a little easier. Make sure that at all times you have a root terminal open, or use "su" to have administrator rights with your terminal session. So let's go.

Step 0: Update your Linux

From the terminal command prompt, followed by Enter:

pr@mpt:/ apt-get update

followed by:

pr@mpt:/ apt-get upgrade

Step 1: Install Ruby

From the terminal type:

pr@mpt:/ apt-get install ruby-full

Step 2: Install Java (Oracle)

Install the Java Runtime (JRE) from here: link

Install 32/64 bits in accordance with your Debian installation. Download this file that ends on '.tar.gz'  to your default download location: /home/youruser/Downloads


Go to your terminal and type followed by Enter:

pr@mpt:/ cd /usr/bin

pr@mpt:/ mkdir java

chmod 777 java

Go to your file manager and copy the downloaded ???.tar.gz Java distribution to the just created java folder.

You can also do it with the command line 'cp' command.



Type in your terminal followed by Enter:

pr@mpt:/ cd /java

pr@mpt:/ tar zxvf server-jre-8u60-linux-x64.tar.gz

Assure that the tar.gz full filename is typed exactly as the name of the downloaded distrubution. The example above might not correspond with your file name. Now we have to make Java work, we do this by typing this from the terminal prompt:

pr@mpt:/ export INSTALL4J_JAVA_HOME=/usr/bin/java/jdk1.8.0_60

The name after JAVA_HOME= might not correspond with your installed Java. To assure you have the right one, type:

pr@mpt:/ ls /usr/bin/java

You will find the name next to your tar.gz file. You can also delete the 'tar.gz' file to save space.

Step 3: Install Sencha Cmd

Before we do the final step I would give some critics to Sencha Inc. for not having a proper installation manual for Sencha Cmd for Linux on their website.

Half work done counts as no work done

Ok, let's do the last bit.

First download Sencha Cmd from here: link

Save the 'zip' file in your default Downloads location. If you don't have an 'unzip' installed in Debian Jessie, you can install 'Ark' with the Synaptic Package Manager. After that said, you unpack the Sencha Cmd 'zip' file. You can do this in the same Downloads folder. It will unpack a file with the .sh extension. Now go to your terminal prompt and type:

pr@mpt:/ sh /home//Downloads/Sencha*

Now it will install Sencha Cmd. You will get an warning complaining:

Gtk-Message: Failed to load module "canberra-gtk-module"

You can ignore this. Finally add Sench Cmd to your PATH. Type this from your terminal prompt:

pr@mpt:/ export PATH=/root/bin/Sencha/Cmd/$PATH

Make sure that the Sencha version in the PATH corresponds with the one you just installed. Type:

pr@mpt:/ ls /root/bin/Sencha/Cmd

Now it will show you the version you have installed. If everything went well you can go to your Sencha Ext JS or Touch application folder and type something like "Sencha app watch" or any other Sencha Cmd instruction.

More from same category