how NOT to have "landscape" related message when log in SSH
Chris Mohler
cr33dog at gmail.com
Tue Nov 25 18:29:26 UTC 2008
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
More information about the ubuntu-users
mailing list