
This guide is a companion to Bun Setup Ubuntu: Fast JavaScript Runtime, First Script Running, and the video is the starting point for everything below. There is no separate research folder for this one, so this guide is built from the video itself plus the official Bun documentation. Watch the video first for the narrated run-through, then use the sections below as the written reference. Video claims and added research are labeled throughout, and anything not verified here is marked untested rather than stated as fact.
curl, unzip, and an internet connection. No account and no sudo for Bun itself, since it installs into your own home folder.24.04, already has unzip on PATH, and its kernel clears the recommended 5.6 floor.~/.bun/bin and name unzip as the Linux prerequisite, installable with sudo apt install unzip. Check your kernel with uname -r.
bun.com domain and preview the whole script before running anything.curl -fsSL https://bun.com/install | bash, which fetches the latest Bun into your Bun folder.~/.bun/bin/bun, and two export lines put it on PATH for the session.export BUN_INSTALL="$HOME/.bun" and export PATH="$BUN_INSTALL/bin:$PATH", and note that a command not found afterwards means ~/.bun/bin is not on your PATH.
hello.ts, whose single console.log line uses the built-in Bun.version global and process.platform, then runs it directly with bun hello.ts and no build step.Hello from Bun 1.4.3 on linux!, which pins the demo build to Bun 1.4.3 as a point-in-time snapshot, so check the Bun releases page for the current stable.bun --version and bun --revision, where the revision string pins the exact oven-sh/bun build.
bun upgrade, and direct binaries for specific versions sit on the releases page if you ever need one.