2023年3月31日
起因:树莓派4B装官方系统之后,VNC连接后没有任务栏没有开始菜单
怀疑:1.VNC端口问题 2.树莓派系统问题 3.VNC设置问题
解决方法:
1.尝试连接VNC不输入端口号 失败
2.树莓派换系统,连接后还是一样
3.修改panel文件 从这个博主学到的(2条消息) 【树莓派】:桌面系统最上方菜单栏误删,添加panel配置文件重新生成_vnc顶部菜单栏不见了_时间之里的博客-CSDN博客
在/home/pi/.config/lxpanel/LXDE-pi/panels目录下新建名为panel.txt文件:
(.config是隐藏文件需要打开隐藏文件显示)最后会出现任务栏但是仍然不能呼出终端而且没有右上角的X 来关闭窗口
# lxpanel <profile> config file. Manually editing is not recommended.
# Use preference dialog in lxpanel to adjust config when you can.
Global {
edge=top
align=left
margin=0
widthtype=percent
width=100
height=36
transparent=0
tintcolor=#000000
alpha=0
autohide=0
heightwhenhidden=2
setdocktype=1
setpartialstrut=1
usefontcolor=0
fontsize=12
fontcolor=#ffffff
usefontsize=0
background=0
backgroundfile=/usr/share/lxpanel/images/background.png
iconsize=36
monitor=0
point_at_menu=0
}
Plugin {
type=menu
Config {
padding=4
image=start-here
system {
}
separator {
}
item {
image=system-run
command=run
}
separator {
}
item {
image=system-shutdown
command=logout
}
}
}
Plugin {
type=space
Config {
Size=4
}
}
Plugin {
type=launchbar
Config {
Button {
id=lxde-x-www-browser.desktop
}
Button {
id=pcmanfm.desktop
}
Button {
id=lxterminal.desktop
}
}
}
Plugin {
type=space
Config {
Size=8
}
}
Plugin {
type=taskbar
expand=1
Config {
tooltips=1
IconsOnly=0
ShowAllDesks=0
UseMouseWheel=1
UseUrgencyHint=1
FlatButton=0
MaxTaskWidth=200
spacing=1
GroupedTasks=0
}
}
Plugin {
type=space
Config {
Size=2
}
}
Plugin {
type=tray
Config {
}
}
Plugin {
type=ejecter
Config {
AutoHide=1
}
}
Plugin {
type=space
Config {
Size=2
}
}
Plugin {
type=bluetooth
Config {
}
}
Plugin {
type=space
Config {
Size=2
}
}
Plugin {
type=dhcpcdui
Config {
}
}
Plugin {
type=space
Config {
Size=2
}
}
Plugin {
type=volumealsabt
Config {
}
}
Plugin {
type=space
Config {
Size=2
}
}
Plugin {
type=dclock
Config {
ClockFmt=%R
TooltipFmt=%A %x
BoldFont=0
IconOnly=0
CenterText=1
}
}
Plugin {
type=space
Config {
Size=2
}
}
Plugin {
type=ptbatt
Config {
}
}
Plugin {
type=space
Config {
Size=2
}
}
Plugin {
type=magnifier
Config {
}
}
Plugin {
type=ejecter
Config {
}
}
Plugin {
type=cpufreq
Config {
}
}
Plugin {
type=cpu
Config {
}
}
Plugin {
type=cputemp
Config {
}
}
Plugin {
type=bluetooth
Config {
}
}
Plugin {
type=netstatus
Config {
}
}
————————————————
版权声明:本文为CSDN博主「时间之里」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。
原文链接:https://blog.csdn.net/weixin_44322778/article/details/127013616
4.最后自己尝试修改VNC设置,使用 sudo raspi-config
将VNC Enable,Screen Blanking打开,将VNC Resolution设置一个分辨率,最后重启问题解决
5.最后如图 这时候就像window界面一样舒服