Liang Zou's Tech Blog
Thank you for visiting!
12/21/2025
3/17/2025
Ubuntu 22.04 won't upgrade to 6.8 kernal even after sudo apt install linux-generic-hwe-22.04 ran
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.
3/13/2025
Install nvidia driver 535 on Ubuntu 22.04
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.
3/12/2025
Debug Ubuntu system
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.
3/10/2025
Make VSCode (Cursor IDE) settings better
Settings:
VSCode IDE keybindings to Eclipse ones
"mac": "cmd+3",
"win": "ctrl+3",
"linux": "ctrl+3",
"key": "ctrl+3",
"command": "workbench.action.showCommands"
},
{
"mac": "cmd+shift+r",
"win": "ctrl+shift+r",
"linux": "ctrl+shift+r",
"key": "ctrl+shift+r",
"command": "workbench.action.quickOpen"
},
{
"mac": "ctrl+h",
"win": "ctrl+h",
"linux": "ctrl+h",
"key": "ctrl+h",
"command": "workbench.action.findInFiles"
},
{
"mac": "cmd+shift+t",
"win": "ctrl+shift+t",
"linux": "ctrl+shift+t",
"key": "ctrl+shift+t",
"command": "workbench.action.showAllSymbols"
},
{
"mac": "cmd+f3",
"win": "ctrl+f3",
"linux": "ctrl+f3",
"key": "ctrl+f3",
"command": "outline.focus"
},
{
"mac": "cmd+l",
"win": "ctrl+l",
"linux": "ctrl+l",
"key": "ctrl+l",
"command": "workbench.action.gotoLine"
},
{
"mac": "cmd+w",
"win": "ctrl+w",
"linux": "ctrl+w",
"key": "ctrl+w",
"command": "workbench.action.closeActiveEditor"
},
{
"mac": "cmd+shift+s",
"win": "ctrl+shift+s",
"linux": "ctrl+shift+s",
"key": "ctrl+shift+s",
"command": "workbench.action.files.saveAll"
},
{
"mac": "cmd+alt+s",
"win": "ctrl+alt+s",
"linux": "ctrl+alt+s",
"key": "ctrl+alt+s",
"command": "workbench.action.files.saveAs"
},
{
"mac": "cmd+alt+t",
"win": "ctrl+alt+t",
"linux": "ctrl+alt+t",
"key": "ctrl+alt+t",
"command": "workbench.action.terminal.toggleTerminal"
},
{
"mac": "ctrl+m",
"win": "ctrl+m",
"linux": "ctrl+m",
"key": "ctrl+m",
"command": "workbench.action.toggleSidebarVisibility"
},
{
"mac": "cmd+e",
"win": "ctrl+e",
"linux": "ctrl+e",
"key": "ctrl+e",
"command": "workbench.action.showEditorsInActiveGroup"
},
{
"mac": "cmd+shift+w",
"win": "ctrl+shift+w",
"linux": "ctrl+shift+w",
"key": "ctrl+shift+w",
"command": "workbench.action.closeAllEditors"
},
{
"mac": "cmd+shift+f4",
"win": "ctrl+shift+f4",
"linux": "ctrl+shift+f4",
"key": "ctrl+shift+f4",
"command": "workbench.action.closeAllEditors"
},
{
"mac": "cmd+f12",
"win": "f12",
"linux": "f12",
"key": "f12",
"command": "workbench.action.focusActiveEditorGroup"
},
{
"mac": "cmd+shift+[",
"win": "ctrl+shift+[",
"linux": "ctrl+shift+[",
"key": "ctrl+shift+[",
"command": "workbench.action.splitEditor"
},
{
"mac": "cmd+shift+c",
"win": "ctrl+shift+c",
"linux": "ctrl+shift+c",
"key": "ctrl+shift+c",
"command": "editor.action.commentLine",
"when": "editorTextFocus"
},
{
"mac": "cmd+7",
"win": "ctrl+7",
"linux": "ctrl+7",
"key": "ctrl+7",
"command": "editor.action.commentLine",
"when": "editorTextFocus"
},
{
"mac": "cmd+shift+/",
"win": "ctrl+shift+/",
"linux": "ctrl+shift+/",
"key": "ctrl+shift+/",
"command": "editor.action.blockComment",
"when": "editorTextFocus"
},
{
"mac": "cmd+alt+y",
"win": "shift+alt+y",
"linux": "shift+alt+y",
"key": "shift+alt+y",
"command": "editor.action.toggleWordWrap",
"when": "editorTextFocus"
},
{
"mac": "cmd+alt+j",
"win": "ctrl+alt+j",
"linux": "ctrl+alt+j",
"key": "ctrl+alt+j",
"command": "editor.action.joinLines",
"when": "editorTextFocus"
},
{
"mac": "cmd+o",
"win": "ctrl+o",
"linux": "ctrl+o",
"key": "ctrl+o",
"command": "workbench.action.gotoSymbol",
"when": "editorTextFocus"
},
{
"mac": "cmd+shift+f",
"win": "ctrl+shift+f",
"linux": "ctrl+shift+f",
"key": "ctrl+shift+f",
"command": "editor.action.formatSelection",
"when": "editorTextFocus && editorHasSelection"
},
{
"mac": "cmd+shift+f",
"win": "ctrl+shift+f",
"linux": "ctrl+shift+f",
"key": "ctrl+shift+f",
"command": "editor.action.formatDocument",
"when": "editorTextFocus && !editorHasSelection"
},
{
"mac": "cmd+alt+down",
"win": "ctrl+alt+down",
"linux": "ctrl+alt+down",
"key": "ctrl+alt+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
{
"mac": "ctrl+alt+cmd+down",
"win": "ctrl+alt+win+down",
"linux": "ctrl+alt+win+down",
"key": "ctrl+alt+win+down",
"command": "editor.action.copyLinesDownAction",
"when": "editorTextFocus"
},
{
"mac": "cmd+alt+up",
"win": "ctrl+alt+up",
"linux": "ctrl+alt+up",
"key": "ctrl+alt+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus"
},
{
"mac": "ctrl+alt+cmd+up",
"win": "ctrl+alt+win+up",
"linux": "ctrl+alt+win+up",
"key": "ctrl+alt+win+up",
"command": "editor.action.copyLinesUpAction",
"when": "editorTextFocus"
},
{
"mac": "alt+down",
"win": "alt+down",
"linux": "alt+down",
"key": "alt+down",
"command": "editor.action.moveLinesDownAction",
"when": "editorTextFocus"
},
{
"mac": "alt+up",
"win": "alt+up",
"linux": "alt+up",
"key": "alt+up",
"command": "editor.action.moveLinesUpAction",
"when": "editorTextFocus"
},
{
"mac": "cmd+d",
"win": "ctrl+d",
"linux": "ctrl+d",
"key": "ctrl+d",
"command": "editor.action.deleteLines",
"when": "editorTextFocus"
},
{
"key": "shift+enter",
"command": "editor.action.insertLineAfter",
"when": "editorTextFocus && !editorReadonly"
},
{
"mac": "cmd+shift+delete",
"win": "ctrl+shift+delete",
"linux": "ctrl+shift+delete",
"key": "ctrl+shift+delete",
"command": "deleteAllRight",
"when": "editorTextFocus"
},
{
"mac": "cmd+alt+s",
"win": "alt+shift+s",
"linux": "alt+shift+s",
"key": "alt+shift+s",
"command": "editor.action.sourceAction",
"when": "editorTextFocus"
},
{
"mac": "cmd+alt+r",
"win": "alt+shift+r",
"linux": "alt+shift+r",
"key": "alt+shift+r",
"command": "editor.action.rename",
"when": "editorTextFocus"
},
{
"mac": "cmd+shift+o",
"win": "ctrl+shift+o",
"linux": "ctrl+shift+o",
"key": "ctrl+shift+o",
"command": "editor.action.organizeImports",
"when": "editorTextFocus && !editorReadonly && supportedCodeAction =~ /(\\s|^)source\\.organizeImports\\b/"
},
{
"mac": "cmd+space",
"win": "ctrl+space",
"linux": "ctrl+space",
"key": "ctrl+space",
"command": "editor.action.triggerSuggest",
"when": "editorTextFocus"
},
{
"mac": "cmd+.",
"win": "ctrl+.",
"linux": "ctrl+.",
"key": "ctrl+.",
"command": "editor.action.marker.next",
"when": "editorFocus && !editorReadonly"
},
{
"mac": "f3",
"win": "f3",
"linux": "f3",
"key": "f3",
"command": "editor.action.goToDeclaration",
"when": "editorTextFocus"
},
{
"mac": "cmd+1",
"win": "ctrl+1",
"linux": "ctrl+1",
"key": "ctrl+1",
"command": "editor.action.quickFix",
"when": "editorTextFocus"
},
{
"mac": "cmd+shift+g",
"win": "ctrl+shift+g",
"linux": "ctrl+shift+g",
"key": "ctrl+shift+g",
"command": "editor.action.referenceSearch.trigger",
"when": "editorTextFocus"
},
{
"mac": "cmd+shift+b",
"win": "ctrl+shift+b",
"linux": "ctrl+shift+b",
"key": "ctrl+shift+b",
"command": "editor.debug.action.toggleBreakpoint",
"when": "editorTextFocus"
},
{
"mac": "cmd+shift+x",
"win": "ctrl+shift+x",
"linux": "ctrl+shift+x",
"key": "ctrl+shift+x",
"command": "editor.action.transformToUppercase",
"when": "editorTextFocus"
},
{
"mac": "cmd+shift+y",
"win": "ctrl+shift+y",
"linux": "ctrl+shift+y",
"key": "ctrl+shift+y",
"command": "editor.action.transformToLowercase",
"when": "editorTextFocus"
},
{
"mac": "cmd+shift+k",
"win": "ctrl+shift+k",
"linux": "ctrl+shift+k",
"key": "ctrl+shift+k",
"command": "editor.action.previousSelectionMatchFindAction",
"when": "editorTextFocus"
},
{
"mac": "alt+cmd+t",
"win": "alt+shift+t",
"linux": "alt+shift+t",
"key": "alt+shift+t",
"command": "editor.action.refactor",
"when": "editorHasCodeActionsProvider && editorTextFocus && !editorReadonly"
},
{
"mac": "alt+cmd+l",
"win": "alt+shift+l",
"linux": "alt+shift+l",
"key": "alt+shift+l",
"command": "editor.action.codeAction",
"when": "editorTextFocus",
"args": {
"kind": "refactor.extract.variable"
}
},
{
"mac": "alt+cmd+m",
"win": "alt+shift+m",
"linux": "alt+shift+m",
"key": "alt+shift+m",
"command": "editor.action.codeAction",
"when": "editorTextFocus",
"args": {
"kind": "refactor.extract.function"
}
},
{
"mac": "alt+cmd+v",
"win": "alt+shift+v",
"linux": "alt+shift+v",
"key": "alt+shift+v",
"command": "editor.action.codeAction",
"when": "editorTextFocus",
"args": {
"kind": "refactor.move"
}
},
{
"mac": "alt+left",
"win": "ctrl+left",
"linux": "ctrl+left",
"key": "ctrl+left",
"command": "cursorWordPartLeft",
"when": "textInputFocus"
},
{
"mac": "alt+right",
"win": "ctrl+right",
"linux": "ctrl+right",
"key": "ctrl+right",
"command": "cursorWordPartRight",
"when": "textInputFocus"
},
{
"mac": "alt+shift+left",
"win": "ctrl+shift+left",
"linux": "ctrl+shift+left",
"key": "ctrl+shift+left",
"command": "cursorWordPartLeftSelect",
"when": "textInputFocus"
},
{
"mac": "alt+shift+right",
"win": "ctrl+shift+right",
"linux": "ctrl+shift+right",
"key": "ctrl+shift+right",
"command": "cursorWordPartRightSelect",
"when": "textInputFocus"
},
{
"mac": "cmd+alt+left",
"win": "alt+left",
"linux": "alt+left",
"key": "alt+left",
"command": "workbench.action.navigateBack"
},
{
"mac": "cmd+alt+right",
"win": "alt+right",
"linux": "alt+right",
"key": "alt+right",
"command": "workbench.action.navigateForward"
},
{
"mac": "cmd+f7",
"key": "ctrl+f7",
"command": "workbench.action.focusNextPart"
},
{
"mac": "shift+cmd+f7",
"key": "shift+ctrl+f7",
"command": "workbench.action.focusPreviousPart"
},
{
"mac": "f8",
"win": "f8",
"linux": "f8",
"key": "f8",
"command": "workbench.action.debug.continue",
"when": "inDebugMode"
},
{
"mac": "cmd+f11",
"win": "f11",
"linux": "f11",
"key": "f11",
"command": "workbench.action.debug.start",
"when": "debuggersAvailable && debugState == 'inactive'"
},
{
"mac": "cmd+shift+f11",
"win": "ctrl+f11",
"linux": "ctrl+f11",
"key": "ctrl+f11",
"command": "workbench.action.debug.run",
"when": "debuggersAvailable && debugState != 'initializing'"
},
{
"mac": "f5",
"win": "f5",
"linux": "f5",
"key": "f5",
"command": "workbench.action.debug.stepInto",
"when": "inDebugMode"
},
{
"mac": "f7",
"win": "f7",
"linux": "f7",
"key": "f7",
"command": "workbench.action.debug.stepOut",
"when": "inDebugMode"
},
{
"mac": "f6",
"win": "f6",
"linux": "f6",
"key": "f6",
"command": "workbench.action.debug.stepOver",
"when": "inDebugMode"
},
{
"mac": "cmd+f2",
"win": "ctrl+f2",
"linux": "ctrl+f2",
"key": "ctrl+f2",
"command": "workbench.action.debug.stop",
"when": "inDebugMode"
},
{
"mac": "ctrl+q",
"win": "ctrl+q",
"linux": "ctrl+q",
"key": "ctrl+q",
"command": "workbench.action.navigateToLastEditLocation",
"when": "editorTextFocus"
},
{
"mac": "ctrl+alt+h",
"win": "ctrl+alt+h",
"linux": "ctrl+alt+h",
"key": "ctrl+alt+h",
"command": "references-view.showCallHierarchy",
"when": "editorHasCallHierarchyProvider"
},
{
"mac": "f4",
"win": "f4",
"linux": "f4",
"key": "f4",
"command": "java.action.showTypeHierarchy",
"when": "editorLangId == java && editorTextFocus"
},
{
"mac": "alt+shift+up",
"win": "alt+shift+up",
"linux": "alt+shift+up",
"key": "alt+shift+up",
"command": "editor.action.smartSelect.expand",
"when": "editorTextFocus"
},
1/13/2025
Ubuntu shotcuts hijacked
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
