Add npm and Claude Code installation
- 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 <noreply@anthropic.com>
This commit is contained in:
parent
d91a7e9426
commit
c4044139d1
@ -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@<server-ip>"
|
||||
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@<server-ip> → run 'unlock-luks' → enter passphrase"
|
||||
echo "3. System finalizes setup and reboots automatically"
|
||||
echo "4. SSH root@<server-ip> → 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."
|
||||
echo "Future boots: Only one unlock needed (or automatic if Tang/Clevis configured)"
|
Loading…
Reference in New Issue
Block a user