Eu segui as duas instruções aqui e aqui . Eu cheguei muito longe, mas a última tarefa nesses guias é executar systemctl start vncserver@:10.service
e lá eu recebo um erro.
Quando executo esse comando, (onde 10 é o que eu conheço como o deslocamento da porta), recebo o seguinte erro:
Job for vncserver@:10.service failed. See "systemctl status vncserver@:10.service" and "journalctl -xe" for details.
Eu executei o comando como um usuário com sudo
e como root
. Ambas as vezes recebo o mesmo erro.
Para resumir, os guias dizem para:
-
yum install tigervnc-server
-
cp/lib/systemd/system/[email protected]/etc/systemd/system/[email protected]
-
Edite esse arquivo para substituir a variável user
-
reiniciar ( ~]# systemctl daemon-reload
)
-
defina vncpasswd
-
Executar: systemctl enable vncserver@:display_number.service
-
Executar: systemctl start vncserver@:display_number.service
Esta é a saída de systemctrl status vncserver@:10.service
● vncserver@:10.service - Remote desktop service (VNC)
Loaded: loaded (/etc/systemd/system/vncserver@:10.service; enabled)
Active: failed (Result: exit-code) since Fri 2015-04-10 04:26:21 UTC; 41s ago
Process: 22788 ExecStart=/sbin/runuser -l myusername -c /usr/bin/vncserver 10 (code=exited, status=126)
Process: 22785 ExecStartPre=/bin/sh -c /usr/bin/vncserver -kill %i > /dev/null 2>&1 || : (code=exited, status=0/SUCCESS)
Esta é a saída de journalctl -xe
Apr 10 04:44:59 democom runuser[23597]: pam_unix(runuser-l:session): session closed for user user1
Apr 10 04:44:59 democom systemd[1]: vncserver@:.service: control process exited, code=exited status=126
Apr 10 04:44:59 democom systemd[1]: Failed to start Remote desktop service (VNC).
-- Subject: Unit vncserver@:.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vncserver@:.service has failed.
--
-- The result is failed.
Apr 10 04:44:59 democom systemd[1]: Unit vncserver@:.service entered failed state.
Apr 10 04:44:59 democom systemd[1]: vncserver@:.service failed.
Apr 10 04:45:11 democom su[23801]: (to root) user1 on pts/1
Apr 10 04:45:11 democom su[23801]: pam_unix(su:session): session opened for user root by user1(uid=1000)
Apr 10 04:46:59 democom systemd[1]: Reloading.
Apr 10 04:46:59 democom systemd[1]: Configuration file /usr/lib/systemd/system/auditd.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restri
Apr 10 04:47:06 democom su[23833]: (to user1) user1 on pts/1
Apr 10 04:47:06 democom su[23833]: pam_unix(su:session): session opened for user user1 by user1(uid=0)
Apr 10 04:47:24 democom su[23833]: pam_unix(su:session): session closed for user user1
Apr 10 04:47:33 democom systemd[1]: Starting Remote desktop service (VNC)...
-- Subject: Unit vncserver@:display_number.service has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vncserver@:display_number.service has begun starting up.
Apr 10 04:47:33 democom systemd[1]: Starting Session c11 of user user1.
-- Subject: Unit session-c11.scope has begun with start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-c11.scope has begun starting up.
Apr 10 04:47:33 democom systemd[1]: Started Session c11 of user user1.
-- Subject: Unit session-c11.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-c11.scope has finished starting up.
--
-- The start-up result is done.
Apr 10 04:47:33 democom runuser[23853]: pam_unix(runuser-l:session): session opened for user user1 by (uid=0)
Apr 10 04:47:33 democom runuser[23853]: -bash: /usr/bin/vncserver: /usr/bin/perl: bad interpreter: Permission denied
Apr 10 04:47:33 democom runuser[23853]: pam_unix(runuser-l:session): session closed for user user1
Apr 10 04:47:33 democom systemd[1]: vncserver@:display_number.service: control process exited, code=exited status=126
Apr 10 04:47:33 democom systemd[1]: Failed to start Remote desktop service (VNC).
-- Subject: Unit vncserver@:display_number.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit vncserver@:display_number.service has failed.
--
-- The result is failed.
Apr 10 04:47:33 democom systemd[1]: Unit vncserver@:display_number.service entered failed state.
Apr 10 04:47:33 democom systemd[1]: vncserver@:display_number.service failed.
Eu acho que display_number
é o "deslocamento de porta" (quantas portas adicionar a 5900), mas este é o erro que estou recebendo. Gostaria de receber ajuda, obrigado.