summaryrefslogtreecommitdiff
path: root/configs/profile/root-image/root/.install-openrc-lxde/language/es/install.sh
diff options
context:
space:
mode:
Diffstat (limited to 'configs/profile/root-image/root/.install-openrc-lxde/language/es/install.sh')
-rwxr-xr-xconfigs/profile/root-image/root/.install-openrc-lxde/language/es/install.sh184
1 files changed, 0 insertions, 184 deletions
diff --git a/configs/profile/root-image/root/.install-openrc-lxde/language/es/install.sh b/configs/profile/root-image/root/.install-openrc-lxde/language/es/install.sh
deleted file mode 100755
index d38b12a..0000000
--- a/configs/profile/root-image/root/.install-openrc-lxde/language/es/install.sh
+++ /dev/null
@@ -1,184 +0,0 @@
-#!/bin/bash
-#Temporal is a file that contains parameters to use when access to chroot
-
-if [ ! -f /root/.install-openrc-lxde/.pacman ]; then
- pacman -Sy archlinux-keyring archlinux32-keyring parabola-keyring --noconfirm
- pacman-key --populate archlinux archlinux32 parabola
- pacman-key --refresh-keys
- case $? in
- 0) touch /root/.install-openrc-lxde/.pacman
- ;;
- *) false
- ;;
- esac
-fi
-
-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 "Selecciona Disco Duro" 20 70 50 ${hdds[@]})
-
- #If exist the line delete
- if (cat /root/.install-openrc-lxde/temporal | grep "hdd=") &>/dev/null
- then
- sed -i -e '/hdd=*/d' /root/.install-openrc-lxde/temporal
- fi
-
- #And add the new line with new parameter
- echo "hdd=$hdd" >> /root/.install-openrc-lxde/temporal
-
- selection=$(dialog --stdout --menu "Metodo de Particionado" 20 70 50 \
- 1 "Usar todo el disco con swap (1GB) y /" \
- 2 "Usar 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 particion /" 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 "¿Montar otra particion?" 20 70 50 1 "/home" 2 "/boot" 3 "No")
-
- case $other in
- 1)
- umount /mnt/home &> /dev/null
- mkdir /mnt/home &> /dev/null
- mount $(dialog --stdout --radiolist "Montar particion /home" 20 70 50 ${partitions[@]}) /mnt/home
- ;;
- 2)
- umount /mnt/boot &> /dev/null
- mkdir /mnt/boot &> /dev/null
- mount $(dialog --stdout --radiolist "Mount particion /boot" 20 70 50 ${partitions[@]}) /mnt/boot
- ;;
- *)
- other=3
- ;;
- esac
- done
- ;;
- esac
-}
-
-
-option=0
-while [ option != 7 ]; do
- option=$(dialog --stdout --menu "Instalación CLI de Parabola" 20 70 50 \
- 1 "Formatear y Montar Particiones" \
- 2 "Instalar Sistema Base" \
- 3 "Instalar GRUB" \
- 4 "Configuración del Sistema" \
- 5 "Crear Cuenta de Usuario" \
- 6 "(Opcional) Instalar Escritorio/Aplicaciones del Live DVD" \
- 7 "Salir" )
-
- case $option in
- 1)
- partition
- ;;
- 2)
- #Install base system
- pacstrap /mnt base-openrc
- pacstrap /mnt dialog
- ;;
- 3)
- #Install grub
- pacstrap /mnt grub
- #Enable Parabola theme for grub
- sed -i 's|^#GRUB_THEME=.*|GRUB_THEME=/boot/grub/themes/parabola-laf/theme.txt|' /mnt/etc/default/grub
- ;;
- 4)
- #Generate fstab and acces to chroot to do System Config
- genfstab -p /mnt >> /mnt/etc/fstab
- cp /root/.install-openrc-lxde/temporal /mnt
- cp /root/.install-openrc-lxde/systemConfig.sh /mnt
- chmod +x /mnt/systemConfig.sh
- arch-chroot /mnt /systemConfig.sh
- rm -r /mnt/systemConfig.sh
- ;;
- 5)
- #Create a new username and save in temporal, to use after
- if (cat /root/.install-openrc-lxde/temporal | grep "userName=") &>/dev/null
- then
- sed -i -e '/userName=*/d' /root/.install-openrc-lxde/temporal
- fi
-
- echo "userName=$(dialog --stdout --inputbox "Introduce nombre de usuario" 8 40)" >> /root/.install-openrc-lxde/temporal
- cp /root/.install-openrc-lxde/temporal /mnt
- cp /root/.install-openrc-lxde/userAccount.sh /mnt
- chmod +x /mnt/userAccount.sh
- arch-chroot /mnt /userAccount.sh
- rm -r /mnt/userAccount.sh
- ;;
- 6)
- #Packages to the X11 live
- packages=( $( cat ./packages ) )
-
- #Install packages
- pacman -Sy -r /mnt ${packages[@]} --needed --noconfirm
- user=$(cat /root/.install-openrc-lxde/temporal | grep "userName" )
-
- #Copy skel in the new system and desktop's background
- cp -a /etc/skel/ /mnt/etc/
-
- #Puts the XKBMAP, start X11 automatically and icewm desktop
- echo "setxkbmap $(cat /root/.codecheck | grep XKBMAP= | cut -d '=' -f 2)" > /mnt/etc/skel/.xinitrc
- echo "exec startlxde" >> /mnt/etc/skel/.xinitrc
- echo "startx" >> /mnt/etc/skel/.bash_profile
- chmod +x /mnt/etc/skel/.xinitrc
- cp -a /mnt/etc/skel/.[a-z]* /mnt/home/${user#*=}/
- cp -a /root/.install-openrc-lxde/x11.sh /mnt
-
- #Enable services with OpenRC and configure other stuff
- chmod +x /mnt/x11.sh
- arch-chroot /mnt /x11.sh
- rm /mnt/x11.sh
- ;;
- *)
- #Delete temporal file and umount partitions
- rm -r /mnt/temporal
- umount /mnt/boot &> /dev/null
- umount /mnt/home &> /dev/null
- umount /mnt &> /dev/null
- exit
- ;;
- esac
-done