Debian 初始化命令备忘

本文地址:blog.lucien.ink/archives/541

以 Debian 11 为例,主要用于备忘。

plain 复制代码
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian/ bullseye-updates main contrib non-free
deb https://mirrors.tuna.tsinghua.edu.cn/debian-security bullseye-security main contrib non-free
shell 复制代码
apt update && apt install vim curl wget git cifs-utils -y

export DOWNLOAD_URL="https://mirrors.tuna.tsinghua.edu.cn/docker-ce"
curl -fsSL https://get.docker.com/ | sh

pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple

hostnamectl set-hostname your_host
hostname your_host
/etc/hosts

timedatectl set-timezone Asia/Shanghai

groupmod -g 3000 foo  # 添加用户组
adduser  # 添加用户
usermod -aG group_name user_name  # 将用户添加至组
相关推荐
迪康软件zz1 小时前
单向阀的代码:把"高级别解低级别"写成可测的判定
运维·安全·自动化运维
Diligently_2 小时前
docker 中的常见的使用命令(三)
运维·docker·容器
路溪非溪2 小时前
USB的基础知识总结
linux
女神下凡2 小时前
芯易选(143):晶视智能(CVITEK)_开发指南
linux·arm开发·stm32·单片机·嵌入式硬件
我不会起名字3222 小时前
SLO 与错误预算:为什么 99.99% 往往不是好目标?
运维·架构设计·告警·可观测性·slo
Hhy_11072 小时前
【Linux 进击之路 · 01】起航篇:从认识操作系统到XShell 远程连接、多叉树目录体系到高频基础指令全解析
linux·服务器·后端·学习
易知微EasyV数据可视化3 小时前
多路监控视频与三维场景融合展示
运维·视频孪生·三维场景·安全健康
Decay__4 小时前
PostgreSQL 优化案例集 —— 慢 SQL 优化、索引重构与参数调整收益对比
运维·数据库·sql·postgresql
7177774 小时前
信创 DevOps 平台选哪家:Gitee 与主流方案的适配维度对比
运维·gitee·devops
-梅5 小时前
linux网络(1)网络聊天室与网络计算器
linux·运维·服务器