Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- # setting the keyboard layout to UK
- loadkeys uk
- echo set keyboard layout to UK
- #ensures that the system clock is accurate
- timedatectl set-ntp true
- clear
- #disk partitioning
- #displays all of the drives
- fdisk -l
- echo which drive would you like to install Arch on?
- read installDrive
- clear
- #actual partitioning - presumes 250GB drive
- boot='1'
- swap='2'
- root='3'
- bootPartition='$installDrive$boot'
- rootPartition='$installDrive$root'
- swapPartition='$installDrive$swap'
- parted $installDrive
- mklabel gpt
- #boot
- mkpart primary fat32 1MiB 551MiB
- set 1 esp on
- #swap
- mkpart primary linux-swap 551MiB 17.5GiB
- #root
- mkpart primary ext4 17.5GiB 100%
- quit
- #formatting
- mkswap $swapPartition
- swapon $swapPartition
- mkfs.ext4 $rootPartition
- #mounting
- mount $rootPartition /mnt
- mount $bootPartition /mnt/efi
- #install
- pacstrap /mnt base base-devel
- #config time!!!
- #generating fstab
- genfstab -U /mnt >> /mnt/etc/fstab
- #get into the newly installed OS
- arch-chroot /mnt
- #set timezone
- ln -sf /usr/share/zoneinfo/GB
- hwclock --systohc
- #locale shit
- nano /etc/locale.gen
- locale-gen
- touch /etc/locale.conf
- echo LANG=en_GB.UTF-8 > /etc/locale.conf
- echo KEYMAP=uk > /etc/vconsole.conf
- #network config
- touch /etc/hostname
- echo myles-arch > /etc/hostname
- echo 127.0.0.1 localhost > /etc/hosts
- echo ::1 localhost > /etc/hosts
- echo 127.0.0.1 myles-arch.localdomain myles-arch > /etc/hosts
- #password
- echo set the root password:
- passwd
- #installing reflector then getting fastest mirrors
- pacman -S reflector
- reflector --latest 200 --protocol http --protocol https --sort rate --save /etc/pacman.d/mirrorlist
- #installing intel microcode for stability
- pacman -S intel-ucode
- #installing bootloader
- pacman -S grub
- grub-install $installDrive
- grub-mkconfig -o /boot/grub/grub.cfg
- #update system
- pacman -Syu
- clear
- #installing the DE and display server
- pacman -S xorg xorg-server
- pacman -S budgie-desktop
- pacman -S lightdm
- systemctl start lightdm.service
- systemctl enable lightdm.service
- #install nvidia driver
- pacman -S nvidia lib32-nvidia-utils
- exit
- reboot
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement