> For the complete documentation index, see [llms.txt](https://xai-foundation.gitbook.io/xai-network/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://xai-foundation.gitbook.io/xai-network/kn/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).

# 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 %}
