# Ubuntu Use Case

**Step 1**: Create a GPU Container using Ubuntu template&#x20;

* Choose Ubuntu template&#x20;
* Select SSH Terminal Access&#x20;

<figure><img src="/files/xaZMZAEFzV3b6ZkOoz8A" alt=""><figcaption></figcaption></figure>

&#x20;

**Step 2**: Connect your container via SSH by using VSCode&#x20;

To connect via SSH, copy the command and paste it into your terminal. You can use any terminal application, such as Command Prompt, PowerShell, or the integrated terminal in VS Code. &#x20;

<figure><img src="/files/VUgCPeiMc5YAFc8Pp4Kf" alt=""><figcaption></figcaption></figure>

See our detailed guide here for a full walkthrough.&#x20;

**Step 3**: Setting Up Your Environment&#x20;

1. Install python3&#x20;

```
apt update && apt install -y wget gnupg2 curl software-properties-common 
apt install -y python3 python3-pip python3-venv 
```

2. Install Pytorch&#x20;

```
pip install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu124
```

Check if pytorch is installed successfully&#x20;

<pre><code><strong>python 3 
</strong>import torch 
</code></pre>

3. Run a simple matrix algorithm&#x20;

```
apt install vim 
vim matrix_mulplication.py 
python3 matrix_mulplication.py
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://ai-docs.fptcloud.com/fpt-gpu-cloud/gpu-container/use-cases/ubuntu-use-case.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
