0

Scratch 2 unter Debian Linux installieren

Scratch 2 ist eine feine Sache, bietet es doch zusätzliche Blöcke, mit denen sich der junge Programmiereralltag angenehmer gestalten lässt. Leider ist eine Installation unter Debian etwas aufwändig. Deshalb hier ein kleines HowTo:

 
Schritt 1: i386-Architektur hinzufügen

user@yourdevice:~$ sudo dpkg –add-architecture i386

 
 
Schritt 2: Installieren der notwendigen i386 Libraries

user@yourdevice:~$ 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

 
 
Schritt 3: Keyring für Adobe Air sichtbar machen

user@yourdevice:~$ sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0 /usr/lib/libgnome-keyring.so.0
user@yourdevice:~$ sudo ln -s /usr/lib/i386-linux-gnu/libgnome-keyring.so.0.2.0 /usr/lib/libgnome-keyring.so.0.2.0

 
 
Schritt 4: Adobe Air runterladen

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

 
 
Schritt 5: Air Runtime/SDK runterladen

user@yourdevice:~$ wget https://aur.archlinux.org/cgit/aur.git/snapshot/adobe-air.tar.gz
user@yourdevice:~$ sudo tar xvf adobe-air.tar.gz -C /opt/adobe-air-sdk
user@yourdevice:~$ sudo chmod +x /opt/adobe-air-sdk/adobe-air/adobe-air

 
 
Schritt 5: Aktuelle Scratchversion runterladen von https://scratch.mit.edu/scratch2download/

user@yourdevice:~$ sudo mkdir /opt/adobe-air-sdk/scratch
user@yourdevice:~$ wget https://scratch.mit.edu/scratchr2/static/sa/Scratch-456.0.1.air
user@yourdevice:~$ sudo cp Scratch-456.0.1.air /opt/adobe-air-sdk/scratch/
user@yourdevice:~$ cp Scratch-456.0.1.air /tmp/
user@yourdevice:~$ cd /tmp/
user@yourdevice:~$ unzip /tmp/Scratch-456.0.1.air
user@yourdevice:~$ sudo cp /tmp/icons/AppIcon128.png /opt/adobe-air-sdk/scratch/scratch.png

 
 
Schritt 6: Launcher erstellen:

user@yourdevice:~$ 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_
user@yourdevice:~$ chmod +x /usr/share/applications/Scratch2.desktop

rpn

Nerd, Maker, FabLaber, Chaos Computer Mensch, schreibfauler Gelegenheitsblogger

Schreibe einen Kommentar