• Home
  • Archive
  • Tools
  • Contact Us

The Customize Windows

Technology Journal

  • Cloud Computing
  • Computer
  • Digital Photography
  • Windows 7
  • Archive
  • Cloud Computing
  • Virtualization
  • Computer and Internet
  • Digital Photography
  • Android
  • Sysadmin
  • Electronics
  • Big Data
  • Virtualization
  • Downloads
  • Web Development
  • Apple
  • Android
Advertisement
You are here: Home » Enable Ubuntu System Information After SSH Login

By Abhishek Ghosh December 21, 2015 12:15 pm Updated on December 21, 2015

Enable Ubuntu System Information After SSH Login

Advertisement

We talked about MOTD in the previous article (it is quite important to open the link and read it, we will not repeat the same information in this article). The Banner Message Shown before is different and that also discussed.
The Banner Message Which Shows Memory usage & Other Useful Info By Default Can Be Disabled. Enable Ubuntu System Information After SSH Login. Here is How to Enable Ubuntu System Information After SSH Login. If you have this message after successful SSH :

Vim
1
Last login: Sun Dec 20 19:42:57 2015 from 115.168.0.7

and want to change to this :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Welcome to Ubuntu 14.04.3 LTS (GNU/Linux 3.2.0-29-virtual x86_64)
 
* Documentation:  https://help.ubuntu.com/
 
  System information as of Sun Dec 20 19:48:57 UTC 2015
 
  System load:  0.08              Processes:           20
  Usage of /:   11.4% of 300 GB   Users logged in:     0
  Memory usage: 1%                IP address for eth0: 10.01.01.18
  Swap usage:   0%
 
  Graph this data and manage this system at https://landscape.canonical.com/
 
21 packages can be updated.
12 updates are security updates.

this guide will serve that purpose.

Advertisement

---

 

Enable Ubuntu System Information After SSH Login : Packages are Not Installed

 

Web Hosts compile the distributions according to their need. Usually some packages are not installed to keep the Operating System lighter. If you run this command :

Vim
1
landscape-sysinfo

and that throws the error that packages are not installed, you have to installed them. If the command returns a right System Information, then also read ahead. The official manual pages are here :

Vim
1
2
http://manpages.ubuntu.com/manpages/lucid/en/man5/update-motd.5.html
http://manpages.ubuntu.com/manpages/wily/en/man1/landscape-sysinfo.1.html

In case, you the landscape-sysinfo command returned a right System Information but nothing coming after login, check these two files by running cat on them :

Vim
1
2
cat /etc/update-motd.d/50-landscape-sysinfo
cat /etc/update-motd.d/90-updates-available

In case, the landscape-sysinfo command returned the error that packages are not installed, then you need to run 2 commands or rather two packages. We suggest to run the commands one by one :

Vim
1
2
apt-get install landscape-common    
apt-get install update-notifier-common

Now, run :

Vim
1
landscape-sysinfo

It will take around 10 minutes for the scripts to be in properly informative condition. Reboot the server.

 

Enable Ubuntu System Information After SSH Login : Modification and Other Stuffs

 

The MOTD is generated from scripts and stuffs from these four places:

  1. Scripts in /etc/update-motd.d/
  2. Compiled binaries controlled by /etc/pam.d/login
  3. /etc/legal file
  4. /etc/ssh/sshd_configl file

In the /etc/ssh/sshd_config file, PrintLastLog controls the “Last login: …” message, it is quite complicated, not exactly setting it to No will vanish it. If you run cat on /etc/update-motd.d/50-landscape-sysinfo and /usr/bin/landscape-sysinfo, you will see the coding part. We set for the MOTD using the /etc/landscape/client.conf configuration file:

Vim
1
2
3
4
...
[sysinfo]
exclude_sysinfo_plugins = Memory
...

We need to remove the advert :

Vim
1
Graph this data and manage this system at https://landscape.canonical.com/

/etc/landscape/client.conf should be owned by landscape user for the settings to take effect. Not only /etc/landscape/client.conf need to be owned by the user landscape, it should belong to the group landscape. Check by running ls -al command. Run sudo chown landscape like command to get the proper ownership. This is related to cloud-init.

In the /etc/landscape/client.conf file, add lines these :

Vim
1
[sysinfo] exclude_sysinfo_plugins = LandscapeLink

If still, you can not get rid of that Graph this data and manage this system at..., run this command to find the path of landscapelink.py file :

Vim
1
locate landscape | xargs grep Graph

Take that, landscapelink.py file is located at /usr/../../../../landscapelink.py, open that file :

/usr/../../../../landscapelink.py
Vim
1
2
3
4
5
6
7
...
    def run(self):
        self._sysinfo.add_footnote(
            "Graph this data and manage this system at "
            "https://landscape.canonical.com/")
        return succeed(None)
...

comment out :

/usr/../../../../landscapelink.py
Vim
1
2
3
4
5
...
 
#        self._sysinfo.add_footnote(
#            "Graph this data and manage this system at "
#            "https://landscape.canonical.com/")

Run :

Vim
1
sudo update-motd

Other plugins related to /etc/landscape/client.conf are :

Vim
1
Load, Disk, Memory, Temperature, Processes, LoggedInUsers, LandscapeLink, Network

If we remove more, we need to add by adding comma as separator :

Vim
1
[sysinfo] exclude_sysinfo_plugins = LandscapeLink,Temperature

We can test the look before editing :

Vim
1
landscape-sysinfo --exclude-sysinfo-plugins=Temperature,LandscapeLink,Processes

Editing /etc/update-motd.d/50-landscape-sysinfo also will work, which by default is :

Vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
cores=$(grep -c ^processor /proc/cpuinfo 2>/dev/null)
[ "$cores" -eq "0" ] && cores=1
threshold="${cores:-1}.0"
if [ $(echo "`cut -f1 -d ' ' /proc/loadavg` < $threshold" | bc) -eq 1 ]; then
    echo
    echo -n "  System information as of "
    /bin/date
    echo
    /usr/bin/landscape-sysinfo
else
    echo
    echo " System information disabled due to load higher than $threshold"
fi

Definitely, you can edit it. If echo like command can be executed, all normal commands can be executed. Always take backup of the default file, change by editing, then run :

Vim
1
landscape-sysinfo

to check before reboot or exiting SSH session. It can throw errors and freeze the system due to some security related bugs. Normal commands will not create any problem.

Just as extra information, Archey is a tool written in Python that allows users to preview system information along with your Linux distribution logo on the terminal. To install it, run :

Vim
1
2
3
sudo apt-get install lsb-release scrot
wget http://github.com/downloads/djmelik/archey/archey-0.2.8.deb
sudo dpkg -i archey-0.2.8.deb

The command which evokes it is archey. That looks like this :

Enable Ubuntu System Information After SSH Login

How you’ll use it that is your matter. screen fetch is another such utility.

Tagged With ssh show system info on login , linux system information on login , install landscale-sysinfo ubuntu 20 10 , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1838 E_IklCNH3fVaQt93Rak00O0Q51YGB7BtqMb2sJo8Vsx_WU4pN3PNYhcMl74jRCiY 312cb068f226e5ba2689f21e416a4f2ac089fab6&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1837 C_lRnIbSMFA2rbK-0J2_qCdXcap4y1-lFx6yIMXZpUzNq7OxmYzvLsXgwriK43M5 b85e920dadaee8b1de810ce5e347e3ce98572416&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1836 8-RFqMGSJdGSaXRn4AP5CD5AL4frx3rjNuKiFVy0Jh0XzkL089kAPqKh4HuyIKBK 8ff15198dcde17b4bb7dcbf27d40cf187f024d17&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , https://yandex ru/clck/jsredir?from=yandex ru;search;web;;&text=&etext=1826 nD2UXlOu8smCk0k3jB9aHVM_rhEft3UNQ0JIVdq15Pc4cTCHVQFB6-j8BKuhfU6q 864cf181fd0c1e796811f527ce08b57f87ce6d26&uuid=&state=_BLhILn4SxNIvvL0W45KSic66uCIg23qh8iRG98qeIXme , how to run sysinfo in motd ubuntu , how to enable ubuntu system info , welcome ubuntu shell message

This Article Has Been Shared 200 Times!

Facebook Twitter Pinterest

Abhishek Ghosh

About Abhishek Ghosh

Abhishek Ghosh is a Businessman, Surgeon, Author and Blogger. You can keep touch with him on Twitter - @AbhishekCTRL.

Here’s what we’ve got for you which might like :

Articles Related to Enable Ubuntu System Information After SSH Login

  • Cloud Computing XaaS : Approaches and Possibilities

    Cloud Computing XaaS is an approach towards everything to provide as a service to make available and consume like we use electricity.Read the important aspects.

  • Cloud Computing is Becoming the Norm

    Cloud Computing is expanding more than it was calculated. As calculated,Cloud architectures will overtake in the next 3 years,over traditional IT architectures.

  • Core Components of Cloud Computing

    Core Components of Cloud Computing platform includes the identity and authorization management apart from virtualization software, hardwares and network used.

  • Points to Consider While Switching to Cloud Computing

    Points to Consider While Switching to Cloud Computing should be given importance for both web applications and enterprise applications, simply to save money.

  • Cloud Computing Articles : Compilation of Important Articles

    Cloud Computing articles compiles 750+ articles we have published so far up to date separating them in sub categories which can be helpful to any level of user.

Additionally, performing a search on this website can help you. Also, we have YouTube Videos.

Take The Conversation Further ...

We'd love to know your thoughts on this article.
Meet the Author over on Twitter to join the conversation right now!

If you want to Advertise on our Article or want a Sponsored Article, you are invited to Contact us.

Contact Us

Subscribe To Our Free Newsletter

Get new posts by email:

Please Confirm the Subscription When Approval Email Will Arrive in Your Email Inbox as Second Step.

Search this website…

 

Popular Articles

Our Homepage is best place to find popular articles!

Here Are Some Good to Read Articles :

  • Cloud Computing Service Models
  • What is Cloud Computing?
  • Cloud Computing and Social Networks in Mobile Space
  • ARM Processor Architecture
  • What Camera Mode to Choose
  • Indispensable MySQL queries for custom fields in WordPress
  • Windows 7 Speech Recognition Scripting Related Tutorials

Social Networks

  • Pinterest (24.3K Followers)
  • Twitter (5.8k Followers)
  • Facebook (5.7k Followers)
  • LinkedIn (3.7k Followers)
  • YouTube (1.3k Followers)
  • GitHub (Repository)
  • GitHub (Gists)
Looking to publish sponsored article on our website?

Contact us

Recent Posts

  • Advantages of Cloud Server Over Dedicated Server for Hosting WordPress March 26, 2023
  • Get Audiophile-Grade Music on Your Smartphone March 25, 2023
  • Simple Windows Security and Privacy Checklist for 2023 March 24, 2023
  • 7 Best Artificial Intelligence (AI) Software March 24, 2023
  • ESP32 Arduino Water Tank Level Monitoring Using Laser ToF Sensor March 23, 2023

About This Article

Cite this article as: Abhishek Ghosh, "Enable Ubuntu System Information After SSH Login," in The Customize Windows, December 21, 2015, March 27, 2023, https://thecustomizewindows.com/2015/12/enable-ubuntu-system-information-after-ssh-login/.

Source:The Customize Windows, JiMA.in

PC users can consult Corrine Chorney for Security.

Want to know more about us? Read Notability and Mentions & Our Setup.

Copyright © 2023 - The Customize Windows | dESIGNed by The Customize Windows

Copyright  · Privacy Policy  · Advertising Policy  · Terms of Service  · Refund Policy

We use cookies on our website to give you the most relevant experience by remembering your preferences and repeat visits. By clicking “Accept”, you consent to the use of ALL the cookies.
Do not sell my personal information.
Cookie SettingsAccept
Manage consent

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. These cookies ensure basic functionalities and security features of the website, anonymously.
CookieDurationDescription
cookielawinfo-checkbox-analytics11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Analytics".
cookielawinfo-checkbox-functional11 monthsThe cookie is set by GDPR cookie consent to record the user consent for the cookies in the category "Functional".
cookielawinfo-checkbox-necessary11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookies is used to store the user consent for the cookies in the category "Necessary".
cookielawinfo-checkbox-others11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Other.
cookielawinfo-checkbox-performance11 monthsThis cookie is set by GDPR Cookie Consent plugin. The cookie is used to store the user consent for the cookies in the category "Performance".
viewed_cookie_policy11 monthsThe cookie is set by the GDPR Cookie Consent plugin and is used to store whether or not user has consented to the use of cookies. It does not store any personal data.
Functional
Functional cookies help to perform certain functionalities like sharing the content of the website on social media platforms, collect feedbacks, and other third-party features.
Performance
Performance cookies are used to understand and analyze the key performance indexes of the website which helps in delivering a better user experience for the visitors.
Analytics
Analytical cookies are used to understand how visitors interact with the website. These cookies help provide information on metrics the number of visitors, bounce rate, traffic source, etc.
Advertisement
Advertisement cookies are used to provide visitors with relevant ads and marketing campaigns. These cookies track visitors across websites and collect information to provide customized ads.
Others
Other uncategorized cookies are those that are being analyzed and have not been classified into a category as yet.
SAVE & ACCEPT