diff --git a/docs/kugetsu-setup.md b/docs/kugetsu-setup.md index 0a826b7..a0098cd 100644 --- a/docs/kugetsu-setup.md +++ b/docs/kugetsu-setup.md @@ -36,37 +36,20 @@ incus exec -- bash incus exec -- apt-get update incus exec -- apt-get install -y systemd -# Enable systemd as PID 1 (if using systemd in container) -incus config set init.launchd.systemd true -``` +# Enable systemd in container (Incus specific - verify with your setup) +incus config set security.syscalls.intercept.systemd true -### Docker/Podman - -```bash -# Use an image with systemd support -docker run -d --name \ - --systemd=always \ - -v /sys/fs/cgroup:/sys/fs/cgroup:rw \ - debian:12 \ - /sbin/init -``` +> **Note:** Container must be privileged or have CAP_SYS_ADMIN for systemd features. +> The exact command may vary by Incus version - check Incus documentation for your setup. --- ## SSH Setup -### Quick Setup (Automated) +### Automated Setup Run the setup script inside your container: -```bash -curl -fsSL https://raw.githubusercontent.com/shoko/kugetsu/main/skills/kugetsu/scripts/sshd-setup.sh -o sshd-setup.sh -chmod +x sshd-setup.sh -bash sshd-setup.sh -``` - -Or if you have cloned the repository: - ```bash chmod +x skills/kugetsu/scripts/sshd-setup.sh bash skills/kugetsu/scripts/sshd-setup.sh @@ -165,17 +148,8 @@ ssh -p 2222 @localhost sudo systemctl status sshd ### Automated Install ```bash -curl -fsSL https://raw.githubusercontent.com/shoko/kugetsu/main/skills/kugetsu/scripts/kugetsu-install.sh | bash -``` - -### Manual Install - -```bash -# Clone repository -git clone https://git.fbrns.co/shoko/kugetsu.git - -# Run install script -bash kugetsu/skills/kugetsu/scripts/kugetsu-install.sh +# If you have cloned the repository +bash skills/kugetsu/scripts/kugetsu-install.sh # Reload shell or source bashrc source ~/.bashrc @@ -323,8 +297,8 @@ ssh -p 2222 @ ls -la ~/.ssh/ # Check PATH ssh -p 2222 @ 'echo $PATH' -# Re-run install -ssh -p 2222 @ 'bash ~/.kugetsu/scripts/kugetsu-install.sh' +# Re-run install (if repo is cloned on container) +ssh -p 2222 @ 'bash ~/path/to/kugetsu/skills/kugetsu/scripts/kugetsu-install.sh' ``` ---