mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-19 03:49:42 +08:00
52 lines
994 B
Bash
52 lines
994 B
Bash
mkdir build
|
|
cd build
|
|
|
|
mkdir movingliner
|
|
cd movingliner
|
|
cmake ../../movingliner
|
|
make -j4
|
|
mkdir /home/pi/bin
|
|
cp ./movingliner /home/pi/bin
|
|
echo beging build shuttercali
|
|
|
|
cd ../
|
|
|
|
mkdir shuttercali
|
|
cd shuttercali
|
|
cmake ../../shuttercali/project/LocationCali
|
|
make -j4
|
|
cp ./shutter_calibrate /home/pi/bin
|
|
|
|
cd ../
|
|
|
|
mkdir console
|
|
cd console
|
|
cmake ../../calibration_console
|
|
make -j4
|
|
cp ./ocean_optics_calibration_console /home/pi/bin
|
|
cd ../
|
|
sudo killall Mywathdog.sh
|
|
sudo killall TowerOptoSifAndSpectral
|
|
cd ../../
|
|
cp -r ./html/* /var/www/html
|
|
chmod +x /var/www/html/php/*.sh
|
|
cd ./build
|
|
cp TowerOptoSifAndSpectral /home/pi/bin
|
|
cd ../
|
|
cp ./root/Mywathdog.sh /root
|
|
cp ./root/start.sh /root
|
|
chmod +x /root/start.sh
|
|
mkdir /home/data
|
|
cd ../
|
|
#rm -rf ./TowerOptoSifAndSpectral
|
|
cd /root/filebrew
|
|
chmod +x ./filebrowser
|
|
./filebrowser config set -a 0.0.0.0
|
|
./filebrowser config set -r /home/data
|
|
sudo apt-get install -y timedatectl
|
|
timedatectl set-timezone Asia/Shanghai
|
|
date -R
|
|
sudo hwclock -w -f /dev/rtc0
|
|
|
|
#tc
|