--- title: Getting Started description: Follow this guide to set up and run your own Nestri Node for cloud gaming. icon: 'lucide:message-circle-question' --- ::alert{type="danger"} Nestri is in a **very early phase**, so errors and bugs may occur. :: ::alert{type="info"} You can pull the docker image from GitHub Container Registry with: ```bash [pull image command] podman pull ghcr.io/nestrilabs/nestri/runner:nightly ``` :: ### Step 1: Create a home directory for your Nestri Node This will be the directory where Steam, games and other persistent files will be saved. You may use any directory you like, but for simplicity, we will use `~/nestri` as the home directory in this guide. ```bash [create home directory command] mkdir -p ~/nestri sudo chmod 777 ~/nestri ``` The above will create a directory called `nestri` in your home directory and set the permissions to allow read, write, and execute for all users. This is important for the Nestri Node to function properly. ### Step 2: Launch the Nestri Runner With your home directory ready, insert it into the command below, replacing `` with the relay's URL you want to use. You will also need to replace `` with an unique name for the room you will be using to play your games. ```bash [run container (nvidia)] podman run --replace -d --name=nestri --shm-size=6g --cap-add=SYS_NICE --device /dev/dri/ -e RELAY_URL='' -e NESTRI_ROOM='' -e RESOLUTION=1920x1080 -e FRAMERATE=60 -e NESTRI_PARAMS='--verbose=true --dma-buf=true --audio-rate-control=cbr --video-codec=h264 --video-rate-control=cbr --video-bitrate=8000' -v ~/nestri:/home/nestri --device /dev/nvidia-uvm --device /dev/nvidia-uvm-tools --device /dev/nvidiactl --device /dev/nvidia0 --device /dev/nvidia-modeset ghcr.io/nestrilabs/nestri/runner:nightly ``` ```bash [run container (amd/intel)] podman run --replace -d --name=nestri --shm-size=6g --cap-add=SYS_NICE --device /dev/dri/ -e RELAY_URL='' -e NESTRI_ROOM='' -e RESOLUTION=1920x1080 -e FRAMERATE=60 -e NESTRI_PARAMS='--verbose=true --dma-buf=true --audio-rate-control=cbr --video-codec=h264 --video-rate-control=cbr --video-bitrate=8000' -v ~/nestri:/home/nestri ghcr.io/nestrilabs/nestri/runner:nightly ``` ### Step 3: Begin Playing Finally, construct the play URL with your room name and relay URL: `https://nestri.io/play/?peerURL=` Navigate to this URL in your browser, click on the button to capture your mouse pointer and keyboard, and start playing! ### Stop the Nestri Container If you want to stop the Nestri container, you can use the following command: ```bash [stop container command] podman stop nestri ``` ### Start the Nestri Container If you want to start the Nestri container after stopping it, you can use the following command: ```bash [start container command] podman start nestri ``` ### Remove the Nestri Container To remove the container, you can use the following command: ```bash [remove container command] podman rm nestri ``` ### Update Nestri Container To update the Nestri container, you can use the following command: ```bash [update container command] podman pull ghcr.io/nestrilabs/nestri/runner:nightly ``` After which, you can recreate the container with the latest image using the same command you used in Step 2.