Koozali.org: home of the SME Server
Obsolete Releases => SME 9.x Contribs => Topic started by: ReetP on June 29, 2016, 12:43:10 PM
-
I got bored a while back and wrote myself a small script to colourise my motd on ssh login
I have now built it as a RPM and it has been imported by Stephane to contribs.
https://wiki.contribs.org/Motd
Version should be smeserver-motd-0_1-4 - in smedev for testing as of now
You should then get a login similar to this :
===================================================
Welcome to v9-test
This system is running SME Server 9.1
Kernel version 2.6.32-642.1.1.el6.x86_64
You are currently logged in as root
===================================================
Please have a go and let me know what happens...
-
nice.. does it interfere with usual motd in any way? IOW, is it an alternative?
-
nice.. does it interfere with usual motd in any way? IOW, is it an alternative?
If enabled it will come UNDER the original motd.
However, if you RTFM on the Wiki page that I lovingly prepared :lol: you will see that you can disabled the current motd if required.
-
PS - I just added a fix as I forgot to automatically add config status disabled.
0.1-4 for v9 built ok on buildsys, but failed on v8 - asked Dan to look at why.
v 0.1-4 is the one you want.
-
I RT...FL :-)
thank you for your answer ;-)
-
I RT...FL :-)
thank you for your answer ;-)
Hehehehehe - just discovered I missed another key (I did it all manually so forgot them doing the RPM)
ERROR: You should not set a config record without a type (key was motd).
Just fixing now.
You can do this temporarily
config set motd configuration status enabled message Blue info Green
signal-even remoteaccess-update
-
0.1-5 built but might take a bit for the mirrors to sync
-
Great work !
-
Thanks ! I try. Shows any idiot can build a contrib :lol:
-
Shows any idiot can build a contrib :lol:
LOL
-
This seems to work fine for me.
I've edited the config command in the Wiki as it was slightly wrong!
-
This seems to work fine for me.
Fab - thanks Brian. Coudl you mark this bug as verified ? It'll get pushed to contribs then. https://bugs.contribs.org/show_bug.cgi?id=9636
I've edited the config command in the Wiki as it was slightly wrong!
Thank you ! I think I got in a muddle when building the RPM - I'd previously had to manually set keys and had to modify things in the RPM.
Until I added the key correctly to the db you had to do this
config set motd configuration status enabled message Blue info Green
But as you say, the key is now set so you can just do setprop to modify things.
B. Rgds
John
-
Fab - thanks Brian. Coudl you mark this bug as verified ? It'll get pushed to contribs then. https://bugs.contribs.org/show_bug.cgi?id=9636
done.
-
Many thanks !
-
Thanks ! I try. Shows any idiot can build a contrib :lol:
Bloody idiots will take over the world next :-)
-
Bloody idiots will take over the world next :-)
shhh....I think they have.... :-(
-
Bloody idiots will take over the world next :-)
Seems they already have up in this part of it....... :cry: :cry: