debian 笔记本做服务器关闭屏幕
作者:互联网观察 发布时间:Mar 13, 2021 分类:互联网观察
开启
/etc/rc.local 文件
自己创建 /etc/rc.local 这个文件的, 因为debian10默认是没有,使用 vim /etc/rc.local创建,里面的内容是我复制的,主要就是把第一句(#!/bin/sh -e) 和 最后一句(exit 0)写进去即可。
==============================================================
#!/bin/sh -e
#
# rc.local
#
# This script is executed at the end of each multiuser runlevel.
# Make sure that the script will "exit 0" on success or any other
# value on error.
#
# In order to enable or disable this script just change the execution
# bits.
#
# 增加下面这行代码.
setterm -blank 1 -powersave powerdown,
exit 0
————————————————
#执行下面代码
sudo chmod +x /etc/rc.local
#执行下面代码
ln -s /lib/systemd/system/rc.local.service /etc/systemd/system/
#执行下面代码
systemctl enable rc.local
#执行下面代码
systemctl start rc.local.service
不出意外 重启后。。你的服务器会在1分钟后关闭屏幕。
相关文章
- 本地大模型推理交流群
- 《北京市属医院护士规范化培训指南(下册)》PDF
- v100 显卡 安装funasr最新版本
- 百万理财私人客户名单
- 使用v100+vllm推理qwenasr
- A Turning Tide: The Yangtze River’s Recovery After Decades of Degradation
- pve9无法运行部分lxc
- uv 使用国内源文
- 为什么我们要下载抖音无水印视频?
- indextts 使用vllm提速
- 版权声明:自由转载-非商用-非衍生-保持署名 | Creative Commons BY-NC-ND 3.0
- 原文网址:https://www.tianmeng.org/Internet-Observation_475/475/
- 最后修改时间:2021年03月13日 21:11:41
当前暂无评论 »