IT漫步

技术生活札记©Yaohui

iBus not working on Ubuntu 20.04.4 LTS, 无法在Ubuntu中输入中文

问题现象 Ubuntu 20.04.4 LTS 添加汉语语言 安装完iBus及相关的输入法 (ibus-pinyin, ibus-table-wubi)后,就算是切换到zh语言也无法输入中文字符 换成fcitx后解决: 安装fcitx: $ sudo apt install fcitx 打开工具 Language Support/语言支持, 把Keyboard input method system改成fcitx 安装五笔输入法 $ sudo apt install fcitx-table-wubi 按Ctrl + Space或Left Shift在中英文之间切换 按Ctrl + Shift在不同的中文输入法之间切换


Create a custom Application icon on Ubuntu

Create text file like below: [Desktop Entry] Type=Application Encoding=UTF-8 Name=MyApplication Comment=My fancy new application Exec=my_application Icon=my_application.png Terminal=false Name it as YOUR_APP_NAME.desktop, and then put it into /usr/share/applications for anyone; or put it into ~/.local/share/applications for current user only. Then you will see it in the Applications list Ref: https://askubuntu.com/questions/1026528/adding-custom-programs-to-favourites-of-ubuntu-dock


Install nvidia-340 driver on Ubuntu 20.04.3 LTS

在一台旧PC上安装了Ubuntu 20.04.3 LTS, 显卡是”微星N240GT-MD 暴雪512/D5″, 芯片是 Nvidia Geforce GT240, 需要安装显卡驱动 》 先是从nvidia官方网站根据显卡型号下载了NVIDIA-Linux-x86_64-340.108.run 安装过程中提示: asm/kmap_types.h: No such file or directory 没有找到有效解决办法 》 google一番后尝试直接安装nvidia-340驱动 sudo apt install nvidia-340 也是安装失败, 主要的错误是: dpkg: error: version ‘-‘ has bad syntax: revision number is empty Setting up lib32gcc-s1 (10.3.0-1ubuntu1~20.04) ... Setting up vdpau-driver-all:amd64 (1.3-1ubuntu2) ... Setting up nvidia-340 (340.108-0ubuntu5.20.04.2) ... dpkg: …

Proudly powered by WordPress