Author Topic: The "CUSTOMIZE YOUR SHELL MOTD" tut is out of date!  (Read 4608 times)

Kirill

  • Mini Mewbie
  • *
  • Posts: 1
The "CUSTOMIZE YOUR SHELL MOTD" tut is out of date!
« on: May 22, 2011, 01:46:49 PM »
Hey folks!

Just a great guide, but the guide is really out of date to fit new releases of Linux...

As for example: /etc/init.d/bootmisc.sh have been removed.

And the SSH logins isn't working either. =/

This is my system login:

Quote
  Last Login....: Sun May 22 13:38:11 from 10.0.0.4
  Uptime........: 0days 4hours 18minutes 25seconds
  Load..........: 0.58 (1minute) 0.62 (5minutes) 1.02 (15minutes)
  Memory MB.....: 7876  Used: 7828  Free: 48  Free Cached: 7077  Swap In Use: 0
  Disk Usage....: You're using 61MB in /home/kirill
  SSH Logins....: There are currently load users logged in.
  SSH Logins....: There are currently load users. You have logged in a total of 26 times this week
  SSH Failed....: There have been 200 failed attempts this week to possibly break-in
  Processes.....: You're running 55 which makes a total of 179 running

And I don't think the memory is working good either... =/ Because my old MOTD is still there, and that tells me: Memory usage: 5%.

Would appreciate any help to solve this... :)

Cheers
Kirill


mewbies

  • Administrator
  • Hero Mewbie
  • *****
  • Posts: 131
    • Mewbies
Re: The "CUSTOMIZE YOUR SHELL MOTD" tut is out of date!
« Reply #1 on: June 19, 2013, 03:46:15 PM »
Sorry to hear that Kirill. I'm using Debian squeeze and my /etc/init.d/bootmisc.sh is still there and my MOTD as per the tutorial is working just fine.
The only problem I had from lenny to squeeze with the MOTD was cowsay had removed some cows and I have updated the tutorials on how to fix this missing cows.
Please review your logs or run each cmd manually to view where the problem lies.
If you have a question; do NOT PM me, post it for all to help.

Swizzy

  • Mini Mewbie
  • *
  • Posts: 2
Re: The "CUSTOMIZE YOUR SHELL MOTD" tut is out of date!
« Reply #2 on: October 02, 2014, 02:16:51 PM »
Hey folks!

Just a great guide, but the guide is really out of date to fit new releases of Linux...

As for example: /etc/init.d/bootmisc.sh have been removed.

And the SSH logins isn't working either. =/

This is my system login:

Quote
  Last Login....: Sun May 22 13:38:11 from 10.0.0.4
  Uptime........: 0days 4hours 18minutes 25seconds
  Load..........: 0.58 (1minute) 0.62 (5minutes) 1.02 (15minutes)
  Memory MB.....: 7876  Used: 7828  Free: 48  Free Cached: 7077  Swap In Use: 0
  Disk Usage....: You're using 61MB in /home/kirill
  SSH Logins....: There are currently load users logged in.
  SSH Logins....: There are currently load users. You have logged in a total of 26 times this week
  SSH Failed....: There have been 200 failed attempts this week to possibly break-in
  Processes.....: You're running 55 which makes a total of 179 running

And I don't think the memory is working good either... =/ Because my old MOTD is still there, and that tells me: Memory usage: 5%.

Would appreciate any help to solve this... :)

Cheers
Kirill

A fix for the "load users" instead of "# users" problem is here:

replace
Code: [Select]
# * Calculate SSH logins:
set logins     [exec -- w -s]
set log(c)  [lindex $logins 5]

with:

Code: [Select]
# * Calculate SSH logins:
set log(c)     [exec -- w -s | head -1 | grep -o {[0-9]* users} | grep -o {[0-9]*}]

Lightcap

  • Mini Mewbie
  • *
  • Posts: 1
Re: The "CUSTOMIZE YOUR SHELL MOTD" tut is out of date!
« Reply #3 on: May 08, 2017, 08:09:25 AM »
And I don't think the memory is working good either... =/ Because my old MOTD is still there, and that tells me: Memory usage: 5%.

Would appreciate any help to solve this... :)

Cheers
Kirill

My memory is at like 4%  O-o

Lumbertnut

  • Mini Mewbie
  • *
  • Posts: 2
    • gclub online
Re: The "CUSTOMIZE YOUR SHELL MOTD" tut is out of date!
« Reply #4 on: January 09, 2018, 05:31:52 AM »
I agree with you that it should not be used in the present world, it has something better.

Bartelt

  • Mini Mewbie
  • *
  • Posts: 1
Re: The "CUSTOMIZE YOUR SHELL MOTD" tut is out of date!
« Reply #5 on: January 16, 2018, 03:52:34 PM »
Are you getting crashes, Lightcap? That's what was happening to me when my memory went to those levels.