18.04 版中忽略了 Xwrapper.config

18.04 版中忽略了 Xwrapper.config

安装了 ubuntu,使用网络安装、xorg 和 openbox。

/etc/X11/Xwrapper.config:

allowed_users=anybody

/etc/systemd/system/kiosk.service

 [Unit]
 Description=Kiosk Launcher
 # After=systemd-user-sessions.service

 [Service]
 # if this line is disabled x starts else not
 User=kioskuser
 ExecStart=/bin/bash -c 'startx'

 [Install]
 WantedBy=multi-user.target



 # from an ssh login
 kioskuser@pc:~$ startx

 (==) Log file: "/home/tmil/.local/share/xorg/Xorg.0.log", Time: Mon Sep 10 10:48:24 2018
 (==) Using system config directory "/usr/share/X11/xorg.conf.d"
 (EE) 
 Fatal server error:
 (EE) parse_vt_settings: Cannot open /dev/tty0 (Permission denied)

 (EE) Server terminated with error (1). Closing log file.

答案1

我需要安装xserver-xorg-legacy并将这些行添加到/etc/X11/Xwrapper.conf

allowed_users=anybody
needs_root_rights=yes

这种方式X终于开始了,并且/home/kioskuser/.xsession我在其中添加了更多代码来设置 openbox。

相关内容