> For the complete documentation index, see [llms.txt](https://cellhasher.gitbook.io/docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cellhasher.gitbook.io/docs/cellhasher-control/index/linux.md).

# Linux

Use the script below to collect system info needed for debugging Cellhasher Control on Linux.

## System Info Script

Run the following script in a terminal and paste the output when reporting an issue:

```bash
#!/usr/bin/env bash

# Collect output in a variable
out=""

section() {
    out+="\n=== $1 ===\n"
}

append() {
    out+="$1\n"
}

section "DISPLAY"
append "Display protocol: ${XDG_SESSION_TYPE:-Unknown}"

section "OS INFO"
if [ -f /etc/os-release ]; then
    . /etc/os-release
    append "OS Name: $NAME"
    append "OS ID: $ID"
    append "OS Version: $VERSION"
    append "OS Version ID: $VERSION_ID"
    append "OS Codename: ${VERSION_CODENAME:-N/A}"
else
    append "/etc/os-release not found"
fi

section "ARCHITECTURE"
kernel_arch=$(uname -m)
append "Kernel architecture: $kernel_arch"

cpu_arch=$(lscpu 2>/dev/null | awk -F: '/Architecture/ {print $2}' | xargs)
append "CPU architecture: ${cpu_arch:-Unknown}"

userland_bits=$(file /usr/bin/bash | grep -oE "32-bit|64-bit")
append "Userland bitness: ${userland_bits:-Unknown}"

if [[ "$userland_bits" == "64-bit" ]]; then
    append "OS Bitness: 64-bit"
elif [[ "$userland_bits" == "32-bit" ]]; then
    append "OS Bitness: 32-bit"
else
    append "OS Bitness: Unknown"
fi

section "ADB CHECK"
if command -v adb >/dev/null 2>&1; then
    adb_path=$(command -v adb)
    append "ADB installed: Yes"
    append "ADB path: $adb_path"
    adb_version=$(adb version 2>/dev/null | head -n 1)
    append "ADB version: ${adb_version:-Unknown}"
else
    append "ADB installed: No"
fi

section "KERNEL"
append "$(uname -r)"

# Print to terminal
echo -e "$out"

# Print copy-ready block
echo -e "\n=== COPY BELOW ==="
echo "------------------"
echo -e "$out"
echo "------------------"
```

Copy the output from the `=== COPY BELOW ===` block and include it with your support request.


---

# 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://cellhasher.gitbook.io/docs/cellhasher-control/index/linux.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.
