Open Durant35 opened 4 years ago
$ sudo snap remove gnome-system-monitor
$ sudo apt install gnome-system-monitor
# remove all snap packages except core and core18
$ sudo snap remove `sudo snap list | cut -d " " -f 1 | tail -n 2 | grep -v 'core' | tr '\n' ' '`
# Then install their .deb counterparts with:
$ sudo apt install gnome-calculator gnome-characters gnome-logs gnome-system-monitor
# uninstall the whole Snapd ecosystem from your computer with:
$ sudo apt purge snapd squashfs-tools gnome-software-plugin-snap
# 安装tweak-tool,用于定制化桌面
$ sudo apt install gnome-tweak-tool
$ sudo apt install gnome-shell-extension-top-icons-plus
# 重启后,打开tweak-tool->Extensions勾选Topicons plus,并可配置Top Center/Right...
$ sudo vim /etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
# default: suspend
HandleLidSwitch=ignore
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
## !!!! Recommend you to reboot then!!!
$ sudo apt-get install vim
$ sudo vim /etc/systemd/logind.conf
# This file is part of systemd.
#
# systemd is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Entries in this file show the compile time defaults.
# You can change settings by editing this file.
# Defaults can be restored by simply deleting this file.
#
# See logind.conf(5) for details.
[Login]
#NAutoVTs=6
#ReserveVT=6
#KillUserProcesses=no
#KillOnlyUsers=
#KillExcludeUsers=root
#InhibitDelayMaxSec=5
#HandlePowerKey=poweroff
#HandleSuspendKey=suspend
#HandleHibernateKey=hibernate
##
# The full set of possible values for HandleLidSwitch and HandleLidSwitchExternalPower is:
# ignore, poweroff, reboot, halt, kexec, suspend, hibernate, hybrid-sleep, suspend-then-hibernate, and lock
# default: suspend
##
HandleLidSwitch=lock
#HandleLidSwitchDocked=ignore
#PowerKeyIgnoreInhibited=no
#SuspendKeyIgnoreInhibited=no
#HibernateKeyIgnoreInhibited=no
#LidSwitchIgnoreInhibited=yes
#HoldoffTimeoutSec=30s
#IdleAction=ignore
#IdleActionSec=30min
#RuntimeDirectorySize=10%
#RemoveIPC=yes
#InhibitorsMax=8192
#SessionsMax=8192
#UserTasksMax=33%
## !!!! Recommend you to reboot then!!!
https://www.malachisoord.com/2017/02/18/ubuntu-fix-wifi-after-suspend/
.../rtl8821ce-master$ sudo apt-get install dkms
.../rtl8821ce-master$ sudo ./dkms-install.sh
# Then reboot
apt-get update
.../rtl8821ce-master$ sudo apt-get install dkms
Reading package lists... Done
Building dependency tree
Reading state information... Done
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies: dkms : Depends: dpkg-dev but it is not going to be installed E: Unable to correct problems, you have held broken packages.
$ sudo apt-get remove libdpkg-perl
$ sudo apt-get install build-essential
sudo apt install ubuntu-restricted-extras
安装 tweak-tool 等基础环境
$ sudo apt-get install gnome-tweak-tool
$ sudo apt install gnome-shell-extension-top-icons-plus
下载 https://extensions.gnome.org/extension-data/workspace-grid%40mathematical.coffee.gmail.com.v29.shell-extension.zip (或者 https://github.com/zakkak/workspace-grid/releases/download/workspace-grid-for-3.30-b46/workspace-grid.mathematical.coffee.gmail.com.zip )
mkdir -p ~/.local/share/gnome-shell/extensions
cd ~/.local/share/gnome-shell/extensions
插件解压后mv进去即可
如找不到插件,一般需要重启电脑
sudo apt-get install --reinstall dbus
sudo apt install libgsettings-qt1
sudo update-alternatives --config x-terminal-emulator
~/.snap
folder?