Skip to content

plan9portセットアップ

This content is a draft and will not be included in production builds.

Plan 9関連ユニットの設計

Terminal window
git clone https://aur.archlinux.org/plan9port-wayland-git.git
cd plan9port-wayland-git
makepkg -si
homectl update lufia --setenv PLAN9=/usr/lib/plan9

2025年3月6日dotfiles をプライベートリポジトリに変更したので、git-credential-factotum の設定が終わるまでは参照できないのだが、見れないと色々面倒なことになるので一時的に git-credential-store を使って誤魔化す。

ここで作成したファイルは 必ず削除しなければならない ので忘れないように。

Terminal window
git config --global credential.helper store
vi ~/.git-credentials

~/.git-credentials の内容はURL形式で書く。

https://user:pass@github.com

できたら取得する。

Terminal window
git clone https://github.com/lufia/dotfiles.git

必要なファイルを復元して、上で作った設定を削除する。

Terminal window
rm ~/.gitconfig ~/.git-credentials

/usr/lib/plan9/ndb/local に以下の内容を追加する。

Terminal window
authdom=mana.lufia.org
auth=a.lufia.org
cpu=c.lufia.org
Terminal window
git clone https://github.com/lufia/plan9port-systemd-units.git
cd plan9port-systemd-units
makepkg -si
Terminal window
run0 systemctl enable --now secstored.service
run0 --setenv=PLAN9=/usr/lib/plan9 secuser -v lufia

別の環境から factotum の内容を取り込んでおく。

Terminal window
secstore -p factotum
rm factotum

一般的な情報はユーザー権限でsystemd-credsを使うとして書いた。

Terminal window
vi secstore.key
systemd-creds --user --name=secstore.secret encrypt secstore.key ~/lib/secstore.key
rm secstore.key
Terminal window
git clone https://github.com/lufia/git-credential-factotum.git
cd git-credential-factotum
mk -f mkfile.unix install

これで使えるはず。

Terminal window
git config --global credential.helper factotum
Terminal window
git clone https://github.com/9fans/drawterm.git
cd drawterm
make 'CONF=unix'