-
 KDE-Apps.org Applications for the KDE-Desktop 
 GTK-Apps.org Applications using the GTK Toolkit 
 GnomeFiles.org Applications for GNOME 
 MeeGo-Central.org Applications for MeeGo 
 CLI-Apps.org Command Line Applications 
 Qt-Apps.org Free Qt Applications 
 Qt-Prop.org Proprietary Qt Applications 
 Maemo-Apps.org Applications for the Maemo Plattform 
 Java-Apps.org Free Java Applications 
 eyeOS-Apps.org Free eyeOS Applications 
 Wine-Apps.org Wine Applications 
 Server-Apps.org Server Applications 
 apps.ownCloud.com ownCloud Applications 
--
-
 KDE-Look.org Artwork for the KDE-Desktop 
 GNOME-Look.org Artwork for the GNOME-Desktop 
 Xfce-Look.org Artwork for the Xfce-Desktop 
 Box-Look.org Artwork for your Windowmanager 
 E17-Stuff.org Artwork for Enlightenment 
 Beryl-Themes.org Artwork for the Beryl Windowmanager 
 Compiz-Themes.org Artwork for the Compiz Windowmanager 
 EDE-Look.org Themes for your EDE Desktop 
--
-
 Debian-Art.org Stuff for Debian 
 Gentoo-Art.org Artwork for Gentoo Linux 
 SUSE-Art.org Artwork for openSUSE 
 Ubuntu-Art.org Artwork for Ubuntu 
 Kubuntu-Art.org Artwork for Kubuntu 
 LinuxMint-Art.org Artwork for Linux Mint 
 Arch-Stuff.org Art And Stuff for Arch Linux 
 Frugalware-Art.org Themes for Frugalware 
 Fedora-Art.org Artwork for Fedora Linux 
 Mandriva-Art.org Artwork for Mandriva Linux 
--
-
 KDE-Files.org Files for KDE Applications 
 OpenTemplate.org Documents for OpenOffice.org
 GIMPStuff.org Files for GIMP
 InkscapeStuff.org Files for Inkscape
 ScribusStuff.org Files for Scribus
 BlenderStuff.org Textures and Objects for Blender
 VLC-Addons.org Themes and Extensions for VLC
--
-
 KDE-Help.org Support for your KDE Desktop 
 GNOME-Help.org Support for your GNOME Desktop 
 Xfce-Help.org Support for your Xfce Desktop 
--
openDesktop.orgopenDesktop.org:   Applications   Artwork   Linux Distributions   Documents    LinuxDaily.com    Linux42.org    OpenSkillz.com   
 
Artwork
News
Groups
Knowledge
Events
Forum
People
Jobs
Register
Login



Sponsoring


-
- Content .- Fans (2) .- Knowledge Base  . 

DaeMon

   0.2  

Plasmoid Script

Score 85%
DaeMon
zoom


DaeMon
zoom


DaeMon
zoom


Minimum required   PyKDE/PyQt
Downloads:  498
Submitted:  Apr 21 2009
Updated:  Apr 24 2009

Description:

DaeMon is a monitor/start/stop-applet for system-daemons (mysql,bluetooth,cups, etc.) created for ArchLinux-systems

To use it, just set the "polling directory" in the configuration-dialog to a
place where a file for each running daemon is created. In Arch-Linux this is
usually /var/run/daemons. Set the damon-start-scripts-directory to the place
where for each daemon a script exists that excepts the parameters "start" and
"stop" to execute the corresponding actions. In Arch-Linux this is /etc/rc.d.
For other distributions you might have to set a suffix for the files to poll.
Assume that your daemon is "called" cups i.e. and does create a file named
"cups.pid" in the polling directory the you have to enter ".pid" here.
Finally set the polling-interval to a value suitable for you and select the
daemons you would like to monitor/handle using DaeMon.

Since this is my very first plasma-applet and my first python-work for quite
some time I have to apologize for all the errors and imperfections of it. Right
now it is just slightly more than a finger exercise.
Please keep in mind, that I wrote it with an Arch-Linux system in mind, though
it should work for othe distributions as well.

Quite a lot of things can undoubtly be improved and if there is any interest in
the following ideas or if you have something else in mind that could be done,
please let me know.

- give more detailed feedback about the result of a start/stop
- create translations
- create and use a DBUS-service to handle starts und stops of daemons instead
of kdesu

I am always happy about any feedback if somebody really should decide to use
this. ;-)


Have fun!




Changelog:

0.1 - first try

0.2 - some minor fixes (allow to startup when default polling-directory does not exist, typing-errors)
replaced method of formatting strings to allow running on python < 2.6
added suffix of polling files to configuration dialog




LicenseGPL
Ark(DaeMon-0.2.plasmoid)
Send to a friend
Subscribe
Other  Artwork  from tiberiusGER
Report inappropriate content



goto page:  1  2 

-

 And for Kubuntu ?

 
 by billux13 on: Apr 21 2009
 
Score 50%

It's a very good idea to manage services. But I have tested your plasmoid with my kubuntu distro and it doesn't work :( . I have this message when I add the plasmoid :
"Failure of initialisation script".
Could you make a version for this distro ?
And so could you add a link to the plasmoid's sources ? There is only the binary version...


Reply to this

-

 Re: And for Kubuntu ?

 
 by tiberiusGER on: Apr 22 2009
 
Score 50%

Please have a look at my reply to the post below...


Reply to this

-
.

 Great idea

 
 by gooler on: Apr 22 2009
 
Score 50%

I've been waiting for a plasmoid like this for a long time. There was an early attempt ( http://blog.ratonred.com/2009/01/a-new-stuff-with-the-power-of-plasma/ also written with Python) but I never get it to work and seems like it's been abandoned.

Now with DaeMon, I've tried to install it in Kubuntu 8.10 amd64 and I get the following error:
"Installing the package DaeMon... failed"

Then it shows in the add component dialog but when you add it to the desktop it shows the following error:
"Could not create a python scriptEngine for the DaeMon widget"
so I went and installed 'python-plasma' package. Then added the widget again and now another error shows:
"Initialization script failed"

Hope this can be of any help.


Reply to this

-

 Re: Great idea

 
 by tiberiusGER on: Apr 22 2009
 
Score 50%

Thank you both for your comments. I do not have an installed Kubuntu available, but I will look into it as soon as possible. Can you see any more messages in your ~/.xsession-errors (hope this exists in Kubuntu)?
I will also add a source package the next few days.


Reply to this

-
.

 Debuggin

 
 by gooler on: Apr 23 2009
 
Score 50%

Looking in the xsessions-errors log I've found that most errors come from the use of format() property to give color to the labels: "object has no attribute 'format'"

After removing that calls from the lines 69 and 80 and changing the default daemon polling path to 'var/run' for example in 165 in main.py the plasmoid interface shows in desktop. It doesn't show any daemon, but at least the interface shows.

Now, if you try to configure it, xsessions-errors shows another "object has no attribute 'format'" error that corresponds to #74 in configdaemons.py, removing the format call again makes the configuration dialog work too.

Now, the only thing left is substitute the current format() calls for another that can be applied and know where the daemons can be polled in Debian based distributions.

Hope this helps.


Reply to this

-
.

 Re: Debuggin

 
 by gooler on: Apr 23 2009
 
Score 50%

I've been talking in #kde-devel and _Sime pointed out that the format() function that i've been removing only exists in Python 2.6, while i'm currently at 2.5, thats why it fails.


Reply to this

-

 Re: Re: Debuggin

 
 by tiberiusGER on: Apr 23 2009
 
Score 50%

Thanks for all your information. I just talked to brillux13 about adding a version suitable for python < 2.6. I am also working on finding out how to get the running daemons on debian/?ubuntu. I already have an idea and it should not be difficult to adopt the plasmoid. Do you have a file named xyz.pid for a running daemon xyz in /var/run?


Reply to this

-
.

 Re: Re: Re: Debuggin

 
 by gooler on: Apr 23 2009
 
Score 50%

Yes, there they are.

Also there is a tool called chkconfig that allows to control the services from the command-line, if you want to check its code.


Reply to this

-

 Re: Re: Debuggin

 
 by tiberiusGER on: Apr 23 2009
 
Score 50%

Thanks for all your information. I just talked to brillux13 about adding a version suitable for python < 2.6. I am also working on finding out how to get the running daemons on debian/?ubuntu. I already have an idea and it should not be difficult to adopt the plasmoid. Do you have a file named xyz.pid for a running daemon xyz in /var/run?


Reply to this

-

 Re: Re: Debuggin

 
 by tiberiusGER on: Apr 23 2009
 
Score 50%

Thanks for all your information. I just talked to brillux13 about adding a version suitable for python < 2.6. I am also working on finding out how to get the running daemons on debian/?ubuntu. I already have an idea and it should not be difficult to adopt the plasmoid. Do you have a file named xyz.pid for a running daemon xyz in /var/run?


Reply to this

-
.

 Debuggin

 
 by gooler on: Apr 23 2009
 
Score 50%

Looking in the xsessions-errors log I've found that most errors come from the use of format() property to give color to the labels: "object has no attribute 'format'"

After removing that calls from the lines 69 and 80 and changing the default daemon polling path to 'var/run' for example in 165 in main.py the plasmoid interface shows in desktop. It doesn't show any daemon, but at least the interface shows.

Now, if you try to configure it, xsessions-errors shows another "object has no attribute 'format'" error that corresponds to #74 in configdaemons.py, removing the format call again makes the configuration dialog work too.

Now, the only thing left is substitute the current format() calls for another that can be applied and know where the daemons can be polled in Debian based distributions.

Hope this helps.


Reply to this

-
.

 Debuggin

 
 by gooler on: Apr 23 2009
 
Score 50%

Looking in the xsessions-errors log I've found that most errors come from the use of format() property to give color to the labels: "object has no attribute 'format'"

After removing that calls from the lines 69 and 80 and changing the default daemon polling path to 'var/run' for example in 165 in main.py the plasmoid interface shows in desktop. It doesn't show any daemon, but at least the interface shows.

Now, if you try to configure it, xsessions-errors shows another "object has no attribute 'format'" error that corresponds to #74 in configdaemons.py, removing the format call again makes the configuration dialog work too.

Now, the only thing left is substitute the current format() calls for another that can be applied and know where the daemons can be polled in Debian based distributions.

Hope this helps.


Reply to this

-

 Re: Re: Great idea

 
 by gooler on: Apr 23 2009
 
Score 50%

Wow, triple post, sorry about that :D


Reply to this

-

 Re: Great idea

 
 by tiberiusGER on: Apr 22 2009
 
Score 50%

Just two more quick thoughts. The error seems to arise from a MessageBox called with a wrong parameter. For now please make sure that the directory

/var/run/daemons

exists, when you add the applet. I will upload a corrected version later today.

I am not at all sure that it works with Kubuntu out of the box though. As I said I will have a look at it.

Since the file is just a zip-file you can open it with Ark (for example) and have a look at the source inside.


Reply to this

-

 Re: Re: Great idea

 
 by billux13 on: Apr 22 2009
 
Score 50%

Thank for your interest for kubuntu users :)

I have these following errors in my .xsession-errors :
Traceback (most recent call last):
File "/usr/share/kde4/apps/plasma_scriptengine_python/pyappletscript.py", line 55, in init
self.pyapplet.init()
File "/home/billux/.kde/share/apps/plasma/plasmoids/DaeMon/contents/code/main.py", line 69, in init
header.setText("<font color=\"{color}\">Available Services:</font>".format(color=labelColor))
AttributeError: 'str' object has no attribute 'format'
TypeError: invalid result type from PythonAppletScript.shape()
TypeError: invalid result type from PythonAppletScript.shape()
...

And the directory /var/run/daemons doesn't exist on debian based distro :/

If you want others precisions about kubuntu, don't hesitate to ask me.


Reply to this

-
.

 Behaviour under Kubuntu 9.04

 
 by gooler on: Apr 24 2009
 
Score 50%

(I'm trying it now under 9.04 which ships python2.6, i'll try later with 8.10 again)

It partially works now, although plasmoids installer warns about installation errors.

To use it, I've entered:
Polling directory:
/var/run
suffix
*.pid

Daemon startup scripts:
/etc/init.d

Selected a few daemons as they are correctly listed, clicked Ok. The selected daemons shows in the plasmoid, all with a + symbol before, but clicking on any of them does nothing.

So a great improvement here :D


Reply to this

-

 Re: Behaviour under Kubuntu 9.04

 
 by tiberiusGER on: Apr 24 2009
 
Score 50%

Thanks for trying again and for your patience. Please temove the * from *.pid (just the suffix, no wildcards). Then it should detect the running daemons correctly.
When I click on a listed daemon it opens up kdesu. You do have kdesu available on kubuntu, haven't you?
Maybe it is better to continue working on the via email and ot fill up this page too much (I had nearly overlooked your post). Would you mind contacting me that way? My address in in the readme.txt within the plasmoid-file.


Reply to this

-

 Manual installation

 
 by paulocr on: May 6 2009
 
Score 50%

How can I install this plasmoid manually?

I tried with standard instructions from http://www.kde-look.org/help/index.php?type=70&PHPSESSID=c7d3091939a0e62a75d52e53875fc161

but the I get an error from the CMake.


Reply to this

-

 Re: Manual installation

 
 by tiberiusGER on: May 7 2009
 
Score 50%

Hi paulocr,

this is a plasmoid written in python. You do not have to compile it. Just open you "Add Widgets..."-Dialog from your panel (i.e.) and choose "Install New Widgets" .> "Install Widgets From Local File". Select the plasmoid-file you downloaded and it should work.

Make sure you have python, python-kde-bindings and python-plasma-bindings installed.

Also please keep in mind that it (right now) works only on ArchLinux smoothly.


Reply to this

-

 Re: Re: Manual installation

 
 by paulocr on: May 12 2009
 
Score 50%

Thanks, the problem is I am getting an error in Kubuntu 9.04

I read some forums and other people were getting also errors with other plasmoids so they installed manually. This is the reason why I was asking


Reply to this

-

 daemons in kubuntu/debian

 
 by MalteDik on: Jul 23 2009
 
Score 50%

hi,

if you just check out /var/run, you might miss some services, see (the most important services have their own subdirs):

$ find /var/run -type f -name "*.pid"
/var/run/console-kit-daemon.pid
/var/run/mysqld/mysqld.pid
/var/run/crond.pid
/var/run/atd.pid
/var/run/cups/cupsd.pid
find: `/var/run/cups/certs': Permission denied
find: `/var/run/hald': Permission denied
/var/run/inetd.pid
/var/run/dirmngr.pid
/var/run/acpid.pid
/var/run/rsyslogd.pid
find: `/var/run/PolicyKit': Permission denied
/var/run/portmap.pid
/var/run/dhclient.wlan0.pid


Reply to this

-
.

 problem under archlinux

 
 by gkrnours on: Aug 25 2009
 
Score 50%

I've some problem with DaeMon under archlinux.
DaeMon display an error icon, and "right click" -> "DaeMon settings" does nothing.

I haven't hacked a lot the source, but gooler trick doesn't do the job. Line around 69 and 80 doesn't seems to be the problem...


Reply to this

goto page:  1  2 

Add commentBack






-

-
How do you like Plasma 5?
 The best KDE Desktop ever.
 Definitely a nice improvement.
 Not decided yet. Haven't tried it yet.
 I do not like some of the changes.
 KDE is taking the wrong way.
 I am still sticking with KDE 3.5.
 I have no opinion, but wanted to vote anyway.

resultmore




 
 
 Who we are
Contact
More about us
Frequently Asked Questions
Register
Twitter
Blog
Explore
Artwork
Jobs
Knowledge
Events
People
Updates on identi.ca
Updates on Twitter
Facebook App
Content RSS   
News RSS   
Discussion RSS   
Events RSS   

Participate
Groups
Forum
Add Artwork
Public API
About KDE-Look.org
Legal Notice
Spreadshirt Shop
CafePress Shop
Advertising
Sponsor us
Report Abuse
 

Copyright 2001-2014 KDE-Look.org Team  
All rights reserved. KDE-Look.org is not liable for any content or goods on this site.
All contributors are responsible for the lawfulness of their uploads.
KDE and K Desktop Environment are trademarks of KDE e.V.