Koozali.org: home of the SME Server

smeserver-motd

Offline ReetP

  • *
  • 3,743
  • +5/-0
smeserver-motd
« 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...

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: smeserver-motd
« Reply #1 on: June 29, 2016, 01:01:32 PM »
nice.. does it interfere with usual motd in any way? IOW, is it an alternative?

Offline ReetP

  • *
  • 3,743
  • +5/-0
Re: smeserver-motd
« Reply #2 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.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,743
  • +5/-0
Re: smeserver-motd
« Reply #3 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.
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: smeserver-motd
« Reply #4 on: June 29, 2016, 01:29:38 PM »
I RT...FL :-)

thank you for your answer ;-)

Offline ReetP

  • *
  • 3,743
  • +5/-0
Re: smeserver-motd
« Reply #5 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
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline ReetP

  • *
  • 3,743
  • +5/-0
Re: smeserver-motd
« Reply #6 on: June 29, 2016, 01:51:54 PM »
0.1-5 built but might take a bit for the mirrors to sync
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline Jean-Philippe Pialasse

  • *
  • 2,773
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: smeserver-motd
« Reply #7 on: June 30, 2016, 03:56:45 AM »
Great work !


Offline ReetP

  • *
  • 3,743
  • +5/-0
Re: smeserver-motd
« Reply #8 on: June 30, 2016, 10:24:11 AM »
Thanks ! I try. Shows any idiot can build a contrib :lol:
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline stephdl

  • *
  • 1,519
  • +0/-0
    • Linux et Geekeries
Re: smeserver-motd
« Reply #9 on: June 30, 2016, 02:41:46 PM »
Shows any idiot can build a contrib :lol:

LOL
See http://wiki.contribs.org/Koozali_Foundation
irc : Freenode #sme_server #sme-fr

!!! Please write your knowledge to the Wiki !!!

Offline brianr

  • *
  • 988
  • +2/-0
Re: smeserver-motd
« Reply #10 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!
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline ReetP

  • *
  • 3,743
  • +5/-0
Re: smeserver-motd
« Reply #11 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

...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline brianr

  • *
  • 988
  • +2/-0
Re: smeserver-motd
« Reply #12 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.
Brian j Read
(retired, for a second time, still got 2 installations though)
The instrument I am playing is my favourite Melodeon.
.........

Offline ReetP

  • *
  • 3,743
  • +5/-0
Re: smeserver-motd
« Reply #13 on: July 01, 2016, 12:01:25 PM »
Many thanks !
...
1. Read the Manual
2. Read the Wiki
3. Don't ask for support on Unsupported versions of software
4. I have a job, wife, and kids and do this in my spare time. If you want something fixed, please help.

Bugs are easier than you think: http://wiki.contribs.org/Bugzilla_Help

If you love SME and don't want to lose it, join in: http://wiki.contribs.org/Koozali_Foundation

Offline TerryF

  • grumpy old man
  • *
  • 1,826
  • +6/-0
Re: smeserver-motd
« Reply #14 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 :-)
--
qui scribit bis legit