KNemo

Network by jstamp 805 comments

This week. :-) - Jul 26 2004
KNemo

Network by jstamp 805 comments

Hi,

there is no website other than this for KNemo. KNemo is just a hobby of mine, so I don't feel to setup and maintain a website for it. Even not on SourceForge.

I think for a small program like KNemo this forum is quite enough.

The upcoming 0.2.0 will have a nice traffic plotter. Next versions will support more statistics and a dynamic number of menu entries in the context menu. This way the user can have entries for NetGo or KNetworkConf to configure their interfaces. - Jul 25 2004
KDE Splash 3.3

KDE 3.x Splash Screens by leinir 2 comments

Leinir, you rock!

Master of simplicity and style, pleasing to the eye, calming for the mind!

Thank you! :-) - Jul 21 2004
KNemo

Network by jstamp 805 comments

I think you need to install Qt and the Qt development packages.

They should be named 'libqt...' and 'libqt-devel...'. After this, try configure again. - Jul 17 2004
KNemo

Network by jstamp 805 comments

Hi Hackhound,

I have written a short instruction on how to successfully install KNemo on Mandrake 10.0.

I've tested it with 10.0 Download Edition and for me the solution worked. So please take a look at the following document, follow the steps in it and tell me if it worked for you too!

http://www.eris23.de/knemo/INSTALL.Mandrake

It may be neccessary to open the configuration dialog manually by running

kcmshell /usr/share/applnk/Settings/Network/kcm_knemo

on the console after you have installed KNemo with the above solution, because KNemo won't display any icons in the system traybar until it is configured to do so. - Jul 17 2004
KNemo

Network by jstamp 805 comments

Oh nice,

I think this is a much more elegant solution than a dynamic list of commands in the context menu. :-) - Jul 15 2004
KNemo

Network by jstamp 805 comments

Sure here they are:

Change line 238 in the file knemod/interfaceicon.cpp and line 59 in the file knemod/knemodaemon.cpp from


process << "kcmshell" << "kcm_knemo";

to

process << "kcmshell" << "/usr/share/applnk/Settings/Network/kcm_knemo";

In order to get the entry for the configuration dialog in the control
center please copy the file kcm_knemo.desktop from /usr/share/applnk/Settings/Network to /usr/share/applnk-mdk/System/Configuration/KDE/Network.

Let me know if this works and if you also need the 'configure --prefix=/usr'. - Jul 14 2004
KNemo

Network by jstamp 805 comments

Let me meditate over this... :-) - Jul 14 2004
KNemo

Network by jstamp 805 comments

Oh yes, I had the same behaviour lately with my modem connection it displayed 4GB traffic. The problem is that KNemo calls 'ifconfig' every second but when calling it for the first time it takes the reported values for 'sent' and 'received' and stores them. It seems that when calling 'ifconfig' in a "bad moment" i.e. directly after the connection has been established it will deliver these false values. When the next call to 'ifconfig' delivers good values KNemo will ignore them as it counts the transfered bytes on itself.

So the problem is clear, the solution isn't.

> BTW I wish to hide all entries except my customized "start/stop" entries from
> the context menu. Could you make it possible that I can add more than 2
> commands to the context menu?

I put start and stop at the bottom of the list so you don't have to move over all other entries with the mouse before reaching them. I thought that this is enough for 'ease of use'.

I'm already thinking if adding a third configurable entry which people can use to configure the interface by calling 'NetGo' or 'KNetworkConf'. But the entry will allow you to insert any command you wish, so yes, a third entry is on its way. - Jul 13 2004
KNemo

Network by jstamp 805 comments

Good to hear! :-) - Jul 13 2004
KNemo

Network by jstamp 805 comments

> why did you make the "connect" and "disconnect" commands off by default?

I thought that this would be the most meaningful selection for most people... sometimes even KDE people try to learn from Gnome and try to have good defaults in their applications. ;-) - Jul 13 2004
KNemo

Network by jstamp 805 comments

> I do not need to reopen the configuration panel since there is
> nothing I need to change but I just ran a check of everything and found
> that the Config.panel would not open.

Hmm, does this mean that your solution, to run configure --prefix=/usr, does not work? - Jul 13 2004
KNemo

Network by jstamp 805 comments

Thanks for the positive feedback! I never thought that the program would reach such a high acceptance in the community. :-) - Jul 13 2004
KNemo

Network by jstamp 805 comments

These are not my ebuilds, I just host them on my webspace. They were made by the German translator. ;-) - Jul 13 2004
KNemo

Network by jstamp 805 comments

Maybe you also want to try these one:

http://www.eris23.de/knemo/knemo_icons.tar.bz2

They were made by MDonoughe and have more contrast than the original ones. - Jul 12 2004
KNemo

Network by jstamp 805 comments

Hi John,

great to hear that it works for you now!

About the icon, it is hard to offer something bigger because system tray icons are limited to 22x22 pixel.

But maybe you want to try these one, they are a bit larger than the ones I made:

http://kde-look.org/content/show.php?content=13857 - Jul 12 2004
KNemo

Network by jstamp 805 comments

> [john@BIGPOND john]$ su

Don't change to root as long as you don't want to use KNemo as root. But then you should login to KDE as root anyway...

Try 'kcmshell kcm_knemo' again as user john. You can ignore those messages about 'mutex destroy', I have seen them many times and they are not related to KNemo nor do they cause trouble.

Try the 'dcop kded kded loadModule knemod' also as user john and see if this works better. - Jul 11 2004
KNemo

Network by jstamp 805 comments

Good to know it works.

I thought maybe there are people out there using the 3.3 Alpha and I guess it has version 3.2.90.

KDE_IS_VERSION checks if the version number is equal over larger so I think with 3.2.90 nothing can go wrong. - Jul 11 2004
KNemo

Network by jstamp 805 comments

If you are using KDE-CVS then take a look at the new posting from Claymen as I have posted a preliminary solution there. - Jul 11 2004
KNemo

Network by jstamp 805 comments

Ah, thanks for the KDE-CVS hint, this is indeed the problem. Could you please test the following fix:

open knemod/interfacetray.cpp and replace the line 106

about.setIcon( SmallIcon( "network_local" ) );

with the following lines:

#if KDE_IS_VERSION(3,2,90) // cvs
about.setIcon( KGlobal::iconLoader()->iconPath( "network_local", -1 ) );
#else
about.setIcon( SmallIcon( "network_local" ) );
#endif

and tell me if it compiles for you! - Jul 11 2004
KNemo

Network by jstamp 805 comments

Hi John,

kcm_knemo is the desktop file for the configuration dialog and has nothing do to with the daemon (program) itself. To check if this module is installed correct run

kcmshell kcm_knemo

on the console and it should show the KNemo configuration dialog.

> Have rebooted but cannot find anything in Mandrake Control Centre
> that even vaguely looks like knemo in "Network and Internet" or in "Systems
> ---> Services".

I don't know about the Systems -> Services menu, this does seem to be a special Mandrak menu. "Network and Internet" should contain an entry "Network Monitor" which should open the configuration dialog if kcm_knemo.desktop is installed correct.

The other thing is the daemon itself that you have to start before you can do something useful with the configuration dialog. Open KDE control center, KDE Components, Service Manager and in the list you should find an entry "KNemo" beside entries like "KMilo" or "KWriteDaemon". Use this dialog to start KNemo. If you can't find it here try on the console

dcop kded kded loadModule knemod

If this returns 'false' there are more problems with Mandrake installations than expected. Maybe some Mandrake 10 user can come up with a complete list of changes neccessary to install KNemo successfully. - Jul 11 2004
KNemo

Network by jstamp 805 comments

Maybe the KNemo library gets installed in the wrong place. You could try

dcop kded kded loadModule knemod

and see if it returns 'true' or 'false'.

The library should be installed in $KDEDIR/lib/kde3/kded_knemod.la, same for the control center module.

But I guess the easiest solution would be the mentioned RPM. - Jul 10 2004
KNemo

Network by jstamp 805 comments

See, the interface has an IP address assigned ans is reported as UP and RUNNING.

How should KNemo know that the network cable was unplugged? - Jul 10 2004
KNemo

Network by jstamp 805 comments

Strange, I don't know why it does not compile for you. Sort of Qt issue because the function 'setIcon' belongs to QWidget. But in your case it doesn't.

Easiest fix is to open knemod/interfacetray.cpp and delete line 106

about.setIcon( SmallIcon( "network_local" ) );

It is not essential for KNemo to work. - Jul 10 2004
KNemo

Network by jstamp 805 comments

If you don't post the errors that 'make' produces it is hard to iron them out. :-) - Jul 10 2004
KNemo

Network by jstamp 805 comments

Please post the output of 'ifconfig' for this interface, so I can take a look what's going wrong.

Also note that KNemo is only a network monitor. It is kind of a graphical frontend for 'ifconfig' and 'iwconfig' and does not take care about configuring the network interfaces.

When you unplug the network cable but there is still an IP address assigned to this interface KNemo will report is as 'connected' because there is no way for KNemo to detect the removal of the cable. There are programs like 'ifplugd' and 'laptop-net' for this. - Jul 10 2004
KNemo

Network by jstamp 805 comments

from my config.log:

configure:26222: checking crt_externs.h usability
configure:26234: gcc -c -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat-security -Wmissing-format-attribute conftest.c >&5
conftest.c:73:25: crt_externs.h: No such file or directory


configure:10322: checking for shl_load
configure:10379: gcc -o conftest -ansi -W -Wall -Wchar-subscripts -Wshadow -Wpointer-arith -Wmissing-prototypes -Wwrite-strings -D_XOPEN_SOURCE=500 -D_BSD_SOURCE -O2 -Wformat-security -Wmissing-format-attribute conftest.c >&5
/tmp/ccWVFWWc.o(.text+0x11): In function `main':
: undefined reference to `shl_load'
/tmp/ccWVFWWc.o(.data+0x0): undefined reference to `shl_load'


And KNemo compiles fine on my machine. So, no, they are not needed. :-) - Jul 08 2004
KNemo

Network by jstamp 805 comments

Ok, I compared with my config.log and I have the same errors that relate to 'choke me', 'ac_nonexistant.h' and missing 'exit', so they don't seem to be real problems, just a note.

libjpeg6b is also not present on my system but I have a libjpeg. Configure finds the header file in /usr/include/jpeglib.h.

So my guess is: make sure that libjpeg is installed and that the development package for libjpeg is also installed.

If configure still fails it is important what configure tells abouth the reason. On every error in the config.log is related to real problems. - Jul 08 2004
KNemo

Network by jstamp 805 comments

Could you please post the lines that relate to libjpeg with complete error message. - Jul 07 2004
Reinhardt Concentric

Wallpaper Other by leinir 8 comments

Oh yes, after reading it for the 4th and 5th time it made 'click'. ;-) - Jul 02 2004
Reinhardt Concentric

Wallpaper Other by leinir 8 comments

> You need to use the PNG.

There is no PNG in the download. Intention? - Jul 02 2004
Reinhardt Concentric

Wallpaper Other by leinir 8 comments

Here on my KDE 3.2.2 box it's also 'invisible'. Maybe a SVG issue as I have no problem with the transparent Reinhardt-Curve-png? - Jul 02 2004
KNemo

Network by jstamp 805 comments

Raul send me another version of the files, this time with UTF-8 encoding.

Please test! - Jul 02 2004
The Reinhardt Style (formely Slicker)

KDE 3.5 Themes by leinir 97 comments

But how is it done in other styles, for example Plastic, where the entries are much closer together? - Jul 01 2004
The Reinhardt Style (formely Slicker)

KDE 3.5 Themes by leinir 97 comments

Oh,

my simple mind thought that this is just some sort of integer that describes an offset/spacing (how many pixels between two menu entries) which one could configure with a spinbox. - Jul 01 2004
The Reinhardt Style (formely Slicker)

KDE 3.5 Themes by leinir 97 comments

Hi Leinir,

one thing I don't like about the style: the space between the menu entries. I know this is the same in dotNET style but for my personal taste the menus are to stretched.

What about an option to configure this? KDE is all about options options and options. ;-) - Jul 01 2004
The Reinhardt Style (formely Slicker)

KDE 3.5 Themes by leinir 97 comments

It's his own famous Reinhardt iconset:

http://kde-look.org/content/show.php?content=6153 - Jul 01 2004
KNemo

Network by jstamp 805 comments

Hi John,

seems to be a general problem with your Qt setup. Take a look at the file 'config.log' and search for the position where there is a check for Qt. You should find some sort of error that occured while doing the check.

This should help you fix the issue or post the relevant parts here so we can take a look at it. - Jul 01 2004
KNemo

Network by jstamp 805 comments

Could you please provide me with the output of 'iwconfig', that makes fixing it much easier!

Thanks! - Jun 30 2004
KNemo

Network by jstamp 805 comments

For all spanish users not using Debian here are 2 links to Pedros fixed po-files. Put them into the folder po/es/ and install them with 'make install' to get the fixed translation.

http://www.eris23.de/knemo/kcm_knemo.po
http://www.eris23.de/knemo/knemod.po - Jun 29 2004
KNemo

Network by jstamp 805 comments

Hi,

here is a mail I got from Raul who did the spanish translation:

"I forgot to make the translation using Utf-8 instead of ISO and some characters aren't correct :(
As soon as I can I'll send you a correct translation (and a rpm for FC2) with the new strings too..." - Jun 28 2004
KNemo

Network by jstamp 805 comments

Hi Yurii,

the problem why KNemo isn't working for you is that the output of 'ifconfig' under BSD is completly different from the output on Linux.

If you want to fix it for BSD take a look at the file knemod/interfaceupdater.cpp. There are a lot of regular expressions that read the information from the output of 'ifconfig' and that decide whether the interface is online or not.

If you need some support, let me know. :-) - Jun 24 2004
KNemo

Network by jstamp 805 comments

Hi Andrew,

KNemo does not use kconfig_compiler. So you can just open the configure file and delete everything from line 30450 to line 30515.

After removing the check for kconfig_compiler configure should finish successfully one KDE 3.1 and you can install KNemo with the normal 'make' and 'make install'.

Let me know if it still does not work. - Jun 20 2004
KNemo

Network by jstamp 805 comments

Except the 'description-line-too-long' messages all other seem to be related to packaging. The package was done by Diego Iastrubni (elcuco@kdemail.net).

Would you please let him now about the warnings that rpmlint generated! Thanks! - Jun 18 2004
KNemo

Network by jstamp 805 comments

> In fact, I have checked for the location of icons
> and the right place for Mandrake 10.0 distribution is in
> /usr/share/icons/crystalsvg/22x22/actions/.

So it's working for you now?

What was the problem/solution? - Jun 16 2004
KNemo

Network by jstamp 805 comments

> There is only default icons instead. I have looked for the good icons,
> they are in : /usr/share/apps/knemo/pics/.
> Maybe in the wrong place for this distribution?

KNemo 0.1.5 put the icons in this location but from 0.1.6 on they get installed in $KDEDIR/share/icons/crystalsvg/22x22/actions.

So maybe you are using an older version of KNemo? If so, please update.

Another possibility is the SRPM for Mandrake that was provided by
Diego Iastrubni, see the download link above. - Jun 16 2004
KNemo

Network by jstamp 805 comments

Could you please test the following solution and tell me if it works for you:

Open file knemod/interfaceupdater.cpp and replace line 175 with

QRegExp regExp( ".*RX.*:(\\d+).*:\\d+.*:\\d+.*:\\d+" );

and replace line 179 with

regExp.setPattern( ".*TX.*:(\\d+).*:\\d+.*:\\d+.*:\\d+" );

This way KNemo should be able to correctly parse the output of 'ifconfig' and change the icons according to the traffic. - Jun 15 2004
KNemo

Network by jstamp 805 comments

> pacotes RX:3387 erros:0 descart.:0 sobrepos.:0 quadro:0
> pacotes TX:3387 erros:0 descart.:0 sobrepos.:0 portadora:0

It is a problem with localized 'ifconfig' output and I wonder if it really worked with KNemo 0.1.6.

I will fix this and send you a modified sourcefile for testing. Might take 2 or 3 days. - Jun 15 2004
KNemo

Network by jstamp 805 comments

> is it a bug?

Obviously something is wrong. ;-)

I didn't touch the code for displaying the icons and checking for traffic in 0.1.7 so it should work just like 0.1.6 does.

When you open the status dialog of KNemo (left-clicking an icon) and change to the traffic tab, is the traffic still displayed there or are there empty lines? If yes, please send me the output of 'ifconfig' and I'll try to debug it. It the traffic is displayed there, I have to investigate further.

BTW: Does KNemo display the icon and only the changes for traffic are missing or did the icon vanish completly? - Jun 15 2004
KNemo

Network by jstamp 805 comments

> the tray icon appeared only after
> restarting kde (eventhough I started
> the service manually)

Hmm, can sometimes happen. When installing a new version of KNemo you also have to restart KDE, simply stopping and restarting the daemon from the service menu will also start the old version. (I guess because it is still in the cache.)

Does it now work without problems?

> what means KiB and MiB? shouldn't
> the traffic be displayed in KB and MB?

This output is directly taken from the command 'ifconfig'. Mine says 'Kb' and 'Mb', I guess yours is localized and therefore different.

Glad to see another happy user of KNemo! :-) - Jun 14 2004