2014년 1월 20일 월요일

Archlinux Install

1. Partitioning (bios-fdisk, boot 파티션 별도생성하지 않음) 
  1. parted /dev/sda 
  2. mktable gpt 
  3. quit 
  4. cgdisk /dev/sda 
  5. New > (Enter) > 7G > 8300 > {PARTITION_NAME} # /root, /dev/sda1 
  6. New > (Enter) > 1G > 8200 > {PARTITION_NAME} # swap, /dev/sda2 
  7. New > (Enter) > (Enter) > ef02 > {PARTITION_NAME} # bios_grub, /dev/sda3
  8. lsblk /dev/sda  // 파티션 확인 (선택) 
2. Create filesystem
  1. mkswap /dev/sda2
  2. swapon /dev/sda2
  3. mkfs.ext4 /dev/sda1
  4. mkfs.ext4 /dev/sda3
  5. lsblk -f  // 파티션 확인 (선택) 
3. Installing the base system
  1. mount /dev/sda1 /mnt
4. Choose mirror
  1. vi /etc/pacman.d/mirrorlist
  2. Japan Jaist // 미러 복사해서 최상단에 붙여넣기
5. Install base packages
  1. pacstrap -i /mnt base base-devel
6. Configure fstab
  1. genfstab -U -p /mnt >> /mnt/etc/fstab
  2. vi /mnt/etc/fstab
  3. arch-chroot /mnt
7. Language and location settings
  1. vi /etc/locale.gen
  2. en_US.UTF-8 UTF-8 주석해제
  3. locale-gen
  4. echo LANG=en_US.UTF-8 > /etc/locale.conf
  5. export LANG=en_US.UTF-8
8. Time zone
  1. ln -s /usr/share/zoneinfo/Asia/Seoul /etc/localtime
  2. hwclock --hctosys --localtime
  3. echo archlinux > /etc/hostname
9. Configure repositories
  1. vi /etc/pacman.conf
  2. [multilib] Include = /etc/pacman.d/mirrorlist ##uncomment
  3. pacman -Sy
10. Install boot loader
  1. pacman -S grub
  2. grub-install --target=i386-pc --recheck /dev/sda
  3. pacman -S os-prober // 멀티부팅이라면
  4. grub-mkconfig -o /boot/grub/grub.cfg
  5. systemctl enable dhcpcd.service
  6. systemctl start dhcpcd.service
  7. exit
  8. umount -R /mnt
  9. reboot
11. Install Yaourt
  • vi /etc/pacman.conf
[archlinuxfr]
SigLevel = Never
  • pacman -Sy yaourt
12. Install Package
  • 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.
  1. 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
    
  2. Create /etc/modules-load.d/virtualbox.conf which contains the following three lines:
    vboxguest 
    vboxsf
    vboxvideo
    
  3. In order to synchronize time with the host machine, type the following:
    sudo systemctl enable vboxservice.service
    
  4. Enable “Bidirectional” Shared Clipboard from VirtualBox Manager’s Settings / General / Advanced menu.
  5. Reboot the VM and type ps ax | grep -i vbox. You should see an output like this:
    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
    
    Try copy & paste between host and guest.

댓글 없음:

댓글 쓰기