Arch Linux: Difference between revisions

From Leo's Notes
This page was last edited on 30 March 2015, at 20:43.
Created page with "== PXE == If you already have a PXE server, create a new entry that boots their iPXE kernel: cd /tftpboot/images/ArchLinux/ wget https://releng.archlinux.org/pxeboot/ipxe.lk..."
 
mNo edit summary
Line 17: Line 17:


After booting into the live image, you need to:
After booting into the live image, you need to:
* Read the install.txt file
# Read the install.txt file
* Create a file system
# Create a file system
* Mount the file system to /mnt
# Mount the file system to /mnt
* Run <code>pacstrap /mnt/base</code>
# Run <code>pacstrap /mnt/base</code>
* Generate fstab <code>genfstab -p /mnt >> /mnt/etc/fstab</code>
# Generate fstab <code>genfstab -p /mnt >> /mnt/etc/fstab</code>
* Chroot into the new system <code>arch-chroot /mnt</code>
# Chroot into the new system <code>arch-chroot /mnt</code>
* Set the hostname <code>echo "hostname" >> /etc/hostname</code>
# Set the hostname <code>echo "hostname" >> /etc/hostname</code>
* Set the timezone <code>ln -sf /usr/share/zoneinfo/zone/$zone /etc/localtime</code>
# Set the timezone <code>ln -sf /usr/share/zoneinfo/zone/$zone /etc/localtime</code>
* Set locale by editing <code>/etc/locale.gen</code> and then running <code>locale-gen</code>
# Set locale by editing <code>/etc/locale.gen</code> and then running <code>locale-gen</code>
* Set the default locale <code>echo LANG=LC_? > /etc/locale.conf</code>
# Set the default locale <code>echo LANG=LC_? > /etc/locale.conf</code>
* Set up networking configs ??
# Set up networking configs ??
* Console font <code>/etc/vconsole.conf</code>
# Console font <code>/etc/vconsole.conf</code>
* Rebuild ram disk <code>mkinitcpio -p linux</code>
# Rebuild ram disk <code>mkinitcpio -p linux</code>
* Set the root password <code>passwd</code>
# Set the root password <code>passwd</code>

Revision as of 20:43, 30 March 2015

PXE

If you already have a PXE server, create a new entry that boots their iPXE kernel:

cd /tftpboot/images/ArchLinux/
wget https://releng.archlinux.org/pxeboot/ipxe.lkrn

The default config (or the config your computer boots off of) should contain:

LABEL ArchLinux
	MENU LABEL ArchLinux
        kernel /images/ArchLinux/ipxe.lkrn

You can customize the kernel to automate installs.

Installation

You should be asked for a mirror when booting (at least via PXE). This should set the mirrors up for you automaticall[citation needed]. You can verify this by checking /etc/pacman.d/mirrorlist

After booting into the live image, you need to:

  1. Read the install.txt file
  2. Create a file system
  3. Mount the file system to /mnt
  4. Run pacstrap /mnt/base
  5. Generate fstab genfstab -p /mnt >> /mnt/etc/fstab
  6. Chroot into the new system arch-chroot /mnt
  7. Set the hostname echo "hostname" >> /etc/hostname
  8. Set the timezone ln -sf /usr/share/zoneinfo/zone/$zone /etc/localtime
  9. Set locale by editing /etc/locale.gen and then running locale-gen
  10. Set the default locale echo LANG=LC_? > /etc/locale.conf
  11. Set up networking configs ??
  12. Console font /etc/vconsole.conf
  13. Rebuild ram disk mkinitcpio -p linux
  14. Set the root password passwd