24 lines
716 B
Bash
24 lines
716 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
# 给bashrc添加自启动python脚本
|
||
|
# echo "nohup python3 /home/orangepi/takway_base/ws_client.py& " >> ~/.bashrc
|
||
|
|
||
|
# update system
|
||
|
sudo -S apt-get update -y << EOF
|
||
|
orangepi
|
||
|
EOF
|
||
|
|
||
|
# install dependencies
|
||
|
sudo apt-get install -y cmake g++ gcc
|
||
|
sudo apt-get install -y python3-pip python3-dev portaudio19-dev libsndfile1
|
||
|
|
||
|
# install python dependencies
|
||
|
# git clone https://Irvingao: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@github.com/Irvingao/takway_base.git
|
||
|
git clone http://43.132.157.186:3000/gaohz/TakwayBoard.git
|
||
|
cd TakwayBoard
|
||
|
# git remote set-url origin https://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@github.com/Irvingao/takway_base.git
|
||
|
pip install -v -e .
|
||
|
|
||
|
pip install -r requirements.txt
|
||
|
|
||
|
reboot
|