Skip to content

Commit

Permalink
Merge pull request #172 from GameTec-live/main
Browse files Browse the repository at this point in the history
doc: finally add linux
  • Loading branch information
doegox authored Oct 16, 2023
2 parents 372bcf2 + 070db3d commit 363ff4f
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 7 deletions.
36 changes: 30 additions & 6 deletions docs/cli.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,11 @@ Using ProxSpace to build the CLI is the easiest and most comfortable way to get

12. And the binaries with `cmake --build .`

13. Copy the binaries by running `cp -r ~/ChameleonUltra/software/bin/* ~/ChameleonUltra/software/script/`
13. Go into the script folder with `cd ~/ChameleonUltra/software/script/`

14. Go into the script folder with `cd ~/ChameleonUltra/software/script/`

15. Install python requirements with `pip install -r requirements.txt`
14. Install python requirements with `pip install -r requirements.txt`

16. Finally run the CLI with `python chameleon_cli_main.py`
15. Finally run the CLI with `python chameleon_cli_main.py`

To use after installing, just do the following:

Expand Down Expand Up @@ -106,7 +104,33 @@ To run again after installing, just do the following:

### Linux

*Coming Soon*
1. Install the dependencies
- Ubuntu / Debian: `sudo apt install cmake make python3 python3-pip git ninja-build python3-venv build-essential`
- Arch: `sudo pacman -S cmake make python3-pip git ninja base-devel`

2. Clone the Repository by typing `git clone https://github.com/RfidResearchGroup/ChameleonUltra.git`

3. Now go into the newly created folder with `cd ChameleonUltra/software/src`

4. Build the required config by running `cmake .`

5. And the binaries with `cmake --build .`

6. Go into the script folder with `cd ../script/`

7. Create a virtual enviroment with `python3 -m venv venv`

8. Activate it with `source venv/bin/activate`

9. Install python requirements with `pip3 install -r requirements.txt`

10. Finally run the CLI with `python3 chameleon_cli_main.py`

To run again after installing, just do the following:

1. Activate venv by running `source venv/bin/activate`

2. Run the CLI with `python3 chameleon_cli_main.py`

### MacOS

Expand Down
2 changes: 1 addition & 1 deletion software/script/chameleon_cli_unit.py
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ def on_exec(self, args: argparse.Namespace):
" where {$_.DeviceID -like '*VID_6868&PID_8686*'} |"
" Select-Object -First 1 FriendlyName |"
" % FriendlyName |"
" select-string COM\d+ |"
" select-string COM\\d+ |"
"% { $_.matches.value }"], stdout=subprocess.PIPE)
res = process.communicate()[0]
_comport = res.decode('utf-8').strip()
Expand Down

0 comments on commit 363ff4f

Please sign in to comment.