This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 56
added useful linux commands page #359
Open
mdurrani808
wants to merge
8
commits into
PhotonVision:master
Choose a base branch
from
mdurrani808:linux-commands
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
4700e7a
added useful linux commands page
mdurrani808 3c26620
cleanup language
mdurrani808 7d492a9
added manpage links
mdurrani808 e04afc3
lint
mdurrani808 5bdbb92
Merge branch 'master' into linux-commands
mdurrani808 441dee4
address review
mdurrani808 85d107f
Merge branch 'linux-commands' of https://github.com/mdurrani808/photo…
mdurrani808 26a0052
lint
mdurrani808 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,3 +8,4 @@ Troubleshooting | |
logging | ||
camera-troubleshooting | ||
networking-troubleshooting | ||
unix-commands |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Useful Unix Commands | ||
==================== | ||
|
||
SSH | ||
--- | ||
|
||
`SSH (Secure Shell) <https://www.mankier.com/1/ssh>`_ is used to securely connect from a local to a remote system (ex. from a laptop to a coprocessor). Unlike other commands on this page, ssh is not Unix specific and can be done on Windows and MacOS from their respective terminals. | ||
|
||
.. note:: | ||
You may see a warning similar to "The authenticity of host 'xxx' can't be established..." or "WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!", in most cases this can be safely ignored if you have confirmed that you are connecting to the correct host over a secure connection. You can read more about it `here <https://superuser.com/questions/421997/what-is-a-ssh-key-fingerprint-and-how-is-it-generated>`_. | ||
|
||
Example: | ||
|
||
.. code-block:: bash | ||
|
||
ssh username@hostname | ||
|
||
ip | ||
-- | ||
|
||
Run `ip address <https://www.mankier.com/8/ip>`_ with your coprocessor connected to a monitor in order to see its IP address and other network configuration information. | ||
|
||
|
||
SCP | ||
--- | ||
|
||
`SCP (Secure Copy) <https://www.mankier.com/1/scp>`_ is used to securely transfer files between local and remote systems. | ||
|
||
Example: | ||
|
||
.. code-block:: bash | ||
|
||
scp [file] username@hostname:/path/to/destination | ||
|
||
v4l2-ctl | ||
-------- | ||
|
||
`v4l2-ctl <https://www.mankier.com/1/v4l2-ctl>`_ is a command-line tool for controlling video devices. | ||
|
||
List available video devices (used to verify the device recognized a connected camera): | ||
|
||
.. code-block:: bash | ||
|
||
v4l2-ctl --list-devices | ||
|
||
List supported formats and resolutions for a specific video device: | ||
|
||
.. code-block:: bash | ||
|
||
v4l2-ctl --list-formats-ext --device /path/to/video_device | ||
|
||
List all video device's controls and their values: | ||
|
||
.. code-block:: bash | ||
|
||
v4l2-ctl --list-ctrls --device path/to/video_device | ||
|
||
.. note:: | ||
|
||
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. | ||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do we have a page yet talking about looking at property names and stuff?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I added a note, do we want a page on this?