install_anydesk.sh 569 B

12345678910111213141516171819202122
  1. #!/bin/bash
  2. # fail if any commands fails
  3. set -e
  4. # debug log
  5. #set -x
  6. # Set superuser privileges command if not set
  7. if [[ -z $su ]]; then
  8. export su="sudo"
  9. fi
  10. $su apt-get update -qq
  11. $su apt-get install -qq -y wget
  12. wget -qO - https://keys.anydesk.com/repos/DEB-GPG-KEY | sudo apt-key add -
  13. echo "deb http://deb.anydesk.com/ all main" | sudo tee /etc/apt/sources.list.d/anydesk-stable.list
  14. $su apt-get update -qq
  15. $su apt-get install -qq -y anydesk
  16. # fix for error: "error while loading shared libraries: libpangox-1.0.so.0"
  17. #$su apt-get install -qq -y libpangox-1.0-0