我需要作为独立演示系统的root用户启动 Xubuntu 。
无论是使用 的自动登录功能lightdm,还是在出现提示时通过“其他”>“root”登录时,我总是得到以下响应:
Error found when loading /root/.profile
mesg: ttyname failed: Inappropriate ioctl for device
As result the session will not be configured correctly.
You should fix the problem as soon as feasible.
Run Code Online (Sandbox Code Playgroud)
清除上面的弹出框后,系统与ROOT用户按预期执行。
以下是内容/etc/lightdm/lightdm.conf:
[Seat:*]
autologin-guest=false
autologin-user=root
autologin-user-timeout=0
Run Code Online (Sandbox Code Playgroud)
我在网上看到过与 Vagrind 相关的其他类似问题,并且这些问题已通过一些最新更新解决,但这似乎仍在 Xubuntu 16.04 上发生
https://bugs.launchpad.net/ubuntu/+source/lightdm/+bug/1584488
如何解决 Vagrant 中的`ttyname failed: Inproper ioctl for device`?
大多数论坛都声明此消息是错误的,不应显示。有没有办法以 root 身份自动启动 Xubuntu,同时避免这个错误的弹出窗口?