generated at
闇ネットにつなぎたい
author : lilium
date : 2023-12-25

~~~~ 背景 ~~~~
闇ネットの利用開始 のマニュアルはラズベリーパイで整備されている。
ラズベリーパイ・・・・家にあるはずだけど・・・・見つからない・・・。
今メインマシンにしている mac mini (apple silicon) でどうにかならないか?

~~~~ 目標 ~~~~
mac mini (apple silicon) が闇ネットに参加できることを確認する。

~~~~ 方法 ~~~~
Apple Silicon Mac で VM を用意できるソフトウェアとして Lima を入れる。
Lima で VM を用意して、その中で 闇ネット に必要なプログラムを動作させる。

~~~~ ワークログ ~~~~
""" 2023年12月25日(日曜日) """

brew を使って lima をインストール
zsh
% brew install lima

limactl start すると ubuntu 23 が準備される
zsh
% limactl start ? Creating an instance "default" Proceed with the current configuration INFO[0016] Starting the instance "default" with VM driver "qemu" INFO[0016] QEMU binary "/opt/homebrew/bin/qemu-system-aarch64" seems properly signed with the "com.apple.security.hypervisor" entitlement INFO[0016] Attempting to download the image arch=aarch64 digest="sha256:78d35a2f551d281912ee7e5202660d94d713aa1b5de86a17e261328cc2f093d4" location="https://cloud-images.ubuntu.com/releases/23.10/release-20231011/ubuntu-23.10-server-cloudimg-arm64.img" Downloading the image (ubuntu-23.10-server-cloudimg-arm64.img) 171.36 MiB / 714.88 MiB [-------->___________________________] 23.97% 8.67 MiB/s

INFO に waiting と出たら vm に入れるようになってる
zsh
INFO[0109] [hostagent] Waiting for the essential requirement 1 of 4: "ssh" INFO[0119] [hostagent] Waiting for the essential requirement 1 of 4: "ssh" INFO[0129] [hostagent] Waiting for the essential requirement 1 of 4: "ssh"

vm の shell に入るには limactl shell コマンドを使う
zsh
mary@mary-mac-mini dev3 % limactl shell default

lima の ubuntu の様子を簡単に確認
zsh
% pwd /Users/mary # vm の shell に接続 % limactl shell default $ cd ~ $ pwd /home/mary.linux $ uname -a Linux lima-default 6.5.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Fri Oct 6 20:34:49 UTC 2023 aarch64 aarch64 aarch64 GNU/Linux

apt update を実行

zsh
$ sudo apt update

力尽きました。また後日。。。

~~~~ lilium は次どうするのか ~~~~
「闇ネットのつなぎ方」を見て作業
分からないことがあれば闇ネットHQチャンネルに質問
やる気があるタイミングでまた頑張る

~~~~ 完成予定地 ~~~~

~~~~ 参考文献 ~~~~