Big update
This commit is contained in:
29
tools/install_graphical.sh
Executable file
29
tools/install_graphical.sh
Executable file
@ -0,0 +1,29 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2017-2018 Daniel Tartavel-jeannot <contact@librepc.com>
|
||||
#
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
if [ "$1" = "" ];then
|
||||
echo "syntax install_graphical.sh [xfce | lxde | lxqt | plasma | gnome] ( see task-* for all )"
|
||||
else
|
||||
PATH="$(/bin/dirname "$(readlink -f "$0")")"
|
||||
echo "installing Video drivers"
|
||||
. $PATH/install_video_driver.sh
|
||||
echo "installing gstremer"
|
||||
. $PATH/install_gstreamer.sh
|
||||
echo "installing task-$1"
|
||||
/usr/sbin/urpmi --auto --no-verify-rpm task-$1
|
||||
fi
|
27
tools/install_graphical.sh~
Executable file
27
tools/install_graphical.sh~
Executable file
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2017-2018 Daniel Tartavel-jeannot <contact@librepc.com>
|
||||
#
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
if [ "$1" = "" ];then
|
||||
echo "syntax install_graphical.sh [xfce | lxde | lxqt | plasma | gnome] ( see task-* for all )"
|
||||
else
|
||||
PATH="$(/bin/dirname "$(readlink -f "$0")")"
|
||||
echo "Path="$PATH
|
||||
. $PATH/install_video_driver.sh
|
||||
. $PATH/install_gstreamer.sh
|
||||
/usr/sbin/urpmi --auto --no-verify-rpm task-$1
|
||||
fi
|
0
tools/install_gstreamer.sh
Normal file → Executable file
0
tools/install_gstreamer.sh
Normal file → Executable file
3
tools/install_video_driver.sh
Normal file → Executable file
3
tools/install_video_driver.sh
Normal file → Executable file
@ -17,7 +17,8 @@
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
/usr/sbin/urpmi --auto --no-verify-rpm x11-driver-video-fbdev
|
||||
/usr/sbin/urpmi --auto --no-verify-rpm x11-driver-video-fbdev xinit xclock xorg-x11 xorg-x11-75dpi-fonts drakconf
|
||||
|
||||
|
||||
echo "#!/bin/sh
|
||||
|
||||
|
26
tools/install_video_driver.sh~
Executable file
26
tools/install_video_driver.sh~
Executable file
@ -0,0 +1,26 @@
|
||||
#!/bin/bash
|
||||
|
||||
# Copyright (C) 2017-2018 Daniel Tartavel-jeannot <contact@librepc.com>
|
||||
#
|
||||
|
||||
# This program is free software; you can redistribute it and/or modify
|
||||
# it under the terms of the GNU General Public License as published by
|
||||
# the Free Software Foundation; either version 2 of the License, or
|
||||
# (at your option) any later version.
|
||||
#
|
||||
# This program is distributed in the hope that it will be useful,
|
||||
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
# GNU General Public License for more details.
|
||||
#
|
||||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
|
||||
/usr/sbin/urpmi --auto --no-verify-rpm x11-driver-video-fbdev xinit xclock
|
||||
|
||||
echo "#!/bin/sh
|
||||
|
||||
# patch for display manager service which do not start automatically
|
||||
systemctl start display-manager.service &" >/etc/rc.d/rc.local
|
||||
/usr/bin/chmod a+x /etc/rc.d/rc.local
|
0
tools/install_xfce.sh → tools/install_xfce.sh~
Normal file → Executable file
0
tools/install_xfce.sh → tools/install_xfce.sh~
Normal file → Executable file
Reference in New Issue
Block a user