简体   繁体   English

Linux的Perl脚本中的权限错误

[英]Permissions Error in Perl Script for Linux

I'm trying to install the Touchmouse server for Linux. 我正在尝试为Linux安装Touchmouse服务器。 The software is a perl script that I have tried to run via terminal, using the perl command. 该软件是我尝试使用perl命令通过终端运行的perl脚本。 The software I'm trying to run is here: https://github.com/mycroes/touchmoused 我要运行的软件在这里: https : //github.com/mycroes/touchmoused

This is the output from terminal: 这是终端的输出:

:~/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>'

I am new to Linux but have some experience with Terminal. 我是Linux的新手,但是对Terminal有一定的经验。

Thanks! 谢谢!

From the creator of the script: 来自脚本的创建者:

Just download it, chmod +x and run it (as root, it needs access to /dev/uinput and it wants to register with avahi). 只需下载它,chmod + x并运行它(以root身份,它需要访问/ dev / uinput并想要向avahi注册)。 Regards, 问候,

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

Your user won't have permissions for /dev/uinput, also check that /dev/uinput is the correct location for your distribution, the script allows you to override this with the -device flag. 您的用户没有/ dev / uinput的权限,还请检查/ dev / uinput是否是您的发行版的正确位置,该脚本允许您使用-device标志覆盖此位置。

So either make it executable so you don't have to enter 'perl' and then run with sudo or have root run it on startup. 因此,要么将其设为可执行文件,以便您不必输入“ perl”,然后使用sudo运行,要么让root在启动时运行它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM