Skip to content

Commit da64ea6

Browse files
committed
add sftp, systemctl, and journalctl
1 parent fbd3f21 commit da64ea6

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed

docs/source/docs/troubleshooting/unix-commands.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ Example:
3333
scp [file] username@hostname:/path/to/destination
3434
:::
3535

36+
SFTP
37+
---
38+
39+
[SFTP (SSH File Transfer Protocol)](https://www.mankier.com/1/sftp#) is another option for transferring files between local and remote systems.
40+
3641
v4l2-ctl
3742
--------
3843

@@ -59,3 +64,43 @@ v4l2-ctl --list-ctrls --device path/to/video_device
5964
:::{note}
6065
This command is especially useful in helping to debug when certain camera controls, like exposure, aren't behaving as expected. If you see an error in the logs similar to `WARNING 30: failed to set property [property name] (UsbCameraImpl.cpp:646)`, that means that PhotonVision is trying to use a control that doesn't exist or has a different name on your hardware. If you encounter this issue, please [file an issue](https://github.com/PhotonVision/photonvision/issues) with the necessary logs and output of the `v4l2-ctl --list-ctrls` command.
6166
:::
67+
68+
systemctl
69+
---
70+
71+
[systemctl](https://www.mankier.com/1/systemctl) is a command that controls the `systemd` system and service manager.
72+
73+
Start PhotonVision:
74+
75+
:::{code-block}
76+
systemctl start photonvision
77+
:::
78+
79+
Stop PhotonVision:
80+
81+
:::{code-block}
82+
systemctl stop photonvision
83+
:::
84+
85+
Restart PhotonVision:
86+
87+
:::{code-block}
88+
systemctl restart photonvision
89+
:::
90+
91+
journalctl
92+
---
93+
94+
[journalctl](https://www.mankier.com/1/journalctl) is a command that queries the systemd journal, which is a logging system used by many Linux distributions.
95+
96+
View the PhotonVision logs:
97+
98+
:::{code-block}
99+
journalctl -u photonvision
100+
:::
101+
102+
View the PhotonVision logs in real-time:
103+
104+
:::{code-block}
105+
journalctl -u photonvision -f
106+
:::

0 commit comments

Comments
 (0)