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

Title: smeserver-motd
Post 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...

Title: Re: smeserver-motd
Post by: Stefano on June 29, 2016, 01:01:32 PM
nice.. does it interfere with usual motd in any way? IOW, is it an alternative?
Title: Re: smeserver-motd
Post by: ReetP on June 29, 2016, 01:26:42 PM
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.
Title: Re: smeserver-motd
Post by: ReetP on June 29, 2016, 01:29:12 PM
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.
Title: Re: smeserver-motd
Post by: Stefano on June 29, 2016, 01:29:38 PM
I RT...FL :-)

thank you for your answer ;-)
Title: Re: smeserver-motd
Post by: ReetP on June 29, 2016, 01:36:48 PM
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

Code: [Select]
config set motd configuration status enabled message Blue info Green
Code: [Select]
signal-even remoteaccess-update
Title: Re: smeserver-motd
Post by: ReetP on June 29, 2016, 01:51:54 PM
0.1-5 built but might take a bit for the mirrors to sync
Title: Re: smeserver-motd
Post by: Jean-Philippe Pialasse on June 30, 2016, 03:56:45 AM
Great work !

Title: Re: smeserver-motd
Post by: ReetP on June 30, 2016, 10:24:11 AM
Thanks ! I try. Shows any idiot can build a contrib :lol:
Title: Re: smeserver-motd
Post by: stephdl on June 30, 2016, 02:41:46 PM
Shows any idiot can build a contrib :lol:

LOL
Title: Re: smeserver-motd
Post by: brianr on July 01, 2016, 10:44:50 AM
This seems to work fine for me.

I've edited the config command in the Wiki as it was slightly wrong!
Title: Re: smeserver-motd
Post by: ReetP on July 01, 2016, 11:26:42 AM
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

Quote
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

Title: Re: smeserver-motd
Post by: brianr on July 01, 2016, 11:30:26 AM
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.
Title: Re: smeserver-motd
Post by: ReetP on July 01, 2016, 12:01:25 PM
Many thanks !
Title: Re: smeserver-motd
Post by: TerryF on July 01, 2016, 01:14:47 PM
Thanks ! I try. Shows any idiot can build a contrib :lol:

Bloody idiots will take over the world next :-)
Title: Re: smeserver-motd
Post by: brianr on July 01, 2016, 01:21:05 PM
Bloody idiots will take over the world next :-)

shhh....I think they have.... :-(
Title: Re: smeserver-motd
Post by: ReetP on July 01, 2016, 01:28:37 PM
Bloody idiots will take over the world next :-)

Seems they already have up in this part of it.......  :cry: :cry: