-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·32 lines (23 loc) · 750 Bytes
/
Copy pathsetup.sh
File metadata and controls
executable file
·32 lines (23 loc) · 750 Bytes
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
#!/bin/sh
set -e
DEST="${1:?Usage: ./setup.sh <user@host> [ssh-args...]}"
shift
ssh -t "$@" "$DEST" '
set -e
# Node.js latest LTS via NodeSource
curl -fsSL https://deb.nodesource.com/setup_lts.x | sudo -E bash -
sudo apt-get install -y nodejs unzip tmux fontconfig fonts-dejavu-core libvulkan1 vulkan-tools libegl1 libopengl0 libglx0 libgles2
# pnpm
corepack enable
corepack prepare pnpm@latest --activate
# Bun
curl -fsSL https://bun.sh/install | bash
source ~/.bashrc
# Vulkan required cache folder
export XDG_RUNTIME_DIR=/run/user/$(id -u)
mkdir -p "$XDG_RUNTIME_DIR" && chmod 700 "$XDG_RUNTIME_DIR"
git clone https://github.com/bvanderdrift/hellm-world.git
cd hellm-world
pnpm i
'
ssh -t "$@" "$DEST" "cd hellm-world && exec \$SHELL -l"