sudo apt-get purge libpam-pwquality
Then: sudo passwd <user name>
Don't use the Settings UI to change it because the UI will check the length too.
sudo apt-get purge libpam-pwquality
Then: sudo passwd <user name>
Don't use the Settings UI to change it because the UI will check the length too.
If the Ubuntu 22.04 is stuck at 5.15 kernal, make sure the following setting is correct.
It turned out that the Software & Updates need to subscribe to All Updates.
Ctrl+Alt+B 被占用
Ctrl+Alt+S 被占用
Ctrl+Alt+D 被占用
Ctrl+Alt+T 被占用
Ctrl+Alt+左键 被占用
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-left “[‘disabled’]”
Ctrl+Alt+Right 被占用
gsettings set org.gnome.desktop.wm.keybindings switch-to-workspace-right “[‘disabled’]”
输入法相关快捷键
如Ctrl+Alt+B和Ctrl+Alt+S,这个隐藏的比较深,基本是通过搜索引擎找到的答案.
Ctrl+Alt+S 快捷键从命令行输入fcitx-configtool命令,进入控制面板.
选择第二个tab Global Config,勾选右下角Show Advanced Options,然后从上到下看一下,哪些快捷键被占用,把哪个禁用掉.
Ctrl+Alt+B是选中Tab的Addon,然后勾选左下角的Advanced,滚到最底下,将Virtual Key Board 取消选 中即可.
————————————————
版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
原文链接:https://blog.csdn.net/liusf1993/article/details/109609689
Ubuntu/Linux: Create a shortcut to use xdotool click 1 command
Windows: Use AHK software,
#j::
MouseClick, left
To solve this problem:
sudo apt purge indicator-application
Use synaptic:
sudo synaptic
Then Custom Filters (At the lower left corner) | Broken, remove them
To make things easy: create a swap drive instead of using a swap file.
In the BIOS settings: disable secure boot FIRST.
For 24.04:
Follow: https://ubuntuhandbook.org/index.php/2021/08/enable-hibernate-ubuntu-21-10/
sudo nano /etc/polkit-1/rules.d/10-enable-hibernate.rules
polkit.addRule(function(action, subject) {
if (action.id == "org.freedesktop.login1.hibernate" ||
action.id == "org.freedesktop.login1.hibernate-multiple-sessions" ||
action.id == "org.freedesktop.upower.hibernate" ||
action.id == "org.freedesktop.login1.handle-hibernate-key" ||
action.id == "org.freedesktop.login1.hibernate-ignore-inhibit")
{
return polkit.Result.YES;
}
});For 22.04
Then follow: https://www.geeksforgeeks.org/how-to-enable-hibernate-in-ubuntu-22-04-lts/
Edit the file /etc/systemd/sleep.conf with the following configuration:
[Sleep]
HibernateMode=shutdown
Enable the hibernation menu:
sudo gedit /etc/polkit-1/localauthority/50-local.d/com.ubuntu.desktop.pkla[Enable hibernate in upower]
Identity=unix-user:*
Action=org.freedesktop.upower.hibernate
ResultActive=yes
[Enable hibernate in logind]
Identity=unix-user:*
Action=org.freedesktop.login1.hibernate;org.freedesktop.login1.handle-hibernate-key;org.freedesktop.login1;org.freedesktop.login1.hibernate-multiple-sessions;org.freedesktop.login1.hibernate-ignore-inhibit
ResultActive=yes
$ echo 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
$ echo options hid_apple fnmode=2 | sudo tee -a /etc/modprobe.d/hid_apple.conf
$ sudo update-initramfs -u -k all
$ sudo reboot