Arch Linux Installation Command Notes.


parted -a optimal /dev/sda

mklabel msdos
unit mib
mkpart primary ext4 2 -1
set 1 boot on
quit

mkfs.btrfs /dev/sda1
mount /dev/sda1 /mnt

vi /etc/pacman.d/mirrorlist
pacstrap -i /mnt
genfstab -p -U /mnt >> /mnt/etc/fstab
arch-chroot /mnt

passwd
useradd “username” -m -s /bin/bash
passwd “username”

pacman -S grub
grub-mkconfig -o /boot/grub/grub.cfg
grub-install /dev/sda

exit
umount /mnt
reboot

vi /etc/locale.gen
locale-gen
localectl set-locale LANG=en_GB.UTF-8
timedatectl list-timezones
timedatectl set-timezone Asia/Tokyo
timedatectl set-local-rtc 0
hostnamectl set-hostname myhostname

vi /etc/systemd/network/enp0s3.network
[Match]
Name=enp0s3

[Network]
DHCP=v4

systemctl restart systemd-networkd
systemctl enable systemd-networkd

pacman -Rsn netctl nano reiserfsprogs dhcpcd xfsprogs s-nail

reboot
pacman -S xorg-server xorg-server-utils xorg-xinit mesa virtualbox-guest-utils xterm
pacman -S xmonad-contrib

Advertisements
Leave a comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: