- 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
- mount your your partition to install base on it
- 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
- 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
- we need to make the grub configuration file
- grub-mkconfig -o /boot/grub/grub.cfg
- you can exit the chroot session
- 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
- 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
|