Last active
August 29, 2015 14:20
-
-
Save felipefernandes/bfe9fb4f4bf1ef983b5f to your computer and use it in GitHub Desktop.
Automatizador de instalação Scratch 2.0 no UbuntUCA 3 (BASH) v1.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Este script está sob BSD License - http://opensource.org/licenses/bsd-license.php | |
# Pode ser distribuido e modificado, sempre citando o autor | |
# | |
# Autor: Felipe Fernandes | |
# E-mail: felipefernandesweb@gmail.com | |
# | |
# --------------- | |
# Automatizador de instalação do Scratch 2.0 no UbuntUCA | |
# - Instala o Adobe AIR | |
# - Instala do Scratch 2.0 | |
# --------------- | |
# Baixa o Adobe AIR na pasta downloads | |
echo 'Baixando o Adobe AIR...' | |
echo `wget http://airdownload.adobe.com/air/lin/download/2.6/AdobeAIRInstaller.bin -O /home/aluno/Downloads` | |
# Baixa o Scratch para a pasta Downloads | |
echo 'Baixando o Scratch 2.0 ...' | |
echo `wget https://scratch.mit.edu/scratchr2/static/sa/Scratch-435.air -O /home/aluno/Downloads` | |
# Executa o Instalador do Adobe AIR | |
if [ -r /home/aluno/Downloads/AdobeAIRInstaller.bin ]; | |
then | |
# Adiciona permissão de execução ao Instalador do Adobe AIR | |
echo `chmod +x /home/aluno/Downloads/AdobeAIRInstaller.bin` | |
# Adiciona executa o Instalador do Adobe AIR | |
echo `./AdobeAIRInstaller.bin` | |
else | |
echo 'Algo nao consegui encontrar o arquivo' | |
exit | |
fi | |
#sleep | |
if [ -r /etc/alternatives/Adobe_AIR_Application_Installer ]; | |
then | |
echo `/etc/alternatives/Adobe_AIR_Application_Installer /home/aluno/Downloads/Scratch-435.air` | |
else | |
echo 'Algo nao consegui encontrar o arquivo' | |
exit | |
fi | |
#sleep | |
# Copia o atalho criado no desktop do Root para o Aluno | |
echo `cp ~/Desktop/edu.media.mit.scratch2editor.desktop /home/aluno/Desktop` | |
# Dá propriedade ao usuário aluno para manipular o arquivo | |
echo `chown aluno:aluno /home/aluno/Desktop/edu.media.mit.scratch2editor.desktop` | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment