root_1 450 B

123456789101112131415161718192021222324
  1. #!/usr/bin/env bash
  2. ## configure and install minimal openbox desktop environment
  3. apt-get update
  4. #apt-get purge dbus
  5. #apt-get autoremove --purge
  6. #apt-mark hold dbus
  7. #apt install --no-install-recommends -y \
  8. #doas
  9. cp doas.conf /etc/
  10. chown -c root:root /etc/doas.conf
  11. chmod -c 0400 /etc/doas.conf
  12. adduser admin
  13. addgroup wheel && usermod -a -G wheel admin
  14. chage --expiredate -1 root
  15. passwd --lock root
  16. cd ..
  17. rm -Rfv devuan_openbox_3.0
  18. ls
  19. echo logout