-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·61 lines (50 loc) · 1.93 KB
/
setup.sh
File metadata and controls
executable file
·61 lines (50 loc) · 1.93 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
#!/usr/bin/env bash
set -euo pipefail
echo "=== Fix hostname resolution ==="
if ! grep -q "$(hostname)" /etc/hosts 2>/dev/null; then
echo "127.0.0.1 $(hostname)" | sudo tee -a /etc/hosts
fi
echo "=== System packages ==="
sudo apt-get update
sudo apt-get install -y \
build-essential \
curl \
wget \
git \
unzip \
jq \
htop \
ca-certificates \
gnupg
echo "=== ripgrep + fd (from GitHub releases) ==="
RG_VERSION="14.1.1"
FD_VERSION="10.2.0"
ARCH="$(dpkg --print-architecture)"
curl -fsSL "https://github.com/BurntSushi/ripgrep/releases/download/${RG_VERSION}/ripgrep_${RG_VERSION}-1_${ARCH}.deb" -o /tmp/ripgrep.deb
sudo dpkg -i /tmp/ripgrep.deb
curl -fsSL "https://github.com/sharkdp/fd/releases/download/v${FD_VERSION}/fd_${FD_VERSION}_${ARCH}.deb" -o /tmp/fd.deb
sudo dpkg -i /tmp/fd.deb
echo "=== Node.js (via NodeSource LTS) ==="
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs
echo "=== TypeScript setup ==="
npm init -y
npm install -D typescript @types/node ts-node
npx tsc --init
echo "=== GitHub CLI ==="
curl -fsSL https://cli.github.com/packages/githubcli-archive-keyring.gpg | sudo dd of=/usr/share/keyrings/githubcli-archive-keyring.gpg
echo "deb [arch=$(dpkg --print-architecture) signed-by=/usr/share/keyrings/githubcli-archive-keyring.gpg] https://cli.github.com/packages stable main" | sudo tee /etc/apt/sources.list.d/github-cli.list
sudo apt-get update
sudo apt-get install -y gh
echo "=== AWS CLI ==="
curl -fsSL "https://awscli.amazonaws.com/awscli-exe-linux-$(uname -m).zip" -o /tmp/awscliv2.zip
unzip -qo /tmp/awscliv2.zip -d /tmp
sudo /tmp/aws/install --update
rm -rf /tmp/aws /tmp/awscliv2.zip
echo "=== Claude Code ==="
curl -fsSL https://claude.ai/install.sh | bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc && source ~/.bashrc
echo "=== Done ==="
node --version
npx tsc --version
claude --version 2>/dev/null || echo "Open a new shell to use claude"