查找 HomeDirectory/.dtprofile 和 Xsession.d 脚本之后,Xsession 显示覆盖屏幕的欢迎消息。可以定制显示的欢迎消息,或完全关闭消息。dthello 客户机被用来显示消息。
要更改信息文本,可以通过修改 dtstart_hello[0] 变量来更改 dthello 选项。
要更改 dtstart_hello[0],需创建设置新值的 /etc/dt/config/Xsession.d 脚本。要为所有用户显示当日的消息,需创建可执行的 sh 或 ksh 脚本 (例如 /etc/dt/config/Xsession.d/myvars),并将 dtstart_hello[0] 设置如下:
dtstart_hello[0]="/usr/dt/bin/dthello -file /etc/motd &"
类似地,用户可通过设置 HomeDirectory/.dtprofile 中的 dtstart_hello[0] 来更改它们的会话的欢迎消息。
要关闭欢迎消息,需设置 dtstart_hello[0]=" "。
有关 dthello 的详细内容,请参阅 dthello 手册页。