I've done a shell that print on therminal: "Welcome Davide, have a nice day". This script i want that start on boot. I've tryed to put it everywhere but nothing . The folders i put it are: rc6.d and rc0.d. Then i wrote the whole script in rc.local but nothing happen..
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试):
问题:
回答1:
Probably you want it to run at the time of login. Put it in .bashrc
If you want to see it before login to tty0-tty6, put the text "Welcome Davide, have a nice day" in /etc/issue
.
[Adition by fedorqui]: If you want it to be displayed on tty0-6 AFTER login, put it in /etc/motd
. This will not show up when running from ssh.