The settings showed by clicking the settings icon:
frank@ZZHPC:~$ sudo apt install gnome-shell-extension-dashtodock Reading package lists... Done Building dependency tree... Done Reading state information... Done Package gnome-shell-extension-dashtodock is not available, but is referred to by another package. This may mean that the package is missing, has been obsoleted, or is only available from another source However the following packages replace it: gnome-shell-extension-ubuntu-dock E: Package 'gnome-shell-extension-dashtodock' has no installation candidate
frank@ZZHPC:~$ sudo apt install gnome-shell-extension-ubuntu-dock [sudo] password for frank: Reading package lists... Done Building dependency tree... Done Reading state information... Done gnome-shell-extension-ubuntu-dock is already the newest version (90ubuntu2). gnome-shell-extension-ubuntu-dock set to manually installed. 0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
frank@ZZHPC:~$ XDG_CURRENT_DESKTOP=ubuntu:GNOME gnome-control-center libEGL warning: DRI2: failed to authenticate MESA: error: ZINK: failed to choose pdev libEGL warning: egl: failed to create dri2 screen MESA: error: ZINK: failed to choose pdev glx: failed to create drisw screen 11:22:23.0501 cc-wwan-panel[ 3035]: WARNING: Error connecting to ModemManager: Error calling StartServiceByName for org.freedesktop.ModemManager1: Failed to activate service 'org.freedesktop.ModemManager1': timed out (service_start_timeout=25000ms) 11:22:23.1298 cc-ubuntu-panel[ 3035]: WARNING: No gedit is installed here. Colors won't be updated. Please fix your installation. 11:23:31.6135 Gtk[ 3035]: WARNING: Finalizing AdwPreferencesPage 0x562f7a48dc60, but it still has children left: - GtkCenterBox 0x562f7a1d3680
The settings showed by this command is different than the default:
The file ~/.xsessionrc didn't exist.
frank@ZZHPC:~$ echo 'export XDG_CURRENT_DESKTOP=ubuntu:GNOME' >> ~/.xsessionrc
PS C:\Users\ZhangZhihui> wsl -d Ubuntu frank@ZZHPC:/mnt/c/Users/ZhangZhihui$ exit logout PS C:\Users\ZhangZhihui> wsl --list --verbose NAME STATE VERSION * Ubuntu Running 2
frank@ZZHPC:~$ hostname -I 172.26.76.164
远程桌面登录失败是因为一旦没有用户在登录,WSL2 Ubuntu会自动停止:
PS C:\Users\ZhangZhihui> wsl --list --verbose NAME STATE VERSION * Ubuntu Stopped 2
在WSL2(Windows Subsystem for Linux 2)中,Ubuntu实例可能会在一段时间不活动后自动关闭。这是因为WSL2的设计会在没有活动进程时自动终止Linux实例以节省资源。
你可以通过运行一个后台任务来保持实例活跃。
Add below content in .bashrc:
if [[ $(ps -ef | grep 'sleep 86400' | grep -v 'grep' | wc -l) == 0 ]]; then sleep 86400 & fi
It doesn't work.
标签:shell,bar,gnome,extension,frank,showing,Ubuntu,Desktop,ubuntu From: https://www.cnblogs.com/zhangzhihui/p/18657437