Debian 11 使用

以下都是在Debian11.6测过

  1. 修改源:

    • 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
  2. 安装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
  3. 用户添加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
  4. 安装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 
      
  5. Visual-Studio-Code

    • 下载deb安装(https://code.visualstudio.com)
    • sudo dpkg -i code_1.77.3-1681292746_amd64.deb
  6. 搜狗拼音(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
  7. 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拼音/搜狗拼音就重启机器
  8. 终端:后退键 删除 变了空格

    • 终端依赖的包ncurses-base被删除;安装后需要重新输入bash然后解决问题
      sudo apt install ncurses-base
      bash
      
    • 不行的话在执行:
      stty sane 
      
      export TERM=linux
      
  9. 卸载火狐浏览器

    • dpkg - -get-selections | grep firefox
    • 输出:firefox-esr firefox-esr-l10n-zh-cn
    • 卸载:sudo apt-get purge firefox-esr firefox-esr-l10n-zh-cn
  10. ifconfig

    • sudo apt install net-tools
  11. 安装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
  12. 修改终端背景颜色:#481036
    * 右上角–三个横线–配置文件首选项–未命名–颜色–默认颜色–背景

  13. 访问Windows共享目录

    • mkdir Win10
    • sudo mount -t cifs -o username=hslong,password=*** //192.168.2.111/ShareDir Win10
  14. 桌面图标(gnome)

    • 安装系统后默认gnome桌面(如果安装命令:sudo tasksel install gnome-desktop)
    • sudo apt install gnome-shell-extension-desktop-icons #安装插件
    • 重启
    • 设置=>应用程序(Activities)=>扩展(Extensions)=>Desktop Icons 打开
  15. 截图

    • gnome-screenshot -a #截图
    • man gnome-screenshot #查看其它参数
  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值