Skip to content

Commit 82497db

Browse files
committed
Add Docs
1 parent a2366b6 commit 82497db

File tree

2 files changed

+107
-0
lines changed

2 files changed

+107
-0
lines changed

DISABLE_AUTOSTART.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
# Disable Autostart
2+
===================
3+
4+
# Windows
5+
1. Type "Task Manager in the Windows Search Bar"
6+
7+
![Type "Task Manager in the Windows Search Bar"](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/windows/01.png)
8+
2. Select the Startup tab
9+
10+
![Select the Startup tab](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/windows/02.png)
11+
3. Select the autostart file
12+
13+
![Select the autostart file](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/windows/03.png)
14+
4. Disable it
15+
16+
![Disable it](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/windows/04.png)
17+
18+
# Mac OSX
19+
1. Open Finder, click on Go menu, select 'Go to Folder'
20+
21+
![Open Finder, click on Go menu, select 'Go to Folder'](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/mac/01.png)
22+
2. Type the directory containing the autolauncher file, change <username> with your Mac username, by default the directory is /Users/username/Library/LaunchAgents
23+
24+
![Type the directory containing the autolauncher file, change <username> with your Mac username, by default the directory is /Users/username/Library/LaunchAgents](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/mac/02.png)
25+
3. Select the ArduinoCreateAgent.plist file
26+
27+
![Select the ArduinoCreateAgent.plist file](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/mac/03.png)
28+
4. Right click on the file name and select 'Move to Trash'
29+
30+
![Right click on the file name and select 'Move to Trash'](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/mac/04.png)
31+
32+
---
33+
The command line way:
34+
```
35+
$ launchctl unload ~/Library/LaunchAgents/ArduinoCreateAgent.plist
36+
```
37+
38+
# Linux
39+
1. Show hidden files
40+
41+
![Show hidden files](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/linux/01.png)
42+
2. Select the .config dir in your home
43+
44+
![Select the .config dir in your home](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/linux/02.png)
45+
3. Select the autostart dir
46+
47+
![Select the autostart dir](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/linux/03.png)
48+
4. Move the file to the trash
49+
50+
![Move the file to the trash](https://raw.githubusercontent.com/arduino/arduino-create-agent/devel/images/linux/04.png)
51+
52+
---
53+
The command line way:
54+
55+
Just remove the autostart file in your desktop manager, in Ubuntu is:
56+
```
57+
$ rm $HOME/.config/autostart/arduino-create-agent.desktop
58+
```
59+
To start manually the agent you can open the file at:
60+
```
61+
$ nohup $HOME/ArduinoCreateAgent-1.1/Arduino_Create_Bridge &
62+
```
63+
or in the location selected during the installation

README.md

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
arduino-create-agent
2+
====================
3+
4+
Arduino Create Agent is a tool that allows you to control your boards from https://create.arduino.cc
5+
6+
# History
7+
arduino-create-agent is a fork of @johnlauer's serial-port-json-server (which we really want to thank for his kindness and great work)
8+
9+
The history has been rewritten to keep the repo small (thus removing all binaries committed in the past)
10+
11+
Then it was completely rewritten from scratch to address the new featureset
12+
13+
# Installation
14+
Follow the getting started guide at https://create.arduino.cc/getting-started
15+
16+
# How does it work
17+
Arduino Create exposes a set of rest api hosted on a variable port on localhost (eg http://localhost:8990/v1) to detect connected boards, install programming tools and program boards
18+
19+
It also allows to open a websocket connection to a board connected through the serial port.
20+
21+
22+
23+
## Security
24+
A web server running on localhost makes a lot of people nervous. That's why we thought hard about security:
25+
26+
- You can disable autostart and run the Agent only when needed: see [Disable Autostart](DISABLE_AUTOSTART.md)
27+
- To prevent malicious websites to perform request on the Agent through your browser, we use [CORS](https://developer.mozilla.org/en-US/docs/Web/HTTP/CORS). You can control who has access through the `origin` field on the configuration file: see [Configure](#configure)
28+
- Every url that needs to be downloaded, or command that needs to be ran has to be signed by a trusted party. You can control who is trusted through the `trusted` folder: see [Configure](#configure)
29+
- Commands are whitelisted, so even a trusted party can't execute a malicious command. You can control which commands are whitelisted through the `whitelist` field of the configuration file: see [Configure](#configure)
30+
31+
# Configure
32+
## config.ini
33+
Arduino Create Agent uses `.ini` files to read its options. In your install folder you'll find a configuration files that's already tuned for everyday use with create:
34+
35+
```ini
36+
origins: https://create.arduino.cc
37+
whitelist: avrdude,bossac
38+
```
39+
40+
- origins is a comma-separated list of website that are allowed to contact the Agent
41+
- whitelist is the list of commands they are allowed to perform on your machine
42+
43+
## trusted folder
44+
The trusted folder contains the public keys of the trusted origins. So if you have `https://create.arduino.cc` you should have its public key on the trusted folder.

0 commit comments

Comments
 (0)