Create a Claude LXC
Notes for next version
Rebuilding the template LXC takes time — changes accumulate here to be applied on the next run:
- Cleanup home dir (extra files).
apt install git-filter-repoalias cgod='IS_SANDBOX=1 claude --dangerously-skip-permissions'- Install rust/cargo.
The how-to continues
The Docker LXC script isn't in the menu on the Proxmox Community Scripts site, but you can run it with this:
bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/ct/docker.sh)"
Hit enter through all the questions except Y to update.
Open the console in Proxmox for the new container, and create an authorized_keys file with your public key.
Connect via SSH and install the rest of the stuff:
apt update
apt install zsh -y
chsh -s $(which zsh)
exit
Reconnect via SSH and continue:
sudo apt install -y gh
Install the cfg repo.
Install Claude Code:
curl -fsSL https://claude.ai/install.sh | bash
Install the VS Code server:
curl -Lk 'https://code.visualstudio.com/sha/download?build=stable&os=cli-alpine-x64' --output vscode_cli.tar.gz
tar -xf vscode_cli.tar.gz
rm vscode_cli.tar.gz
Not sure if these ones made it into the template:
Install more fzf, tmux and mosh:
apt install -y fzf tmux mosh
Install fzf-tmux.
Install fnm (fast Node.js manager):
curl -fsSL https://fnm.vercel.app/install | bash
Get IRC working
Install ii:
apt install ii
For Rust/Cargo (if needed — pkg-config seemed to be required on top of cargo):
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
apt install pkg-config libssl-dev
Next steps
Web-based VS Code server at coder/code-server (maybe should use the installer from the Proxmox Community Scripts site instead?).
Connect to SSH and tmux in one command:
ssh username@server -t tmux attach