Difference between revisions of "KDE ksysguardd on the Linkstation"

From NAS-Central Buffalo - The Linkstation Wiki
Jump to: navigation, search
Line 1: Line 1:
KDE's ksysguard can also connect to a ksysguardd (daemon part of ksysguard) running on a remote machine. If we get ksysguardd compiled on (for) the linkstation, we can get this: [[Image:ksysguard_LSPro_processes .png]] and this: [[Image:ksysguard_LSPro_sysload.png]]
+
== Introduction ==
  
----
+
KDE's ksysguard GUI application is a client which connects to the ksysguardd (daemon part of ksysguard) which is either running already, or is started only on demand.
How to achieve this?
+
Of course, the ksysguardd deamon can also run on a remote machine, like the Linkstation.
  
To be continued tomorrow...
+
== Setup ==
 +
 
 +
The easiest way to establish the connection was remotely starting ksysguardd on password-less ssh session issued by the ksysguard viewer itself, as a non-privileged user on the server. Don't know to what extent there could be security issues with this setup in a LAN, but if you're an expert please read on and comment/feedback anything you think is done stupidly.
 +
 
 +
=== Prerequisites ===
 +
 
 +
To actually make it run, the user ''ksysguard'' with the login shell ''/usr/bin/ksysguardd'' should exist on the linkstation. Therefore, issue the following commands:
 +
  groupadd ksysguard
 +
  useradd -s /usr/bin/ksysguardd -g ksysguard ksysguard
 +
  mkdir -p /home/ksysguard
 +
To be able to let ksysguard connect in a password-less ssh session as the user 'ksysguard' to the daemon from your desktop, you should generate a public key on your desktop account:
 +
  ssh-keygen -t dsa
 +
This will generate a pair of keys in your '''~/.ssh/''' directory.
 +
 
 +
=== Setup on the server ===
 +
 
 +
Now you have to append the ''public'' key you just generated from '''~/.ssh/id_dsa.pub''' on your account on the desktop machine, to the '''/home/ksysguard/.ssh/authorized_keys''' file on the server (the linkstation), and then also adjust ownership of the entire ''ksysguard'' home directory:
 +
  chown -R ksysguard:ksysguard ksysguard
 +
 
 +
=== Setup on the client ===
 +
 
 +
To test the password-less ''ssh session'' as user ''ksysguard'' to your remote server's ''hostname'', just issue from your desktop account:
 +
  ssh -l ksysguard hostname
 +
This should immediatly get you into the ''ksysguardd'' prompt without requesting a password, where you can try issuing the commands ''test'', ''monitors'' and ''quit'',which will also log you out since ''ksysguardd'' is the shell for the ''ksysguard'' user.
 +
If that worked, in your dektop client ksysguard application, connect to the linkstation's ''hostname'' using the same custom command as above.
 +
 
 +
Now your ''ksysguard'' application should be connected to the daemon, all you  have to do is define new worksheets on which you drag sensors from the remote machine's tree.
 +
 
 +
== Screenshots ==
 +
 
 +
 
 +
=== Linkstation Pro Genlink processes ===
 +
 
 +
[[Image:ksysguard_LSPro_processes .png]]
 +
 
 +
 
 +
=== Linkstation Pro Genlink system load ===
 +
 
 +
[[Image:ksysguard_LSPro_sysload.png]]
 +
 
 +
== Download ==
 +
 
 +
On non-Gentoo, you can try the binary ksysguardd [http://downloads.linkstationwiki.net/arm9-LS_Pro/Genlink/Binaries/armv5tejl-softfloat-linux-gnueabi/extra/ksysguard-daemon-3.5.6_arm9_glibc-2.3.6.tar.bz2 located here].
 +
If you need the patched sources, please ping the [http://forum.linkstationwiki.net/index.php?action=vthread&forum=19&topic=2470 forum thread].
 +
On Genlink, make sure you ''synced'' the Linkstation overlay to the latest version:
 +
  layman -S
 +
Emerge the binary:
 +
  emerge sys-apps/ksysguard -KG
 +
<br><br>
 +
For problems/feedback/suggestions, please ping the [http://forum.linkstationwiki.net/index.php?action=vthread&forum=19&topic=2470 forum thread].
 +
<br><br>
 +
Have fun!
 +
 
 +
--[[User:Zoolook|Zoolook]] 07:49, 27 February 2007 (EST)

Revision as of 12:49, 27 February 2007

Contents

Introduction

KDE's ksysguard GUI application is a client which connects to the ksysguardd (daemon part of ksysguard) which is either running already, or is started only on demand. Of course, the ksysguardd deamon can also run on a remote machine, like the Linkstation.

Setup

The easiest way to establish the connection was remotely starting ksysguardd on password-less ssh session issued by the ksysguard viewer itself, as a non-privileged user on the server. Don't know to what extent there could be security issues with this setup in a LAN, but if you're an expert please read on and comment/feedback anything you think is done stupidly.

Prerequisites

To actually make it run, the user ksysguard with the login shell /usr/bin/ksysguardd should exist on the linkstation. Therefore, issue the following commands:

 groupadd ksysguard
 useradd -s /usr/bin/ksysguardd -g ksysguard ksysguard
 mkdir -p /home/ksysguard

To be able to let ksysguard connect in a password-less ssh session as the user 'ksysguard' to the daemon from your desktop, you should generate a public key on your desktop account:

 ssh-keygen -t dsa

This will generate a pair of keys in your ~/.ssh/ directory.

Setup on the server

Now you have to append the public key you just generated from ~/.ssh/id_dsa.pub on your account on the desktop machine, to the /home/ksysguard/.ssh/authorized_keys file on the server (the linkstation), and then also adjust ownership of the entire ksysguard home directory:

 chown -R ksysguard:ksysguard ksysguard

Setup on the client

To test the password-less ssh session as user ksysguard to your remote server's hostname, just issue from your desktop account:

 ssh -l ksysguard hostname

This should immediatly get you into the ksysguardd prompt without requesting a password, where you can try issuing the commands test, monitors and quit,which will also log you out since ksysguardd is the shell for the ksysguard user. If that worked, in your dektop client ksysguard application, connect to the linkstation's hostname using the same custom command as above.

Now your ksysguard application should be connected to the daemon, all you have to do is define new worksheets on which you drag sensors from the remote machine's tree.

Screenshots

Linkstation Pro Genlink processes

Ksysguard LSPro processes .png


Linkstation Pro Genlink system load

Ksysguard LSPro sysload.png

Download

On non-Gentoo, you can try the binary ksysguardd located here. If you need the patched sources, please ping the forum thread. On Genlink, make sure you synced the Linkstation overlay to the latest version:

 layman -S

Emerge the binary:

 emerge sys-apps/ksysguard -KG



For problems/feedback/suggestions, please ping the forum thread.

Have fun!

--Zoolook 07:49, 27 February 2007 (EST)