install_steam.sh 796 B

1234567891011121314151617181920212223
  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 && $su apt-get upgrade
  11. $su apt-get install -y software-properties-common apt-transport-https wget
  12. $su dpkg --add-architecture i386
  13. $su apt-get install -y steam-installer
  14. #cd || return
  15. #wget -O- http://repo.steampowered.com/steam/archive/stable/steam.gpg | sudo gpg --dearmor | sudo tee /usr/share/keyrings/steam.gpg
  16. #echo deb [arch=amd64 signed-by=/usr/share/keyrings/steam.gpg] http://repo.steampowered.com/steam/ stable steam | $su tee /etc/apt/sources.list.d/steam.list
  17. #$su apt-get update
  18. #$su apt-get install libgl1-mesa-dri:amd64 libgl1-mesa-dri:i386 libgl1-mesa-glx:amd64 libgl1-mesa-glx:i386 steam-launcher