envInstall.sh 2.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. echo "nvidia" | sudo -S apt install -y vim gedit terminator net-tools
  2. # ADC develop ENV required
  3. echo "nvidia" | sudo -S apt install patchelf -y
  4. echo "nvidia" | sudo -S apt install protobuf-compiler -y
  5. echo "nvidia" | sudo -S apt install libprotobuf-dev -y
  6. echo "nvidia" | sudo -S apt install pcl-tools -y
  7. echo "nvidia" | sudo -S apt install libpcl-dev -y
  8. ## QT
  9. echo "nvidia" | sudo -S apt install qt5-default qtcreator -y
  10. echo "nvidia" | sudo -S apt install libqt5serialport5-dev -y
  11. echo "nvidia" | sudo -S apt install qtwebengine5-dev qtpositioning5-dev -y
  12. echo "nvidia" | sudo -S apt install qtmultimedia5-dev -y
  13. echo "nvidia" | sudo -S apt install qtmultimedia5-doc qtmultimedia5-doc-html qtmultimedia5-examples -y
  14. echo "nvidia" | sudo -S apt install qt5-doc -y
  15. echo "nvidia" | sudo -S apt install qt5-doc-html qtbase5-doc-html -y
  16. echo "nvidia" | sudo -S apt install qtbase5-examples -y
  17. echo "nvidia" | sudo -S apt install ptpd libgflags-dev libleveldb-dev libgoogle-glog-dev liblmdb-dev -y
  18. echo "nvidia" | sudo -S apt install libatlas-base-dev libyaml-cpp-dev libboost-dev -y
  19. echo "nvidia" | sudo -S apt install libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev -y
  20. echo "nvidia" | sudo -S apt install --no-install-recommends libboost-all-dev -y
  21. echo "nvidia" | sudo -S apt install libatlas-base-dev -y
  22. # python dependency
  23. echo "nvidia" | sudo -S apt install python -y
  24. echo "nvidia" | sudo -S apt install python-dev -y
  25. # python dependency etc.
  26. echo "nvidia" | sudo -S apt install python-numpy python-sklearn python-skimage python-protobuf -y
  27. # google dependency
  28. echo "nvidia" | sudo -S apt install libgflags-dev libgoogle-glog-dev liblmdb-dev -y
  29. 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'
  30. echo "nvidia" | sudo -S apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
  31. echo "nvidia" | sudo -S apt-get update
  32. echo "nvidia" | sudo -S apt-get install ros-melodic-desktop-full
  33. echo "nvidia" | sudo -S apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential
  34. echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
  35. source ~/.bashrc
  36. echo "nvidia" | sudo -S apt-get install python-rosdep
  37. echo "nvidia" | sudo -S pip3 install rosdepc
  38. #echo "nvidia" | sudo -S sed -i '311i url="https://ghproxy.com/"+url' /usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
  39. #echo "nvidia" | sudo -S sed -i '204i gbpdistro_url="https://ghproxy.com/"+gbpdistro_url' /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
  40. #echo "nvidia" | sudo -S find . -name '*.py' |sed -i "s/https\:\/\/raw\.githubusercontent\.com/https\:\/\/ghproxy\.com\/https\:\/\/raw\.githubusercontent\.com/g" \
  41. #`xargs -t grep "https://raw.githubusercontent.com" -rl`
  42. echo "nvidia" | sudo -S rosdepc init
  43. rosdepc update