install_graphical.sh 1.2 KB

12345678910111213141516171819202122232425262728293031
  1. #!/bin/bash
  2. # Copyright (C) 2017-2018 Daniel Tartavel-jeannot <contact@librepc.com>
  3. #
  4. # This program is free software; you can redistribute it and/or modify
  5. # it under the terms of the GNU General Public License as published by
  6. # the Free Software Foundation; either version 2 of the License, or
  7. # (at your option) any later version.
  8. #
  9. # This program is distributed in the hope that it will be useful,
  10. # but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. # GNU General Public License for more details.
  13. #
  14. # You should have received a copy of the GNU General Public License
  15. # along with this program. If not, see <http://www.gnu.org/licenses/>.
  16. if [ "$1" = "" ] || [ "$1" = "-h" ];then
  17. echo "syntax install_graphical.sh [ sugar | xfce | lxde | lxqt | enlightenment | mate | cinnamon | plasma5 | gnome] ( see 'urpmq -Y task-' for all )"
  18. else
  19. PATH="$(/bin/dirname "$(readlink -f "$0")")"
  20. echo "installing Video drivers"
  21. . $PATH/install_video_driver.sh
  22. echo "installing gstreamer"
  23. . $PATH/install_gstreamer.sh
  24. echo "installing task-$1"
  25. /usr/bin/dnf --nogpgcheck --assumeyes install task-$1 sox sddm
  26. /usr/bin/alternatives --config soundprofile
  27. fi
  28. /usr/bin/systemctl enable sddm