SOLVED how to display sysinfo at login?

The place to post if you need help or advice

Moderators: ChrisThornett, LXF moderators

SOLVED how to display sysinfo at login?

Postby purplepenguin » Sun Apr 21, 2013 5:23 pm

Hi all

I have a Ubuntu 12.04 server. which I logon to via ssh over my LAN.

I'm pretty sure the server used to display a message upon logon Along the lines of:

Welcome to Ubuntu, Ubuntu comes with absolutely no warranty. Then gave details about system load, Users who were logged on, IP address and any waiting updates amongst others.

Looking around on the web it seems this info is provided by landscape. I have landscape installed and can get the message if I type
Code: Select all
/usr/bin/landscape-sysinfo
Albeit without the Welcome to Ubuntu and warranty bit.

How can I get this info automatically after a ssh login?

Many thanks
PP
Last edited by purplepenguin on Mon Apr 22, 2013 11:41 am, edited 1 time in total.
So it looks like I'm back to LinuxMint again. Why you ask? Because my machine smell nicer.

I'm not too sure I'd want a Mint and Cinnamon muffin with my brew though. Guess I'm lucky they don't run my local bakery.
purplepenguin
LXF regular
 
Posts: 133
Joined: Wed Oct 05, 2011 2:19 pm
Location: Blissfully at the Command Line

Postby nelz » Sun Apr 21, 2013 6:15 pm

Put the commands you want executed in ~/.bash_profile (not ~/.bashrc).
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8553
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby Rhakios » Sun Apr 21, 2013 8:39 pm

Which raises the question of why it runs automagically normally. I don't have a .bash_profile in my server's user home (there is a .profile, but it just refers to /etc/profile), it's not in the .bashrc either. I've also had a look in /etc/bashrc, /etc/profile and the files in /etc/profile.d, nothing there either. :?
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

Postby nelz » Sun Apr 21, 2013 9:40 pm

I was only answering how to make it appear, not how to stop it :P
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8553
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK

Postby purplepenguin » Mon Apr 22, 2013 11:40 am

nelz wrote:Put the commands you want executed in ~/.bash_profile (not ~/.bashrc).


God blimey Nelz. Your knowledge never fails to amaze.

I didn't have a .bash_profile file. Instead I have a .profile file. So I added the command to the end of it, and Woo Hoo it worked.

Thank you to the Godfather of Linux :lol:

Edit*

I added the command to /etc/profile and now it works for all users.
So it looks like I'm back to LinuxMint again. Why you ask? Because my machine smell nicer.

I'm not too sure I'd want a Mint and Cinnamon muffin with my brew though. Guess I'm lucky they don't run my local bakery.
purplepenguin
LXF regular
 
Posts: 133
Joined: Wed Oct 05, 2011 2:19 pm
Location: Blissfully at the Command Line

Postby Rhakios » Mon Apr 22, 2013 6:01 pm

nelz wrote:I was only answering how to make it appear, not how to stop it :P


Aha! So you don't know then. :P
Bye, Rhakios
User avatar
Rhakios
Moderator
 
Posts: 7634
Joined: Wed Apr 06, 2005 11:18 pm
Location: Midlands, UK

Postby nelz » Mon Apr 22, 2013 9:49 pm

I'm saving that reply for... when I know the answer ;-)

Life is so much simpler with KDE and Konsole :P
"Insanity: doing the same thing over and over again and expecting different results." (Albert Einstein)
User avatar
nelz
Site admin
 
Posts: 8553
Joined: Mon Apr 04, 2005 11:52 am
Location: Warrington, UK


Return to Help!

Who is online

Users browsing this forum: Yahoo [Bot] and 0 guests