朕的大清完了? 大佬有话说 :
不懂就问,centos怎么设置欢迎页面的变量?
乌班图 居然有显示 硬盘容量。这个功能比较友好啊
https://i.loli.net/2020/05/30/mFz9cMnL5I42hDj.png
shc 大佬有话说 :
vi /etc/motd
kenshuren 大佬有话说 :
debian欢迎
朕的大清完了? 大佬有话说 :
shc 大佬有话说 : 2020-5-30 09:36
vi /etc/motd
应该不是欢迎页,
是登陆后 打印出来的
欢迎页里面没看到
Welcome to还比较后 执行
Nameless 大佬有话说 :
动态的信息好像不是 /etc/motd
debian 是这个 /etc/update-motd.d/10-uname
夕日 大佬有话说 :
去看看你ubuntu的/etc/update-motd.d/文件夹,下面有一堆文件,分别负责不同的功能,直接把文件删了就没有这显示了
朕的大清完了? 大佬有话说 :
本帖最后由 朕的大清完了? 于 2020-5-30 10:05 编辑
夕日 大佬有话说 : 2020-5-30 09:50
去看看你ubuntu的/etc/update-motd.d/文件夹,下面有一堆文件,分别负责不同的功能,直接把文件删了就没有 …
可以 可以 谢谢是50-landscape-sysinfo这个文件,
但是centos有这样的 “友好”功能吗
#!/bin/sh
cores=$(grep -c ^processor /proc/cpuinfo 2>/dev/null)
[ "$cores" -eq "0" ] && cores=1
threshold="${cores:-1}.0"
if [ $(echo "`cut -f1 -d ‘ ‘ /proc/loadavg` < $threshold" | bc) -eq 1 ]; then
echo
echo -n "System information as of "
/bin/date
echo
/usr/bin/landscape-sysinfo
else
echo
echo " System information disabled due to load higher than $threshold"
fi
centos 没有这文件
test.sh: line 10: /usr/bin/landscape-sysinfo: No such file or directory
嗷嗷 大佬有话说 :
改成Hello Debian
朕的大清完了? 大佬有话说 :
嗷嗷 大佬有话说 : 2020-5-30 10:03
改成Hello Debian
centos 用的习惯呀。改不了