diff --git a/airootfs/root/install_setup b/airootfs/root/install_setup deleted file mode 100644 index 24cb5ba..0000000 --- a/airootfs/root/install_setup +++ /dev/null @@ -1,114 +0,0 @@ -# screen 1 -whiptail --title "Welcome" --backtitle "SaturnArch" --msgbox "Welcome to SaturnArch installation wizard" 12 80 - -# screen 2 -exec 3>&1; -job=$(whiptail --title "Main menu" --backtitle "SaturnArch" --menu "Choose an option" 25 78 10 \ - "install" "Install SaturnArch on this PC." \ - "exit" "exit to terminal [EXPERT]." 2>&1 1>&3) -exec 3>&-; - -if [ "$job" == "exit" ]; then - exit; -fi - -# screen 3 -exec 3>&1; -job=$(whiptail --title "Disks" --backtitle "SaturnArch" --menu "Do you whant edit disks before install?" 25 78 10 \ - "yes" "Delete\Create\Formate Disks Partions." \ - "no" "Disks are ready for install" 2>&1 1>&3) -exec 3>&-; - -while [ "$job" == "yes" ]; do - - exec 3>&1; - disk=$(whiptail --title "Disk for edit" --backtitle "SaturnArch" --menu "Select disk for edit" 25 90 10 `lsblk -r -o name,size -n -d` 2>&1 1>&3) - exec 3>&-; - - cfdisk /dev/$disk; - - exec 3>&1; - job=$(whiptail --title "Disks" --backtitle "SaturnArch" --menu "Edit another disk?" 25 78 10 \ - "yes" "Im not done, I need edit another" \ - "no" "Im done" 2>&1 1>&3) - exec 3>&-; -done - - -exec 3>&1; -disk=$(whiptail --title "Disk for install" --backtitle "SaturnArch" --menu "Select disk for SaturnArch install" 25 90 10 `lsblk -r -o name,size -n` 2>&1 1>&3) -exec 3>&-; - -exec 3>&1; -grubdisk=$(whiptail --title "Disk for install" --backtitle "SaturnArch" --menu "Select disk for bootloader install" 25 90 10 `lsblk -r -o name,size -n -d` 2>&1 1>&3) -exec 3>&-; - -exec 3>&1; -hostname=$(whiptail --backtitle "SaturnArch" --inputbox "please enter your hostname" 8 39 saturnarch --title "Hostname" 3>&1 1>&2 2>&3) -exec 3>&-; - -exec 3>&1; -hostname=$(whiptail --backtitle "SaturnArch" --inputbox "please enter your username" 8 39 user --title "Username" 3>&1 1>&2 2>&3) -exec 3>&-; - -exec 3>&1; -timezone=$(whiptail --backtitle "SaturnArch" --inputbox "please enter your timezone" 8 39 Europe/Prague --title "timezone" 3>&1 1>&2 2>&3) -exec 3>&-; - -exec 3>&1; -userpass=$(whiptail --backtitle "SaturnArch" --passwordbox "please enter your user password" 8 39 --title "user password" 3>&1 1>&2 2>&3) -exec 3>&-; - -exec 3>&1; -rootpass=$(whiptail --backtitle "SaturnArch" --passwordbox "please enter your root password" 8 39 --title "root password" 3>&1 1>&2 2>&3) -exec 3>&-; - -exec 3>&1; -lang=$(whiptail --backtitle "SaturnArch" --inputbox "please enter your root LANG" 8 39 cs_CZ --title "LANG" 3>&1 1>&2 2>&3) -exec 3>&-; - -exec 3>&1; -packages=$(whiptail --backtitle "SaturnArch" --title "PACKAGES" --checklist \ - "Choose pre-configured groups to install" 20 78 10 \ - "GUI" "XFCE4 Gui" ON \ - "OFFICE" "Full LibreOffice" OFF \ - "IMAGE_EDIT" "Gimp Inkscape" OFF \ - "VIDEO_EDIT" "Blender" OFF \ - "3D_PRINT" "Cura" OFF \ - "DEVELOPMENT" "VSCode Valgrind Make Gcc" OFF \ - "SSH" "OpenSSH server" OFF \ - "SATELLITES" "GQRX" OFF \ - "ASTRONOMY" "Stellarium Celestia (Gtk+)" OFF \ - "ELECTRO" "KiCad Arduino PulseView" OFF \ - "FPGA_ALTERA" "Quartus II" OFF \ - "FPGA_ALTERA_OLD" "Quartus II 13.0sp1" OFF \ - "WINDOWS" "wine (Windows OS apps support)" OFF 2>&1 1>&3) -exec 3>&-; - -echo "starting install" -timedatectl set-ntp true -mount /dev/$disk /mnt -pacstrap /mnt base linux linux-firmware -genfstab -U /mnt >> /mnt/etc/fstab -arch-chroot /mnt -timedatectl set-timezone $timezone -hwclock --systohc --utc -locale-gen -echo "LANG=$lang.UTF-8" > /etc/locale.conf -echo "KEYMAP=de-latin1" > /etc/vconsole.conf -echo "$hostname" > /etc/hostname -echo "127.0.0.1 localhost" > /etc/hosts -echo "::1 localhost" >> /etc/hosts -echo "127.0.1.1 $hostname.localdomain $hostname" >> /etc/hosts -systemctl enable dhcpcd.service -mkinitcpio -P - -pacman -S ttf-dejavu - -#install grub -pacman -S grub -grub-install /dev/$grubdisk -grub-mkconfig -o /boot/grub/grub.cfg - -#do reboot -reboot \ No newline at end of file