-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsetup.sh
36 lines (34 loc) · 1.12 KB
/
setup.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
#!/bin/bash
#
if [[ $EUID != "0" ]] ; then
echo " "
echo "$(tput setaf 6)[$(tput setaf 1)*$(tput setaf 6)]Solo puedes ejecutar con root."
echo " "
exit
fi
echo " "
echo "$(tput setaf 6)[$(tput setaf 1)-$(tput setaf 6)]$(tput setaf 6)[$(tput setaf 1)Instalando requerimientos necesarios en el sistema ...$(tput setaf 6)]"
echo " "
sleep 1
echo "$(tput setaf 6)[$(tput setaf 1)*$(tput setaf 6)]Updating ... "
apt update -y &> /dev/null
echo " "
echo "$(tput setaf 6)[$(tput setaf 1)*$(tput setaf 6)]Upgrading ... "
#apt full-upgrade -y &> /dev/null
echo " "
echo "$(tput setaf 6)[$(tput setaf 1)*$(tput setaf 6)]Installing qrencode ... "
apt install qrencode -y &> /dev/null
echo " "
echo "$(tput setaf 6)[$(tput setaf 1)*$(tput setaf 6)]Installing Toilet ... "
apt install toilet -y &> /dev/null
echo " "
echo "$(tput setaf 6)[$(tput setaf 1)*$(tput setaf 6)]Installing zbar-tools ... "
apt install zbar-tools -y &> /dev/null
echo " "
echo "$(tput setaf 6)[$(tput setaf 1)*$(tput setaf 6)]Installing DarkQR ... "
chmod +x DarkQR
cp DarkQR /usr/bin/
echo " "
sleep 1.5
echo "$(tput setaf 6)[$(tput setaf 3)*$(tput setaf 6)]Completado."
echo " "