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.
The problem was that ~/.config/mimeapps.list doesn't have the correct setting for type text/html=. It should be set to text/html=microsoft-edge.desktop or your chosen browser.
Issues:
bluetooth: The bluetooth doesn't work after hibernation. The following steps nneed to be added:
1. sudo emacs /lib/systemd/system-sleep/bt-lunar-fix
2. Paste the following script:
#!/bin/sh
case $1 in
post)
echo "Resetting Bluetooth for Lunar Lake..."
systemctl stop bluetooth
modprobe -r btintel_pcie btintel bluetooth 2>/dev/null || true
sleep 1
modprobe btintel_pcie
systemctl start bluetooth
;;
esac
3. sudo chmod +x /lib/systemd/system-sleep/bt-lunar-fix
hibernation: surface pro 9 hibernate won't shutdown completely on ubuntu 24.04. Need to add Adding specific kernel flags can force the hardware to respect power-off commands.
Open the configuration: sudo nano /etc/default/grub.
Find the line GRUB_CMDLINE_LINUX_DEFAULT.
Append pci=hpiosize=0 to the existing parameters (e.g., GRUB_CMDLINE_LINUX_DEFAULT="quiet splash pci=hpiosize=0").
Update GRUB: sudo update-grub and reboot.
sogou pinyin: Should not install fcitx5. sudo apt purge fcitx5. Need to install fcitx.
Grub: Adding GRUB_DISABLE_MEMTEST=true to /etc/default/grub and re-running sudo update-grub to remove the memtest from the grub selection menu.
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.
For some reason, Nvidia driver 510 and 470 couldn't be install on Ubuntu 22.04 because the installation failed in the last compiling step. Installing driver 535 fixed that issue. To install 535:
sudo add-apt-repository ppa:graphics-drivers/ppa
sudo apt update
Then install.
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:
libcairo2-dev : Depends: libcairo2 (= 1.16.0-4ubuntu1) but 1.16.0-4ubuntu1ppa1 is to be installed
Depends: libcairo-gobject2 (= 1.16.0-4ubuntu1) but 1.16.0-4ubuntu1ppa1 is to be installed
Depends: libfontconfig1-dev (>= 2.2.95) but it is not going to be installed
Depends: libfreetype6-dev (>= 2.1.10) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
Settings:
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
~/Library/Preferences/com.apple.HIToolbox.plist (in 10.9) or ~/Library/Preferences/ByHost/com.apple.HIToolbox.*.plist (in 10.8 and earlier). You can convert the plist to XML with plutil -convert xml1.AppleEnabledInputSources dictionary. If there is an AppleDefaultAsciiInputSource key, remove it.Ubuntu:
Modify /opt/microsoft/msedge/microsoft-edge and change the last line to:
exec -a "$0" "$HERE/msedge" "--enable-features=msSearchBoxInToolbar,msSearchBoxInToolbarSearchInteractionTrigger,msSearchBoxInToolbarShownTrigger $@"
Then sudo chmod 555 /opt/microsoft/msedge/microsoft-edge
Windows:
Modify the shortcut and add:
--enable-features=msSearchBoxInToolbar,msSearchBoxInToolbarSearchInteractionTrigger,msSearchBoxInToolbarShownTrigger
We have recently received the same feedback from many users and this has become a hot issue recently. After our investigation, your problem should be caused by an error in the account information recorded by the Office application, at this time I would recommend that you clean up the account information in the registry and then reopen the Office application and log in. Below are the exact steps:
1. Press Windows + R to open the run box, copy and paste the following path, back up all the folders in this path, and then delete them.
%localappdata%/Microsoft/OneAuth %localappdata%/Microsoft/IdentityCache
2. Press Windows + R, enter regedit, click OK, open the registry, locate the following registry subkey, right-click Identity, and delete it.
HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\Common\Identity
Disclaimer: In general, changing registry subkeys or workgroup is intended for advanced users, administrators, and IT professionals. It can help fix some issues, but serious problems can arise if you modify the registry incorrectly. Therefore, make sure to follow these steps carefully. For additional protection, back up the registry before editing it. Then, you can restore the registry if a problem occurs. For more information on how to back up and restore the registry, click How to back up and restore the registry in Windows - Microsoft Support to view the article.
If the problem reappears after cleaning the registration information, please refer to the following method to roll back Office applications to an older version:
1. Please close all Office applications first.
2.Run Command Prompt as an administrator ("Win" logo key + "Q", enter "cmd", select "Run as administrator"), and enter the following commands one by one.
cd %programfiles% \Common Files\microsoft shared\ClickToRun Officec2rclient.exe /update user updatetoversion=16.0.17531.20120
3. After completing the installation, please restart your computer, then open the Office application and sign in to your Microsoft account.
4. Please open any Word/Excel/PPT document > Click on File in the upper left corner of the page > Click on Account in the lower left corner of the page > On the right side of the page, there will be information about your Office product, please click on the update option on the left side of the Office Update > In the menu, find the Disable Update, to avoid the problem of updating Office to the latest version. to prevent Office from updating to the latest version and causing the problem again.
1. Open local GPO Editor by running gpedit.msc command.
2. Next, go to Computer configuration > Administrative templates > System > PIN Complexity. Make the changes to match your PIN.
3. For password, changing the local group policy doesn't work. So the password must meet the complexity requirement set by the work account.
使用搜狗输入法
高级设置 → 自定义短语 → 自定义短语设置
#$year-$month_mm-$day_dd (not yyyy)
用一下函数:
函数表如下:
函数 含义 举例
$year 年(4位) 2006、2008
$year_yy 年(2位) 06、08
$month 月 12、8、3
$month_mm 月 12、08、03 //此函数在输入法3.1版之后(含)有效
$day 日 3、13、22
$day_dd 日 03、13、22 //此函数在输入法3.1版之后(含)有效
$weekday 星期 0、1、2、5、6
$fullhour 时(24小时制) 02、08、13、23
$halfhour 时(12小时制) 02、08、01、11
$ampm AM、PM(英) AM、PM(大写)
$minute 分 02、08、15、28
$second 秒 02、08、15、28
$year_cn 年(中文4位) 二〇〇六
$year_yy_cn 年(中文2位) 〇六
$month_cn 月(中文) 十二、八、三
$day_cn 日(中文) 三、十三、二十二
$weekday_cn 星期(中文) 日、一、二、五、六
$fullhour_cn 时(中文24时制) 二、八、十三、二十三
$halfhour_cn 时(中文12时制) 二、八、一、十一
$ampm_cn 上午下午(中文) 上午、下午
$minute_cn 分(中文) 零二、零八、十五、二十八
$second_cn 秒(中文) 零二、零八、十五、二十八