install_de_xfce.ksh 774 B

1234567891011121314151617181920
  1. #!/bin/ksh
  2. doas pkg_add xfce xfce-extras ## install xfce desktop
  3. doas sed -i 's/xconsole/#xconsole/' /etc/X11/xenodm/Xsetup_0 # no xconcole
  4. doas usermod -G operator <user name> # so you can use xfce to log out, reboot etc
  5. doas usermod -G wheel <user name> # so you can use doas
  6. #echo "permit persist :wheel" >> /etc/doas.conf # doas = sudo
  7. doas rcctl enable messagebus ## enable dbus
  8. doas rcctl start messagebus ## start dbus
  9. doas rcctl enable apmd ## enable power daemon
  10. doas rcctl start apmd ## start power daemon
  11. echo "exec startxfce4" > ~/.xsession ## auto launchs xfce4 desktop
  12. doas pkg_add gnome
  13. doas rcctl disable xenodm
  14. echo "Disable xenodm > OK"
  15. doas rcctl enable multicast messagebus avahi_daemon gdm
  16. echo "Enable 'multicast messagebus avahi_daemon gdm' > OK"