使用 ubuntu/kubuntu 通过 USB 安装板时,我在将二进制程序传输到微控制器原型板时遇到问题。使用 MacOS 和 Windows 没有问题。我发现来自 Ubuntu 的写作肯定会改变所写的文件。我怀疑写缓存是问题所在。我怎样才能禁用它,或者还有什么问题。
我正在尝试使用命令从 cron 休眠systemctl hibernate。但是,我收到以下错误:
Failed to set wall message, ignoring: Interactive authentication required.
Failed to hibernate system via logind: Interactive authentication required.
Failed to start hibernate.target: Interactive authentication required.
See system logs and 'systemctl status hibernate.target' for details.
Run Code Online (Sandbox Code Playgroud)
如果我从终端手动执行上述命令,它会按预期工作。
如何从 cron 休眠?
我使用的是 Ubuntu 16.04。