debian11安装备忘
1. 网卡驱动
2. 分辨率
貌似还是有点问题,还要进一步研究一下
参考网址:虚拟机中debian11修改控制台(console)分辨率|linux控制台分辨率|linux console resolution
3. python3.10
chatgpt 3.5生成
# 要在 Debian 11 上安装 Python 3.10,您可以按照以下步骤进行操作:
# 打开终端并以 root 或具有管理员权限的用户身份登录。
# 更新您的系统软件包列表:
apt update
# 安装所需的依赖项:
apt install build-essential libffi-dev libssl-dev zlib1g-dev libncurses5-dev libncursesw5-dev libreadline-dev libsqlite3-dev libgdbm-dev libdb5.3-dev libbz2-dev libexpat1-dev liblzma-dev tk-dev libffi-dev libssl-dev -y
# 下载 Python 3.10 的源代码包:
wget https://www.python.org/ftp/python/3.10.0/Python-3.10.0.tar.xz
# 解压源代码包:
tar -xf Python-3.10.0.tar.xz
# 进入解压后的目录:
cd Python-3.10.0
# 配置 Python 的编译选项:
./configure --enable-optimizations
# 编译并安装 Python:
make -j $(nproc)
make altinstall
# -j $(nproc) 参数用于指定并行编译线程数,以加快编译速度。
# 完成安装后,您可以验证 Python 安装是否成功:
python3.10 --version
# 此命令应显示 Python 3.10 版本信息。
# 现在,您已成功在 Debian 11 上安装了 Python 3.10。
# make altinstall 是一个用于在编译和安装 Python 源代码时的命令。下面解释一下它的含义:
# make 是一个构建软件的命令,它基于 Makefile 文件来执行编译和安装过程。
# altinstall 是 make 命令的一个选项。与 make install 不同,make altinstall 不会覆盖系统默认的 Python 解释器,而是在安装时将新版本的 Python 安装为一个“备用”版本。
# 通过使用 make altinstall,您可以并行安装多个 Python 版本,并且系统仍将保留默认的 Python 版本,不会受到影# 响。您可以通过指定特定的版本号(如 python3.10)来运行安装的 Python 3.10 解释器。这样做可以避免因为替换了 # 系统默认 Python 版本而导致其他依赖的问题。
# 因此,使用 make altinstall 可以安全地将新版本的 Python 安装到系统中,而不会破坏现有的环境。
4. 终端控件
如果感觉bash比较乏味,可以尝试安装其它终端
目前感觉比较简单的一个终端是 fish
# root,不用root的话记得加sudo
apt update
apt install fish
chsh -s /bin/fish
# 最后检查/etc/passwd,确保root的shell和上面的/bin/fish一致
cat /etc/passwd
5. tldr
之前在网上看到的一个可以代替man的指令帮助工具,挺好用的
sudo apt install tldr
# 下载数据
tldr -u
# 查询
# tldr [cmd]
tldr curl
curl
Transfers data from or to a server.Supports most protocols, including HTTP, FTP, and POP3.More information: https://curl.se/docs/manpage.html.
- Download the contents of a URL to a file:
curl {{http://example.com}} --output {{path/to/file}}
- Download a file, saving the output under the filename indicated by the URL:
curl --remote-name {{http://example.com/filename}}
- Download a file, following location redirects, and automatically continuing (resuming) a previous file transfer and return an error on server error:
curl --fail --remote-name --location --continue-at - {{http://example.com/filename}}
- Send form-encoded data (POST request of type application/x-www-form-urlencoded). Use --data @file_name or --data @'-' to read from STDIN:
curl --data {{'name=bob'}} {{http://example.com/form}}
- Send a request with an extra header, using a custom HTTP method:
curl --header {{'X-My-Header: 123'}} --request {{PUT}} {{http://example.com}}
- Send data in JSON format, specifying the appropriate content-type header:
curl --data {{'{"name":"bob"}'}} --header {{'Content-Type: application/json'}} {{http://example.com/users/1234}}
- Pass a username and password for server authentication:
curl --user myusername:mypassword {{http://example.com}}
- Pass client certificate and key for a resource, skipping certificate validation:
curl --cert {{client.pem}} --key {{key.pem}} --insecure {{https://example.com}}
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 震惊!C++程序真的从main开始吗?99%的程序员都答错了
· 【硬核科普】Trae如何「偷看」你的代码?零基础破解AI编程运行原理
· 单元测试从入门到精通
· 上周热点回顾(3.3-3.9)
· winform 绘制太阳,地球,月球 运作规律