utilies

A handful of (useful) scripts for unix-like systems
Log | Files | Refs | README | LICENSE

ealis.sh (725B)


      1 #!/bin/sh
      2 
      3 # EALIS
      4 # Experimental Arch Linux Install Script for VirtualBox.
      5 
      6 # Prepare
      7 loadkeys no
      8 timedatectl set-ntp true
      9 
     10 # Prepare installation
     11 cfdisk
     12 mkfs.ext4 /dev/sda1
     13 mount /dev/sda1 /mnt
     14 pacstrap /mnt base base-devel linux vim
     15 genfstab -U /mnt >> /mnt/etc/fstab
     16 arch-chroot /mnt
     17 
     18 # Chrooted
     19 ln -sf /usr/share/zoneinfo/Europe/Oslo /etc/localtime
     20 hwclock --systohc
     21 vim /etc/locale.gen
     22 locale-gen
     23 echo "LANG=nb_NO.UTF-8" > /etc/locale.conf
     24 echo "KEYMAP=no" > /etc/vconsole.conf
     25 echo "arch" > /etc/hostname
     26 echo "127.0.0.1\tlocalhost\n::1\t\tlocalhost\n127.0.1.1\tarch.localdomain\tarch" >> /etc/hosts
     27 passwd
     28 pacman -S grub
     29 grub-install --target=i386-pc /dev/sda
     30 grub-mkconfig -o /boot/grub/grub.cfg
     31 exit
     32 umount -R /mnt