[bash] update
This commit is contained in:
1 parent
09a0865c5c
commit
423269f538
4 files changed
+58
-22
No files matched your search
+24
-11
@@ -1,24 +1,37 @@
|
||||
#!/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
|
||||
sudo apt-get upgrade -y
|
||||
sudo apt-get install -y cmake g++ gcc git
|
||||
sudo apt-get install -y swig python3-pip python3-dev portaudio19-dev libsndfile1 python3-setuptools
|
||||
|
||||
# install python dependencies
|
||||
# git clone https://Irvingao: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@github.com/Irvingao/takway_base.git
|
||||
# install wiringOP-Python
|
||||
cp -r /usr/src/wiringOP-Python/ ./
|
||||
cd wiringOP-Python
|
||||
python3 generate-bindings.py > bindings.i
|
||||
sudo python3 setup.py install
|
||||
|
||||
cd ..
|
||||
|
||||
# install TakwayBoard
|
||||
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
|
||||
sudo pip install -v -e .
|
||||
|
||||
reboot
|
||||
cd ..
|
||||
|
||||
# install wifi hotspot
|
||||
sudo apt-get install -y hostapd dnsmasq
|
||||
|
||||
git clone http://43.132.157.186:3000/gaohz/wifi_hotpot.git
|
||||
cd wifi_hotpot
|
||||
sudo pip install flask psutil
|
||||
|
||||
# reboot
|
||||
reboot
|
||||
Reference in new issue
Block a user