1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- echo "nvidia" | sudo -S apt update
- echo "nvidia" | sudo -S apt install -y vim gedit terminator net-tools
- # ADC develop ENV required
- echo "nvidia" | sudo -S apt install patchelf -y
- echo "nvidia" | sudo -S apt install protobuf-compiler -y
- echo "nvidia" | sudo -S apt install libprotobuf-dev -y
- echo "nvidia" | sudo -S apt install pcl-tools -y
- echo "nvidia" | sudo -S apt install libpcl-dev -y
- ## QT
- echo "nvidia" | sudo -S apt install qt5-default qtcreator -y
- echo "nvidia" | sudo -S apt install libqt5serialport5-dev -y
- echo "nvidia" | sudo -S apt install qtwebengine5-dev qtpositioning5-dev -y
- echo "nvidia" | sudo -S apt install qtmultimedia5-dev -y
- echo "nvidia" | sudo -S apt install qtmultimedia5-doc qtmultimedia5-doc-html qtmultimedia5-examples -y
- echo "nvidia" | sudo -S apt install qt5-doc -y
- echo "nvidia" | sudo -S apt install qt5-doc-html qtbase5-doc-html -y
- echo "nvidia" | sudo -S apt install qtbase5-examples -y
- echo "nvidia" | sudo -S apt install ptpd libgflags-dev libleveldb-dev libgoogle-glog-dev liblmdb-dev -y
- echo "nvidia" | sudo -S apt install libatlas-base-dev libyaml-cpp-dev libboost-dev -y
- echo "nvidia" | sudo -S apt install libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev -y
- echo "nvidia" | sudo -S apt install --no-install-recommends libboost-all-dev -y
- echo "nvidia" | sudo -S apt install libatlas-base-dev -y
- # python dependency
- echo "nvidia" | sudo -S apt install python -y
- echo "nvidia" | sudo -S apt install python-dev -y
- # python dependency etc.
- echo "nvidia" | sudo -S apt install python-numpy python-sklearn python-skimage python-protobuf -y
- # set display
- sudo apt install vino -y
- mkdir -p ~/.config/autostart
- cp /usr/share/applications/vino-server.desktop ~/.config/autostart
- gsettings set org.gnome.Vino prompt-enabled false
- gsettings set org.gnome.Vino require-encryption false
- gsettings set org.gnome.Vino authentication-methods "['vnc']"
- gsettings set org.gnome.Vino vnc-password $(echo -n '123456'|base64)
- # google dependency
- echo "nvidia" | sudo -S apt install libgflags-dev libgoogle-glog-dev liblmdb-dev -y
- echo "nvidia" | sudo -S sh -c '. /etc/lsb-release && echo "deb http://mirrors.ustc.edu.cn/ros/ubuntu/ $DISTRIB_CODENAME main" > /etc/apt/sources.list.d/ros-latest.list'
- echo "nvidia" | sudo -S apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
- echo "nvidia" | sudo -S apt-get update
- echo "nvidia" | sudo -S apt-get install ros-melodic-desktop-full -y
- echo "nvidia" | sudo -S apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential -y
- echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
- source ~/.bashrc
- echo "nvidia" | sudo -S apt-get install python-rosdep -y
- echo "nvidia" | sudo -S apt-get install --reinstall python3-pip
- echo "nvidia" | sudo -S pip3 install rosdepc
- #echo "nvidia" | sudo -S sed -i '311i url="https://ghproxy.com/"+url' /usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
- #echo "nvidia" | sudo -S sed -i '204i gbpdistro_url="https://ghproxy.com/"+gbpdistro_url' /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
- #echo "nvidia" | sudo -S find . -name '*.py' |sed -i "s/https\:\/\/raw\.githubusercontent\.com/https\:\/\/ghproxy\.com\/https\:\/\/raw\.githubusercontent\.com/g" \
- #`xargs -t grep "https://raw.githubusercontent.com" -rl`
- echo "nvidia" | sudo -S rosdepc init
- rosdepc update
|