Archlinux

From Halfface
Revision as of 05:56, 10 April 2016 by Ekaanbj (talk | contribs) (Created page with "Create disks gdisk /dev/sda Number Start (sector) End (sector) Size Code Name 1 2048 4095 1024.0 KiB EF02 BIOS boot partition 2...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Create disks

gdisk /dev/sda
Number  Start (sector)    End (sector)  Size       Code  Name
  1            2048            4095   1024.0 KiB  EF02  BIOS boot partition
  2            4096        62914526   30.0 GiB    8300  Linux filesystem
mount /dev/sda2 /mnt

Install some groups

pacstrap /mnt/ base xfce4 xorg
genfstab -p /mnt >> /mnt/etc/fstab
arch-chroot /mnt
echo archlinux.halfface.se > /etc/hostname
ln -s /usr/share/zoneinfo/Europe/Stockholm /etc/localtime

Install some apps

pacman --noconfirm -S grub vim openssh sudo rsync
vim /etc/locale.gen
locale-gen
vim /etc/locale.conf
LANG="en_US.UTF-8"
vim /etc/vconsole.conf 
KEYMAP="se-nodeadkeys"
FONT="eurlatgr"

Setup systemd network

/etc/systemd/network/wired.network
[Match]
Name=enp1s0

[Network]
DHCP=ipv4
UseHostname=false

Start Network

systemctl enable systemd-networkd.service
systemctl start systemd-networkd.service
systemctl enable systemd-resolved.service
systemctl start systemd-resolved.service
ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf

Start sshd

systemctl enable sshd.service
systemctl start sshd.service

Create initrd

mkinitcpio -p linux
passwd

Setup grub

grub-install --target=i386-pc /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg
reboot

Update system

pacman -Syu