User talk:MajorTom

From ArchWiki
Revision as of 19:42, 31 July 2012 by MajorTom (talk | contribs) (Undo revision 215834 by MajorTom (talk))
Jump to: navigation, search
:: Arch Linux Install Media 2012.07.15 Template ::


Keyboard layout

# ls /usr/share/kbd/keymaps/
# loadkeys uk


Connect to the Internet

# dhcpcd
or
# dhclient eth0
or
# ip addr add 192.168.1.2/24 dev eth0
# ip route add default via 192.168.1.1
# echo "nameserver 8.8.8.8" >> /etc/resolv.conf


Prepare disks

# fdisk /dev/sda
or
# cfdisk /dev/sda
or
# gdisk /dev/sda
or
# cgdisk /dev/sda

# mkfs.ext4 /dev/sda1
# mkswap /dev/sda4


Mount destination

# mount /dev/sda1 /mnt
# mount /dev/sda2 /mnt/boot
# mount /dev/sda3 /mnt/home
# swapon /dev/sda4


Install base system

# vi /etc/pacman.d/mirrorlist
# pacstrap /mnt base base-devel
or
# pacstrap /mnt base base-devel syslinux [package1] [package2] [package3] [...]


Install bootloader

# pacstrap /mnt syslinux
or
# pacstrap /mnt grub-bios
or
# pacstrap /mnt grub-efi-i386
or
# pacstrap /mnt grub-efi-x86_64


Configure system

# genfstab -p /mnt >> /mnt/etc/fstab
or
# genfstab -p -U /mnt >> /mnt/etc/fstab
or
# genfstab -p -L /mnt >> /mnt/etc/fstab

# arch-chroot /mnt
# vi /etc/hostname
# ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime
# vi /etc/locale.conf
# vi /etc/locale.gen
# locale-gen
# vi /etc/mkinitcpio.conf
# mkinitcpio -p linux
# passwd


Configure bootloader

# syslinux-install_update -iam
# vi /boot/syslinux/syslinux.cfg
or
# modprobe dm-mod
# grub-install --target=i386-pc --recheck --debug /dev/sda
# mkdir -p /boot/grub/locale
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
# grub-mkconfig -o /boot/grub/grub.cfg
or
# mkdir -p /boot/efi
# mount -t vfat /dev/sda1 /boot/efi
# modprobe dm-mod
# grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck --debug
# mkdir -p /boot/grub/locale
# cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
# grub-mkconfig -o /boot/grub/grub.cfg


Finish up

# exit
# umount /mnt/{boot,home,}
# reboot

Arch Linux Install Media 2012.07.15 Template

<pre>

Arch Linux Install Media 2012.07.15 Template ::


Keyboard layout

  1. ls /usr/share/kbd/keymaps/
  2. loadkeys uk


Connect to the Internet

  1. dhcpcd

or

  1. dhclient eth0

or

  1. ip addr add 192.168.1.2/24 dev eth0
  2. ip route add default via 192.168.1.1
  3. echo "nameserver 8.8.8.8" >> /etc/resolv.conf


Prepare disks

  1. fdisk /dev/sda

or

  1. cfdisk /dev/sda

or

  1. gdisk /dev/sda

or

  1. cgdisk /dev/sda
  1. mkfs.ext4 /dev/sda1
  2. mkswap /dev/sda4


Mount destination

  1. mount /dev/sda1 /mnt
  2. mount /dev/sda2 /mnt/boot
  3. mount /dev/sda3 /mnt/home
  4. swapon /dev/sda4


Install base system

  1. vi /etc/pacman.d/mirrorlist
  2. pacstrap /mnt base base-devel

or

  1. pacstrap /mnt base base-devel syslinux [package1] [package2] [package3] [...]


Install bootloader

  1. pacstrap /mnt syslinux

or

  1. pacstrap /mnt grub-bios

or

  1. pacstrap /mnt grub-efi-i386

or

  1. pacstrap /mnt grub-efi-x86_64


Configure system

  1. genfstab -p /mnt >> /mnt/etc/fstab

or

  1. genfstab -p -U /mnt >> /mnt/etc/fstab

or

  1. genfstab -p -L /mnt >> /mnt/etc/fstab
  1. arch-chroot /mnt
  2. vi /etc/hostname
  3. ln -s /usr/share/zoneinfo/Europe/Athens /etc/localtime
  4. vi /etc/locale.conf
  5. vi /etc/locale.gen
  6. locale-gen
  7. vi /etc/mkinitcpio.conf
  8. mkinitcpio -p linux
  9. passwd


Configure bootloader

  1. syslinux-install_update -iam
  2. vi /boot/syslinux/syslinux.cfg

or

  1. modprobe dm-mod
  2. grub-install --target=i386-pc --recheck --debug /dev/sda
  3. mkdir -p /boot/grub/locale
  4. cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
  5. grub-mkconfig -o /boot/grub/grub.cfg

or

  1. mkdir -p /boot/efi
  2. mount -t vfat /dev/sda1 /boot/efi
  3. modprobe dm-mod
  4. grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=arch_grub --recheck --debug
  5. mkdir -p /boot/grub/locale
  6. cp /usr/share/locale/en\@quot/LC_MESSAGES/grub.mo /boot/grub/locale/en.mo
  7. grub-mkconfig -o /boot/grub/grub.cfg


Finish up

  1. exit
  2. umount /mnt/{boot,home,}
  3. reboot

test

test