Skip to content

Commit 2069c24

Browse files
authored
Merge pull request #24674 from dvdksn/sbx/ubuntu-linux
sbx: add ubuntu linux installation instructions
2 parents b92291a + e07fe09 commit 2069c24

2 files changed

Lines changed: 31 additions & 1 deletion

File tree

content/manuals/ai/sandboxes/_index.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,17 @@ $ sbx login
3737
> sbx login
3838
```
3939

40+
{{< /tab >}}
41+
{{< tab name="Linux (Ubuntu)" >}}
42+
43+
```console
44+
$ curl -fsSL https://get.docker.com | sudo REPO_ONLY=1 sh
45+
$ sudo apt-get install docker-sbx
46+
$ sudo usermod -aG kvm $USER
47+
$ newgrp kvm
48+
$ sbx login
49+
```
50+
4051
{{< /tab >}}
4152
{{< /tabs >}}
4253

content/manuals/ai/sandboxes/get-started.md

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,12 +19,15 @@ cleaning up.
1919

2020
## Prerequisites
2121

22-
- macOS (Apple silicon) or Windows (x86_64, Windows 11 required)
22+
- macOS (Apple silicon), Windows (x86_64, Windows 11 required), or Linux
23+
(Ubuntu 22.04 or later, x86_64)
2324
- If you're on Windows, enable Windows Hypervisor Platform. Open an elevated
2425
PowerShell prompt (Run as Administrator) and run:
2526
```powershell
2627
Enable-WindowsOptionalFeature -Online -FeatureName HypervisorPlatform -All
2728
```
29+
- If you're on Linux, your user must be in the `kvm` group for hardware
30+
virtualization access.
2831
- An API key or authentication method for the agent you want to use. Most
2932
agents require an API key for their model provider (Anthropic, OpenAI,
3033
Google, and others). See the [agent pages](agents/) for provider-specific
@@ -50,6 +53,22 @@ $ sbx login
5053
> sbx login
5154
```
5255

56+
{{< /tab >}}
57+
{{< tab name="Linux (Ubuntu)" >}}
58+
59+
```console
60+
$ curl -fsSL https://get.docker.com | sudo REPO_ONLY=1 sh
61+
$ sudo apt-get install docker-sbx
62+
$ sudo usermod -aG kvm $USER
63+
$ newgrp kvm
64+
$ sbx login
65+
```
66+
67+
The first command adds Docker's `apt` repository to your system. The
68+
`usermod` command grants your user access to `/dev/kvm` for hardware
69+
virtualization. You need to log out and back in (or use `newgrp`) for the
70+
group change to take effect.
71+
5372
{{< /tab >}}
5473
{{< /tabs >}}
5574

0 commit comments

Comments
 (0)