-
Notifications
You must be signed in to change notification settings - Fork 0
/
script.sh
executable file
·110 lines (91 loc) · 3.61 KB
/
script.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
107
108
109
110
#!/bin/bash
#Check if user is root
if [ "$(id -u)" -ne 0 ]; then
echo "Please run as root"
exit
fi
#vars
usr=$(id -u -n 1000)
dir=$(pwd)
#############################################################################################################
# Update and Upgrade
apt update && apt upgrade -y
## Install Nala and Git
apt install nala git -y
#############################################################################################################
## Install System apps
# Flatpak
nala install flatpak -y
if [[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]]; then
nala install gnome-software-plugin-flatpak -y
elif [[ "$XDG_CURRENT_DESKTOP" == *"KDE"* ]]; then
apt install plasma-discover-backend-flatpak
else
echo "No se pudo determinar el entorno de escritorio."
fi
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install com.github.tchx84.Flatseal
#############################################################################################################
## CLEAN Gnome
if [[ "$XDG_CURRENT_DESKTOP" == *"GNOME"* ]]; then
$dir/extras/installers/gnome/clean_gnome.sh
echo "u can install some customizations and extensions for gnome if u run the script "
echo "extras/installers/gnome/gnome-cust.sh and adw-gtk3.sh and gnome-ext.sh"
fi
#############################################################################################################
### Install Apps
nala update && nala upgrade -y
for pkg in wget gpg curl rclone thunderbird zoxide trash-cli preload pipewire wireplumber pavucontrol helvum build-essential htop btop tree tldr; do
nala install $pkg -y
done
flatpak install flathub md.obsidian.Obsidian dev.vencord.Vesktop com.prusa3d.PrusaSlicer io.github.vikdevelop.SaveDesktop com.rtosta.zapzap org.videolan.VLC com.obsproject.Studio -y
## Firefox
$dir/extras/installers/auto/firefox-deb.sh
## Brave
$dir/extras/installers/auto/brave.sh
## Vs Code
$dir/extras/installers/auto/code.sh
## NVIM
$dir/extras/installers/auto/nvim.sh
## Enable wireplumber
sudo -u $usr systemctl --user enable wireplumber.service
i
## QEMU and KVM
echo -e "\n\n\nInstall QEMU? \n\n1. YES \n2. NO [Default]"
read respuesta -r
if [ "$respuesta" -eq 1 ]; then
printf "\nInstalling QEMU..."
nala install qemu-kvm virt-manager virtinst spice-vdagent libvirt-clients bridge-utils libvirt-daemon-system -y
systemctl enable --now libvirtd
systemctl start libvirtd
usermod -aG kvm $usr
usermod -aG libvirt $usr
fi
## Docker
echo -e "\n\n\nInstall Docker?\n\n1. YES \n2. NO [Default]\n"
read respuesta -r
if [ "$respuesta" -eq 1 ]; then
$dir/extras/installers/auto/docker.sh
fi
#############################################################################################################
### PERSONALIZATION
## CTT Script
#git clone https://github.com/ChrisTitusTech/debian-titus
$dir/debian-titus/install.sh
$dir/debian-titus/mybash/setup.sh
## Grub Theme
echo "Install Grub Theme"
echo "=================================="
echo "My favorite is VIMIX, choose one"
echo "=================================="
#git clone https://github.com/ChrisTitusTech/Top-5-Bootloader-Themes
cd $dir/Top-5-Bootloader-Themes
./install.sh
#############################################################################################################
echo "======================"
echo -e "\n\n\U can look for more apps in the extras folder \nand read some notes about the system in the notes folder"
echo "======================"
echo -e "\n\n\nFinished script"
echo "======================"
echo "Reboot your system"
#############################################################################################################