arch linux install

Subject:
  • boot with USB drive https://wiki.archlinux.org/index.php/USB_flash_installation_media
  • fdisk -l - verify your drives, most likely /dev/sda is your HD other will be your usb
  • cfdisk will boot into a disk manager to create disk
    • create two partitions
    • start with SWAP partition with X amount of MB/G, no boot, type = swap id82 then write
    • new partition - fill it with the rest of the space make bootable and write=yes then quit
  • format your disk - now you will have sda2 primary boot and sda1 for swap
    • mkfs.ext4 /dev/sda2
  • mount your your partition to install base on it
    • mount /dev/sda2 /mnt
  • enable the swap file
    • mkswap /dev/sda1
    • swapon /dev/sda1
  • start the base installation
    • pacstrap /mnt base base-devel
    • this is installing the base system and the developement libs for the base system in case of dependencies
  • Here we need to provide full access to the system itself
    • arch-chroot /mnt
    • created a password passwd
  • the following if the enable location
    • nano /etc/locale.gen
    • find both the en_US utf8 one and ISO-8859-1
    • generate the file = local-gen
  • now we need to cd into the timezone directory to see how that is setup
    • cd /usr/share/zoneinfo and look at all the files see what's there and cd into it ex. Canada
    • look for your timezone Ottawa = Eastern time zone
    • set the time zone - make link between files
      • ln -s /usr/share/zoneinfo/Canada/Eastern /etc/localtime
  • let set a hostname for the system
    • echo mini > /etc/hostname
  • the linux installation is still not complete so you cannot setup local install or repository
  • We need to install a boot loader GRUB
    • pacman -S grub-bios
  • in order to do the grub install we need to install to the HD directly
    • grub-install /dev/sda
    • as logn as there are no errors you're good
  • ​The initd file is what grub will use to load linux, this boots right after the Kernel
    • init file stores inforamtion about your hardware​
    • mkinitcpio -p linux - will create img
    • on the mini-laptop two warning occured
      • wd719x
      • aic94xx
  • we need to make the grub configuration file
    • grub-mkconfig -o /boot/grub/grub.cfg
  • you can exit the chroot session
    • exit
  • A chroot on Unix operating systems is an operation that changes the apparent root directory for the current running process and its children. A program that is run in such a modified environment cannot name (and therefore normally cannot access) files outside the designated directory tree.
  • last we need to generate a fstab file based on the HD
    • fstab contains information about the partition on the system
    • genfstab /mnt >> /mnt/etc/fstab
  • go ahead and unmount the root device
    • umount /mnt
  • reboot
    • remove the USB or installation media
    • your login is the root password you created earlier with chroot
  • offline installs
  • https://wiki.archlinux.org/index.php/offline_installation_of_packages#Create_a_repository_database_just_for_these_packages
2016-07-21 10:09:01gstlouis

https://www.youtube.com/watch?v=Wqh9AQt3nho&list=FLg65jxeIrY1nQ2kABYRUCzA&index=4

gstlouis
vote
2016-10-23 18:02:59