# Step 4: Set up a Screen

[Screen](https://www.gnu.org/software/screen/manual/screen.html) will allow you to keep running the CLI even if you’re disconnected or you log out from your server.

1. Install screen:&#x20;

   ```
   sudo apt update && sudo apt install screen
   ```
2. Start a screen session:&#x20;

   ```
   screen -S xai
   ```

{% hint style="info" %}
This will open a screen session, create a new window, and start a shell in that window.

The first time you start a screen, you’ll see a page of license information. You can press the `Space` bar to read the second page or `Enter` to return to the command prompt.

To verify that you set up a Screen session, type `screen -ls` in a second terminal. You should see a message that looks as follows:

```
There is a screen on:
	82824.xai	(12/09/2023 11:04:52 AM)	(Attached)
1 Socket in /run/screen/@root.
```

{% endhint %}


---

# 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://xai-foundation.gitbook.io/xai-network/en/about-xai/sentry-key-purchase-and-setup/common-troubleshooting-steps/how-do-i-run-a-xai-node-on-vps/step-4-set-up-a-screen.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.
