-
Notifications
You must be signed in to change notification settings - Fork 1
/
labinfo.sh
105 lines (93 loc) · 3.98 KB
/
labinfo.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
#!/bin/bash
# Potigol
rm -r ./potigol
sudo mkdir potigol
cd potigol
sudo wget https://github.com/potigol/Potigol/releases/download/0.9.15/potigol.zip
sudo rm potigol.png
sudo wget https://github.com/potigol/Potigol/releases/download/0.9.14/potigol.png
sudo unzip -o *.zip
sudo rm *.zip
cd ..
sudo rm -r /usr/local/lib/potigol
sudo mv potigol /usr/local/lib/.
# Criar Atalho
cd /home/aluno/Área\ de\ Trabalho
sudo touch potigol_lancador.desktop
echo "[Desktop Entry]" | sudo tee -a potigol_lancador.desktop
echo "Name=Potigol" | sudo tee -a potigol_lancador.desktop
echo "Type=Application" | sudo tee -a potigol_lancador.desktop
echo "Exec=java -jar /usr/local/lib/potigol/epotigol.jar" | sudo tee -a potigol_lancador.desktop
echo "Icon=/usr/local/lib/potigol/potigol.png" | sudo tee -a potigol_lancador.desktop
sudo chmod +x potigol_lancador.desktop
sudo cp potigol_lancador.desktop /usr/share/applications/.
# Configurar bash
echo "alias potigol='java -jar /usr/local/lib/potigol/potigol.jar'" | sudo tee -a /etc/bash.bashrc
echo "alias epotigol='java -jar /usr/local/lib/potigol/epotigol.jar'" | sudo tee -a /etc/bash.bashrc
# Antlr
cd /usr/local/lib
sudo curl -O http://www.antlr.org/download/antlr-4.7.1-complete.jar
echo "export CLASSPATH='.:/usr/local/lib/antlr-4.7.1-complete.jar:$CLASSPATH'" | sudo tee -a /etc/bash.bashrc
echo "alias antlr4='java -jar /usr/local/lib/antlr-4.7.1-complete.jar'" | sudo tee -a /etc/bash.bashrc
echo "alias grun='java org.antlr.v4.gui.TestRig'" | sudo tee -a /etc/bash.bashrc
# Java 10
sudo add-apt-repository ppa:linuxuprising/java -y
sudo apt update
sudo apt install oracle-java10-installer -y
# Atom
sudo add-apt-repository ppa:webupd8team/atom -y
sudo apt-get update
sudo apt-get install atom
sudo -l -u aluno apm install language-potigol
sudo -l -u aluno apm install language-scala
sudo chmod +x /usr/share/applications/atom.desktop
sudo cp /usr/share/applications/atom.desktop /home/aluno/Área\ de\ Trabalho
# Python
sudo add-apt-repository ppa:jonathonf/python-3.6 -y
sudo apt-get update
sudo apt-get install python3.6 -y
# Ruby + Gosu
sudo add-apt-repository ppa:brightbox/ruby-ng -y
sudo apt-get update
sudo apt-get install ruby2.5 -y
sudo gem update
sudo gem install gosu
sudo gem2.5 update
sudo gem2.5 install gosu
# Scala
sudo apt-get remove scala-library scala
sudo wget http://scala-lang.org/files/archive/scala-2.12.7.deb
sudo dpkg -i scala-2.12.7.deb
sudo apt-get update
sudo apt-get install scala
# SBT
echo "deb https://dl.bintray.com/sbt/debian /" | sudo tee -a /etc/apt/sources.list.d/sbt.list
sudo apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv 2EE0EA64E40A89B84B2DF73499E82A75642AC823
sudo apt-get update
sudo apt-get install sbt
# Eclipse
sudo rm -Rf /opt/eclipse/
sudo rm -Rf /usr/share/applications/eclipse.desktop
sudo rm -Rf /home/aluno/Área\ de\ Trabalho/eclipse.desktop
sudo wget -c http://eclipse.c3sl.ufpr.br/technology/epp/downloads/release/oxygen/3a/eclipse-jee-oxygen-3a-linux-gtk-x86_64.tar.gz -O eclipse.tar.gz
sudo tar -zxvf eclipse.tar.gz -C /opt/
sudo rm eclipse.tar.gz
sudo wget https://dl2.macupdate.com/images/icons128/11662.png -O /opt/eclipse/eclipse.png
echo -e '[Desktop Entry]\n Version=1.0\n Name=eclipse\n Exec=/opt/eclipse/eclipse\n Icon=/opt/eclipse/eclipse.png\n Type=Application\n Categories=Application' | sudo tee /usr/share/applications/eclipse.desktop
sudo chmod +x /usr/share/applications/eclipse.desktop
sudo cp /usr/share/applications/eclipse.desktop /home/aluno/Área\ de\ Trabalho/
# Code Blocks
sudo add-apt-repository ppa:damien-moore/codeblocks-stable
sudo apt-get update
sudo apt-get install codeblocks
# Brave
curl https://s3-us-west-2.amazonaws.com/brave-apt/keys.asc | sudo apt-key add -
echo "deb [arch=amd64] https://s3-us-west-2.amazonaws.com/brave-apt `lsb_release -sc` main" | sudo tee -a /etc/apt/sources.list.d/brave-`lsb_release -sc`.list
sudo apt update
sudo apt install brave
# Atualizacao dos pacotes ja instalados
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean