Skip to content

Instantly share code, notes, and snippets.

@Ridrick66
Ridrick66 / create-user-interactive.sh
Last active May 1, 2026 12:46
Interactive Linux user creation with prompts (admin/ssh/password) — defaults YYY20
#!/bin/bash
# Interactive user creation with Vaultwarden ingest.
# Defaults: admin=Y, ssh=Y, generate-password=Y, length=20, vault-ingest=Y (=> "YYY20Y")
# Press Enter at any prompt to accept the default.
#
# Run as root:
# curl -fsSL <url> | bash
# Or save first:
# curl -fsSL <url> -o setup.sh && bash setup.sh
#
@Ridrick66
Ridrick66 / moonglow-setup-admin.sh
Created April 29, 2026 15:21
Moonglow Proxmox admin user setup (one-shot)
#!/bin/bash
# Moonglow admin user setup
# Creates claude-moonglow-admin with random password, sudo, SSH dir, PVE Administrator role.
# Run on Moonglow as root.
set -e
USERNAME="claude-moonglow-admin"
CRED_FILE="/root/moonglow-admin-credentials.txt"