<div dir="ltr"><div>I found this helpful with some of my allstar nodes.. Being able to see how much space is left on the hard drive etc.. along with what the outside temperatures roughly are.. Figured some of you might enjoy this..</div><div><br></div><div>Here is the forum post thread where i posted my original help section.. </div><div><a href="http://forum.kc9zhv.com/index.php/topic,293.0.html">http://forum.kc9zhv.com/index.php/topic,293.0.html</a><br></div><div><br></div><div><br></div><div><div class="" style="margin:0px 0px 0px 16em"><div class="" style="overflow:auto;line-height:1.4em;padding:0.1em 0px;margin-top:0.5em;clear:right"><div class="" id="msg_301" style="padding:1em 1em 0px 0px;margin:0px 1em 0px 0px;border-top-width:1px;border-top-style:solid;border-top-color:rgb(153,153,170)">Greetings I have decided to run a new MOTD type setup on my servers so I can see whats going on with the server and a really quick basic weather update..<br><br>Here is the original article where i had found the info.<br><br><a href="https://help.ubuntu.com/lts/serverguide/pam_motd.html" class="" target="_blank" style="color:rgb(51,68,102);text-decoration:none">https://help.ubuntu.com/lts/serverguide/pam_motd.html</a><br><br>Ok so here we go..<br><br><div class="" style="font-size:0.9em;font-weight:bold;padding-left:5px">Code: <a class="" style="font-weight:normal;color:rgb(51,68,102)">[Select]</a></div><code class="" style="display:block;font-family:'courier new','times new roman',monospace;font-size:x-small;border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);line-height:1.3em;padding:3px 1em;overflow:auto;white-space:pre;max-height:24em;background:rgb(238,238,238)">sudo apt-get install landscape-common weather-util</code><br>Now that we have installed the packages here is how to setup your local weather to appear on the MOTD.<br><br><div class="" style="font-size:0.9em;font-weight:bold;padding-left:5px">Code: <a class="" style="font-weight:normal;color:rgb(51,68,102)">[Select]</a></div><code class="" style="display:block;font-family:'courier new','times new roman',monospace;font-size:x-small;border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);line-height:1.3em;padding:3px 1em;overflow:auto;white-space:pre;max-height:24em;background:rgb(238,238,238)">sudo nano /usr/local/bin/local-weather</code><br>So now to setup your weather information server side..<br>You can find the information here.. <br><a href="http://www.nws.noaa.gov/tg/siteloc.php" class="" target="_blank" style="color:rgb(51,68,102);text-decoration:none">http://www.nws.noaa.gov/tg/siteloc.php</a><br><div class="" style="font-size:0.9em;font-weight:bold;padding-left:5px">Code: <a class="" style="font-weight:normal;color:rgb(51,68,102)">[Select]</a></div><code class="" style="display:block;font-family:'courier new','times new roman',monospace;font-size:x-small;border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);line-height:1.3em;padding:3px 1em;overflow:auto;white-space:pre;max-height:24em;background:rgb(238,238,238)">#!/bin/sh<br>#<br>#<br># Prints the local weather information for the MOTD.<br>#<br>#<br><br># Replace KINT with your local weather station.<br># Local stations can be found here: <a href="http://www.weather.gov/tg/siteloc.shtml">http://www.weather.gov/tg/siteloc.shtml</a> <-- This is old and out of date><br><br>echo<br>weather -i KOLY<br>echo<br></code><br>Now you need to adjust permissions.<br><div class="" style="font-size:0.9em;font-weight:bold;padding-left:5px">Code: <a class="" style="font-weight:normal;color:rgb(51,68,102)">[Select]</a></div><code class="" style="display:block;font-family:'courier new','times new roman',monospace;font-size:x-small;border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);line-height:1.3em;padding:3px 1em;overflow:auto;white-space:pre;max-height:24em;background:rgb(238,238,238)">sudo chmod 755 /usr/local/bin/local-weather</code><br>Now link the files to the correct places..<br><div class="" style="font-size:0.9em;font-weight:bold;padding-left:5px">Code: <a class="" style="font-weight:normal;color:rgb(51,68,102)">[Select]</a></div><code class="" style="display:block;font-family:'courier new','times new roman',monospace;font-size:x-small;border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);line-height:1.3em;padding:3px 1em;overflow:auto;white-space:pre;max-height:24em;background:rgb(238,238,238)">sudo ln -s /usr/local/bin/local-weather /etc/update-motd.d/98-local-weather</code><br>If you wish to run a customized script to run the info with out exiting and re-login into the server you can do this..<br><br>Now to create this I generally like to make sure i am back to where i usually start out when joining into the server.<div class="" style="font-size:0.9em;font-weight:bold;padding-left:5px">Code: <a class="" style="font-weight:normal;color:rgb(51,68,102)">[Select]</a></div><code class="" style="display:block;font-family:'courier new','times new roman',monospace;font-size:x-small;border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);line-height:1.3em;padding:3px 1em;overflow:auto;white-space:pre;max-height:24em;background:rgb(238,238,238)">cd ~</code>Now we are naming this file sinfo.sh <- you can name this what ever you like..<br><br><div class="" style="font-size:0.9em;font-weight:bold;padding-left:5px">Code: <a class="" style="font-weight:normal;color:rgb(51,68,102)">[Select]</a></div><code class="" style="display:block;font-family:'courier new','times new roman',monospace;font-size:x-small;border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);line-height:1.3em;padding:3px 1em;overflow:auto;white-space:pre;max-height:24em;background:rgb(238,238,238)">nano sinfo.sh</code><br><div class="" style="font-size:0.9em;font-weight:bold;padding-left:5px">Code: <a class="" style="font-weight:normal;color:rgb(51,68,102)">[Select]</a></div><code class="" style="display:block;font-family:'courier new','times new roman',monospace;font-size:x-small;border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);line-height:1.3em;padding:3px 1em;overflow:auto;white-space:pre;max-height:24em;background:rgb(238,238,238)">#!/bin/sh<br>run-parts --lsbsysinit /etc/update-motd.d 2>/dev/null</code><br><br>Now to run the command you will typ sh sinfo.sh<br><br>Here is an example of what it could show..<br><br><div class="" style="font-size:0.9em;font-weight:bold;padding-left:5px">Code: <a class="" style="font-weight:normal;color:rgb(51,68,102)">[Select]</a></div><code class="" style="display:block;font-family:'courier new','times new roman',monospace;font-size:x-small;border-top-width:1px;border-top-style:solid;border-top-color:rgb(0,0,0);border-bottom-width:1px;border-bottom-style:solid;border-bottom-color:rgb(0,0,0);line-height:1.3em;padding:3px 1em;overflow:auto;white-space:pre;max-height:24em;background:rgb(238,238,238)">Welcome to Ubuntu 14.04.4 LTS (GNU/Linux 3.13.0-85-generic x86_64)<br><br> * Documentation:  <a href="https://help.ubuntu.com/">https://help.ubuntu.com/</a><br>Ubuntu 14.04.4 LTS<br><br>server    :<br>ip        : 192.99.13.90<br>hostname  : <a href="http://server.lorentedford.com">server.lorentedford.com</a><br><br><br>  System information as of Fri May  6 18:13:25 CDT 2016<br><br>  System load:    0.57              Processes:           247<br>  Usage of /home: 12.2% of 1.71TB   Users logged in:     1<br>  Memory usage:   33%               IP address for eth0: 192.99.13.90<br>  Swap usage:     0%<br><br>  Graph this data and manage this system at:<br>    <a href="https://landscape.canonical.com/">https://landscape.canonical.com/</a><br><br><br>Searching via station...<br>[caching result Olney-Noble, Olney-Noble Airport, IL, United States]<br>Current conditions at Olney-Noble, Olney-Noble Airport<br>Last updated May 06, 2016 - 06:55 PM EDT / 2016.05.06 2255 UTC<br>   Temperature: 71 F (22 C)<br>   Relative Humidity: 43%<br>   Wind: from the W (280 degrees) at 8 MPH (7 KT)<br>   Sky conditions: clear<br><br>loren@server:~$<br><br></code></div></div><img src="http://forum.kc9zhv.com/Themes/OmegaPurple/images/icons/modify_inline.gif" alt="Modify message" title="Modify message" class="" id="modify_button_301" style="clear: right; float: right; margin: 8px 20px 10px 0px; text-align: right;"></div><div class="" style="margin:0px 0px 0px 16em;clear:right"><div class="" id="modified_301" style="font-size:0.85em;font-family:verdana,sans-serif;float:left;color:rgb(0,0,0);line-height:16.224px;background-color:rgb(231,234,239)"></div></div></div><div>I hope this is useful to those of you that like to monitor system resources!</div><div><br></div><div><br></div><div><br></div><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div style="font-family:arial;font-size:small">Loren Tedford (KC9ZHV) <br>Email: <a href="mailto:lorentedford@gmail.com" style="color:rgb(17,85,204)" target="_blank">lorentedford@gmail.com</a></div><div style="font-family:arial;font-size:small"><a href="http://www.lorentedford.com/" style="color:rgb(17,85,204)" target="_blank">http://www.lorentedford.com</a></div><div style="font-family:arial;font-size:small"><a href="http://www.kc9zhv.com" target="_blank">http://www.kc9zhv.com</a></div><div style="font-family:arial;font-size:small"><a href="http://forum.kc9zhv.com" target="_blank">http://forum.kc9zhv.com</a></div><div style="font-family:arial;font-size:small"><a href="http://hub.kc9zhv.com" target="_blank">http://hub.kc9zhv.com</a></div><div style="font-family:arial;font-size:small"><span style="font-family:arial,sans-serif"><a href="http://www.newwavesucks.com" target="_blank">http://www.newwavesucks.com</a></span><br></div><div style="font-family:arial;font-size:small"><a href="http://forum.newwavesucks.com" target="_blank">http://forum.newwavesucks.com</a></div></div></div></div></div></div></div></div></div></div></div>
</div>