User Tools

Site Tools


Sidebar

user:ahought2:start

This is an old revision of the document!


LDI0 - Setting up an Arch-Linux Distro

Download page: https://www.archlinux.org/download/ Installation Guide: https://wiki.archlinux.org/index.php/Installation_guide

Save the iso file and bootstrap files to a USB.

1# dmesg to find the /dev/sdx (for example my usb was /dev/sdb)

2# dd bs=4M if=/path/to/archlinux.iso of=/dev/sdx status=progress && sync

3# ping archlinux.org (to check for internet connection)

4# mkfs.ext4 /dev/sda1 to partition the root drive to sda1 with ext4 filesystem

5# pacstrap /mnt base (to install base packages)

6# genfstab -U /mnt » /mnt/etc/fstab

7# arch-chroot /mnt (change into root)

8# ln -s /usr/share/zoneinfo/Region/City /etc/localtime (/Region/City = /America/New_York)

9# hwclock –systohc

10# locale-gen (to generate the locales[stuff like keyboard layouts and date order and such])

11# hostnamectl set-hostname myhostname (make sure /etc/hostname exists[also go into /etc/hosts and add the hostname to the list])

12# passwd (to change root password)

13# grub-install –target=i386-pc /dev/sdx

14# grub-mkconfig -o /boot/grub/grub.cfg

15# exit

16# unmount /mnt

17# reboot

18# useradd -m -g initial_group -G additional_groups -s login_shell username

19# pacman -S plasma-meta (this downloads the KDE Plasma desktop environment)

to change root use: arch-chroot

user/ahought2/start.1485786205.txt.gz · Last modified: 2017/01/30 14:23 by ahought2