Arch Linux: Difference between revisions
From Leo's Notes
This page was last edited on 30 March 2015, at 20:48.
mNo edit summary |
|||
| Line 24: | Line 24: | ||
# 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/ | # Set the timezone <code>ln -sf /usr/share/zoneinfo/America/Edmonton /etc/localtime</code> | ||
# | # Locales | ||
# Set the default locale <code>echo LANG= | #* Comment out any locales you want in <code>/etc/locale.gen</code> | ||
#* Run <code>locale-gen</code> | |||
# Set the default locale <code>echo LANG=\"en_US.UTF-8\" > /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> | ||
#* echo KEYMAP=\"us\" > /etc/vconsole.conf | |||
#* echo FONT=\"latarcyrheb-sun16\" >> /etc/vconsole.conf | |||
# 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> | ||
Reboot and hope it works. | |||
Revision as of 20:48, 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:
- Read the install.txt file
- Create a file system
- Mount the file system to /mnt
- Run
pacstrap /mnt/base - Generate fstab
genfstab -p /mnt >> /mnt/etc/fstab - Chroot into the new system
arch-chroot /mnt - Set the hostname
echo "hostname" >> /etc/hostname - Set the timezone
ln -sf /usr/share/zoneinfo/America/Edmonton /etc/localtime - Locales
- Comment out any locales you want in
/etc/locale.gen - Run
locale-gen
- Comment out any locales you want in
- Set the default locale
echo LANG=\"en_US.UTF-8\" > /etc/locale.conf - Set up networking configs ??
- Console font
/etc/vconsole.conf- echo KEYMAP=\"us\" > /etc/vconsole.conf
- echo FONT=\"latarcyrheb-sun16\" >> /etc/vconsole.conf
- Rebuild ram disk
mkinitcpio -p linux - Set the root password
passwd
Reboot and hope it works.