1、 先安装vim

sudo apt-get install vim


2、取消ubuntu中的显示设备WAYLAND

sudo vim /etc/gdm3/custom.conf

3、在custom.conf文件中找到下面这一行,并把前面的#号去掉

#WaylandEnable=false 

修改后如下

# GDM configuration storage  
#  
# See /usr/share/gdm/gdm.schemas for a list of available options.  
  
[daemon]  
# Uncoment the line below to force the login screen to use Xorg  
WaylandEnable=false
  
# Enabling automatic login  
#  AutomaticLoginEnable = true  
#  AutomaticLogin = user1  
  
# Enabling timed login  
#  TimedLoginEnable = true  
#  TimedLogin = user1  
#  TimedLoginDelay = 10  
  
[security]  
  
[xdmcp]  
  
[chooser]  
  
[debug]  
# Uncomment the line below to turn on debugging  
# More verbose logs  
# Additionally lets the X server dump core if it crashes  
#Enable=true  

4、然后重启虚拟机就好了

重启命令: reboot

 

相关文章:

  • 2021-07-20
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-07-05
  • 2021-04-20
  • 2021-12-20
猜你喜欢
  • 2021-11-06
  • 2021-12-23
  • 2022-12-23
  • 2022-01-10
  • 2022-02-12
  • 2021-08-08
  • 2021-12-16
相关资源
相似解决方案