LoginSignup
19
19

More than 5 years have passed since last update.

Arch Linux インストール (非EFI)

Last updated at Posted at 2013-07-16
  • IP設定
  • parted /dev/sda -s mklabel msdos

AUR

ubuntuでいうところのPPAがたくさん詰まっている感じ。
これまでwebで別途ダウンロードが必要だった大抵のソフトがここにあります。
(例:pycharm、xnp2、mfiler3、oh-my-zshなど)

CDからboot

iso download

sshd開始
passwd root
systemctl start sshd
ip addr

パーティション

fdisk /dev/sda
# 83: swap, 82: Linux filesystem
# sda1・・・boot  (100MB) boot可能フラグをつけること。
# sda2・・・swap  (2GB)
# sda3・・・/     (残り全て) xfs
mkfs.ext3 /dev/sda1
mkswap /dev/sda2
mkfs.xfs -f /dev/sda3
mount
mount /dev/sda3 /mnt
mkdir /mnt/{boot,etc}
mount /dev/sda1 /mnt/boot
genfstab -U -p /mnt >> /mnt/etc/fstab
/mnt/etc/fstab例(swapを手で記載する必要がある)
# <file system> <dir>   <type>  <options>       <dump>  <pass>
UUID=9bcfcd1c-7f20-4a2c-9f2a-cc41d4582b5c       /               xfs     defaults       0 0
UUID=c6816610-880b-4007-91bf-f27aae34f4f2       /boot           ext3    defaults       0 0
UUID=ce1e3237-c01b-47a2-a4b9-581a5ed63397       swap            swap    defaults       0  0

bootstrap

vi /etc/pacman.d/mirrorlist

Server = http://ftp.tsukuba.wide.ad.jp/Linux/archlinux/$repo/os/$arch
を先頭に持ってくる。

pacstrap /mnt base base-devel openssh
arch-chroot /mnt /bin/bash

chroot環境

bootloader
mkinitcpio -p linux
pacman -Sy grub-bios
grub-install --recheck /dev/sda
grub-mkconfig -o /boot/grub/grub.cfg

一般ユーザー追加

useradd -m -g users -G wheel <username>
visudo

ネットワーク設定

systemctl enable sshd

yaourt

yaourtは開発が終了しています。(Requesting official statement from developers · Issue #382 · archlinuxfr/yaourt)
下記から開発が継続しているパッケージマージャーを使用してください。
AUR ヘルパー - ArchWiki

/etc/pacman.conf
[archlinuxfr]
SigLevel = Never
Server = http://repo.archlinux.fr/$arch
インストール
pacman -Sy yaourt
/etc/ssh/sshd_config
- #UseDNS yes
+ UseDNS no
chroot終了
exit
reboot
% reboot
19
19
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
19
19