1. Partitioning (bios-fdisk, boot 파티션 별도생성하지 않음)
- parted /dev/sda
- mktable gpt
- quit
- cgdisk /dev/sda
- New > (Enter) > 7G > 8300 > {PARTITION_NAME} # /root, /dev/sda1
- New > (Enter) > 1G > 8200 > {PARTITION_NAME} # swap, /dev/sda2
- New > (Enter) > (Enter) > ef02 > {PARTITION_NAME} # bios_grub, /dev/sda3
- lsblk /dev/sda // 파티션 확인 (선택)
2. Create filesystem
- mkswap /dev/sda2
- swapon /dev/sda2
- mkfs.ext4 /dev/sda1
- mkfs.ext4 /dev/sda3
- lsblk -f // 파티션 확인 (선택)
3. Installing the base system
- mount /dev/sda1 /mnt
4. Choose mirror
- vi /etc/pacman.d/mirrorlist
- Japan Jaist // 미러 복사해서 최상단에 붙여넣기
5. Install base packages
- pacstrap -i /mnt base base-devel
6. Configure fstab
- genfstab -U -p /mnt >> /mnt/etc/fstab
- vi /mnt/etc/fstab
- arch-chroot /mnt
7. Language and location settings
- vi /etc/locale.gen
- en_US.UTF-8 UTF-8 주석해제
- locale-gen
- echo LANG=en_US.UTF-8 > /etc/locale.conf
- export LANG=en_US.UTF-8
8. Time zone
- ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
- hwclock --hctosys --localtime
- echo archlinux > /etc/hostname
9. Configure repositories
- vi /etc/pacman.conf
- [multilib] Include = /etc/pacman.d/mirrorlist ##uncomment
- pacman -Sy
10. Install boot loader
- pacman -S grub
- grub-install --target=i386-pc --recheck /dev/sda
- pacman -S os-prober // 멀티부팅이라면
- grub-mkconfig -o /boot/grub/grub.cfg
- systemctl enable dhcpcd.service
- systemctl start dhcpcd.service
- exit
- umount -R /mnt
- reboot
- vi /etc/pacman.conf
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
- pacman -Sy yaourt
- xorg-server
- xorg-xinit
- bspwm ##chmod +x set
- sxhkd ##chmod +x set
- rxvt-unicode-multi-display-256xresources
- urxvt-perls-git
- alsa-utils
13. Install VirtualBox Guest Additions
Now you should install VirtualBox Guest Additions inside the VM. The Guest Additions will enable very useful features like dynamically resizing the VM window, copy & paste between guest and host, time sync between guest & host, and accessing the host file system from the guest.- Install packages:
sudo pacman -S virtualbox-guest-utils sudo pacman -S virtualbox-guest-modules sudo pacman -S virtualbox-guest-modules-lts sudo pacman -S virtualbox-guest-dkms
- Create
/etc/modules-load.d/virtualbox.conf
which contains the following three lines:
vboxguest vboxsf vboxvideo
- In order to synchronize time with the host machine, type the following:
sudo systemctl enable vboxservice.service
- Enable “Bidirectional” Shared Clipboard from VirtualBox Manager’s Settings / General / Advanced menu.
- Reboot the VM and type
ps ax | grep -i vbox
. You should see an output like this:
Try copy & paste between host and guest.139 ? Ssl 0:00 /usr/bin/VBoxService -f 402 ? Sl 0:00 /usr/bin/VBoxClient --clipboard 414 ? Sl 0:00 /usr/bin/VBoxClient --display 420 ? Sl 0:00 /usr/bin/VBoxClient --seamless 425 ? Sl 0:00 /usr/bin/VBoxClient --draganddrop