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  # 将用户添加至组
相关推荐
暴躁的小胡!!!1 分钟前
Linux权限维持之协议后门(七)
linux·运维·服务器·网络·安全
安 当 加 密8 分钟前
中小企业Radius认证服务器的低成本高安全解决方案
运维·服务器·安全
dxaiofcu32 分钟前
双网卡电脑,IP地址漂移
linux·服务器·网络
Macle_Chen38 分钟前
Mac服务器上创建Docker并安装宝塔环境
服务器·macos·docker
ChinaRainbowSea41 分钟前
Linux: Centos7 Cannot find a valid baseurl for repo: base/7/x86_64 解决方案
java·linux·运维·服务器·docker·架构
vortex51 小时前
在Kali中使用虚拟环境安装python工具的最佳实践:以 pwncat 为例
linux·python·网络安全·渗透测试·pip·kali
Hellc0071 小时前
Docker 部署 MongoDB 并持久化数据
mongodb·docker·容器
LKAI.1 小时前
MongoDB用户管理和复制组
linux·数据库·mongodb
linux修理工2 小时前
moodle 开源的在线学习管理系统(LMS)部署
linux
snpgroupcn2 小时前
ECC升级到S/4 HANA的功能差异 物料、采购、库存管理对比指南
运维·安全·数据库架构