跳至主要內容

Debian 准备工作

墨七LinuxLinuxDebian小于 1 分钟约 216 字...

Debian 准备工作

https://www.debian.org/doc/manuals/debian-faq/getting-debian.zh-cn.htmlopen in new window

#修改登录账户密码
passwd

# 查看 Shell
cat /etc/shells
echo $SHELL

#改为使用 bash
chsh -s /bin/bash

# 查看linux 版本
lsb_release -a

# 修改  hostname  添加
vim /etc/hostname
vim /etc/hosts


修改 ssh 配置

vim /etc/ssh/sshd_config


PermitRootLogin yes

StrictModes no

PubkeyAuthentication yes

PasswordAuthentication yes

UsePAM yes

TCPKeepAlive yes

ClientAliveInterval 60

ClientAliveCountMax 3

然后重启 ssh

service ssh restart

保持系统最新

sudo apt update
sudo apt upgrade

换源

https://mirrors.tuna.tsinghua.edu.cn/help/debian/open in new window

查看文件数量限制

ulimit -Hn

修改时区


timedatectl set-timezone Asia/Shanghai

安装一些必要软件

# 安装 配置 git
apt install git

## 安装 配置 nginx
apt install nginx

## 安装 screenfetch
sudo apt install screenfetch

## 安装 nvm

https://github.com/nvm-sh/nvm

## 安装 golang

https://studygolang.com/dl

## 安装 mongodb

https://www.mongodb.com/docs/mongodb-shell/install/

命令行上色


vim ~/.bashrc

# 取消对应的注释就好了

重启

reboot

安装证书

https://www.gingerdoc.com/tutorials/how-to-set-up-and-configure-a-certificate-authority-ca-on-debian-10open in new window

上次编辑于:
贡献者: 墨七
你认为这篇文章怎么样?
  • 0
  • 0
  • 0
  • 0
  • 0
  • 0
评论
  • 按正序
  • 按倒序
  • 按热度