Install Adobe AIR in Ubuntu 17.04 at 64 bit

Posted by MD     Category: Informatica

Since I needed a program made in AIR, I had to work to find the way to install it on version 17.04 amd64.
First of all, you will need the installable dependencies by opening a terminal (ctrl + t) and copying:

sudo apt-get install libgtk2.0-0:i386 libstdc++6:i386 libxml2:i386 libxslt1.1:i386 libcanberra-gtk-module:i386 gtk2-engines-murrine:i386 libqt4-qt3support:i386 libgnome-keyring0:i386 libnss-mdns:i386 libnss3:i386 libxaw7 libnss3:i386 libnss-mdns:i386 libxt6:i386 libnspr4:i386

Now you have to create symbolic links for proper functioning:

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

We now download a part of the program:

cd ~/Download
sudo mkdir /opt/adobe-air-sdk
sudo tar jxf AdobeAIRSDK.tbz2 -C /opt/adobe-air-sdk

We download the AIR SDK

sudo tar xvf adobe-air.tar.gz -C /opt/adobe-air-sdk
sudo chmod +x /opt/adobe-air-sdk/adobe-air/adobe-air

Now we are in place, now I’ll explain how to install any program with * .air extension
Obviously replace “NomePacchettoProgramma”(ProgramPartyName) end “NomeProgramma”(ProgramName) according to your needs !!

sudo mkdir /opt/adobe-air-sdk/NomeProgramma
sudo cp NomePacchettoProgramma.air /opt/adobe-air-sdk/NomeProgramma/
sudo mkdir /tmp/air
sudo cp NomePacchettoProgramma.air /tmp/air
cd /tmp/air
unzip /tmp/air/NomePacchettoProgramma.air
sudo cp /tmp/air /opt/adobe-air-sdk/NomeProgramma

Now let’s create a pitcher for the main menu (also replace “NomeEseguibile”(exec) and “iconaProgramma”(icon))

sudo su
cat << _EOF_ > /usr/share/applications/NomeProgramma.desktop
[Desktop Entry]
Exec=/opt/adobe-air-sdk/adobe-air/adobe-air /opt/adobe-air-sdk/NomeProgramma/NomeEseguibile.air
Comment= quello che vuoi

chmod +x /usr/share/applications/NomeProgramma.desktop

Now just look in the “ProgramName” menu and you will start
Probably the additional settings that will create the program will be found in ~ /.appdata/ProgramName

See you soon. Bye