VNC无法显示桌面图标

[root@cnwbzp0167 ~]# service vncserver restart
Shutting down VNC server: 2:root                           [FAILED]
Starting VNC server: 2:root A VNC server is already running as :2
                                                           [FAILED]
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# vncserver -kill :1


Can't find file /root/.vnc/cnwbzp0167:1.pid
You'll have to kill the Xvnc process manually


[root@cnwbzp0167 ~]# ps aux | grep -i vnc
root      1328  0.1  0.6 122424 25728 pts/0    S    02:16   0:00 /usr/bin/Xvnc :2 -desktop cnwbzp0167:2 (root) -auth /root/.Xauthority -geometry 800x600 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5902 -fp catalogue:/etc/X11/fontpath.d -pn
root      1336  0.0  0.0  50156  1636 pts/0    S    02:16   0:00 vncconfig -iconic
root      1545  0.4  0.4 115784 18888 pts/0    S    02:25   0:00 /usr/bin/Xvnc :3 -desktop cnwbzp0167:3 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5903 -fp catalogue:/etc/X11/fontpath.d -pn
root      1551  0.0  0.0  50156  1624 pts/0    S    02:25   0:00 vncconfig -iconic
root      1743  0.0  0.0 103252   864 pts/0    S+   02:26   0:00 grep -i vnc
[root@cnwbzp0167 ~]# kill -9 1328 1336 1545 1551 1743
-bash: kill: (1743) - No such process
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# ps aux | grep -i vnc
root      1780  0.0  0.0 103248   856 pts/0    S+   02:26   0:00 grep -i vnc
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# vncserver -kill :1


Can't find file /root/.vnc/cnwbzp0167:1.pid
You'll have to kill the Xvnc process manually


[root@cnwbzp0167 ~]# rm -f .vnc/*
[root@cnwbzp0167 ~]# vncserver


You will require a password to access your desktops.


Password:
Verify:


Warning: cnwbzp0167:1 is taken because of /tmp/.X1-lock
Remove this file if there is no X server cnwbzp0167:1


Warning: cnwbzp0167:2 is taken because of /tmp/.X2-lock
Remove this file if there is no X server cnwbzp0167:2


Warning: cnwbzp0167:3 is taken because of /tmp/.X3-lock
Remove this file if there is no X server cnwbzp0167:3


New 'cnwbzp0167:4 (root)' desktop is cnwbzp0167:4


Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/cnwbzp0167:4.log


[root@cnwbzp0167 ~]# ls -alt /tmp/.X3-lock
-r--r--r-- 1 root root 11 Jul 27 02:25 /tmp/.X3-lock
[root@cnwbzp0167 ~]# rm -rf /tmp/.X3-lock /tmp/.X2-lock /tmp/.X1-lock
[root@cnwbzp0167 ~]# ls -alt /tmp/.X3-lock
ls: cannot access /tmp/.X3-lock: No such file or directory
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# vncserver -kill :1


Can't find file /root/.vnc/cnwbzp0167:1.pid
You'll have to kill the Xvnc process manually


[root@cnwbzp0167 ~]# rm -f .vnc/*
[root@cnwbzp0167 ~]# vncserver


You will require a password to access your desktops.


Password:
Verify:


Warning: cnwbzp0167:1 is taken because of /tmp/.X11-unix/X1
Remove this file if there is no X server cnwbzp0167:1


Warning: cnwbzp0167:2 is taken because of /tmp/.X11-unix/X2
Remove this file if there is no X server cnwbzp0167:2


Warning: cnwbzp0167:3 is taken because of /tmp/.X11-unix/X3
Remove this file if there is no X server cnwbzp0167:3


New 'cnwbzp0167:5 (root)' desktop is cnwbzp0167:5


Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/cnwbzp0167:5.log


[root@cnwbzp0167 ~]# rm -rf /tmp/.X11-unix/X1 /tmp/.X11-unix/X2 /tmp/.X11-unix/X3
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]#
[root@cnwbzp0167 ~]# vncserver -kill :1


Can't find file /root/.vnc/cnwbzp0167:1.pid
You'll have to kill the Xvnc process manually


[root@cnwbzp0167 ~]# rm -f .vnc/*
[root@cnwbzp0167 ~]# vncserver


You will require a password to access your desktops.


Password:
Verify:


New 'cnwbzp0167:1 (root)' desktop is cnwbzp0167:1


Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup

Log file is /root/.vnc/cnwbzp0167:1.log



[root@cnwbzp0167 ~]# ps aux | grep -i vnc
root      1804  0.1  0.4 115780 18892 pts/0    S    02:27   0:00 /usr/bin/Xvnc :4 -desktop cnwbzp0167:4 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5904 -fp catalogue:/etc/X11/fontpath.d -pn
root      1810  0.0  0.0  50156  1628 pts/0    S    02:27   0:00 vncconfig -iconic
root      1961  0.2  0.4 115780 18856 pts/0    S    02:28   0:00 /usr/bin/Xvnc :5 -desktop cnwbzp0167:5 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5905 -fp catalogue:/etc/X11/fontpath.d -pn
root      1968  0.0  0.0  50156  1632 pts/0    S    02:28   0:00 vncconfig -iconic
root      2111  0.5  0.4 115788 18848 pts/0    S    02:29   0:00 /usr/bin/Xvnc :1 -desktop cnwbzp0167:1 (root) -auth /root/.Xauthority -geometry 1024x768 -rfbwait 30000 -rfbauth /root/.vnc/passwd -rfbport 5901 -fp catalogue:/etc/X11/fontpath.d -pn
root      2117  0.0  0.0  50156  1632 pts/0    S    02:29   0:00 vncconfig -iconic
root      2280  0.0  0.0 103252   868 pts/0    S+   02:30   0:00 grep -i vnc
[root@cnwbzp0167 ~]#


如果树莓派的VNC无法显示桌面,可能有几个可能的原因和解决办法。首先,可能是由于分辨率太小而无法显示。您可以尝试在终端中输入"sudo raspi-config"来解决此问题,然后选择适合您显示器的分辨率。 另一个可能的原因是VNC密码设置不正确。请确保您使用的是正确的密码,该密码不仅用于VNC远程桌面,也用于远程SSH登录和需要管理员权限时输入密码。 最后,也可能是由于其他未知原因导致的VNC无法显示桌面。您可以尝试查看引用提供的完美解决办法,其中列出了几种可能的情况和相应的解决办法。 希望这些信息对您有帮助,祝您成功解决树莓派VNC无法显示桌面的问题!<span class="em">1</span><span class="em">2</span><span class="em">3</span> #### 引用[.reference_title] - *1* [树莓派 vnc Cannot currently show the desktop](https://blog.csdn.net/qq_43619832/article/details/124243048)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *2* [解决树莓派4b开启VNC报错无法正确显示桌面](https://blog.csdn.net/qq_45847938/article/details/128801328)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] - *3* [零基础玩转树莓派②树莓派的内部配置与使用VNC远程树莓派,窗口不能完全显示树莓派桌面问题的解决方法](https://download.csdn.net/download/weixin_38690079/14884011)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 33.333333333333336%"] [ .reference_list ]
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值