-
Notifications
You must be signed in to change notification settings - Fork 0
/
install.sh
executable file
·53 lines (44 loc) · 1.32 KB
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#!/bin/sh -e
SCRATCH2_VERSION=453
yum -y install \
ld-linux.so.2 \
gtk2-devel.i686 \
libdbus-glib-1.so.2 \
libhal.so.1 \
rpm-devel.i686 \
libXt.so.6 \
gnome-keyring-devel.i686 \
libxml2-devel.i686 \
nss-devel.i686 \
PackageKit-gtk-module.i686 \
libcanberra-gtk2.i686 \
nspluginwrapper.i686 \
gtk2-engines.i686 \
libxslt \
libxslt.i686 \
patch \
liberation-mono-fonts \
liberation-sans-fonts \
liberation-serif-fonts \
dejavu-sans-fonts \
dejavu-sans-mono-fonts \
dejavu-serif-fonts \
urw-fonts
yum -y install Xvfb
useradd scratchy
mkdir -p /home/scratchy/Downloads /home/scratchy/Documents
cd /home/scratchy/Downloads
curl -L -O http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin
chmod +x AdobeAIRInstaller.bin
curl -L -O https://scratch.mit.edu/scratchr2/static/sa/Scratch-${SCRATCH2_VERSION}.air
chmod +x Scratch-${SCRATCH2_VERSION}.air
Xvfb :1 &
export DISPLAY=:1
/home/scratchy/Downloads/AdobeAIRInstaller.bin -silent -eulaAccepted /home/scratchy/Downloads/Scratch-${SCRATCH2_VERSION}.air
cd /opt/Scratch\ 2/share/locale
patch </tmp/de-wedo2.po.patch
ln -s /opt/Scratch\ 2/bin/Scratch\ 2 /usr/bin/scratch
rm -f /home/scratchy/Downloads/*
chown -R scratchy.scratchy /home/scratchy
yum -y history undo last
yum clean all