From c4044139d1f5a80069d75d4d172fb6239891fa9f Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Mon, 18 Aug 2025 21:41:17 +0200 Subject: [PATCH] Add npm and Claude Code installation MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Install npm package via dnf - Install Claude Code globally via npm - Add proper error handling for both installations 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- post-install.sh | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) diff --git a/post-install.sh b/post-install.sh index 4b2c798..cf8403c 100755 --- a/post-install.sh +++ b/post-install.sh @@ -158,7 +158,7 @@ fi echo "[+] Installing additional packages..." dnf install -y \ clevis clevis-luks tpm2-tools tpm2-tss \ - tmux neovim python3-pip \ + tmux neovim python3-pip npm \ tree gcc make autoconf automake tar bzip2 || exit 1 @@ -166,8 +166,16 @@ dnf install -y \ echo "[+] Installing dropbear for early boot SSH..." dnf install -y dropbear dracut-network || exit 1 -# Install lsd and bat -echo "[+] Installing lsd and bat..." +# Install modern CLI tools +echo "[+] Installing lsd, bat, and fastfetch..." + +# Try to install fastfetch from repos first +dnf install -y fastfetch || echo "fastfetch not available in repos, skipping" + +# Install Claude Code globally +echo " - Installing Claude Code..." +npm install -g @anthropic-ai/claude-code || echo "WARNING: Claude Code installation failed" + # Install using fixed versions that should work LSD_VERSION="1.0.0" BAT_VERSION="0.24.0" @@ -472,10 +480,11 @@ fi echo "" echo "IMPORTANT: Save the LUKS passphrase from install.conf securely!" echo "" -echo "First Boot Instructions:" -echo "1. System will reboot automatically after installation" -echo "2. SSH as root: ssh root@" -echo "3. Run 'unlock-luks' and enter LUKS passphrase TWICE (once per disk)" -echo "4. System will boot normally, then SSH as user '${ALMA_USER}'" +echo "Next Steps:" +echo "1. Manually reboot the system when ready" +echo "2. SSH root@ → run 'unlock-luks' → enter passphrase" +echo "3. System finalizes setup and reboots automatically" +echo "4. SSH root@ → run 'unlock-luks' → enter passphrase again" +echo "5. System is ready → SSH as user '${ALMA_USER}'" echo "" -echo "For future unlocks, Clevis/Tang should handle this automatically." \ No newline at end of file +echo "Future boots: Only one unlock needed (or automatic if Tang/Clevis configured)" \ No newline at end of file