THIS REPOSITORY IS DEVELOPED FOR MY PERSONAL USE. You can use it freely, but with ABSOLUTELY NO WARRANTY AND SUPPORT.
You have to do by yourself until arch-chroot
,
as described in Arch wiki.
TL; DR
ls /sys/firmware/efi/efivars # check EFI boot
# if you have to setup wifi for the installer
ip link # check wifi device
ip link set <DEVICE> up
wpa_passphrase <SSID> <PSK_KEY> > /etc/wpa_supplicant/wpa_supplicant.conf
wpa_supplicant -B -i <DEVICE> -c /etc/wpa_supplicant/wpa_supplicant.conf
dhcpcd -b <DEVICE>
# end if
ping archlinux.org # check internet connection
timedatectl set-ntp true # update the system clock
gdisk /dev/sdx # create partitions
# setup RAID if you need
mkfs.ext4 /dev/sdxi # format `/` with ext4
mkfs.vfat /dev/sdxj # format `/boot` with fat32 (unless constructing dual-boot with Windows)
mkswap /dev/sdxk # if you setup swap partition
# mount filesystems
mount /dev/sdxn /mnt
mkdir /mnt/boot
mount /dev/sdxm /mnt/boot
curl -L -o /etc/pacman.d/mirrorlist https://bit.ly/30uIB6X
pacstrap /mnt base base-devel linux # install system
genfstab -U /mnt >> /mnt/etc/fstab # configure fstab
# if you have to setup wifi for installed OS and you have pre-configured wpa_supplicant.conf
mkdir /mnt/etc/wpa_supplicant
cp /path/to/wpa_supplicant.conf /mnt/etc/wpa_supplicant/wpa_supplicant.conf
# if you use RAID
mdadm --detail --scan >> /mnt/etc/mdadm.conf
Then chroot to the new system, download custom install script, and execute it.
arch-chroot /mnt
curl -L -o /root/install.sh https://bit.ly/2HpwrVJ
chmod +x /root/install.sh
/root/install.sh
# if you use RAID
mkinitcpio -p linux # after `HOOKS="base udev autodetect block mdadm_udev filesystems usbinput fsck"` in /etc/mkinitcpio.conf
From this point, what you have to do is just hitting RETURN key (...and supplying some information about you)
After the script finishes, reboot the machine.
exit # from chroot-ed environment
umount -R /mnt # can be skipped
reboot # ...and remove installation media
Now you can login with your username (not root).
Do some additional setup and then run setup.sh
which is automatically created in your $HOME
by install.sh
.
export HISTFILE="$HOME/.local/share/bash/history"
./setup.sh
Again, just continue hitting the RETURN key. This setup script automatically reboots the machine.
After reboot, you can use almost same environment which I use. But some settings should be done by hand.
- start dropbox, login, and setup autostart with
systemctl --user enable dropbox
- configure multi-monitor using
arandr
. - enable mozc via fcitx-configtool
- (...and probably more. WIP)