项目作者: BogdanIonesq

项目描述 :
Arch Linux dotfiles
高级语言: Shell
项目地址: git://github.com/BogdanIonesq/dotfiles.git
创建时间: 2017-12-03T14:00:34Z
项目社区:https://github.com/BogdanIonesq/dotfiles

开源协议:

下载


Arch Linux dotfiles and setup

Installing Arch on a new machine

DISCLAIMER: These guidelines were written specifically for my machine and might not work on yours. Always follow the official Installation guide.

First check if you booted in UEFI mode:

  1. ls /sys/firmware/efi/efivars

Check internet connection:

  1. ping google.com

Update clock:

  1. timedatectl set-ntp true
  2. timedatectl status

Erase disk and create 3 new partitions.

  • sdx1 EFI partition (about 260-512 MB, code ef00)
  • sdx2 swap partition (more than 512 MB, code 8200)
  • sdx3 root partition (code 8304)
    1. cgdisk /dev/sdx

Format the boot partition:

  1. mkfs.fat -F32 /dev/sdx1

Activate the swap partition:

  1. mkswap /dev/sdx2
  2. swapon /dev/sdx2

Format the data partition and mount it:

  1. mkfs.ext4 /dev/sdx3
  2. mount /dev/sdx3 /mnt

Mount the boot partition:

  1. mkdir /mnt/boot
  2. mount /dev/sdx1 /mnt/boot

Install the base and base-devel packages:

  1. pacstrap /mnt base base-devel

Generate fstab:

  1. genfstab -U /mnt >> /mnt/etc/fstab

Chroot in the new environment:

  1. arch-chroot /mnt

Set the time zone:

  1. ln -sf /usr/share/zoneinfo/Europe/Bucharest /etc/localtime

Run hwclock:

  1. hwclock --systohc

Uncomment en_US.UTF-8 UTF-8 in /etc/locale.gen:

  1. nano /etc/locale.gen

Export the language (LANG=en_US.UTF-8):

  1. nano /etc/locale.conf

Create the hostname:

  1. nano /etc/hostname
  2. nano /etc/hosts

Set root password:

  1. passwd

Install and configure the boot loader:

  1. pacman -S grub efibootmgr intel-ucode
  2. grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id=grub
  3. grub-mkconfig -o /boot/grub/grub.cfg

Exit and reboot:

  1. exit
  2. reboot

Install sudo:

  1. pacman -S sudo

Create user and grant sudo:

  1. useradd -m -G wheel MY_USERNAME
  2. passwd MY_USERNAME
  3. export EDITOR=nano && visudo

Logout and login into the new user:

  1. logout

Install xorg and check it:

  1. sudo pacman -S xorg xorg-xinit xterm
  2. startx

Follow General recommendations, install i3-gaps, polybar, Office Code Pro font and more.