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  # 将用户添加至组
相关推荐
陌路2011 分钟前
Linux22 进程与线程以及内核级线程
linux·开发语言
明天…ling14 分钟前
Linux+Apache+MySQL+PHP 架构下搭建 Discuz 社区论坛
linux·服务器·apache
Ghost Face...21 分钟前
GRUB配置文件解析与启动流程详解
linux·运维·服务器
pedestrian_h25 分钟前
docker快速上手笔记
笔记·docker·容器
老黄编程1 小时前
配置镜像仓库镜像(Registry Mirror)的指南
docker
掘根1 小时前
【Docker】容器操作和实战
运维·docker·容器
奔跑吧 android4 小时前
【Docker】【2.docker 安装 ubuntu 桌面版】
ubuntu·docker·容器
前端世界6 小时前
从零搭建多子网 DHCP 服务:CentOS 双网卡多作用域实战与原理解析
linux·运维·centos
头发那是一根不剩了6 小时前
Docker Desktop 安装教程和最佳实践
运维·docker·容器
路由侠内网穿透.7 小时前
本地部署轻量级持续集成工具 Drone CI 并实现外部访问
运维·服务器·ci/cd·远程工作