> For the complete documentation index, see [llms.txt](https://campus-rover.gitbook.io/lab-notebook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://campus-rover.gitbook.io/lab-notebook/fiiva/vnc-cluster/operation-guide/image.md).

# image.md

Cloud Desktop Container uses a custom docker image. The `Dockerfile` is located [here](https://github.com/pitosalas/tb3-ros).

## Internals

### Components

There are 3 main components in the container image,

* VNC server paired with a NoVNC server
* VSCode server
* Tailscale client

### Defaults

Catkin Workspace: `/my_ros_data/catkin_ws`

Ports:

* `novnc` 80
* `vnc` 5900
* `vscode` 8080

### Layers

The current container image is structured this way:

![Layers](https://4196336753-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2F-LULg3WmBk4r0dWAdK9A%2Fuploads%2Fgit-blob-c8db7b0e77b82401192f7b75e7c39ccddd91ae1f%2Fimage-layer.svg?alt=media)

`cosi119/tb3-ros`

* Installs ROS melodic and ROS packages
* Installs custom packages used in class, like `prrexamples`

`cosi119/ubuntu-desktop-lxde-vnc`

* Provides a Ubuntu image with novnc and lxde preconfigured.
* Provides a CUDA enabled variant (image with `-cuda` tag suffix)

## Process Management

### Supervisord

Each of the components are managed by a process control system called `supervisord`. Supervisor is responsible for spawning and restarting these components. For detailed configs, see [supervisord.conf](https://github.com/pitosalas/tb3-ros/blob/61c393140da2dbcff15fa48f0ba9c6435d5ff94c/tb3-ros/files/supervisor/supervisord.conf).

### Modifing startup processes

Modify the `supervisord.conf` under `tb3-ros/tb3-ros/files/supervisor/supervisord.conf`.

## Packages

### Default packages

As of version `2.1.1`,

* `turtlebot3_msgs`
* `turtlebot3`
* `turtlebot3_simulations`
* `https://github.com/campusrover/prrexamples`
* `https://github.com/campusrover/gpg_bran4`

### Adding a new package

To add a package to the default catkin workspace, modify the `Dockerfile` under `tb3-ros/tb3-ros/Dockerfile`:

```dockerfile
# Add the following lines
WORKDIR /my_ros_data/catkin_ws/src
RUN git clone --recursive --depth=1 https://github.com/ROBOTIS-GIT/turtlebot3_msgs.git
```

## Github repo

[pitosalas/tb3-ros](https://github.com/pitosalas/tb3-ros)


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://campus-rover.gitbook.io/lab-notebook/fiiva/vnc-cluster/operation-guide/image.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
