64비트 Arm에서 VNC를 시스템 서비스로 실행하는 방법은 무엇입니까?

64비트 Arm에서 VNC를 시스템 서비스로 실행하는 방법은 무엇입니까?

나는 후속 조치를 취하고 있다이 가이드내 Ubuntu arm64 시스템에 VNC 서버 설정(구체적으로는앰비안64비트). 지금까지 나는 문제를 발견했습니다.

명령을 사용하여 VNC 서버를 시작할 때 vncserver :1 -localhost noVNC 클라이언트에서 세션에 액세스하려고 하면 작동하지 않고 충돌이 발생합니다.

LD_PRELOAD=/lib/aarch64-linux-gnu/libgcc_s.so.1 vncserver :1 -localhost no그러나 내가 찾은 명령을 사용하려고 할 때여기, 작동하기 시작했습니다.

systemctl이제 명령을 사용하여 시스템 서비스로 관리하고 싶습니다 . 따라서 다음과 같은 유닛 파일이 있습니다.

[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target

[Service]
Type=forking
User=zulh
Group=zulh
WorkingDirectory=/home/zulh

PIDFile=/home/zulh/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart="LD_PRELOAD=/lib/aarch64-linux-gnu/libgcc_s.so.1 /usr/bin/vncserver -depth 24 -geometry 1280x800 -localhost no :%i"
ExecStop=/usr/bin/vncserver -kill :%i

[Install]
WantedBy=multi-user.target

이제 달리면...

$ sudo systemctl daemon-reload
$ sudo systemctl enable [email protected]
$ vncserver -kill :1
$ sudo systemctl start vncserver@1

...이해합니다:

$ sudo systemctl status vncserver@1[email protected] - Start TightVNC server at startup
     Loaded: bad-setting (Reason: Unit [email protected] has a bad unit file setting.)
     Active: failed (Result: timeout) since Sat 2022-04-16 17:34:44 +08; 3min 42s ago

Apr 16 17:33:13 armbian gnome-session[18628]: gnome-session-binary[18628]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Apr 16 17:33:13 armbian gnome-session-binary[18628]: WARNING: App 'org.gnome.Shell.desktop' respawning too quickly
Apr 16 17:33:13 armbian gnome-session-binary[18628]: CRITICAL: We failed, but the fail whale is dead. Sorry....
Apr 16 17:34:41 armbian systemd[1]: [email protected]: start operation timed out. Terminating.
Apr 16 17:34:44 armbian systemd[1]: [email protected]: Failed with result 'timeout'.
Apr 16 17:34:44 armbian systemd[1]: Failed to start Start TightVNC server at startup.
Apr 16 17:34:49 armbian systemd[1]: /etc/systemd/system/[email protected]:13: Neither a valid executable name nor an absolute path: LD_PRELOAD=/lib/aarch64-linux-gnu/libgcc_s.s>
Apr 16 17:34:49 armbian systemd[1]: [email protected]: Unit configuration has fatal error, unit will not be started.
Apr 16 17:38:00 armbian systemd[1]: /etc/systemd/system/[email protected]:13: Neither a valid executable name nor an absolute path: LD_PRELOAD=/lib/aarch64-linux-gnu/libgcc_s.s>
Apr 16 17:38:00 armbian systemd[1]: [email protected]: Unit configuration has fatal error, unit will not be started.

이 문제를 해결하려면 어떻게 해야 합니까?

관련 정보