ubuntu服务器配置若干问题

1、激活root账户

sudo passwd root

2、修改开机grub

sudo vim /etc/default/grub
GRUB_TIMEOUT=20

3、修改时区

sudo timedatectl set-timezone Asia/Shanghai

4、禁止更新

# 查看当前内核版本
# apt 禁止更新
sudo apt-mark hold linux-image-generic linux-headers-generic
# or
uname -r
# 4.15.0-64-generic
sudo apt-mark hold 4.15.0-64-generic
 sudo vim /etc/apt/apt.conf.d/20auto-upgrades
#APT::Periodic::Update-Package-Lists "1";
#APT::Periodic::Unattended-Upgrade "1";

APT::Periodic::Update-Package-Lists "0";
APT::Periodic::Unattended-Upgrade "1";

5、检查和维护nvidia

sudo fuser -v /dev/nvidia*
sudo nvidia-smi --gpu-reset -i 0
# -r

6、停用cloud-init

sudo touch /etc/cloud/cloud-init.disabled
# -r

你可能感兴趣的:(ubuntu服务器配置若干问题)