Eu quero inicializar em sessão gráfica no meu Raspberry Pi 3 com Arch Linux ARM. Eu instalei o xlogin ( link ).
Conteúdo de ~/.xinitrc
#!/bin/bash
cd ~user
openbox >openbox.log 2>&1
Quando executo sudo systemctl start xlogin@user
, em openbox.log
é isso:
Openbox-Message: Failed to open the display from the DISPLAY environment variable.
O código de saída de openbox
é 1. Quando uso openbox-session
em vez de openbox
, a saída é exatamente a mesma. Eu tentei escrever $DISPLAY
no arquivo, é :0
(então é definido).
Saída de 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'.