forked from seigot/tetris_game
-
Notifications
You must be signed in to change notification settings - Fork 0
/
start.sh
51 lines (44 loc) · 1.3 KB
/
start.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
#!/bin/bash
HOME=/home/ubuntu
source $HOME/.bashrc
function install_package(){
echo "install packages"
sudo apt-get install -y apt-utils
sudo apt-get update
}
install_package
#function install_ai_package(){
# echo "install packages"
# source /opt/ros/melodic/setup.bash
#
# sudo apt install -y libignition_math
# # gazebo/gzserver setting
# echo "export QT_X11_NO_MITSHM=1" >> $HOME/.bashrc
# sudo sh -c 'echo "deb http://packages.osrfoundation.org/gazebo/ubuntu-stable `lsb_release -cs` main" > /etc/apt/sources.list.d/gazebo-stable.list'
#
# # setup repository
# ## git clone
# pushd ~/catkin_ws/src/
# git clone http://github.com/kenjirotorii/ai_race
# cd ai_race
# git checkout 89a21f0a59961000ef231b7a04c055cf9e2fafbf
# ## add patch
# git clone http://github.com/seigot/ai_race ~/tmp/ai_race_tmp
# patch -p1 < ~/tmp/ai_race_tmp/docker/jetson/kenjirotorii_wheel_robot.urdf.xacro.patch
# rm -r ~/tmp/ai_race_tmp
# ## build
# cd ../..
# catkin build
# source devel/setup.bash
# popd
#}
#install_ai_package
# pyqt5
sudo apt-get install -y python3-pip
sudo apt-get install -y python3-pyqt5
pip3 install --upgrade pip
pip3 install numpy
cd $HOME
git clone http://github.com/seigot/tetris_game
#コンテナを起動し続ける
#tail -f /dev/null