X-osadminの自留地
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
75
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
3 years ago

Debian设置自动对时

注意: 请使用Root用户操作,且不支持OpenVZ/LXC虚拟机。

在开始之前,我们需要设置Debian的时区,请使用以下命令:

dpkg-reconfigure tzdate

之后,安装ntpdate:

apt install ntpdate -y

手动对时:

ntpdate <ntp Server>

在这里,可以使用任意的NTP服务器。

加入crontab以进行自动对时,这里以每日0点为例:

crontab -e

0 0 * * * ntpdate <ntp Server>

到这里,一切完成。您也可以将现在的时间写入bios,使用以下命令:

hwclock -w

Enjoy~

  • 技术小絮
等 人表示很赞
683
0

📮Comments

No Comment.
xosadmin
xosadmin
1 year ago
推荐 Debian设置802.1q vlan的方法
802.1Q VLAN是一种非常常见的VLAN技术,Debian也支持本VLAN技术。本文将以Debian 12 x64作为演示。 首先,在操作系统下安装vlan程序包 apt-get install vlan -y 2. 将802.1 ...
  • 技术小絮
676 0
xosadmin
xosadmin
1 year ago
推荐 LXC上安装Gitlab时sysctl报错的解决方法
问题情况:在LXC unprivileged容器上安装Gitlab时,在执行gitlab-ctl reconfigure时可能会报出sysctl: permission denied的错误。 解决方法:在/etc/gitlab/gitlab ...
  • 技术小絮
498 0
xosadmin
xosadmin
4 years ago
推荐 Docker更换默认IP的方法
如题,最近在尝试使用docker部署一系列应用。由于默认的docker IP与上级某个网段相冲突,于是决定要修改默认网段。 修改非常简单,只需建立/etc/docker/daemon.json文件,并填入以下内容后重启docker即可: { ...
  • 技术小絮
1,279 0
xosadmin
xosadmin
5 years ago
推荐 Proxmox挂载Windows Samba时报错的解决方法
近日在Proxmox的Web界面上挂载由Windows Server 2008共享的CIFS(Samba共享)时,界面报出以下错误: create storage failed: error with cfs lock ‘fil ...
  • proxmox
  • 技术小絮
5,863 0
xosadmin
xosadmin
3 months ago
推荐 Windows FTP服务器通过PASV模式无法获取目录的解决方法
Windows FTP Server是一个Windows IIS自带的FTP服务器。在搭建后可能会出现通过PASV模式无法获得目录列表的问题。具体解决方法如下: 在Server Manager中安装FTP Extensions (若已安装 ...
  • 技术小絮
247 0
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持

文章聚合

  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持
  • Proxmox报出RRDC/RRD update error的解决方法
  • 在Debian 12上安装Proxmox VE的方法

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. Designed by nicetheme.
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following
Welcome
Forgot password?
Welcome
Forgot password?
Social Login
Login with WeChat QR Code
Unregistered WeChat IDs will be automatically used to create an account.
Scan and Reply with Keywords「登录」Get Verification Code
Social Login
Free registration
Social Login
Reset password
Back to Login