publish: Installer Scratch 2 sur Ubuntu (16.10 / 17.04 64-bit)
This commit is contained in:
@@ -1,15 +0,0 @@
|
||||
{
|
||||
"title": "Installer Scratch 2 sur Ubuntu (16.10 / 17.04 64-bit)",
|
||||
"_updated_at": "2026-05-16 14:37:06",
|
||||
"slug": "installer-scratch-2",
|
||||
"published": true,
|
||||
"published_at": "2020-04-17 18:06",
|
||||
"category": "Informatique",
|
||||
"tags": {
|
||||
"tags": [
|
||||
"Scratch"
|
||||
]
|
||||
},
|
||||
"seo_title": "",
|
||||
"seo_description": ""
|
||||
}
|
||||
@@ -1,89 +0,0 @@
|
||||
# Installer Scratch 2 sur Ubuntu (16.10 / 17.04 64-bit)
|
||||
|
||||
Ce tutoriel décrit pas à pas l'installation de **Scratch 2** (l'éditeur de bureau) sur Ubuntu 64-bit. Comme Scratch 2 repose sur **Adobe AIR** — qui n'est plus officiellement supporté sous Linux —, la procédure passe par l'ajout de bibliothèques 32-bit et la récupération du runtime AIR depuis l'AUR d'Archlinux.
|
||||
|
||||
> **Note** : Scratch 2 est aujourd'hui obsolète. Si vous n'avez pas besoin de la version de bureau, préférez **[Scratch 3 en ligne](https://scratch.mit.edu/)**. Ce guide reste utile pour les machines hors-ligne ou les anciens projets `.sb2`.
|
||||
>
|
||||
> Source originale : [askubuntu.com — How to install Scratch 2 on Ubuntu 16.10 or 17.04 64bit](https://askubuntu.com/questions/913892/how-to-install-scratch-2-on-ubuntu-16-10-or-17-04-64bit/913912).
|
||||
|
||||
## 1. Installer les bibliothèques 32-bit nécessaires
|
||||
|
||||
Adobe AIR étant un binaire 32-bit, il faut d'abord ajouter les dépendances `i386` :
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
|
||||
## 2. Rendre le trousseau GNOME visible pour Adobe AIR
|
||||
|
||||
AIR cherche `libgnome-keyring` dans `/usr/lib`. On crée donc deux liens symboliques vers les versions 32-bit :
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
|
||||
## 3. Télécharger et extraire le SDK Adobe AIR
|
||||
|
||||
```bash
|
||||
cd ~/Downloads
|
||||
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
|
||||
```
|
||||
|
||||
## 4. Récupérer le runtime AIR depuis l'AUR
|
||||
|
||||
Le SDK seul ne suffit pas à lancer une application `.air` : on ajoute le runtime packagé sur l'AUR d'Archlinux.
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
|
||||
## 5. Télécharger Scratch 2 et installer son icône
|
||||
|
||||
Récupérez l'URL exacte du `.air` depuis la page officielle [scratch.mit.edu/scratch2download](https://scratch.mit.edu/scratch2download/), puis :
|
||||
|
||||
```bash
|
||||
sudo mkdir /opt/adobe-air-sdk/scratch
|
||||
wget https://scratch.mit.edu/scratchr2/static/sa/Scratch-456.0.1.air
|
||||
sudo cp Scratch-456.0.1.air /opt/adobe-air-sdk/scratch/
|
||||
|
||||
# Extraire l'icône depuis le paquet .air
|
||||
cp Scratch-456.0.1.air /tmp/
|
||||
cd /tmp/
|
||||
unzip /tmp/Scratch-456.0.1.air
|
||||
sudo cp /tmp/icons/AppIcon128.png /opt/adobe-air-sdk/scratch/scratch.png
|
||||
```
|
||||
|
||||
## 6. Créer le lanceur d'application
|
||||
|
||||
Pour faire apparaître Scratch 2 dans le menu des applications :
|
||||
|
||||
```bash
|
||||
sudo tee /usr/share/applications/Scratch2.desktop > /dev/null << 'EOF'
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Exec=/opt/adobe-air-sdk/adobe-air/adobe-air /opt/adobe-air-sdk/scratch/Scratch-456.0.1.air
|
||||
Icon=/opt/adobe-air-sdk/scratch/scratch.png
|
||||
Terminal=false
|
||||
Name=Scratch 2
|
||||
Comment=Programming system and content development tool
|
||||
Categories=Application;Education;Development;ComputerScience;
|
||||
MimeType=application/x-scratch-project
|
||||
EOF
|
||||
|
||||
sudo chmod +x /usr/share/applications/Scratch2.desktop
|
||||
```
|
||||
|
||||
Scratch 2 est maintenant accessible depuis le menu des applications. Bon hacking !
|
||||
@@ -1,38 +1,75 @@
|
||||
# Comment faire pour intaller Scratch 2
|
||||
# Installer Scratch 2 sur Ubuntu (16.10 / 17.04 64-bit)
|
||||
|
||||
https:*askubuntu.com/questions/913892/how-to-install-scratch-2-on-ubuntu-16-10-or-17-04-64bit/913912
|
||||
Ce tutoriel décrit pas à pas l'installation de **Scratch 2** (l'éditeur de bureau) sur Ubuntu 64-bit. Comme Scratch 2 repose sur **Adobe AIR** — qui n'est plus officiellement supporté sous Linux —, la procédure passe par l'ajout de bibliothèques 32-bit et la récupération du runtime AIR depuis l'AUR d'Archlinux.
|
||||
|
||||
> **Note** : Scratch 2 est aujourd'hui obsolète. Si vous n'avez pas besoin de la version de bureau, préférez **[Scratch 3 en ligne](https://scratch.mit.edu/)**. Ce guide reste utile pour les machines hors-ligne ou les anciens projets `.sb2`.
|
||||
>
|
||||
> Source originale : [askubuntu.com — How to install Scratch 2 on Ubuntu 16.10 or 17.04 64bit](https://askubuntu.com/questions/913892/how-to-install-scratch-2-on-ubuntu-16-10-or-17-04-64bit/913912).
|
||||
|
||||
## 1. Installer les bibliothèques 32-bit nécessaires
|
||||
|
||||
Adobe AIR étant un binaire 32-bit, il faut d'abord ajouter les dépendances `i386` :
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
# install necesary i386 libraries
|
||||
$ 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
|
||||
|
||||
# make keyring visible for Adobe Air
|
||||
$ 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
|
||||
## 2. Rendre le trousseau GNOME visible pour Adobe AIR
|
||||
|
||||
# Download Adobe Air
|
||||
AIR cherche `libgnome-keyring` dans `/usr/lib`. On crée donc deux liens symboliques vers les versions 32-bit :
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
|
||||
## 3. Télécharger et extraire le SDK Adobe AIR
|
||||
|
||||
```bash
|
||||
cd ~/Downloads
|
||||
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
|
||||
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
|
||||
```
|
||||
|
||||
# Download Air runtime/SDK from Archlinux
|
||||
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
|
||||
## 4. Récupérer le runtime AIR depuis l'AUR
|
||||
|
||||
# Get actual scratch file URL from https:*scratch.mit.edu/scratch2download/
|
||||
$ sudo mkdir /opt/adobe-air-sdk/scratch
|
||||
Le SDK seul ne suffit pas à lancer une application `.air` : on ajoute le runtime packagé sur l'AUR d'Archlinux.
|
||||
|
||||
```bash
|
||||
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
|
||||
```
|
||||
|
||||
## 5. Télécharger Scratch 2 et installer son icône
|
||||
|
||||
Récupérez l'URL exacte du `.air` depuis la page officielle [scratch.mit.edu/scratch2download](https://scratch.mit.edu/scratch2download/), puis :
|
||||
|
||||
```bash
|
||||
sudo mkdir /opt/adobe-air-sdk/scratch
|
||||
wget https://scratch.mit.edu/scratchr2/static/sa/Scratch-456.0.1.air
|
||||
$ sudo cp Scratch-456.0.1.air /opt/adobe-air-sdk/scratch/
|
||||
sudo cp Scratch-456.0.1.air /opt/adobe-air-sdk/scratch/
|
||||
|
||||
# Extraire l'icône depuis le paquet .air
|
||||
cp Scratch-456.0.1.air /tmp/
|
||||
cd /tmp/
|
||||
unzip /tmp/Scratch-456.0.1.air
|
||||
$ sudo cp /tmp/icons/AppIcon128.png /opt/adobe-air-sdk/scratch/scratch.png
|
||||
sudo cp /tmp/icons/AppIcon128.png /opt/adobe-air-sdk/scratch/scratch.png
|
||||
```
|
||||
|
||||
Create launcher:
|
||||
## 6. Créer le lanceur d'application
|
||||
|
||||
$ cat << _EOF_ > /usr/share/applications/Scratch2.desktop
|
||||
Pour faire apparaître Scratch 2 dans le menu des applications :
|
||||
|
||||
```bash
|
||||
sudo tee /usr/share/applications/Scratch2.desktop > /dev/null << 'EOF'
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
@@ -44,7 +81,9 @@ Name=Scratch 2
|
||||
Comment=Programming system and content development tool
|
||||
Categories=Application;Education;Development;ComputerScience;
|
||||
MimeType=application/x-scratch-project
|
||||
_EOF_
|
||||
EOF
|
||||
|
||||
$ chmod +x /usr/share/applications/Scratch2.desktop
|
||||
```
|
||||
sudo chmod +x /usr/share/applications/Scratch2.desktop
|
||||
```
|
||||
|
||||
Scratch 2 est maintenant accessible depuis le menu des applications. Bon hacking !
|
||||
@@ -1,18 +1,31 @@
|
||||
{
|
||||
"uuid": "7a9b1646-990a-4dfb-bdc7-307a79728074",
|
||||
"slug": "installer-scratch-2",
|
||||
"title": "Comment faire pour intaller Scratch 2",
|
||||
"title": "Installer Scratch 2 sur Ubuntu (16.10 / 17.04 64-bit)",
|
||||
"author": "cedric@abonnel.fr",
|
||||
"published": true,
|
||||
"published_at": "2020-04-17 18:06:28",
|
||||
"featured": false,
|
||||
"published_at": "2020-04-17 18:06",
|
||||
"created_at": "2020-04-17 18:06:28",
|
||||
"updated_at": "2020-04-17 18:06:28",
|
||||
"revisions": [],
|
||||
"updated_at": "2026-05-16 14:37:07",
|
||||
"revisions": [
|
||||
{
|
||||
"n": 1,
|
||||
"date": "2026-05-16 14:37:07",
|
||||
"comment": "Titre modifié, tags modifiés, contenu modifié",
|
||||
"title": "Comment faire pour intaller Scratch 2"
|
||||
}
|
||||
],
|
||||
"cover": "",
|
||||
"files_meta": [],
|
||||
"external_links": [],
|
||||
"seo_title": "",
|
||||
"seo_description": "",
|
||||
"og_image": "",
|
||||
"category": "Informatique"
|
||||
"category": "Informatique",
|
||||
"tags": {
|
||||
"tags": [
|
||||
"Scratch"
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -0,0 +1,50 @@
|
||||
# Comment faire pour intaller Scratch 2
|
||||
|
||||
https:*askubuntu.com/questions/913892/how-to-install-scratch-2-on-ubuntu-16-10-or-17-04-64bit/913912
|
||||
|
||||
```
|
||||
# install necesary i386 libraries
|
||||
$ 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
|
||||
|
||||
# make keyring visible for Adobe Air
|
||||
$ 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
|
||||
|
||||
# Download Adobe Air
|
||||
cd ~/Downloads
|
||||
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
|
||||
|
||||
# Download Air runtime/SDK from Archlinux
|
||||
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
|
||||
|
||||
# Get actual scratch file URL from https:*scratch.mit.edu/scratch2download/
|
||||
$ sudo mkdir /opt/adobe-air-sdk/scratch
|
||||
wget https://scratch.mit.edu/scratchr2/static/sa/Scratch-456.0.1.air
|
||||
$ sudo cp Scratch-456.0.1.air /opt/adobe-air-sdk/scratch/
|
||||
cp Scratch-456.0.1.air /tmp/
|
||||
cd /tmp/
|
||||
unzip /tmp/Scratch-456.0.1.air
|
||||
$ sudo cp /tmp/icons/AppIcon128.png /opt/adobe-air-sdk/scratch/scratch.png
|
||||
|
||||
Create launcher:
|
||||
|
||||
$ cat << _EOF_ > /usr/share/applications/Scratch2.desktop
|
||||
[Desktop Entry]
|
||||
Encoding=UTF-8
|
||||
Version=1.0
|
||||
Type=Application
|
||||
Exec=/opt/adobe-air-sdk/adobe-air/adobe-air /opt/adobe-air-sdk/scratch/Scratch-456.0.1.air
|
||||
Icon=/opt/adobe-air-sdk/scratch/scratch.png
|
||||
Terminal=false
|
||||
Name=Scratch 2
|
||||
Comment=Programming system and content development tool
|
||||
Categories=Application;Education;Development;ComputerScience;
|
||||
MimeType=application/x-scratch-project
|
||||
_EOF_
|
||||
|
||||
$ chmod +x /usr/share/applications/Scratch2.desktop
|
||||
```
|
||||
Reference in New Issue
Block a user