Go Down

Topic: Need help with Local AVS Server Configuration (Read 910 times) previous topic - next topic

Leticiar

i have the file I just found it and its in the right place because its suppose to be in /home/pi/avs-device-sdk/tools/install

Leticiar

this is what i did
pi@raspberrypi:~/sdk-folder/sdk-build $ cd /home/pi/avs-device-sdk/tools/Installpi@raspberrypi:~/avs-device-sdk/tools/Install $ bash genConfig.sh config.json {device serial number} \
> /{{path to database}} \
> /{{path to source folder}}/avs-device-sdk \
> {{path to build}}/Integration/AlexaClientSDKConfig.json
Usage: genConfig.sh <config.json file> <device_serial_number> <db path> <SDK Source Directory> <output AlexaClientSDKConfig.json file>
1) <config.json file> can be downloaded from developer portal and must contain the following:
  "clientId": "<OAuth client ID>"
  "productId": "<your product name for device>"
2) <device_serial_number> specifies the deviceInfo deviceSerialNumber in the output json file.
3) <db path> specifies the path to where the databases will be located.
4) <SDK Source Directory> specifies the root directory to where the avs-device-sdk source code is located.
5) <output AlexaClientSDKConfig.json file> output file

Power_Broker

then why did you try to run it from
Code: [Select]
~/sdk-folder/sdk-build
"The desire that guides me in all I do is the desire to harness the forces of nature to the service of mankind."
   - Nikola Tesla

Leticiar

I'm a newbie I'm just figuring this out sorry. Do you know how I can create a backup for my AlexaClientSDKConfig.json file?

Power_Broker

Doing this all from the terminal can be really difficult for a newbie, can you use the file browser to find/move/backup/etc the file then run the .sh from there? You can launch a .sh from the file browser
"The desire that guides me in all I do is the desire to harness the forces of nature to the service of mankind."
   - Nikola Tesla

Leticiar


Power_Broker

https://www.youtube.com/watch?v=Hf5xDsiJdmw

You should do some research on how to use Linux before having to do a bunch of Linux stuff for this project
"The desire that guides me in all I do is the desire to harness the forces of nature to the service of mankind."
   - Nikola Tesla

Leticiar

what command do I use in terminal to back up the file?

Leticiar

The dd command copies a file converting the file as specified. It is often used to copy an entire disk to a single file or back again. So, for example,  dd if=/dev/sdd of=backup.img will create a backup image from an SD card or USB disk drive at /dev/sdd. Make sure to use the correct drive when copying an image to the SD card as it can overwrite the entire disk.

would this work?

Power_Broker

Why do you want to back it up? The two biggest things you need to do is to learn how to move the files into the correct directories and know how to launch bash scripts
"The desire that guides me in all I do is the desire to harness the forces of nature to the service of mankind."
   - Nikola Tesla

Leticiar

in the tutorial it says
IMPORTANT: Create a backup of your AlexaClientSDKConfig.json file. Subsequent builds will reset the contents of this file.
this is why I want to back it up. It might not be necessary for my project though so I guess I will just continue on

Go Up