rbreaves / kinto

Mac-style shortcut keys for Linux & Windows.
http://kinto.sh
GNU General Public License v2.0
4.24k stars 212 forks source link

Premission bugs when Installing Kinto on Rocky Linux 9x #836

Open stevejjd opened 8 months ago

stevejjd commented 8 months ago

Describe the bug I copy the code to install Kinto

/bin/bash -c "$(wget -qO- https://raw.githubusercontent.com/rbreaves/kinto/HEAD/install/linux.sh || curl -fsSL https://raw.githubusercontent.com/rbreaves/kinto/HEAD/install/linux.sh)"

I get errors installing ln: failed to create symbolic link '/etc/systemd/system/graphical.target.wants/xkeysnail.service': File exists Failed to create soft symlink for graphical target... Failed to disable unit: Refusing to operate on alias name or linked unit file: xkeysnail.service

Permission errors in SELinux Alert Browser. services are being blocked

Screenshot from 2023-11-04 13-58-39

Screenshot from 2023-11-04 13-56-49

Screenshot from 2023-11-04 13-57-18

RedBearAK commented 8 months ago

@stevejjd

I'm not the Kinto dev. But I used it for a long time and contributed a few things.

I have a separate project based on Kinto that I test on Rocky 9.x fairly regularly. And AlmaLinux/Rocky 8.x, and CentOS Stream 8, and for some reason I even got it working on CentOS 7. You may want to check it out.

https://github.com/RedBearAK/toshy
(shorter redirect URL: https://toshy.app)

The problem with the Kinto installer may have something to do with how it deals with Fedora systems. It might not have logic specifically for RHEL and related distros. For instance it does this on Fedora, but as you can see there are only checks for "fedora" and "fedoralinux":

    sed -i "s#{xkeysnail}#`which xkeysnail`#g" ./linux/limitedadmins.new
    if [[ $distro == 'fedora' ]] || [[ $distro == 'fedoralinux' ]]; then
        echo "Changing SELinux context"
        sudo chcon -v --user=$selinuxuser --type=$selinuxtype "$xkeypath"xkeysnail.service
    fi

There are many other spots where the installer script checks for Fedora, so quite a few things would need to be fixed to make it work on RHEL-type distros. Probably some other things would need to be fixed too, since RHEL distros are not exactly the same as Fedora.

stevejjd commented 8 months ago

Thank's so much for letting me know. Ill give your tool a try. :)