** Project changed: screenlets = indiv-screenlets
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/618868
Title:
sysmonitor screenlet fails to find the computer's IP address
--
ubuntu-bugs mailing
Copied an equivalent of Rivera's solution from U-A.
** Changed in: screenlets
Status: Triaged = Fix Committed
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/618868
Title:
sysmonitor
Easy solution: call ifconfig with an environment of LANG=C
--
sysmonitor screenlet fails to find the computer's IP address
https://bugs.launchpad.net/bugs/618868
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing
Another possibility that directly gives the right result and uses
ifconfig:
$ ifconfig | grep 'inet '| grep -v '127.0.0.1' | cut -d: -f2 | awk '{
print $1}'
That said, I don't know if the inet string stays the same in every
locale, though.
--
sysmonitor screenlet fails to find the computer's
Maybe there is another way to find the IP adress, which doesn't change with the
locale ?
Anyway, I'm re-open the bug, we need to find another fix.
** Changed in: screenlets (Ubuntu)
Status: Fix Released = Triaged
** Changed in: screenlets
Status: Fix Committed = Triaged
**
Yes, there is another way: using the command ip from the net-tools package
instead of ifconfig. This package is installed by default in Ubuntu. Don't know
for other distributions.
Use it like this:
$ ip addr show
On my machine, it prints this:
$ ip addr show
1: lo: LOOPBACK,UP,LOWER_UP mtu
Something like this should work:
def net_get_ip(): # by Whise
Returns ip if it can
ip = commands.getoutput(ip -o -4 addr show)
x = 0
while True:
ip = ip[ip.find(inet ):]
ip = ip[5:]
ipc = ip[:ip.find(/)]
** Tags added: patch
--
sysmonitor screenlet fails to find the computer's IP address
https://bugs.launchpad.net/bugs/618868
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
Hello. On Maverick ifconfig returns inet addr with two 'd's and on a
different machine with lucid I also see 'inet addr'. Thus this patch is
a regression for me as the sysmonitor does not show the ip anymore.
Kind regards
--
sysmonitor screenlet fails to find the computer's IP address
My analysis of the problem was quite weak, sorry On MY machine, ifconfig still
returns inet adr with only one d.
Actually, the problem is a problem of locale. In your english ( I presume)
version, it has two d but in mine which is a french version of Maverick,
inet adr has only one d.
What is
Committed in revision 479 of screenlets trunk.
** Also affects: screenlets
Importance: Undecided
Status: New
** Changed in: screenlets
Status: New = Fix Committed
** Changed in: screenlets
Importance: Undecided = Low
--
sysmonitor screenlet fails to find the computer's IP
** Branch linked: lp:screenlets
--
sysmonitor screenlet fails to find the computer's IP address
https://bugs.launchpad.net/bugs/618868
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
This bug was fixed in the package screenlets - 0.1.2-7ubuntu2
---
screenlets (0.1.2-7ubuntu2) maverick; urgency=low
* debian/patches/21-return-ip-address.patch:
- Fix screenlets.sensors.net_get_ip() to get the IP address. Thanks
Michel Leunen for the patch. (LP: #618868)
Yep, the problem is fixed with the package in your ppa.
Thanks for your fast response.
Le 20/08/10 00:05, Julien Lavergne a écrit :
Thank you for your bug report and the proposed fix. Could you try with
the screenlets package in my PPA :
https://launchpad.net/~gilir/+archive/unstable and
** Changed in: screenlets (Ubuntu)
Status: Incomplete = In Progress
** Changed in: screenlets (Ubuntu)
Assignee: (unassigned) = Julien Lavergne (gilir)
--
sysmonitor screenlet fails to find the computer's IP address
https://bugs.launchpad.net/bugs/618868
You received this bug
Thank you for your bug report and the proposed fix. Could you try with
the screenlets package in my PPA :
https://launchpad.net/~gilir/+archive/unstable and report back if the
problem is fixed for you ?
** Changed in: screenlets (Ubuntu)
Importance: Undecided = Low
** Changed in: screenlets
** Changed in: screenlets (Ubuntu)
Assignee: (unassigned) = Julien Lavergne (gilir)
--
sysmonitor screenlet fails to find the computer's IP address
https://bugs.launchpad.net/bugs/618868
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to
17 matches
Mail list logo