how NOT to have "landscape" related message when log in SSH

Soo-Hyun Choi s.choi at hackers.org.uk
Tue Nov 25 19:59:54 UTC 2008


Hi Chris,

This is what I have been looking for.

Many thanks,
Soo-Hyun



On Tue, Nov 25, 2008 at 6:29 PM, Chris Mohler <cr33dog at gmail.com> wrote:
> On Wed, Nov 26, 2008 at 11:37 AM, Loïc Grenié <loic.grenie at gmail.com> wrote:
> [...]
>>    In file /usr/lib/python2.5/site-packages/landscape/sysinfo/landscapelink.py,
>>  you have the function that prints the message. You can modify it as you wish.
>>  (I cannot help you with python because I don't know anything about it except
>>  that *I* hate its look, but that is absolutely personal).
>
> Change this (landscapelink.py):
>
>    def run(self):
>        self._sysinfo.add_footnote(
>            "Graph this data and manage this system at "
>            "https://landscape.canonical.com/")
>        return succeed(None)
>
> To this:
>
>    def run(self):
> #        self._sysinfo.add_footnote(
> #           "Graph this data and manage this system at "
> #            "https://landscape.canonical.com/")
>        return succeed(None)
>
> Or this:
>    def run(self):
>        self._sysinfo.add_footnote("")
>        return succeed(None)
>
> Be careful of indentation - Python requires the indent level to be
> precise (also no mixing of tabs and spaces).  Eric is a decent Python
> GUI editor that will show you if you have indentation errors.  Of
> course, any editor should be fine ;)
>
> HTH,
> Chris
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>




More information about the ubuntu-users mailing list