Arch Linuxインストールメモ (archlinux-2011.08.19)
######################################################################
※2013/2/15追記
archlinux-2013.02.01のインストール手順をこちらに書きました。
Arch Linuxインストールメモ (archlinux-2013.02.01)
http://extrea.hatenablog.com/entry/2013/02/15/123721
######################################################################
以下、旧文
普段使用しているインストールパラメータは以下の通りです。
・前提
OS: archlinux-2011.08.19
・インストール
# /arch/setup 1 Select souce core-local 2 Set Editor vi 3 Set Clock Asia/Tokyo UTC 4 Prepare hard drive(s) 1 Auto-Prepare Partition: /boot 100MB swap 適宜 / 残り全て /home 100MB FileSystem: ext4 5 Select Package bootloader: grub Package Groups: base Install Packages dnsutils iana-etc inetutils iproute2 iptables kbd mlocate net-tools netcfg openssh openssl packman-mirrorlist pam tzdata ※あとはbaseパッケージ全てと、必要に応じ適宜 6 Install packages 7 Configure system /etc/rc.conf KEYMAP="jp106" HOSTNAME="hoge.localdomain" interface=eth0 address=x.x.x.x netmask=255.255.255.0 broadcast=x.x.x.255 gateway=x.x.x.254 DAEMONS=(... network sshd ...) /etc/pacman/mirrorlist ※「Japan」の項目をアンコメント Root-Password 適宜 8 Install bootloader ※特にmenu.lstは編集しない 9 Exit Install # reboot
・初回アップデート
# pacman -Sy # pacman -S filesystem --force ※この時点ではpacman自体はアップグレードしない # pacman -Syu # updatedb # pacman-key --init gpg: /etc/pacman.d/gnupg/trustdb.gpg: trustdb created gpg: no ultimately trusted keys found gpg: Generating pacman keychain master key... ※この後、乱数生成の為しばらくの間、ランダムにキーを押下 ※上記はコンソールでの実行が必要。ssh越しなら以下ページ末URLを参照 # pacman -Syu ※再度実行
※下記のようなエラーがでたら・・・
glibc: /usr/bin/tzselect exists in filesystem
error: failed to commit transaction (conflicting files) glibc: /usr/bin/tzselect exists in filesystem glibc: /usr/sbin/zdump exists in filesystem glibc: /usr/sbin/zic exists in filesystem Errors occurred, no packages were upgraded. # rm /usr/bin/tzselect /usr/sbin/zdump /usr/sbin/zic # pacman -Syu
もしくは
error: failed to commit transaction (conflicting files) initscripts: /etc/profile.d/locale.sh exists in filesystem Errors occurred, no packages were upgraded. # rm /etc/profile.d/locale.sh # pacman -Syu
・Yaourtのインストール
AURを使用する場合。公式パッケージ(pacman)で事足りる場合は特に不要。
# pacman -Sy base-devel # pacman -Sy diffutils gettext yajl curl # # cd /usr/local/src # wget https://aur.archlinux.org/packages/pa/package-query/package-query.tar.gz # tar xvzf package-query.tar.gz # # cd package-query # makepkg --asroot ; echo $? # pacman -U package-query-1.0.1-1-i686.pkg.tar.xz # # cd ../ # wget https://aur.archlinux.org/packages/ya/yaourt/yaourt.tar.gz # tar xvzf yaourt.tar.gz # # cd yaourt # makepkg --asroot ; echo $? # pacman -U yaourt-1.1-1-any.pkg.tar.xz
以上
・参照
https://wiki.archlinux.org/index.php/Official_Installation_Guide_%28%E6%97%A5%E6%9C%AC%E8%AA%9E%29
https://wiki.archlinux.org/index.php/Pacman-key#How_can_I_collect_entropy.3F
https://wiki.archlinux.org/index.php/Yaourt