以下都是在Debian11.6测过
-
修改源:
- root用户
- lsb_release -a #查看Codename: bullseye 对应到源中的版本
- vi /etc/apt/sources.list
deb https://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb-src https://mirrors.aliyun.com/debian/ bullseye main non-free contrib deb https://mirrors.aliyun.com/debian-security/ bullseye-security main deb-src https://mirrors.aliyun.com/debian-security/ bullseye-security main deb https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb-src https://mirrors.aliyun.com/debian/ bullseye-updates main non-free contrib deb https://mirrors.aliyun.com/debian/ bullseye-backports main non-free contrib deb-src https://mirrors.aliyun.com/debian/ bullseye-backports 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 fcitx-sunpinyin
- 安装语言包:
- 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
-
安装samba
- sudo apt install samba
- sudo vim /etc/samba/smb.conf
[debian11] path = /home/hslong/samba // 设置允许访问的目录 available = yes browseable = yes public = yes writable = yes // 共享目录具有写权限 valid users = hslong // 设置允许访问的用户 #同时注释掉:[homes] 及下面配置,否则能看到家目录
- sudo smbpasswd -a hslong #设置密码
- sudo service smbd restart
-
修改终端背景颜色:#481036
* 右上角–三个横线–配置文件首选项–未命名–颜色–默认颜色–背景 -
访问Windows共享目录
- mkdir Win10
- sudo mount -t cifs -o username=hslong,password=*** //192.168.2.111/ShareDir Win10
-
桌面图标(gnome)
- 安装系统后默认gnome桌面(如果安装命令:sudo tasksel install gnome-desktop)
- sudo apt install gnome-shell-extension-desktop-icons #安装插件
- 重启
- 设置=>应用程序(Activities)=>扩展(Extensions)=>Desktop Icons 打开
-
截图
- gnome-screenshot -a #截图
- man gnome-screenshot #查看其它参数