|
@@ -3,7 +3,6 @@
|
|
|
#Item1 Common Command
|
|
|
|
|
|
step1_t1=$(date +"%S")
|
|
|
-sudo apt-get install dialog -y
|
|
|
sudo apt-get install python3.8 -y
|
|
|
sudo apt-get install python3-pip -y
|
|
|
sudo pip3 install cryptography==3.3.2
|
|
@@ -105,21 +104,25 @@ sudo chmod +x /etc/rc.local
|
|
|
|
|
|
sudo systemctl restart rc-local.service
|
|
|
step4_t2=$(date +"%S")
|
|
|
-
|
|
|
echo 'Item4 Watchdog 安裝時間:' $((step4_t2-step4_t1)) '秒' >>/home/使用者/test.log
|
|
|
-
|
|
|
echo "watchdog file done"
|
|
|
|
|
|
#Item5 Git Server
|
|
|
step5_t1=$(date +"%S")
|
|
|
sudo apt-get install golang -y
|
|
|
cd /home/使用者;pwd;git clone http://60.250.156.230:3000/fatwolf/gogsfile.git /home/使用者/gogs;sudo mv /home/使用者/gogs/gogs_0.12.3_linux_amd64.tar.gz /home/使用者/;sudo rm -rf /home/使用者/gogs/;tar -C /home/使用者 -zxvf gogs_0.12.3_linux_amd64.tar.gz
|
|
|
+username=使用者;sudo echo 'gogs = "sudo /home/'$username'/gogs/./gogs web"'>>/etc/proc-wdtd.conf
|
|
|
+cd /home/使用者;pwd;sudo git clone http://60.250.156.230:3000/Automatic_build_system/git_mysql.git /home/使用者/git_sql/
|
|
|
+mysql -u root -pGold@53743001 < "/home/使用者/git_sql/git.sql";
|
|
|
+cd /home/使用者;pwd;sudo git clone -b git_repo --single-branch http://60.250.156.230:3000/Automatic_build_system/git_mysql.git
|
|
|
+cd /home/使用者/git_mysql/;pwd;sudo mv gogs.tar.gz /home/使用者/;sudo mv repo.tar.gz /home/使用者/
|
|
|
+cd /home/使用者;pwd;sudo tar -zxvf /home/使用者/gogs.tar.gz;sudo tar -zxvf /home/使用者/repo.tar.gz ;sudo mv /home/使用者/git_mysql/app.ini /home/使用者/gogs/custom/conf/
|
|
|
+sudo git config --global --add safe.directory /home/使用者/gogs-repositories/admin1/sh.git
|
|
|
|
|
|
step5_t2=$(date +"%S")
|
|
|
-
|
|
|
echo 'Item5 Git Server 安裝時間:' $((step5_t2-step5_t1)) '秒' >>/home/使用者/test.log
|
|
|
echo "Git Server done"
|
|
|
-# ./gogs web
|
|
|
+
|
|
|
|
|
|
#Item6 Python packegs Library
|
|
|
step6_t1=$(date +"%S")
|
|
@@ -132,6 +135,8 @@ echo 'Item6 Python packegs Library 安裝時間:' $((step6_t2-step6_t1)) '秒' >
|
|
|
step7_t1=$(date +"%S")
|
|
|
cd /home/使用者;pwd;sudo git clone http://60.250.156.230:3000/rita/CoffeeProject.git /home/使用者/CoffeeProject/
|
|
|
username=使用者;sudo echo 'coffee_manage.py = "sudo python3 /home/'$username'/CoffeeProject/coffee_manage.py"'>>/etc/proc-wdtd.conf
|
|
|
+cd /home/使用者;pwd;sudo git clone http://60.250.156.230:3000/rita/BBend-Test-JWT.git /home/使用者/BBend-Test-JWT/
|
|
|
+username=使用者;sudo echo 'BBend_manage.py = "sudo python3 /home/'$username'/BBend-Test-JWT/manage.py"'>>/etc/proc-wdtd.conf
|
|
|
cd /home/使用者;pwd;sudo git clone http://60.250.156.230:3000/Automatic_build_system/Coffee_MySQL.git /home/使用者/Coffee_MySQL/
|
|
|
|
|
|
mysql -u root -pGold@53743001 < "/home/使用者/Coffee_MySQL/Coffee_MySQL.sql";
|
|
@@ -145,7 +150,8 @@ echo "AP done"
|
|
|
#ROS It should be install in user not install in root
|
|
|
#install
|
|
|
step8_t1=$(date +"%S")
|
|
|
-sudo apt-get install -y chrony ntpdate
|
|
|
+sudo apt-get install chrony -y
|
|
|
+sudo apt-get install ntpdate -y
|
|
|
sudo ntpdate -q ntp.ubuntu.com
|
|
|
#var="deb http://packages.ros.org/ros/ubuntu \$(lsb_release -sc) main"
|
|
|
sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu $(lsb_release -sc) main" > /etc/apt/sources.list.d/ros-latest.list'
|
|
@@ -154,7 +160,7 @@ sudo apt-key adv --keyserver "hkp://keyserver.ubuntu.com:80" --recv-key C1CF6E31
|
|
|
echo "deb ros packages and keyserver"
|
|
|
sudo apt-get update -y
|
|
|
#sudo apt-get upgrade -y
|
|
|
-sudo apt install ros-melodic-desktop-full -y
|
|
|
+sudo apt-get install ros-melodic-desktop-full -y
|
|
|
sudo apt-get install ros-melodic-rqt* -y
|
|
|
sudo apt-get install python-rosdep -y
|
|
|
sudo rosdep init
|