-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathinterfaz-grafica.sh
executable file
·65 lines (56 loc) · 1.92 KB
/
interfaz-grafica.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
#!/bin/bash -x
set -e
sudo sed -i "s/\#\$nrconf{restart} = 'i';/\$nrconf {restart} = 'l';/" /etc/needrestart/needrestart.conf
sudo apt-get update -y
sudo apt-get install -y \
aptitude \
xorg \
xfce4 \
xfce4-screenshooter \
xfce4-panel-profiles \
xfce4-whiskermenu-plugin \
xarchiver \
terminator \
mousepad \
lightdm \
lightdm-gtk-greeter \
gpg \
apt-transport-https \
gnome-keyring \
firefox
# Se obtiene el nombre de la última release de Eclipse y la arquitectura
ECLIPSE_VERSION=$(curl -fsS https://eclipse.c3sl.ufpr.br/technology/epp/downloads/release/release.xml | grep -oPm1 "(?<=<present>)[^<]+")
ARCHITECTURE=$(case "$(dpkg --print-architecture)" in ("amd64") echo "x86_64" ;; ("arm64") echo "aarch64" ;; esac)
ECLIPSE_TARBALL=eclipse-cpp-$(echo ${ECLIPSE_VERSION:?} | tr '/' '-')-linux-gtk-${ARCHITECTURE:?}.tar.gz
# Se instala Eclipse desde el mirror de Brasil
sudo rm -rf /opt/eclipse
curl -fsS "https://eclipse.c3sl.ufpr.br/technology/epp/downloads/release/$ECLIPSE_VERSION/$ECLIPSE_TARBALL" | sudo tar xvzC /opt
# Se agrega la entrada al escritorio
mkdir -pv ~/.local/share/applications
cat > ~/.local/share/applications/eclipse.desktop <<EOF
[Desktop Entry]
Version=1.1
Type=Application
Name=Eclipse
Icon=/opt/eclipse/icon.xpm
Exec=/opt/eclipse/eclipse
Comment=An IDE for C/C++ Developers
Categories=Development;IDE;
Terminal=false
Encoding=UTF-8
StartupNotify=false
EOF
# Se instala VSCode
if [[ "$(dpkg --print-architecture)" == "arm64" ]]; then
curl -L "https://code.visualstudio.com/sha/download?build=stable&os=linux-deb-arm64" -o ./code.deb
sudo apt install -y ./code.deb
rm -fv ./code.deb
else
sudo snap install code --classic
fi
# Se instalan las extensiones recomendadas
code --install-extension ms-vscode.cpptools-extension-pack
code --install-extension ms-vscode.hexeditor
code --install-extension matepek.vscode-catch2-test-adapter
code --install-extension eamodio.gitlens
code --install-extension nhoizey.gremlins