Debian10 安装完成之后的初始化设置

更新软件安装源

Debian10安装完成之后,国内用户首先需要修改更新源,这使用阿里的源:

cat > /etc/apt/sources.list <<EOF
deb http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian/ buster-backports main non-free contrib
deb http://mirrors.aliyun.com/debian-security/ buster/updates main non-free contrib
deb-src http://mirrors.aliyun.com/debian-security/ buster/updates main non-free contrib
EOF

安装ssh

安装ssh:

apt install openssh-server

启用ssh服务:

systemctl start ssh.service

修改配置:

vi /etc/ssh/sshd_config

修改的内容:

PermitRootLogin yes
PasswordAuthentication yes

让普通用户可以切换root登录

修改文件:

vi /etc/sudoers

在root下面增加一个用户:

user01  ALL=(ALL:ALL) ALL

最近更新

猜你喜欢

最近的文章

CentOS7.X更新yum源

1. 备份原来的yum源$sudo cp /etc/yum.repos.d/CentOS-Base.repo /etc/yum.repos.d/CentO...…

centos7 centos 更新源继续阅读
更早的文章

在ubuntu中利用第三方smtp发送邮件

安装heirloom-mailsudo apt-get install heirloom-mailx修改/etc/s-nail.rc文件vim /etc/...…

linux smtp继续阅读