Skip to content

DOCS-4174: Use sudo as default #4467

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/manage/troubleshoot/troubleshoot.md
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ Alternatively you can restart `viam-server` and write logs to a log file by stop
1. Then run `viam-server` with the `-debug` and `-log-file` options and pass in your machine cloud credentials file:

```sh {class="command-line" data-prompt="$" data-output=""}
/usr/local/bin/viam-server -debug -config /etc/viam.json -log-file logs.txt
sudo /usr/local/bin/viam-server -debug -config /etc/viam.json -log-file logs.txt
```

1. Then check the logs file <FILE>logs.txt</FILE>.
Expand All @@ -119,7 +119,7 @@ If you want to store your logs in a file, stop the running `viam-server` instanc
1. Then run `viam-server` with the `-debug` and `-log-file` options and pass in your machine cloud credentials file:

```sh {class="command-line" data-prompt="$" data-output=""}
viam-server -config ~/Downloads/viam.json -debug -log-file logs.txt
sudo viam-server -config ~/Downloads/viam.json -debug -log-file logs.txt
```

1. Then check the logs file <FILE>logs.txt</FILE>.
Expand Down
4 changes: 2 additions & 2 deletions docs/operate/reference/viam-server/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ cd bin/Linux-amd64 # or Linux-arm64 for ARM-based systems
You can then run the server directly:

```sh {class="command-line" data-prompt="$"}
./viam-server -config /path/to/your/config.json
sudo ./viam-server -config /path/to/your/config.json
```

{{% /tab %}}
Expand Down Expand Up @@ -428,7 +428,7 @@ cd bin/Darwin-arm64 # Use the folder matching your architecture
You can then run the server directly:

```sh {class="command-line" data-prompt="$"}
./viam-server -config /path/to/your/config.json
sudo ./viam-server -config /path/to/your/config.json
```

### Option 2: Use an older version of the Homebrew tap
Expand Down
2 changes: 1 addition & 1 deletion docs/operate/reference/viam-server/manage-viam-server.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ You can use the following commands to manage `viam-server` on the command line:
Run the following on the command line to start `viam-server`, providing the path to your own configuration file:

```sh {class="command-line" data-prompt="$"}
viam-server -config /path/to/my/config.json
sudo viam-server -config /path/to/my/config.json
```

If you followed the [Installation Guide](/operate/get-started/setup/), your machine's configuration file is available in your <file>~/Downloads/</file> directory, named similarly to <file>viam-machinename-main.json</file>.
Expand Down
Loading