fork 0k-charms
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

39 lines
1.0 KiB

  1. #!/bin/bash
  2. set +eux
  3. ## Certificate DST_Root_CA-X3 expired, it needs to be removed
  4. ## from list of available certificates. Debian <10 have the issue.
  5. ##
  6. ## Fixing: https://www.reddit.com/r/sysadmin/comments/pzags0/lets_encrypts_dst_root_ca_x3_expired_yesterday/
  7. ## see also: https://techcrunch.com/2021/09/21/lets-encrypt-root-expiry/?guccounter=1
  8. if grep "^mozilla/DST_Root_CA_X3.crt" /etc/ca-certificates.conf 2>/dev/null 2>&1; then
  9. sed -ri 's%^(mozilla/DST_Root_CA_X3.crt)%!\1%g' /etc/ca-certificates.conf &&
  10. update-ca-certificates
  11. fi
  12. ## We can now do the ``apt-get update`` safely...
  13. apt-get update
  14. apt-get -y install bash-completion wget bzip2 git-core \
  15. less tmux mosh \
  16. sudo git vim file </dev/null
  17. apt-get -y python-software-properties </dev/null ||
  18. apt-get -y software-properties-common </dev/null
  19. case $(lsb_release -is) in
  20. Ubuntu)
  21. apt-get install -y language-pack-en </dev/null
  22. ;;
  23. Debian)
  24. sed -ri 's/^\s*#\s*(en_US\.UTF-?8.*)\s*$/\1/g' /etc/locale.gen
  25. locale-gen
  26. ;;
  27. esac