Install Adobe AIR in Ubuntu 17.04 at 64 bit

Scritto da:MD     Categoria: 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/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0

We now download a part of the program:

cd ~/Download
wget http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRSDK.tbz2
sudo mkdir /opt/adobe-air-sdk
sudo tar jxf AdobeAIRSDK.tbz2 -C /opt/adobe-air-sdk

We download the AIR SDK

wget https://aur.archlinux.org/cgit/aur.git/snapshot/adobe-air.tar.gz
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]
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/opt/adobe-air-sdk/adobe-air/adobe-air /opt/adobe-air-sdk/NomeProgramma/NomeEseguibile.air
Icon=/opt/adobe-air-sdk/NomeProgramma/iconaProgramma.png
Terminal=false
Name=NomeProgramma
Comment= quello che vuoi
Categories=Application;Education;Development;ComputerScience;
MimeType=application/vnd.adobe.air-application-installer-package+zip
_EOF_

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

Tags: , , , , ,

Comments are closed.