Parabola GNU/Linux-libre

ハードウェアについて

セットアップ

インストールメディアの準備

  1. インストールイメージをダウンロード:Get Parabola - ParabolaWiki
  2. 署名の檢證:1 Download - Installation Guide - ParabolaWiki
    1. チェックサムを檢證:sha512sum -c SHA512SUMS
    2. PGP 公開鍵を入手、インポート(OpenRC ISO のメンテナ):Parabola GNU/Linux-libre - Hackers - David P.
      • フィンガープリントを確認:gpg --fingerprint メールアドレス
    3. 署名を檢證:gpg --verify parabola-openrc-2021.08.11-dual.iso.sig
      • 署名濟みイメージファイルは同じディレクトリに置く事
  3. CD なり USB なりイメージファイルを燒く

暗號化する場合:ディスクの消去

インストール手順

  1. キーボードの形式を設定
    loadkeys jp106
  2. パーティションの編輯(HDD へのインストールを想定)
    cfdisk /dev/sda
    1. 既存のパーティションを全部削除(Delete)して、Free space のみにする
    2. 新規(New)に 2G(メモリの4分の1)、primary 指定で作成。Type を選擇し 82 Linux swap / Solaris へ變更
    3. 殘りのパーティションを新規(New)、primary 指定で作成。Bootable フラグを附ける
    4. Writeyes と入力 → Quit

    暗號化する場合:

    1. 既存のパーティションを全部削除(Delete)して、Free space のみにする
    2. ブート(/boot)パーティションの作成:新規(New)に 200Mprimary 指定で作成
    3. ルート(/)パーティションの作成:殘りのパーティションを新規(New)、primary 指定で作成。Bootable フラグを附ける
    4. Writeyes と入力 → Quit
  3. 暗號化する場合:
    1. ルートパーティションの暗號化
      cryptsetup -y -v luksFormat /dev/sda2
      • 確認メッセージには YES と大文字で應へる
      cryptsetup open /dev/sda2 cryptroot
      mkfs.ext4 /dev/mapper/cryptroot
      mount /dev/mapper/cryptroot /mnt
      • cryptroot は任意の文字列で構はない
    2. マッピングをチェック、ルートパーティションをマウント:
      umount /mnt
      cryptsetup close cryptroot
      cryptsetup open /dev/sda2 cryptroot
      mount /dev/mapper/cryptroot /mnt
    3. ブートパーティションのファイルシステムを作成、マウント:
      mkfs.ext4 /dev/sda1
      mkdir /mnt/boot
      mount /dev/sda1 /mnt/boot
    4. nonsystemd リポジトリを確認(以下參照)
  4. ext4 ファイルシステムを作成
    mkfs.ext4 /dev/sda2
  5. スワップを開始(スワップ領域を作成してゐないなら省略)
    mkswap /dev/sda1
    swapon /dev/sda1
  6. ルートパーティションをマウント
    mount /dev/sda2 /mnt
  7. nonsystemd リポジトリが利用できるやうになつてゐるか確認
    nano /etc/pacman.conf
  8. リポジトリのミラーを確認
    1. ミラーリストをソート
      reflector --latest 5 --sort rate --protocol https --save /etc/pacman.d/mirrorlist
    2. ミラーステータスを確認
      lynx https://www.parabola.nu/mirrors/status/
    3. ミラーリストを確認し、ミラーステータスの Out of Sync Mirrors の項にあるミラーがあれば無效にする(行頭に # を追加)
      nano /etc/pacman.d/mirrorlist
      • #Server = https://repo.parabola.nu/$repo/os/$arch
  9. keyring を更新
    pacman -Sy archlinux-keyring archlinuxarm-keyring parabola-keyring
    pacman -U https://www.parabola.nu/packages/core/i686/archlinux32-keyring-transition/download/
  10. ベースシステムをインストール
    pacstrap /mnt base libelogind udev-init-scripts linux-libre-lts
    1. Parabola GNU/Linux-libre - base (x86_64)
    2. Parabola GNU/Linux-libre - libelogind (x86_64)
    3. Parabola GNU/Linux-libre - udev-init-scripts (x86_64)
    4. Parabola GNU/Linux-libre - linux-libre-lts [libre] (x86_64)
  11. ネットワーク接續ユーティリティをインストール
    pacstrap /mnt dhcpcd-openrc
    1. Parabola GNU/Linux-libre - dhcpcd-openrc (x86_64):DHCPCD のサービス追加に必要; dhcpcd
  12. 必要なパッケージをインストール
    pacstrap /mnt kakoune cryptsetup-openrc inetutils-openrc jfsutils logrotate lvm2-openrc man-db nano reiserfsprogs sysfsutils texinfo usbutils xfsprogs
    1. Parabola GNU/Linux-libre - kakoune (x86_64)
    2. Parabola GNU/Linux-libre - cryptsetup-openrc (x86_64)
    3. Parabola GNU/Linux-libre - inetutils-openrc (x86_64)
    4. Parabola GNU/Linux-libre - jfsutils (x86_64)
    5. Parabola GNU/Linux-libre - logrotate (x86_64)
    6. Parabola GNU/Linux-libre - lvm2-openrc (x86_64)
    7. Parabola GNU/Linux-libre - man-db (x86_64)
    8. Parabola GNU/Linux-libre - nano (x86_64)
    9. Parabola GNU/Linux-libre - reiserfsprogs (x86_64)
    10. Parabola GNU/Linux-libre - sysfsutils (x86_64)
    11. Parabola GNU/Linux-libre - texinfo (x86_64)
    12. Parabola GNU/Linux-libre - usbutils (x86_64)
    13. Parabola GNU/Linux-libre - xfsprogs (x86_64)
  13. GUI 環境に必要なパッケージをインストール
    pacstrap /mnt acpid-openrc alsa-utils-openrc avahi-openrc chrony-openrc gpm-openrc tlp-openrc elogind xorg-server xorg-xinit
    1. Parabola GNU/Linux-libre - acpid-openrc (x86_64):電源管理; acpid
    2. Parabola GNU/Linux-libre - alsa-utils-openrc (x86_64):ALSA の調整; alsa-utils
    3. Parabola GNU/Linux-libre - avahi-openrc (x86_64)
    4. Parabola GNU/Linux-libre - chrony-openrc (x86_64)
    5. Parabola GNU/Linux-libre - gpm-openrc (x86_64):コンソールのマウスサーバ
    6. Parabola GNU/Linux-libre - tlp-openrc (x86_64):電源管理; usbutils
    7. Parabola GNU/Linux-libre - elogind (x86_64)
    8. Parabola GNU/Linux-libre - xorg-server (x86_64)
    9. Parabola GNU/Linux-libre - xorg-xinit (x86_64)
  14. fstab を生成
    genfstab -U -p /mnt >> /mnt/etc/fstab
  15. ベースシステムを設定
    arch-chroot /mnt
  16. 使用言語を設定
    1. nano /etc/locale.gen
      1. 以下をアンコメント(# を削除)
        en_US.UTF-8 UTF-8
        ja_JP.UTF-8 UTF-8
      • nanoCtrl + W (Where Is) で檢索
      • nanoAlt + W で次の一致箇所へ移動
    2. locale-gen
    3. echo LANG=en_US.UTF-8 > /etc/locale.conf
    4. export LANG=en_US.UTF-8
      • LANG=ja_JP.UTF-8 とすると、文字化けするので、コンソールでの作業中は英語のままで
  17. コンソール上でのキーボードの形式を設定
    1. nano /etc/conf.d/keymaps
      • keymap="jp106"
    2. rc-update add keymaps default
  18. 時刻(タイムゾーン)を設定
    ln -s /usr/share/zoneinfo/Asia/Tokyo /etc/localtime
  19. ハードウェアの時計を UTC に設定
    hwclock --systohc --utc
  20. ホスト名を設定
    1. nano /etc/conf.d/hostname
      • hostname="sinumade-pc"
    2. nano /etc/hosts
      • 127.0.0.1 localhost
        ::1       localhost
        127.0.1.1 sinumade-pc.localdomain sinumade-pc
  21. root のパスワードを設定
    passwd
  22. 暗號化する場合:mkinitcpio の設定
    nano /etc/mkinitcpio.conf
    mkinitcpio -p linux-libre-lts
  23. GRUB をインストール
    1. pacman -S grub
    2. grub-install --target=i386-pc --recheck /dev/sda
    3. 暗號化する場合:
      nano /etc/default/grub
      • GRUB_CMDLINE_LINUX="cryptdevice=/dev/sda2:cryptroot"
    4. grub-mkconfig -o /boot/grub/grub.cfg
      • GRUB を日本語化する場合、直前に:LANG=ja_JP.UTF-8
  24. ログアウト
    exit
  25. パーティションをアンマウント
    umount -R /mnt
  26. システムを再起動
    reboot

インストール完了、再起動後

  1. root でログイン
  2. DHCPCD を設定
    rc-update add dhcpcd default
  3. 利用するリポジトリを設定
    1. nonprism, nonsystemd, libre を利用できるやうに設定
      nano /etc/pacman.conf
      • [nonprism]
        SigLevel = PackageRequired
        Include = /etc/pacman.d/mirrorlist
      • [nonsystemd]
        Include = /etc/pacman.d/mirrorlist
      • [libre]
        Include = /etc/pacman.d/mirrorlist
    2. 設定したリポジトリに基づいて、パッケージをアップ・ダウングレード
      pacman -Syuu
    3. your-privacy をインストール(ブラックリストパッケージのチェック、代替の提案)
      pacman -S your-privacy
    1. Parabola GNU/Linux-libre - your-privacy [nonprism] (x86_64)
  4. パッケージのデータベースを更新、アップグレード
    pacman -Syu
  5. sudo をインストール
    pacman -S sudo
  6. ユーザを追加
    useradd -m -s /bin/bash sinumade
  7. ユーザのパスワードを設定
    passwd sinumade
  8. sudo を設定
  9. ログアウト
    exit
  10. 追加したユーザでログイン
  11. 利用するパッケージをインストール
    sudo pacman -S i3-wm \
                   noto-fonts noto-fonts-cjk ttf-hack \
                   rxvt-unicode ranger highlight mediainfo ueberzug dmenu slock i3status \
                   xorg-xmodmap xorg-xev xorg-xmessage xdg-user-dirs xdg-utils \
                   unzip lsof \
                   fcitx fcitx-configtool fcitx-mozc \
                   at-openrc ufw-openrc \
                   firejail xautolock tomb pass pwgen dzen2 lftp moc redshift xclip xdotool \
                   breeze-gtk qt5ct \
                   mutt mpop msmtp gnupg \
                   utox \
                   sxiv keynav w3m
    1. Parabola GNU/Linux-libre - i3-wm (x86_64)
    2. Parabola GNU/Linux-libre - noto-fonts (x86_64)
    3. Parabola GNU/Linux-libre - noto-fonts-cjk (x86_64)
    4. Parabola GNU/Linux-libre - ttf-hack (x86_64)
    5. Parabola GNU/Linux-libre - rxvt-unicode (x86_64)
    6. Parabola GNU/Linux-libre - ranger (x86_64)
    7. Parabola GNU/Linux-libre - highlight (x86_64)
    8. Parabola GNU/Linux-libre - mediainfo (x86_64)
    9. Parabola GNU/Linux-libre - ueberzug (x86_64)ranger の畫像プレビュー
    10. Parabola GNU/Linux-libre - dmenu (x86_64)
    11. Parabola GNU/Linux-libre - slock (x86_64)
    12. Parabola GNU/Linux-libre - i3status (x86_64):依存に libpulse
    13. Parabola GNU/Linux-libre - xorg-xmodmap (x86_64)
    14. Parabola GNU/Linux-libre - xorg-xev (x86_64)
    15. Parabola GNU/Linux-libre - xorg-xmessage (x86_64)
    16. Parabola GNU/Linux-libre - xdg-user-dirs (x86_64)
    17. Parabola GNU/Linux-libre - xdg-utils (x86_64)
    18. Parabola GNU/Linux-libre - unzip [libre] (x86_64)
    19. Parabola GNU/Linux-libre - lsof (x86_64)
    20. Parabola GNU/Linux-libre - fcitx (x86_64)
    21. Parabola GNU/Linux-libre - fcitx-configtool (x86_64)
    22. Parabola GNU/Linux-libre - fcitx-mozc (x86_64)
    23. Parabola GNU/Linux-libre - at-openrc (x86_64)
    24. Parabola GNU/Linux-libre - ufw-openrc (x86_64)
    25. Parabola GNU/Linux-libre - firejail (x86_64)
    26. Parabola GNU/Linux-libre - xautolock (x86_64)
    27. Parabola GNU/Linux-libre - tomb (x86_64)
    28. Parabola GNU/Linux-libre - pass (x86_64)
    29. Parabola GNU/Linux-libre - pwgen (x86_64)
    30. Parabola GNU/Linux-libre - dzen2 (x86_64)
    31. Parabola GNU/Linux-libre - lftp (x86_64)
    32. Parabola GNU/Linux-libre - moc (x86_64):依存に curlopenssl
    33. Parabola GNU/Linux-libre - redshift [nonprism] (x86_64)
    34. Parabola GNU/Linux-libre - xclip (x86_64)
    35. Parabola GNU/Linux-libre - xdotool (x86_64)
    36. Parabola GNU/Linux-libre - breeze-gtk (x86_64)
    37. Parabola GNU/Linux-libre - qt5ct (x86_64)
    38. Parabola GNU/Linux-libre - mutt (x86_64):依存に openssl
    39. Parabola GNU/Linux-libre - mpop (x86_64)
    40. Parabola GNU/Linux-libre - msmtp (x86_64)
    41. Parabola GNU/Linux-libre - gnupg (x86_64)
    42. Parabola GNU/Linux-libre - utox (x86_64)
    43. Parabola GNU/Linux-libre - sxiv (x86_64)
    44. Parabola GNU/Linux-libre - keynav (x86_64)
    45. Parabola GNU/Linux-libre - w3m (x86_64):依存に openssl
  12. chrony を設定
    sudo -e /etc/chrony.conf
    sudo rc-update add chronyd default
    sudo rc-service chronyd start
  13. ufw を設定
    sudo ufw status
    sudo ufw enable
    sudo ufw default deny incoming
    sudo ufw default allow outgoing
    sudo ufw status
    sudo rc-update add ufw default
    sudo rc-service ufw start
  14. ユーザディレクトリを追加
    xdg-user-dirs-update
  15. Xorg でのキーボードの形式を設定
  16. コマンドラインもしくはディスプレイマネージャから X を起動

更新履歷

  1. 2022年2月26日:
  2. 2022年2月19日:
  3. 2022年2月6日:
  4. 2021年12月25日:
  5. 2021年9月4日:
  6. 2021年8月28日:

メモ

  1. 2022年2月6日:Acer Aspire 5750-F58D:
  2. 2021年9月4日: