Tips: The vncserver cannot startup.

博客围绕Linux系统展开,用户在进入Linux的“services”启动“vncserver”用于远程控制时,虽弹出启动成功对话框,但服务仍为“stopped”。解答指出“vncserver”服务需先设置密码,在“terminal”输入“#vncserver”设置密码后即可使用。

Question:

I enter the "services" of linux, I want to start the "vncserver" for remote control.  But the service is still "stopped", even the message dialog pops up with "the vncserver starts up sucessfully".

Answer:

The service of "vncserver" should get a password first.  So type the command below in "terminal" instead.

#vncserver

after type the password, you can use it as IP:1, type twice it's IP:2, and so on.

Logs begin at Sat 2025-03-29 12:42:44 CST, end at Mon 2025-06-23 16:12:11 CST. -- 6月 23 16:11:14 0001.novalocal vncserver[2429331]: /usr/bin/Xvnc: error while loading shared libraries: libXfont2.so.2: cannot open shared object file: No such file or directory 6月 23 16:11:14 0001.novalocal systemd[1]: vncserver@:1.service: Control process exited, code=exited, status=255/EXCEPTION 6月 23 16:11:14 0001.novalocal systemd[1]: vncserver@:1.service: Failed with result 'exit-code'. 6月 23 16:11:14 0001.novalocal systemd[1]: Failed to start Remote desktop service (VNC). 6月 23 16:11:19 0001.novalocal systemd[1]: vncserver@:1.service: Service RestartSec=5s expired, scheduling restart. 6月 23 16:11:19 0001.novalocal systemd[1]: vncserver@:1.service: Scheduled restart job, restart counter is at 331. 6月 23 16:11:19 0001.novalocal systemd[1]: Stopped Remote desktop service (VNC). 6月 23 16:11:19 0001.novalocal systemd[1]: Starting Remote desktop service (VNC)... 6月 23 16:12:02 0001.novalocal vncserver[2430989]: WARNING: The first attempt to start Xvnc failed, possibly because the font 6月 23 16:12:02 0001.novalocal vncserver[2430989]: catalog is not properly configured. Attempting to determine an appropriate 6月 23 16:12:02 0001.novalocal vncserver[2430989]: font path for this system and restart Xvnc using that font path ... 6月 23 16:12:05 0001.novalocal vncserver[2430989]: Could not start Xvnc. 6月 23 16:12:05 0001.novalocal vncserver[2430989]: /usr/bin/Xvnc: error while loading shared libraries: libXdmcp.so.6: cannot open shared object file: No such file or directory 6月 23 16:12:05 0001.novalocal systemd[1]: vncserver@:1.service: Control process exited, code=exited, status=255/EXCEPTION 6月 23 16:12:05 0001.novalocal systemd[1]: vncserver@:1.service: Failed with result 'exit-code'. 6月 23 16:12:05 0001.novalocal systemd[1]: Failed to start Remote desktop service (VNC). 6月 23 16:12:11 0001.novalocal systemd[1]: vncserver@:1.service: Service RestartSec=5s expired, scheduling restart. 6月 23 16:12:11 0001.novalocal systemd[1]: vncserver@:1.service: Scheduled restart job, restart counter is at 332. 6月 23 16:12:11 0001.novalocal systemd[1]: Stopped Remote desktop service (VNC). 6月 23 16:12:11 0001.novalocal systemd[1]: Starting Remote desktop service (VNC)...
06-18
正在启动VNC服务... Job for vncserver@:1.service failed because the control process exited with error code. See "systemctl status vncserver@:1.service" and "journalctl -xe" for details. VNC服务启动失败,查看详细日志: -- Logs begin at Sat 2025-03-29 12:42:44 CST, end at Mon 2025-06-23 11:48:15 CST. -- 6月 23 11:15:58 0001.novalocal systemd[1]: vncserver@:1.service: Service RestartSec=5s expired, sche> 6月 23 11:15:58 0001.novalocal systemd[1]: vncserver@:1.service: Scheduled restart job, restart coun> 6月 23 11:15:58 0001.novalocal systemd[1]: Stopped Remote desktop service (VNC). 6月 23 11:15:58 0001.novalocal systemd[1]: Starting Remote desktop service (VNC)... 6月 23 11:15:58 0001.novalocal vncserver[1934715]: vncserver: couldn't find "xauth" on your PATH. 6月 23 11:15:58 0001.novalocal systemd[1]: vncserver@:1.service: Control process exited, code=exited> 6月 23 11:15:58 0001.novalocal systemd[1]: vncserver@:1.service: Failed with result 'exit-code'. 6月 23 11:15:58 0001.novalocal systemd[1]: Failed to start Remote desktop service (VNC). 6月 23 11:16:13 0001.novalocal systemd[1]: vncserver@:1.service: Service RestartSec=15s expired, sch> 6月 23 11:16:13 0001.novalocal systemd[1]: vncserver@:1.service: Scheduled restart job, restart coun> 6月 23 11:16:13 0001.novalocal systemd[1]: Stopped Remote desktop service (VNC). 6月 23 11:16:13 0001.novalocal systemd[1]: Starting Remote desktop service (VNC)... 6月 23 11:16:13 0001.novalocal systemd[1]: vncserver@:1.service: Control process exited, code=exited> 6月 23 11:16:13 0001.novalocal systemd[1]: vncserver@:1.service: Failed with result 'exit-code'. 6月 23 11:16:13 0001.novalocal systemd[1]: Failed to start Remote desktop service (VNC). 6月 23 11:48:15 0001.novalocal systemd[1]: Starting Remote desktop service (VNC)... 6月 23 11:48:15 0001.novalocal vncserver[1988882]: vncserver: couldn't find "xauth" on your PATH. 6月 23 11:48:15 0001.novalocal systemd[1]: vncserver@:1.service: Control process exited, code=exited> 6月 23 11:48:15 0001.novalocal systemd[1]: vncserver@:1.service: Failed with result 'exit-code'. 6月 23 11:48:15 0001.novalocal systemd[1]: Failed to start Remote desktop service (VNC). lines 1-21/21 (END)
06-18
-- Logs begin at Sat 2025-03-29 12:42:44 CST, end at Mon 2025-06-23 16:25:26 CST. -- 6月 23 16:25:21 0001.novalocal vncserver[2456074]: Copyright (C) 1999-2019 TigerVNC Team and many others (see README.rst) 6月 23 16:25:21 0001.novalocal vncserver[2456074]: See https://www.tigervnc.org for information on TigerVNC. 6月 23 16:25:21 0001.novalocal vncserver[2456074]: Underlying X server release 12006000, The X.Org Foundation 6月 23 16:25:21 0001.novalocal vncserver[2456074]: Mon Jun 23 16:25:18 2025 6月 23 16:25:21 0001.novalocal vncserver[2456074]: vncext: VNC extension running! 6月 23 16:25:21 0001.novalocal vncserver[2456074]: vncext: Listening for VNC connections on all interface(s), port 5901 6月 23 16:25:21 0001.novalocal vncserver[2456074]: vncext: created VNC server for screen 0 6月 23 16:25:21 0001.novalocal vncserver[2456074]: sh: /usr/bin/xkbcomp: 没有那个文件或目录 6月 23 16:25:21 0001.novalocal vncserver[2456074]: XKB: Failed to compile keymap 6月 23 16:25:21 0001.novalocal vncserver[2456074]: Keyboard initialization failed. This could be a missing or incorrect setup of xkeyboard-config. 6月 23 16:25:21 0001.novalocal vncserver[2456074]: (EE) 6月 23 16:25:21 0001.novalocal vncserver[2456074]: Fatal server error: 6月 23 16:25:21 0001.novalocal vncserver[2456074]: (EE) Failed to activate virtual core keyboard: 2(EE) 6月 23 16:25:21 0001.novalocal systemd[1]: vncserver@:1.service: Control process exited, code=exited, status=255/EXCEPTION 6月 23 16:25:21 0001.novalocal systemd[1]: vncserver@:1.service: Failed with result 'exit-code'. 6月 23 16:25:21 0001.novalocal systemd[1]: Failed to start Remote desktop service (VNC). 6月 23 16:25:26 0001.novalocal systemd[1]: vncserver@:1.service: Service RestartSec=5s expired, scheduling restart. 6月 23 16:25:26 0001.novalocal systemd[1]: vncserver@:1.service: Scheduled restart job, restart counter is at 3. 6月 23 16:25:26 0001.novalocal systemd[1]: Stopped Remote desktop service (VNC). 6月 23 16:25:26 0001.novalocal systemd[1]: Starting Remote desktop service (VNC)...
06-18
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值