-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_script_gnome.sh
executable file
·106 lines (82 loc) · 3.3 KB
/
install_script_gnome.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
106
#!/bin/bash
#Instalación basada en qtile y xorg
PACKAGES_TO_INSTALL="libcairo2 python3-pip libgdk-pixbuf2.0-0 libpangocairo-1.0-0 vim htop screenfetch fonts-ubuntu fonts-powerline git openjdk-11-jdk flatpak nodejs npm chromium firefox-esr ffmpeg obs-studio tilix vlc gimp gmtp unrar zip fonts-font-awesome fonts-noto-mono printer-driver-all flameshot vim-gtk samba transmission-gtk sane-airscan sane breeze-icon-theme arc-theme"
echo "¿Instalar iwlwifi (Controladores para tarjetas wifi intel/tp-link)? Si/No"
read iwlwifi
echo "¿Instalar driver de nvidia? Si/No"
read nvidia
echo "¿Instalar paquetes de virtualizacion? Si/No"
read qemu
echo "Especificar usuario a configurar: "
read user
echo "¿Instalar oh my bash? Si/No"
read ohmybash
echo "¿Instalar discord(flatpak)? Si/No"
read discord
echo "¿Instalar kdenlive(flatpak)? Si/No"
read kdenlive
echo "¿Instalar dropbox(flatpak)? Si/No"
read dropbox
echo "¿Instalar bluetooth? Si/No"
read bluetooth
SCRIPT_DIR="$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )"
if [ "${iwlwifi,,}" = "si" ]
then
PACKAGES_TO_INSTALL="${PACKAGES_TO_INSTALL} firmware-iwlwifi"
fi
if [ "${nvidia,,}" = "si" ]
then
PACKAGES_TO_INSTALL="${PACKAGES_TO_INSTALL} nvidia-driver"
fi
if [ "${qemu,,}" = "si" ]
then
PACKAGES_TO_INSTALL="${PACKAGES_TO_INSTALL} qemu qemu-system libvirt-clients libvirt-daemon-system spice-client-gtk"
fi
if [ "${bluetooth,,}" = "si" ]
then
PACKAGES_TO_INSTALL="${PACKAGES_TO_INSTALL} bluetooth pulseaudio-module-bluetooth"
fi
sed -i 's/deb http:\/\/deb.debian.org\/debian\/ bullseye main/deb http:\/\/deb.debian.org\/debian\/ bullseye main non-free contrib/' /etc/apt/sources.list
sed -i 's/deb-src http:\/\/deb.debian.org\/debian\/ bullseye main/deb-src http:\/\/deb.debian.org\/debian\/ bullseye main non-free contrib/' /etc/apt/sources.list
apt update
apt install $PACKAGES_TO_INSTALL -y
pip3 install xcffib && pip3 install cairocffi && pip3 install qtile
pip3 install psutil
pip3 install dbus-next
runuser -l $user -c "cd ~"
if [ "${ohmybash,,}" = "si" ]
then
if [ ! -d "/home/${user}/.oh-my-bash" ]
then
runuser -l $user -c 'wget https://raw.github.com/ohmybash/oh-my-bash/master/tools/install.sh -O ohmybash.sh'
runuser -l $user -c "sed -i 's/exec bash; source \$HOME\/.bashrc/exit/' ohmybash.sh"
chmod +x /home/$user/ohmybash.sh
runuser -l $user -c './ohmybash.sh'
runuser -l $user -c 'sed -i "s/OSH_THEME=\"font\"/OSH_THEME=\"powerline\"/" .bashrc'
echo "termina proceso instalacion oh-my-bash"
fi
echo "saliendo de oh-my-bash if"
fi
echo "configurando flathub en flatpak"
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
if [ "${discord,,}" = "si" ]
then
echo "Instalando discord..."
flatpak install flathub com.discordapp.Discord -y
fi
if [ "${kdenlive,,}" = "si" ]
then
echo "Instalando kdenlive"
flatpak install flathub org.kde.kdenlive -y
fi
if [ "${dropbox,,}" = "si" ]
then
echo "Instalando dropbox..."
flatpak install flathub com.dropbox.Client -y
fi
echo "Configurando vim"
runuser -l $user -c 'wget https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
runuser -l $user -c 'mkdir -p ~/.vim/autoload'
runuser -l $user -c 'mv plug.vim ~/.vim/autoload/'
echo "Proceso de instalación finalizado"
exit