我需要一个命令来列出所有用户以及从终端添加、删除和修改用户的命令 - 任何有助于通过终端轻松管理用户帐户的命令。
我尝试xrandr
将 1680x1050 设置为 VGA 输出的新模式,但它说:
sudo xrandr --addmode VGA-0 1680
X Error of failed request: BadMatch (invalid parameter attributes)
Major opcode of failed request: 140 (RANDR)
Minor opcode of failed request: 18 (RRAddOutputMode)
Serial number of failed request: 35
Current serial number in output stream: 36
Run Code Online (Sandbox Code Playgroud) 我正在制作一个自定义 USB HID 设备,以及一个与之配套的桌面应用程序,在 Lubuntu 16.04.3 LTS 上使用 HIDAPI。我们myapp
现在就调用它。
显然,如果我这样做$ ./myapp
,libusb_open()
失败了LIBUSB_ERROR_ACCESS
。 (在我的调试器中显示为-3
; 花了一段时间才弄清楚,因为枚举似乎没有很好地记录)
但是如果我这样做了$ sudo ./myapp
,它就会成功。
我真的不想myapp
拥有 root 权限,那么没有它们我怎么能与我的 USB 设备通信呢?
我希望在这里得到答案,但似乎在这一点上已经被放弃了。它说明了一些关于用户权限的内容,但我似乎在我的系统上找不到它。我想我可能会找到一个叫做的组usb
或者libusb
我可以将自己添加到,但没有这样的运气。
另一个 SE 站点上的这个问题有一个答案,它使用一些简单的文本文件来更改全局(可能是个坏主意)或特定设备的权限,但是:
myapp
?myapp
在用户权限下仍然无法与 USB 通话。我使用 ubuntu 10.04。
我安装了依赖失败的暴发户。
sam@sam-desktop:~$ sudo apt-get install upstart
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
upstart: Depends: libnih-dbus1 (>= 1.0.0) but …
Run Code Online (Sandbox Code Playgroud) 我安装了 Heroku 使用
wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh
Run Code Online (Sandbox Code Playgroud)
请告诉我如何卸载 Heroku。
12.04 ×1
command-line ×1
dependencies ×1
heroku ×1
permissions ×1
uninstall ×1
usb ×1
wget ×1
xrandr ×1