diff --git a/README.md b/README.md index 54dbf97..7136cd0 100644 --- a/README.md +++ b/README.md @@ -291,6 +291,59 @@ sudo pacman -S systray-x-minimal ``` +### CentOS + +#### Repository + +Installing the repository: + +###### 8 Stream + +```bash +yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/CentOS_8_Stream/home:Ximi1970:Mozilla:Add-ons.repo +sudo yum update +``` + +###### 8 + +```bash +yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/CentOS_8/home:Ximi1970:Mozilla:Add-ons.repo +sudo yum update +``` + +###### 7 + +```bash +yum-config-manager --add-repo=https://download.opensuse.org/repositories/home:/Ximi1970:/Mozilla:/Add-ons/CentOS_7/home:Ximi1970:Mozilla:Add-ons.repo +sudo yum update +``` + +#### Package + +Installing the SysTray-X addon and companion app package: + +###### KDE + +```bash +sudo yum install systray-x-minimal +``` +or +```bash +sudo yum install epel-release +sudo yum install systray-x +``` + + +###### GNOME + +```bash +sudo yum install systray-x-gnome +sudo yum install gnome-tweaks +``` +Please use `Tweaks` to activate the gnome shell extension `Kstatusnotifieritem/appindicator support` or reboot the system. + + + ## Binaries (User) User installable package. diff --git a/create_linux_gnome_installers.sh b/create_linux_gnome_installers.sh index a4423ab..7f01a67 100755 --- a/create_linux_gnome_installers.sh +++ b/create_linux_gnome_installers.sh @@ -46,6 +46,15 @@ OBS_RPM_GNOME_EXT+="master " OBS_RPM_ARCHS+="Fedora_33/x86_64 " OBS_RPM_PKS+="fed33 " OBS_RPM_GNOME_EXT+="master " +OBS_RPM_ARCHS+="CentOS_7/x86_64 " +OBS_RPM_PKS+="el7 " +OBS_RPM_GNOME_EXT+="v26 " +OBS_RPM_ARCHS+="CentOS_8/x86_64 " +OBS_RPM_PKS+="el8 " +OBS_RPM_GNOME_EXT+="master " +OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 " +OBS_RPM_PKS+="el8s " +OBS_RPM_GNOME_EXT+="master " OBS_DEB_ARCHS="" diff --git a/create_linux_kde_installers.sh b/create_linux_kde_installers.sh index 80b6014..8982d88 100755 --- a/create_linux_kde_installers.sh +++ b/create_linux_kde_installers.sh @@ -33,6 +33,12 @@ OBS_RPM_ARCHS+="Fedora_32/x86_64 " OBS_RPM_PKS+="fed32 " OBS_RPM_ARCHS+="Fedora_33/x86_64 " OBS_RPM_PKS+="fed33 " +OBS_RPM_ARCHS+="CentOS_7/x86_64 " +OBS_RPM_PKS+="el7 " +OBS_RPM_ARCHS+="CentOS_8/x86_64 " +OBS_RPM_PKS+="el8 " +OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 " +OBS_RPM_PKS+="el8s " OBS_DEB_ARCHS="" diff --git a/create_linux_minimal_installers.sh b/create_linux_minimal_installers.sh index 6220a9d..2db0a85 100755 --- a/create_linux_minimal_installers.sh +++ b/create_linux_minimal_installers.sh @@ -33,6 +33,12 @@ OBS_RPM_ARCHS+="Fedora_32/x86_64 " OBS_RPM_PKS+="fed32 " OBS_RPM_ARCHS+="Fedora_33/x86_64 " OBS_RPM_PKS+="fed33 " +OBS_RPM_ARCHS+="CentOS_7/x86_64 " +OBS_RPM_PKS+="el7 " +OBS_RPM_ARCHS+="CentOS_8/x86_64 " +OBS_RPM_PKS+="el8 " +OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 " +OBS_RPM_PKS+="el8s " OBS_DEB_ARCHS="" diff --git a/create_linux_staging_gnome_installers.sh b/create_linux_staging_gnome_installers.sh index a8d8989..6812dc0 100755 --- a/create_linux_staging_gnome_installers.sh +++ b/create_linux_staging_gnome_installers.sh @@ -46,6 +46,15 @@ OBS_RPM_GNOME_EXT+="master " OBS_RPM_ARCHS+="Fedora_33/x86_64 " OBS_RPM_PKS+="fed33 " OBS_RPM_GNOME_EXT+="master " +OBS_RPM_ARCHS+="CentOS_7/x86_64 " +OBS_RPM_PKS+="el7 " +OBS_RPM_GNOME_EXT+="v26 " +OBS_RPM_ARCHS+="CentOS_8/x86_64 " +OBS_RPM_PKS+="el8 " +OBS_RPM_GNOME_EXT+="master " +OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 " +OBS_RPM_PKS+="el8s " +OBS_RPM_GNOME_EXT+="master " OBS_DEB_ARCHS="" diff --git a/create_linux_staging_kde_installers.sh b/create_linux_staging_kde_installers.sh index 786ed05..0a9d57b 100755 --- a/create_linux_staging_kde_installers.sh +++ b/create_linux_staging_kde_installers.sh @@ -33,6 +33,12 @@ OBS_RPM_ARCHS+="Fedora_32/x86_64 " OBS_RPM_PKS+="fed32 " OBS_RPM_ARCHS+="Fedora_33/x86_64 " OBS_RPM_PKS+="fed33 " +OBS_RPM_ARCHS+="CentOS_7/x86_64 " +OBS_RPM_PKS+="el7 " +OBS_RPM_ARCHS+="CentOS_8/x86_64 " +OBS_RPM_PKS+="el8 " +OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 " +OBS_RPM_PKS+="el8s " OBS_DEB_ARCHS="" diff --git a/create_linux_staging_minimal_installers.sh b/create_linux_staging_minimal_installers.sh index 74bf78e..5aa0fbb 100755 --- a/create_linux_staging_minimal_installers.sh +++ b/create_linux_staging_minimal_installers.sh @@ -33,6 +33,12 @@ OBS_RPM_ARCHS+="Fedora_32/x86_64 " OBS_RPM_PKS+="fed32 " OBS_RPM_ARCHS+="Fedora_33/x86_64 " OBS_RPM_PKS+="fed33 " +OBS_RPM_ARCHS+="CentOS_7/x86_64 " +OBS_RPM_PKS+="el7 " +OBS_RPM_ARCHS+="CentOS_8/x86_64 " +OBS_RPM_PKS+="el8 " +OBS_RPM_ARCHS+="CentOS_8_Stream/x86_64 " +OBS_RPM_PKS+="el8s " OBS_DEB_ARCHS="" diff --git a/dist/install.CentOS_7-Gnome.sh b/dist/install.CentOS_7-Gnome.sh new file mode 100644 index 0000000..78aad6e --- /dev/null +++ b/dist/install.CentOS_7-Gnome.sh @@ -0,0 +1,59 @@ +enableGnomeExtension() { + EXTENSION="appindicatorsupport@rgcjonas.gmail.com" + PACKAGE="gnome-shell-extension-appindicator" + ENABLE_CMD="/usr/bin/gnome-extensions" + ENABLE_CMD_OPTIONS="enable ${EXTENSION}" + + # + # Is the extension installed? + # + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + else + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo +} + +# +# Enable the gnome shell extension for the local user +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + enableGnomeExtension + + # + # Check for Qt + # + yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo yum install qt5-qtbase-gui" + echo + fi +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.CentOS_7-Kde.sh b/dist/install.CentOS_7-Kde.sh new file mode 100644 index 0000000..dffcb8d --- /dev/null +++ b/dist/install.CentOS_7-Kde.sh @@ -0,0 +1,41 @@ +## +# Check for Kde +# +if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + # + # Check for Qt + # + yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo yum install qt5-qtbase-gui" + echo + fi + + yum list installed "kf5*" | grep -q kf5-knotifications + if [ "$?" == "1" ] ; then + echo + echo "Please install the package kf5-knotifications from the EPEL repo" + echo + echo "sudo yum install epel-release" + echo "sudo yum install kf5-knotifications" + echo + fi +else + # + # Check for Gnome + # + if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.CentOS_7.sh b/dist/install.CentOS_7.sh new file mode 100644 index 0000000..8908b3a --- /dev/null +++ b/dist/install.CentOS_7.sh @@ -0,0 +1,31 @@ +# +# Check for Gnome +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + # + # Check for Qt + # + yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "yum install qt5-qtbase-gui" + echo + fi + fi +fi diff --git a/dist/install.CentOS_8-Gnome.sh b/dist/install.CentOS_8-Gnome.sh new file mode 100644 index 0000000..78aad6e --- /dev/null +++ b/dist/install.CentOS_8-Gnome.sh @@ -0,0 +1,59 @@ +enableGnomeExtension() { + EXTENSION="appindicatorsupport@rgcjonas.gmail.com" + PACKAGE="gnome-shell-extension-appindicator" + ENABLE_CMD="/usr/bin/gnome-extensions" + ENABLE_CMD_OPTIONS="enable ${EXTENSION}" + + # + # Is the extension installed? + # + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + else + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo +} + +# +# Enable the gnome shell extension for the local user +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + enableGnomeExtension + + # + # Check for Qt + # + yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo yum install qt5-qtbase-gui" + echo + fi +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.CentOS_8-Kde.sh b/dist/install.CentOS_8-Kde.sh new file mode 100644 index 0000000..dffcb8d --- /dev/null +++ b/dist/install.CentOS_8-Kde.sh @@ -0,0 +1,41 @@ +## +# Check for Kde +# +if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + # + # Check for Qt + # + yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo yum install qt5-qtbase-gui" + echo + fi + + yum list installed "kf5*" | grep -q kf5-knotifications + if [ "$?" == "1" ] ; then + echo + echo "Please install the package kf5-knotifications from the EPEL repo" + echo + echo "sudo yum install epel-release" + echo "sudo yum install kf5-knotifications" + echo + fi +else + # + # Check for Gnome + # + if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.CentOS_8.sh b/dist/install.CentOS_8.sh new file mode 100644 index 0000000..d4a88d0 --- /dev/null +++ b/dist/install.CentOS_8.sh @@ -0,0 +1,31 @@ +# +# Check for Gnome +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + # + # Check for Qt + # + yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo yum install qt5-qtbase-gui" + echo + fi + fi +fi diff --git a/dist/install.CentOS_8_Stream-Gnome.sh b/dist/install.CentOS_8_Stream-Gnome.sh new file mode 100644 index 0000000..da0ea8b --- /dev/null +++ b/dist/install.CentOS_8_Stream-Gnome.sh @@ -0,0 +1,59 @@ +enableGnomeExtension() { + EXTENSION="appindicatorsupport@rgcjonas.gmail.com" + PACKAGE="gnome-shell-extension-appindicator" + ENABLE_CMD="/usr/bin/gnome-extensions" + ENABLE_CMD_OPTIONS="enable ${EXTENSION}" + + # + # Is the extension installed? + # + if [ -d /usr/share/gnome-shell/extensions/${EXTENSION} ] || [ -d ~/.local/share/gnome-shell/extensions/${EXTENSION} ] ; then + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + else + mkdir -p ~/.local/share/gnome-shell/extensions + tar -C ~/.local/share/gnome-shell/extensions -xJf ${DESTINATION}/gnome-shell-extension.tar.xz + if [ -x $ENABLE_CMD ] ; then + $ENABLE_CMD $ENABLE_CMD_OPTIONS + fi + fi + + echo + echo "Please logout and login to activate the gnome shell extension" + echo +} + +# +# Enable the gnome shell extension for the local user +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + enableGnomeExtension + + # + # Check for Qt + # + yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "yum install qt5-qtbase-gui" + echo + fi +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.CentOS_8_Stream-Kde.sh b/dist/install.CentOS_8_Stream-Kde.sh new file mode 100644 index 0000000..47cefa8 --- /dev/null +++ b/dist/install.CentOS_8_Stream-Kde.sh @@ -0,0 +1,41 @@ +## +# Check for Kde +# +if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + # + # Check for Qt + # + yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo dnf install qt5-qtbase-gui" + echo + fi + + yum list installed "kf5*" | grep -q kf5-knotifications + if [ "$?" == "1" ] ; then + echo + echo "Please install the package kf5-knotifications from the EPEL repo" + echo + echo "sudo yum install epel-release" + echo "sudo yum install kf5-knotifications" + echo + fi +else + # + # Check for Gnome + # + if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo + else + echo + echo "Please use the __MINIMAL_INSTALLER__ installer." + echo "This setup will not work." + echo + fi +fi diff --git a/dist/install.CentOS_8_Stream.sh b/dist/install.CentOS_8_Stream.sh new file mode 100644 index 0000000..d4a88d0 --- /dev/null +++ b/dist/install.CentOS_8_Stream.sh @@ -0,0 +1,31 @@ +# +# Check for Gnome +# +if [ "$XDG_CURRENT_DESKTOP" == "GNOME" ] ; then + echo + echo "Please use the __GNOME_INSTALLER__ installer." + echo "This setup will not work." + echo +else + # + # Check for KDE + # + if [ "$XDG_CURRENT_DESKTOP" == "KDE" ] ; then + echo + echo "Please use the __KDE_INSTALLER__ installer." + echo "This setup will not work." + echo + else + # + # Check for Qt + # + yum list installed "qt5-qtbase*" | grep -q qt5-qtbase-gui + if [ "$?" == "1" ] ; then + echo + echo "Please install the package qt5-qtbase-gui" + echo + echo "sudo yum install qt5-qtbase-gui" + echo + fi + fi +fi