Arch Linux ARM:自动启动 openbox

Arch Linux ARM:自动启动 openbox

我想在带有 Arch Linux ARM 的 Raspberry Pi 3 上启动进入图形会话。我已经安装了xlogin(https://wiki.archlinux.org/index.php/Systemd/User#Automatic_login_into_Xorg_without_display_manager)。

内容~/.xinitrc

#!/bin/bash

cd ~user
openbox >openbox.log 2>&1

当我运行时sudo systemctl start xlogin@useropenbox.log是这样的:

Openbox-Message: Failed to open the display from the DISPLAY environment variable.

的退出代码openbox是1。当我使用openbox-sessioninstead时openbox,输出完全相同。我试图写入$DISPLAY文件,它是:0(所以它放)。

输出sudo systemctl status xlogin@user

* [email protected] - Direct X login for user user
   Loaded: loaded (/usr/lib/systemd/system/[email protected]; disabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sat 2017-12-09 21:19:55 UTC; 5min ago
  Process: 1355 ExecStart=/usr/bin/bash -l .xinitrc (code=exited, status=1/FAILURE)
 Main PID: 1355 (code=exited, status=1/FAILURE)

Dec 09 21:19:54 alarmpi systemd[1]: Started Direct X login for user user.
Dec 09 21:19:54 alarmpi systemd[1355]: pam_unix(login:session): session opened for user user by (uid=0)
Dec 09 21:19:55 alarmpi systemd[1]: [email protected]: Main process exited, code=exited, status=1/FAILURE
Dec 09 21:19:55 alarmpi systemd[1]: [email protected]: Failed with result 'exit-code'.

相关内容