Register a device
The first step in reaching your edge from anywhere.
After creating a project, at the top of the dashboard, press on
A window will pop up with instructions on how to register a Linux device. Basically, all you need to do is run the shown command on the device's terminal.
- 1.Device Name - to enter a device name at registration, add the flag
-n=<DEVICE_NAME>at the end of the registration command (for example, you can use "$HOSTNAME" as your device name).
- 2.Device Group - to make the device register to a specific group, add the flag
-g=<GROUP_NAME>at the end of the registration command (the group must exist).
- 3.Device Software version - when defined, it will create an application called "default_app" with the specified version at registration. Add the flag
-s=<SOFTWARE_VERSION>at the end of the registration command.
su -c 'wget -O - "<URL>" | sh -s <USER_TOKEN> <PROJECT_NAME> -n=<DEVICE_NAME> -g=<GROUP_NAME> -s=<SOFTWARE_VERSION>'
After a few seconds, your device should appear in the Devices category on the Dashboard.
The device registration algorithm can also be initiated without a direct download of JFrog Connect's agent.
You may embed the agent itself into the device image to have it automatically provisioned into your project, as instructed in the guide below: