gpt4 book ai didi

linux - Linux 的 Perl 脚本中的权限错误

转载 作者:太空宇宙 更新时间:2023-11-04 10:42:16 25 4
gpt4 key购买 nike

我正在尝试为 Linux 安装 Touchmouse 服务器。该软件是一个 perl 脚本,我尝试使用 perl 命令通过终端运行它。我要运行的软件在这里:https://github.com/mycroes/touchmoused

这是终端的输出:

:~/Desktop/touchmoused-master$ perl touchmoused
Can't open /dev/uinput: Permission denied at touchmoused line 242.
:~/Desktop/touchmoused-master$ Established under name '<name of computer>'

我是 Linux 的新手,但对终端有一些经验。

谢谢!

最佳答案

来自脚本的创建者:

Just download it, chmod +x and run it (as root, it needs access to /dev/uinput and it wants to register with avahi). Regards,

http://blog.mycroes.nl/2011/04/touchmoused-logitech-touch-mouse-server.html

您的用户将没有/dev/uinput 的权限,同时检查/dev/uinput 是否是您的发行版的正确位置,该脚本允许您使用 -device 标志覆盖它。

所以要么让它成为可执行文件,这样你就不必输入“perl”然后使用 sudo 运行,或者让 root 在启动时运行它。

关于linux - Linux 的 Perl 脚本中的权限错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34537456/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com