summaryrefslogtreecommitdiff
path: root/configs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh')
-rwxr-xr-xconfigs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh237
1 files changed, 0 insertions, 237 deletions
diff --git a/configs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh b/configs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh
deleted file mode 100755
index 2272795..0000000
--- a/configs/mate/root-image/root/.scriptsInstallation/language/pt/install.sh
+++ /dev/null
@@ -1,237 +0,0 @@
-#!/bin/bash
-#Temporal is a file that contains parameters to use when access to chroot
-
-pacman -Sy parabola-keyring --noconfirm
-pacman-key --populate parabola
-pacman-key --refresh-keys
-
-partition(){
-
- #Search and show the Hard Disks to select
- aux=$(ls /dev/sd?)
- index=0
- for i in $aux; do
- hdds[$index]="${i} ${i#/*/} off"
- index=$((index+1))
- done
-
- hdd=$(dialog --stdout --radiolist "Escolha o Disco" 20 70 50 ${hdds[@]})
-
- #If exist the line delete
- if (cat ~/.scriptsInstallation/temporal | grep "hdd=") &>/dev/null
- then
- sed -i -e '/hdd=*/d' ~/.scriptsInstallation/temporal
- fi
-
- #And add the new line with new parameter
- echo "hdd=$hdd" >> ~/.scriptsInstallation/temporal
-
- selection=$(dialog --stdout --menu "Método de Particionamento" 20 70 50 \
- 1 "Usar todo o disco com o swap (1GB) e /" \
- 2 "Usar o gparted para personalizar" )
-
- case $selection in
- 1)
- umount /mnt &> /dev/null
- #Create msdos partition table
- parted -s $hdd -- mklabel msdos
-
- #Create partition swap and /
- parted -s $hdd -- mkpart primary 1MiB 1000MiB mkpart primary 1000MiB -1s
-
- #Boot option partition /
- parted -s $hdd -- set 2 boot on
-
- #Format and partitions and mount /
- (echo t; echo 1; echo 82; echo w) | fdisk $hdd
- mkswap ${hdd}1
- mkfs.ext4 ${hdd}2
- mount ${hdd}2 /mnt
- ;;
- 2)
- gparted $hdd
-
- #Search and show the partitions that select before.
- aux=$(ls $hdd?)
- index=0;
- for i in $aux; do
- partitions[$index]="${i} ${i#/*/} off"
- index=$((index+1))
- done
-
- partition=$(dialog --stdout --radiolist "Montar a partição /" 20 70 50 ${partitions[@]})
-
- #Mount partition /
- umount /mnt &> /dev/null
- mount $partition /mnt
-
- #Ask if you want mount other partitions
- other=0
- while [ $other != 3 ]; do
- other=$(dialog --stdout --menu "Quer montar outra partição?" 20 70 50 1 "/home" 2 "/boot" 3 "Não")
-
- case $other in
- 1)
- umount /mnt/home &> /dev/null
- mkdir /mnt/home &> /dev/null
- mount $(dialog --stdout --radiolist "Montar a partição /home" 20 70 50 ${partitions[@]}) /mnt/home
- ;;
- 2)
- umount /mnt/boot &> /dev/null
- mkdir /mnt/boot &> /dev/null
- mount $(dialog --stdout --radiolist "Montar a partição /boot" 20 70 50 ${partitions[@]}) /mnt/boot
- ;;
- *)
- other=3
- ;;
- esac
- done
- ;;
- esac
-}
-
-
-option=0
-while [ option != 7 ]; do
- option=$(dialog --stdout --menu "Instalação CLI do Parabola" 20 70 50 \
- 1 "Formatar e Montar as Partições" \
- 2 "Instalar o Sistema Base" \
- 3 "Instalar o GRUB" \
- 4 "Configuração do Sistema" \
- 5 "(Opcional) Instalar Ambiente Gráfico/Aplicativos da Live DVD" \
- 6 "Adicionar uma Conta de Usuário" \
- 7 "Sair" )
-
- case $option in
- 1)
- partition
- ;;
- 2)
- #Install base system
- pacstrap /mnt
- pacstrap /mnt dialog
- ;;
- 3)
- #Install grub
- pacstrap /mnt grub grub2-theme-gnuaxiom
- #Enable Parabola theme for grub
- sed -i 's|[#]GRUB_THEME=["]/path/to/gfxtheme["]|GRUB_THEME="/boot/grub/themes/GNUAxiom/theme.txt"|' /mnt/etc/default/grub
- ;;
- 4)
- #Generate fstab and acces to chroot to do System Config
- genfstab -p /mnt >> /mnt/etc/fstab
- cp ~/.scriptsInstallation/temporal /mnt
- cp ~/.scriptsInstallation/systemConfig.sh /mnt
- chmod +x /mnt/systemConfig.sh
- arch-chroot /mnt /systemConfig.sh
- rm -r /mnt/systemConfig.sh
- ;;
- 5)
- #Packages to the X11 live
- packages=( "xorg-server"
- "xf86-input-evdev"
- "xf86-input-synaptics"
- "xf86-video-amdgpu"
- "xf86-video-ati"
- "xf86-video-dummy"
- "xf86-video-fbdev"
- "xf86-video-intel"
- "xf86-video-nouveau"
- "xf86-video-openchrome"
- "xf86-video-sisusb"
- "xf86-video-vesa"
- "xf86-video-vmware"
- "xf86-video-voodoo"
- "xf86-video-qxl"
- "xorg-xinit"
- "sudo"
- "gst-plugins-good"
- "gst-libav"
- "mate"
- "mate-extra"
- "caja"
- "volumeicon"
- "zenity"
- "octopi"
- "octopi-cachecleaner"
- "octopi-notifier"
- "octopi-repoeditor"
- "ambiance-radiance-colors-suite"
- "rave-x-colors"
- "pulseaudio-alsa"
- "alsa-utils"
- "networkmanager"
- "network-manager-applet"
- "ath9k-htc-firmware"
- "gnome-keyring"
- "iceweasel"
- "iceweasel-l10n-pt-br"
- "icedove"
- "icedove-l10n-pt-br"
- "pidgin"
- "linphone"
- "qtox"
- "gparted"
- "smplayer"
- "epdfview"
- "gpicview"
- "abiword"
- "gnumeric"
- "leafpad"
- "galculator-gtk2"
- "xarchiver"
- "dmidecode"
- "lightdm-gtk-greeter-settings"
- "grub2-theme-gnuaxiom"
- "p7zip"
- "unar"
- "unzip"
- "zip"
- "ttf-dejavu"
- )
-
- #Install packages
- pacstrap /mnt ${packages[@]}
- user=$(cat ~/.scriptsInstallation/temporal | grep "userName" )
-
- #Copy skel in the new system and desktop's background
- cp -a /etc/skel/ /mnt/etc/
- cp -a /etc/wallpaper.png /mnt/etc/wallpaper.png
-
- #Uncomment to allow members of group wheel to execute any command
- sed -i 's|[#] [%]wheel ALL=[(]ALL[)] ALL|%wheel ALL=(ALL) ALL|' /mnt/etc/sudoers
-
- #Enable services
- cp -a ~/.scriptsInstallation/x11.sh /mnt
-
- #Enable services with systemd
- chmod +x /mnt/x11.sh
- arch-chroot /mnt /x11.sh
- rm /mnt/x11.sh
- ;;
- 6)
- #Create a new username and save in temporal, to use after
- if (cat ~/.scriptsInstallation/temporal | grep "userName=") &>/dev/null
- then
- sed -i -e '/userName=*/d' ~/.scriptsInstallation/temporal
- fi
-
- echo "userName=$(dialog --stdout --inputbox "Insira o nome do usuário" 8 40)" >> ~/.scriptsInstallation/temporal
- cp ~/.codecheck /mnt
- cp ~/.scriptsInstallation/temporal /mnt
- cp ~/.scriptsInstallation/userAccount.sh /mnt
- chmod +x /mnt/userAccount.sh
- arch-chroot /mnt /userAccount.sh
- rm -r /mnt/userAccount.sh
- ;;
- *)
- #Delete temporal file and umount partitions
- rm -r /mnt/.codecheck
- rm -r /mnt/temporal
- umount /mnt/boot &> /dev/null
- umount /mnt/home &> /dev/null
- umount /mnt &> /dev/null
- exit
- ;;
- esac
-done