envInstall.sh 3.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. echo "nvidia" | sudo -S apt update
  2. echo "nvidia" | sudo -S apt install -y vim gedit terminator net-tools
  3. # ADC develop ENV required
  4. echo "nvidia" | sudo -S apt install patchelf -y
  5. echo "nvidia" | sudo -S apt install protobuf-compiler -y
  6. echo "nvidia" | sudo -S apt install libprotobuf-dev -y
  7. echo "nvidia" | sudo -S apt install pcl-tools -y
  8. echo "nvidia" | sudo -S apt install libpcl-dev -y
  9. ## QT
  10. echo "nvidia" | sudo -S apt install qt5-default qtcreator -y
  11. echo "nvidia" | sudo -S apt install libqt5serialport5-dev -y
  12. echo "nvidia" | sudo -S apt install qtwebengine5-dev qtpositioning5-dev -y
  13. echo "nvidia" | sudo -S apt install qtmultimedia5-dev -y
  14. echo "nvidia" | sudo -S apt install qtmultimedia5-doc qtmultimedia5-doc-html qtmultimedia5-examples -y
  15. echo "nvidia" | sudo -S apt install qt5-doc -y
  16. echo "nvidia" | sudo -S apt install qt5-doc-html qtbase5-doc-html -y
  17. echo "nvidia" | sudo -S apt install qtbase5-examples -y
  18. echo "nvidia" | sudo -S apt install ptpd libgflags-dev libleveldb-dev libgoogle-glog-dev liblmdb-dev -y
  19. echo "nvidia" | sudo -S apt install libatlas-base-dev libyaml-cpp-dev libboost-dev -y
  20. echo "nvidia" | sudo -S apt install libleveldb-dev libsnappy-dev libopencv-dev libhdf5-serial-dev -y
  21. echo "nvidia" | sudo -S apt install --no-install-recommends libboost-all-dev -y
  22. echo "nvidia" | sudo -S apt install libatlas-base-dev -y
  23. # python dependency
  24. echo "nvidia" | sudo -S apt install python -y
  25. echo "nvidia" | sudo -S apt install python-dev -y
  26. # python dependency etc.
  27. echo "nvidia" | sudo -S apt install python-numpy python-sklearn python-skimage python-protobuf -y
  28. # set display
  29. sudo apt install vino -y
  30. mkdir -p ~/.config/autostart
  31. cp /usr/share/applications/vino-server.desktop ~/.config/autostart
  32. gsettings set org.gnome.Vino prompt-enabled false
  33. gsettings set org.gnome.Vino require-encryption false
  34. gsettings set org.gnome.Vino authentication-methods "['vnc']"
  35. gsettings set org.gnome.Vino vnc-password $(echo -n '123456'|base64)
  36. # google dependency
  37. echo "nvidia" | sudo -S apt install libgflags-dev libgoogle-glog-dev liblmdb-dev -y
  38. 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'
  39. echo "nvidia" | sudo -S apt-key adv --keyserver 'hkp://keyserver.ubuntu.com:80' --recv-key C1CF6E31E6BADE8868B172B4F42ED6FBAB17C654
  40. echo "nvidia" | sudo -S apt-get update
  41. echo "nvidia" | sudo -S apt-get install ros-melodic-desktop-full -y
  42. echo "nvidia" | sudo -S apt-get install python-rosinstall python-rosinstall-generator python-wstool build-essential -y
  43. echo "source /opt/ros/melodic/setup.bash" >> ~/.bashrc
  44. source ~/.bashrc
  45. echo "nvidia" | sudo -S apt-get install python-rosdep -y
  46. echo "nvidia" | sudo -S apt-get install --reinstall python3-pip
  47. echo "nvidia" | sudo -S pip3 install rosdepc
  48. #echo "nvidia" | sudo -S sed -i '311i url="https://ghproxy.com/"+url' /usr/lib/python2.7/dist-packages/rosdep2/sources_list.py
  49. #echo "nvidia" | sudo -S sed -i '204i gbpdistro_url="https://ghproxy.com/"+gbpdistro_url' /usr/lib/python2.7/dist-packages/rosdep2/gbpdistro_support.py
  50. #echo "nvidia" | sudo -S find . -name '*.py' |sed -i "s/https\:\/\/raw\.githubusercontent\.com/https\:\/\/ghproxy\.com\/https\:\/\/raw\.githubusercontent\.com/g" \
  51. #`xargs -t grep "https://raw.githubusercontent.com" -rl`
  52. echo "nvidia" | sudo -S rosdepc init
  53. rosdepc update