当前位置: 首页 > news >正文

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 specificationhslong 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
      debian 访问另一个debian samba共享 sudo mount -t cifs //192.168.1.108/debian11 /home/hslong/samba -o username=hslong,password=***
  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 #查看其它参数
  16. 安装cursor

    • 下载地址:https://cursor.com/cn/download
    • sudo dpkg -i cursor_3.9.16_amd64.deb
    • 启动失败退出
      #用 sudo 编辑(如果是系统级安装) sudo sed -i 's|Exec=/usr/share/cursor/cursor|Exec=/usr/share/cursor/cursor --no-sandbox --ozone-platform=x11|g' /usr/share/applications/cursor.desktop #同时修改 URL handler(如果有) sudo sed -i 's|Exec=/usr/share/cursor/cursor|Exec=/usr/share/cursor/cursor --no-sandbox --ozone-platform=x11|g' /usr/share/applications/cursor-url-handler.desktop sudo update-desktop-database /usr/share/applications
http://www.jsqmd.com/news/1130717/

相关文章:

  • GPT应用开发实战:从场景设计到架构落地的完整指南
  • AI Agent赋能智能钱包:从链上数据分析到个性化金融顾问
  • Kimi K2.6 vs GLM-5.1 实测横评:15个真实工作流能力切片
  • 5分钟掌握Mac制作Windows启动盘的终极指南:WindiskWriter完整教程
  • 医学影像异常检测:MVFA框架的零样本与少样本实践
  • iPerf3 使用指南
  • 水利枢纽三维智能监控技术解析与应用
  • 3 种梯度计算方式对比:数值微分、符号微分与反向传播的效率分析
  • 5分钟快速上手C-Qwen3-Embedding-Reranker-0.6B:轻量级文本嵌入模型的终极指南
  • AI驱动数据库死锁自动检测与智能解决实践
  • 大数据原生集群 (Hadoop2.X为核心) 本地测试环境搭建二
  • MobaXterm连接RedHat服务器SSH密钥登录失败排查与配置详解
  • 水下图像增强算法:双通道输入与四维权重体系详解
  • 计算机网络 | 路由器局域网(内网)IP和外网(公网)IP的区别与联系
  • Pixel2Geo技术:从二维视觉到三维空间智能的突破
  • Python依赖注入的架构解耦策略:python-inject的生命周期管理艺术
  • 如何用ComfyUI-KJNodes解决AI工作流复杂性问题:实战指南
  • ICM-42688-P与MKV44F64VLH16在工业自动化中的高性能应用
  • Workflow 系列(08):运营与成本——跨 Phase 成本追踪与故障排查
  • 工业级传感器与执行器控制方案:基于AD74115H与STM32F765ZI
  • Spring Boot与Vue3前后端RSA加密登录实战:原理、实现与安全优化
  • springsecurity OAuth2.0-第6章: 认证与授权查询数据库信息
  • 洛雪音乐全网音源完全指南:从零开始打造你的个性化音乐库
  • Linux Shell脚本参数传递与条件判断的方法
  • 新手必看:Cities: Skylines多人联机CSM常见问题与解决方案
  • 零代码AI智能体革命:如何用一句话创建企业级多模态AI服务
  • 实现mini-vue3
  • YOLOv12遥感目标检测:MGCM模块创新与应用
  • Redis 主从复制,哨兵,集群——(3)集群篇
  • 如何正确使用openEuler SBOM标准中的CONTAINS与DEPENDS_ON关系