You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Your Windows build number: (Type ver at a Windows Command Prompt)
Microsoft Windows [version 10.0.16176]
What you're doing and what's happening: (Copy&paste specific commands and their output, or include screen shots)
Please add a MOTD (message of the day) = logging in message !
There are quite a lot of ways MOTD messages are setup (/etc/motd, /etc/motd.tail, default...) but it would be so cool !
It shouldn't be too hard to do, but because of that, BashOnWindows doesn't looks as good as a normal shell would look...
I run with zsh by running login - basically configure lxss to run as root then editing the Ubuntu shortcut target to C:\Windows\System32\bash.exe ~ -c "/bin/login -p -f simon" where simon is my Ubuntu account name. With this setup, I get the default MOTD message:
Last login: Mon Apr 24 09:55:09 STD 2017 on tty1
Welcome to Ubuntu 16.04.2 LTS (GNU/Linux 4.4.0-43-Microsoft x86_64)
0 packages can be updated.
0 updates are security updates.
0 ~ 0 %
Note that by default Xenial installs landscape, and that spits out an error in this setup, easy enough to uninstall it though.
Activity
[-]Please add MOTD[/-][+]MOTD support[/+]jackchammons commentedon Apr 21, 2017
This is something that we are looking into. As a work around you could invoke the MOTD via your .bashrc
simonbuchan commentedon Apr 23, 2017
I run with zsh by running login - basically configure lxss to run as root then editing the Ubuntu shortcut target to
C:\Windows\System32\bash.exe ~ -c "/bin/login -p -f simon"wheresimonis my Ubuntu account name. With this setup, I get the default MOTD message:Note that by default Xenial installs
landscape, and that spits out an error in this setup, easy enough to uninstall it though.therealkenc commentedon May 24, 2018
Let's keep it in one place, which is #352
Alex6357 commentedon Apr 7, 2024
It seems that pam modules are (partly) still not functioning. MOTD is not correctly shown.