Debian 11 使用
以下都是在Debian11.6测过
-
修改源:
- root用户
- vi /etc/apt/sources.list
deb http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-updates main non-free contrib deb-src http://mirrors.aliyun.com/debian/ stretch-backports main non-free contrib deb http://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib deb-src http://mirrors.aliyun.com/debian-security/ stretch/updates main non-free contrib
- apt-get update
-
安装vim
- apt-get install vim
- 报错修复:
下列软件包有未满足的依赖关系:vim : 依赖: vim-common (= 2:8.0.0197-4+deb9u7) 但是 2:8.2.2434-3+deb11u1 正要被安装依赖: libtinfo5 (>= 6) 但是它将不会被安装
- apt-get purge vim-common
- apt-get install libtinfo5
-
用户添加sudo命令
- 切root用户:su root
- 查看文件权限:ls -l /etc/sudoers
- 加文件写权限:chmod 640 /etc/sudoers
- 打开文件:vi /etc/sudoers
# User privilege specification hslong ALL=(ALL:ALL) ALL
- 改回文件权限:chmod 440 /etc/sudoers
- 退出root用户:exit
-
安装google浏览器
- 下载:https://www.google.cn/chrome/?hl=zh-CN&standalone=1
- sudo dpkg -i google-chrome-stable_current_amd64.deb
- 出错找不到libu2f-udev
1. 下载:https://packages.debian.org/bullseye/libu2f-udev ==>libu2f-udev_1.1.10-3_all.deb 2. sudo dpkg -i libu2f-udev_1.1.10-3_all.deb
-
Visual-Studio-Code
- 下载deb安装(https://code.visualstudio.com)
- sudo dpkg -i code_1.77.3-1681292746_amd64.deb
-
搜狗拼音(debian11安装无法使用 qt有问题)
- 官方下载包
- sudo apt purge fcitx* ibus* #卸载原有的fcitx5 ibus
- sudo dpkg -i sogoupinyin_4.2.1.145_amd64.deb
- 出错时:sudo apt-get install -f
- 安装语言包:
- sudo dpkg-reconfigure locales
- 把zh 空格选择、确定
- im-config 配置为fcitx
-
google拼音
- sudo apt purge fcitx* ibus* #卸载原有的fcitx5 ibus
- sudo apt install fcitx
- sudo apt install fcitx-googlepinyin
- 安装语言包:
- sudo dpkg-reconfigure locales
- 把zh 空格选择、确定
- im-config 配置为fcitx
- 打开:fcitx-config-gtk3 配置google拼音为第一个,如果看不到google拼音就重启机器
-
终端:后退键 删除 变了空格
- 终端依赖的包ncurses-base被删除;安装后需要重新输入bash然后解决问题
sudo apt install ncurses-base bash
- 不行的话在执行:
stty sane export TERM=linux
- 终端依赖的包ncurses-base被删除;安装后需要重新输入bash然后解决问题
-
卸载火狐浏览器
- dpkg - -get-selections | grep firefox
- 输出:firefox-esr firefox-esr-l10n-zh-cn
- 卸载:sudo apt-get purge firefox-esr firefox-esr-l10n-zh-cn
-
ifconfig
- sudo apt install net-tools