debian安装后的必要操作

1. 设置使用共享文件夹
  参考: https://blog.csdn.net/sz_chrome/article/details/80863391
  1)virtualBox管理器 -> 设置(S) -> 共享文件夹 _ 添加共享文件夹路径
  2)共享文件夹设置: 自动挂载, 固定分配
  3)如果安装了增强功能, 打开虚拟机后就可以看到sf_xxx的文件夹.
  4)单击文件夹后, 会显示this location could not be displayed, 原因是当前登录用户没有属于“VirtualBox Guest Additions installer”所创建的用户组vboxsf
  5)将当前用户添加到组中:
  ~$ sudo adduser 当前用户名 vboxsf
  [sudo] password for 当前用户名:
  Adding user `当前用户名' to group `vboxsf' ...
  Adding user 当前用户名 to group vboxsf
  Done.
  6)再次重启系统,登录成功后就可以看到共享内容了.

2. 添加sudoers用户
  1)切换到root用户
  su
  2)修改sudoers文件权限, 一般存放在/etc下.
  chmod u+w /etc/sudoers
  3)修改sudoers文件, 找到 root ALL=(ALL:ALL) ALL这一行, 在下面添加 用户名 ALL=(ALL:ALL) ALL 即可。
  4)修改sudoers文件权限, 取消写权限.
  chmod u-w /etc/sudoers

3. 更换源
  参考1: https://www.rezhuji.com/os/debian11/system/change_debian11_apt_to_ustc.html
  参考2: https://www.cnblogs.com/liuguanglin/p/debian11_repo.html

  1)切换到root账户权限
  2)使用nano打开/etc/apt/sources.list文件
  3)注释掉原来内容, 增加国内源.
  4)保存, 退出.

4. 更新
  $sudo apt update
  $sudo apt upgrade

  c/c++开发环境: https://blog.csdn.net/jiegemena/article/details/126333409?spm=1001.2101.3001.6650.1&utm_medium=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-126333409-blog-127426765.235%5Ev35%5Epc_relevant_increate_t0_download_v2_base&depth_1-utm_source=distribute.pc_relevant.none-task-blog-2%7Edefault%7ECTRLIST%7ERate-1-126333409-blog-127426765.235%5Ev35%5Epc_relevant_increate_t0_download_v2_base&utm_relevant_index=2


  $sudo apt install build-essential

5. 查看debian版本号
  参考: https://blog.csdn.net/Qingyunya/article/details/127746490

  $ cat /etc/os-release
  PRETTY_NAME="Debian GNU/Linux 11 (bullseye)"
  NAME="Debian GNU/Linux"
  VERSION_ID="11"
  VERSION="11 (bullseye)"
  VERSION_CODENAME=bullseye
  ID=debian
  HOME_URL="https://www.debian.org/"
  SUPPORT_URL="https://www.debian.org/support"
  BUG_REPORT_URL="https://bugs.debian.org/"

  $ cat /etc/debian_version
  11.2

6. 解决Debian11 文件夹对话框、命令终端等没有最大化和最小化的问题
  1)Activities 搜索 Tweaks , 打开.
  2)单击Window Titlebars, 打开Maximize和Minimize, Placement选择Right

posted @ 2023-05-10 09:17  seifguo  阅读(146)  评论(0编辑  收藏  举报