installation scripts for servers.
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.

26 lines
484 B

3 years ago
  1. #!/bin/sh
  2. usertest() {
  3. if test "$(id -u)" -eq 0; then
  4. echo "You cannot run this script as root.";
  5. exit 1;
  6. fi
  7. if ! (getent passwd junikim 2>&1) > /dev/null; then
  8. echo "User junikim must exist.";
  9. exit 1
  10. fi
  11. if ! (apk list | grep 'doas'); then
  12. echo "doas is not installed.";
  13. exit 1
  14. fi
  15. }
  16. usertest
  17. echo "setting up xorg and xfce desktop environment"
  18. doas setup-xorg-base
  19. apk add xfce4 xfce4-terminal dbus
  20. echo "exec startxfce4" >> "$HOME/.xinitrc"