Erro VNCServer no arch linux: a variável de ambiente HOME não está definida

0

Estou usando o arch linux.

Eu não consegui conectar o servidor VNC criado pelo gnome.

Então eu instalei o tigervnc, então execute tigervnc uma vez para inicializar

Mas systemctl start vncserver falhou:

● vncserver.service - Remote desktop service (VNC)
Loaded: loaded (/usr/lib/systemd/system/vncserver.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Tue 2018-01-16 22:39:59 CST; 4s ago
Process: 17611 ExecStart=/usr/bin/vncserver -fg  (code=exited, status=2)
Process: 17609 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill  >/dev/null 2>&1 || true (code=exit
Main PID: 17611 (code=exited, status=2)

1月 16 22:39:59 bjpc systemd[1]: Starting Remote desktop service (VNC)...
1月 16 22:39:59 bjpc systemd[1]: Started Remote desktop service (VNC).
1月 16 22:39:59 bjpc vncserver[17611]: vncserver: The HOME environment variable is not set.
1月 16 22:39:59 bjpc systemd[1]: vncserver.service: Main process exited, code=exited, status=2/INVALI
1月 16 22:39:59 bjpc systemd[1]: vncserver.service: Failed with result 'exit-code'.

Em seguida, instalei x11vnc e ocorreu o mesmo erro.

    
por BaiJiFeiLong 16.01.2018 / 15:52

0 respostas