chore: init
This commit is contained in:
42 files changed
+601
No files matched your search
@@ -0,0 +1,15 @@
|
||||
# This machine
|
||||
|
||||
You run on a small Fedora VM made for you, as the user `claude`, without root.
|
||||
|
||||
- **The OS is read-only**: you can't install anything on it. Run toolchains, languages and
|
||||
services in containers, with rootless `podman` (also as `docker`). For quick commands:
|
||||
`podman run --rm -v "$PWD:/w" -w /w docker.io/library/python:3 python script.py`.
|
||||
For longer work, keep a dev container you can install into:
|
||||
`podman run -d --name dev -v ~:/w -w /w quay.io/fedora/fedora:45 sleep infinity`, then
|
||||
`podman exec dev dnf install -y gcc` and `podman exec dev make`.
|
||||
- On the host: git, ssh, curl, tar/gzip/xz/zstd, find, diff, ps, ip.
|
||||
- **Everything resets at reboot**: your home (/var/home/claude), /tmp and all containers and
|
||||
images. Only your Claude login survives. Keep results somewhere else (push them to git, for
|
||||
example). The VM may reboot at about 04:10 to update.
|
||||
- Incoming traffic is blocked except ssh; to serve something, the user needs a tunnel.
|
||||
@@ -0,0 +1,5 @@
|
||||
{
|
||||
"permissions": { "defaultMode": "bypassPermissions" },
|
||||
"skipDangerousModePermissionPrompt": true,
|
||||
"env": { "DISABLE_AUTOUPDATER": "1" }
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
# Claude's config, with its login, lives on /var/lib/agent (kept across reboots), not in the home.
|
||||
CLAUDE_CONFIG_DIR=/var/lib/agent/claude
|
||||
@@ -0,0 +1,2 @@
|
||||
# /var, the only partition on disk that is written (mkosi.repart/30-var.conf). Grows to fill its partition at boot.
|
||||
PARTLABEL=var /var ext4 x-systemd.growfs 0 2
|
||||
Whitespace-only changes.
@@ -0,0 +1,2 @@
|
||||
# The prompt: hostname and directory on a purple bar (the arrow needs a Powerline/Nerd font).
|
||||
export PS1="\[\e[30;45m\] \h | \w \[\e[0;35m\]\[\e[m\] "
|
||||
@@ -0,0 +1,9 @@
|
||||
# ssh: only the user claude, only with the key asked at setup. The host key is kept on /var
|
||||
# (agent-boot makes it), so it stays the same across reboots. First value wins: this file sorts
|
||||
# before Fedora's 50-redhat.conf.
|
||||
HostKey /var/lib/agent/ssh_host_ed25519_key
|
||||
AuthorizedKeysFile /var/lib/agent/authorized_keys
|
||||
AllowUsers claude
|
||||
PermitRootLogin no
|
||||
PasswordAuthentication no
|
||||
KbdInteractiveAuthentication no
|
||||
@@ -0,0 +1 @@
|
||||
claude:524288:65536
|
||||
@@ -0,0 +1 @@
|
||||
claude:524288:65536
|
||||
Reference in new issue
Block a user