KNetStats
A simple KDE network monitor
Website's source code
<?php
/***************************************************************************
* Copyright (C) 2004 by Hugo Parente Lima *
* hugo_pl at users.sourceforge.net *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
$contenttype = '';
if (stristr($_SERVER['HTTP_USER_AGENT'], 'validator') ||
strpos($_SERVER['HTTP_ACCEPT'], 'application/xhtml+xml') !== false)
$contenttype = 'application/xhtml+xml';
else
$contenttype = 'text/html';
header('Content-Type: '.$contenttype.'; charset=utf-8');
header('Vary: Accept');
// View the script source code ?
$viewsource = isset($_GET['viewsource']) ? $_GET['viewsource'] : null;
echo "<?xml version=\"1.0\" encoding=\"utf-8\" ?>\n";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="author" content="Hugo P.L." />
<meta name="description" content="A simple KDE network monitor that show rx/tx LEDs of any network interface on a system tray icon" />
<meta name="keywords" content="KnetStats, Network monitor, LED, OpenSource, KDE, Qt" />
<title>KNetStats</title>
<link rel="shortcut icon" href="images/favicon.png" type="image/png" />
<link rel="icon" href="images/favicon.png" type="image/png" />
<link rel="stylesheet" href="style.css" />
</head>
<body>
<?php
if ($msg)
{
echo '<style type="text/css">body { background-image: none;}</style>';
echo '<div id="message"><h1>Notice:</h1>'.$msg.'</div>';
echo '</body></html>';
exit;
}
?>
<div id="content">
<h1><a href="index.php">KNetStats</a></h1>
<h2>A simple KDE network monitor</h2>
<?php
if ($viewsource)
{
echo <<<EOT
<h3>Website's source code</h3>
<div class="section">
<div class="tux">
EOT;
highlight_file('index.php');
echo <<<EOT
<p><a href="./?ie=crap">Back to the main page</a></p>
</div>
</div>
EOT;
}
else
{
?>
<!-- Summary -->
<h3>Summary</h3>
<div class="section">
<div class="tux">
<p>A simple <acronym title="K Desktop Environment ">KDE</acronym> network monitor that show rx/tx <acronym title="Light Emitter Diode">LEDs</acronym> or numeric information about the transfer rate of any network interface in a system tray icon that's part of kde-extragear package. The source code of the current version (<strong><a href="#changelog">v1.6.2</a></strong>) is avaliable for <a href="#download">download</a> at Sourceforge download and from KDE subversion server.</p>
<p>Features:</p>
<ul>
<li>See network activity, transfer rate, speed chart, IP address, MAC address, etc of any network interface (including localloopback).</li>
<li>Support multiple network interfaces.</li>
<li>See simple statistics (packets and bytes received and transmitted).</li>
<li>Configurable Update Interval, View mode, Icon themes, etc.</li>
<li><acronym title="GNU General Public License">GPL</acronym>'ed, you can use and modify for free (Following GPL conditions)</li>
<li>Carrier on/off detection.</li>
</ul>
</div>
</div>
<!-- Screenshots -->
<h3>Screenshots</h3>
<div class="section">
<div class="tux">
<p>Screenshots of KNetStats running on Gentoo with KDE 3.3.x and 3.5.x</p>
<table id="screenshots">
<tr>
<td><img src="screenshots/systemtray.png" width="190" height="111" alt="systemtray icon"/><br />KNetStats on system tray</td>
<td><img src="screenshots/systemtray3.png" width="205" height="84" alt="systemtray text"/><br />KNetStats on system tray in textmode</td>
</tr>
<tr>
<td colspan="2"><img src="screenshots/configure.png" width="396" height="311" alt="configure dialog box" /><br />KNetStats Configure dialog box</td>
</tr>
<tr>
<td colspan="2"><img src="screenshots/statistics2.png" width="269" height="330" alt="statistics dialog box" /><br />KNetStats interface details dialog box</td>
</tr>
</table>
</div>
</div>
<!-- Download -->
<h3 id="download">Download</h3>
<div class="section">
<div class="tux">
<p>KNetStats download is avaliable at <a href="https://sourceforge.net/project/showfiles.php?group_id=119098&package_id=130113">sourceforge project download page</a>.</p>
<p>Original sourcecode package (.tar.bz2) is created by me, read the <kbd>README</kbd> file to know how to install KNetStats, any other packages are provided by KNetstats users.</p>
<h4>Other packages</h4>
<ul>
<li><a href="http://www.0x5c.net/knetstats/">Debian packages</a> (Thomas Windheuser).</li>
<li>Gentoo eBuild (Alexandre Parente Lima)</li>
<li>Slackware tgz (Cesar Kallas)</li>
<li><a href="http://aur.archlinux.org/packages.php?ID=9442">Arch Linux</a> (Jaroslav Lichtblau)</li>
</ul>
<p>Thanks to all package maintainers.</p>
<h4>Help needed</h4>
<p>If you know how to create a package for you distro (rpm, deb, etc) you can help! Create and test the package and <a href="#contact">tell me about</a>.</p>
<h4>My public GPG key</h4>
<p>You can use my <a href="http://pgp.mit.edu:11371/pks/lookup?search=0x39ED3D69&op=index&exact=on">public GnuPG key</a> to test the signature of released files (Finger print: 33FF 1CA9 F308 7E42 DE34 35CA FADB 8E33 39ED 3D69).</p>
</div>
</div>
<!-- Contact -->
<h3 id="contact">Contact</h3>
<div class="section">
<div class="tux">
<p>If you have any ideas or suggestions about KNetStats feel free to contact me (hugo_pl at users.sourceforge.net)</p>
</div>
</div>
<!-- FAQ -->
<h3>Frequent Asked Questions</h3>
<div class="section">
<div class="tux">
<p class="question">Will exists a KDE4 version?</p>
<p class="answer">No, or maybe.</p>
<p class="question">I want to translate KNetstats to my language, what can I do?</p>
<p class="answer">Read the <a href="#translating">Translating KNetStats</a> section.</p>
<p class="question">I'm having compile errors!! AAAAAHHH!!!!!!!!.</p>
<p class="answer">You need to have kde-libs-devel and qt3-devel package (or anything like it) installed on your system to compile any KDE program.</p>
<p class="question">What's the better "Update Interval" value?</p>
<p class="answer">Anything between 250ms and 500ms is nice, but the choices is all your.</p>
<p class="question">I have found too many english errors in this page, are you an illiterate?.</p>
<p class="answer">Yes, but I'm from Brazil and english is not my natural language =].</p>
<p class="question">Your program sux! How to unsinstall it?</p>
<p class="answer">Type as root:<br />
<kbd>./configure && make uninstall</kbd></p>
</div>
</div>
<!-- Translating -->
<h3 id="translating">Translating KNetStats</h3>
<div class="section">
<div class="tux">
<p>KNetstats is now translated by the kde i18n team, if it is not translated for your language, contact the kde-i18n team.</p>
<p>Anyway a special thanks to all translators os previous versions of KNetStats who spent some time translating it.</p>
<ul>
<li>Ilyas Bakirov, kirghiz translation.</li>
<li>Roberto Leandrini, italian translation.</li>
<li>Carlos Ortiz, spanish translation.</li>
<li>Henrik Gebauer, deutsch translation.</li>
<li>Edward Romantsov, russian translation.</li>
<li>Wiktor Wandachowicz, polish translation.</li>
<li>Guillaume Savaton, french translation.</li>
<li>Petar Toushkov, bulgarian translation.</li>
<li>Liu Di, simplified chinese translation.</li>
<li>Rotariu Bogdan-Stefan, romanian translation.</li>
</ul>
</div>
</div>
<!-- Change log -->
<h3 id="changelog">Changelog</h3>
<div class="section">
<div class="tux">
<h4>Version 1.6.2</h4>
<ul>
<li>Updated translations.</li>
</ul>
<h4>Version 1.6.1</h4>
<ul>
<li>Fixed crash when discovering a new interface.</li>
</ul>
<h4>Version 1.6.0.1</h4>
<ul>
<li>Disable the -ansi flag to avoid compile problems.</li>
</ul>
<h4>Version 1.6</h4>
<ul>
<li>More user-friendly, try to detect some things and start without importune the user with configuration dialogs.</li>
</ul>
<h4>Version 1.5</h4>
<ul>
<li>Added "Chart view".</li>
<li>New Statistics dialog (show IP address, MAC address, etc).</li>
<li>Using bksys as building tool.</li>
<li>Carrier on/off detection.</li>
<li>Reading interface date from /sys/class/net/INTERFACE/statistics instead of parse /proc/dev/net.</li>
<li>New translation to romanian.</li>
</ul>
<h4>Version 1.3</h4>
<ul>
<li>New configuration dialog.</li>
<li>Support to multiple interfaces.</li>
<li>Is possible change the colors in the text mode view.</li>
<li>Is possible change the icon theme of in icon mode.</li>
<li>Added smooth speed meter.</li>
</ul>
<h4>Version 1.2.1</h4>
<ul>
<li>Added Russian translation (Edward Romantsov).</li>
<li>Added Polish translation (Wiktor Wandachowicz).</li>
</ul>
<h4>Version 1.2</h4>
<ul>
<li>Now using SCons as building and install tool, so you will need to have Python installed in your distro to run SCons scripts and compile/install KNetStats.</li>
<li>Added Brazilian portuguese translation (Hugo Parente Lima, me).</li>
<li>Added Kirghiz translation (Ilyas Bakirov).</li>
<li>Added Italian translation (Roberto Leandrini).</li>
<li>Bug Fix: When network interface in changed, the Statistics window caption is changed too.</li>
<li>Bug Fix: Statistics window now correctly format Download/Upload Speed.</li>
<li>Bug Fix: When start KNetstats with a unavaliable interface, now upload speed is equals to 0pkts/s (not -2pkts/s)</li>
<li>Bug Fix: When knetstats starts and statistics windows is hidden it is not updated.</li>
</ul>
<h4>Version 1.1.2</h4>
<ul>
<li>Build system now uses kde-config instead <var>$KDEDIR</var> env. variable. This will solve problems when compiling KNetstats on some distros (Suse 9.1, Fedora).</li>
</ul>
<h4>Version 1.1.1</h4>
<ul>
<li>Clicking on trayicon show/hide statistics window (suggestion by Fredy Yanardi).</li>
<li>All dialogs now show the KNetStats icon on windows decoration.</li>
<li>It's possible to change the font used in textmode (suggestion by Vik).</li>
</ul>
<h4>Version 1.1</h4>
<ul>
<li>Bug Fix: Not saving UpdateInterval when the network interface is not changed.</li>
<li>Litle optimizations.</li>
<li>Added support to TextMode that shows rx/tx transfer rate numeric information.</li>
</ul>
<h4>Version 1.0</h4>
<ul>
<li>Initial release</li>
</ul>
</div>
</div>
<?php
} // endif viewsource
?>
<!-- Sourceforge image -->
<div id="sflogo">
<a href="http://www.sourceforge.net"><img src="http://sourceforge.net/sflogo.php?group_id=119098&type=1" width="88" height="31" alt="Source Forge" /></a></div>
<p id="signature">
Copyright© 2004-2006 Hugo Parente Lima<br />
All images are assembly from KDE3 crystal icon theme images.<br />
<a href="?viewsource=true&ie=crap">View website's source code</a><br />
<a href="http://validator.w3.org/check/referer">XHTML</a> <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>
</p>
</div>
</body>
</html>
Copyright© 2004-2006 Hugo Parente Lima
All images are assembly from KDE3 crystal icon theme images.
View website's source code
XHTML CSS