Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Graphical rc-update replacement (called "servant")
View unanswered posts
View posts from last 24 hours

Goto page Previous  1, 2, 3, 4  Next  
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
zietbukuel
l33t
l33t


Joined: 30 Dec 2005
Posts: 607

PostPosted: Fri Aug 04, 2006 10:11 pm    Post subject: Reply with quote

I'd prefere to use GTK instad of QT, as I use GNOME and I don't want to mess up with other widget library.
Back to top
View user's profile Send private message
Kasumi_Ninja
Veteran
Veteran


Joined: 18 Feb 2006
Posts: 1825
Location: The Netherlands

PostPosted: Wed Mar 07, 2007 5:51 pm    Post subject: Reply with quote

Is servant still alive? Looks like a great app!
_________________
Please add [solved] to the initial post's subject line if you feel your problem is resolved. Help answer the unanswered
Back to top
View user's profile Send private message
Samoth
Tux's lil' helper
Tux's lil' helper


Joined: 07 Jan 2006
Posts: 117
Location: NJ

PostPosted: Wed Mar 07, 2007 11:56 pm    Post subject: Reply with quote

I just ran across this topic, grabbed the ebuild, and used it. I *really* like it. I like the system tray feature(wish porthole had it) and that you can stop/start/restart services from it.

That said, The one feature I would really like to see is integration so that you can edit the config files associated with it. Maybe I am asking for something different than what this program is supposed to be. If you have this, you can completely manage your gentoo-boxen with etc-proposals(GUI etc-update),porthole,and servant.

On the other hand, maybe I should propose this to the etc-proposals devs(as this is more config file related).

Keep up the great work :!:
_________________
The Early Bird may get the worm, but the second mouse gets the cheese.
Back to top
View user's profile Send private message
bmichaelsen
Veteran
Veteran


Joined: 17 Nov 2002
Posts: 1277
Location: Hamburg, Germany

PostPosted: Tue May 08, 2007 11:52 pm    Post subject: Reply with quote

Hi there,

there have been requests to join etc-proposals and servant:
https://forums.gentoo.org/viewtopic-t-543876.html

I think this would only make sense with etc-proposals as a plugin in servant, if at all. I guess, now that etc-proposals has a Qt4 right in the default version, I might ask what you think about that.

So, anyone interested?

Have Fun, Björn
Back to top
View user's profile Send private message
Icer
Guru
Guru


Joined: 26 Aug 2003
Posts: 395
Location: @home

PostPosted: Wed May 09, 2007 4:24 am    Post subject: Reply with quote

zietbukuel wrote:
I'd prefere to use GTK instad of QT, as I use GNOME and I don't want to mess up with other widget library.

++

Anyway nice idea. Maybe I wouldn't use it but anyway.
_________________
Everything can be done. There's just a longer delivery time for impossible projects.
Back to top
View user's profile Send private message
momesana
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 212
Location: Germany (Bremen)

PostPosted: Thu Jun 28, 2007 5:13 am    Post subject: thanks for the feedback Reply with quote

Wow, I haven't been on this thread for a while, because I thought there would be no interest for servant. I had actually abandoned working on servant. The last feature I have added was the ability to create, modify and delete runlevels when I was on a trip to persia. Thank you for the feedback. I will start coding on it starting from next week. I have a few major plans to overhaul the user interface and make it more versatile. Again thanks for the feedback.

Thanx
momesna
_________________
in the world I see, you're stalking elk throught the grand canyon forests, around the ruins of the rockefeller center. You'll wear leather clothes, that will last you the rest of your life... (Tylers Vision)
Back to top
View user's profile Send private message
momesana
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 212
Location: Germany (Bremen)

PostPosted: Thu Jun 28, 2007 5:53 am    Post subject: Reply with quote

Samoth wrote:
I just ran across this topic, grabbed the ebuild, and used it. I *really* like it. I like the system tray feature(wish porthole had it) and that you can stop/start/restart services from it.

That said, The one feature I would really like to see is integration so that you can edit the config files associated with it. Maybe I am asking for something different than what this program is supposed to be. If you have this, you can completely manage your gentoo-boxen with etc-proposals(GUI etc-update),porthole,and servant.

On the other hand, maybe I should propose this to the etc-proposals devs(as this is more config file related).

Keep up the great work :!:

Easy to implement. But, what should the editor be like? Shall I write an own simple editor without many capabilities such as syntax highlighting, undo etc. that only lets the user change the text file and save it? This is done within half an hour of programming. It'd be better to use a graphical editor that is already available like kedit, gedit etc. but how should I find out what editor the user prefers? A preferences dialog maybe in conjunction with a mechanism to ask the user which editor he prefers the first time he tries to launch the editor? How can I find out what the default graphical editor on anyones system is? I guess, I'll try the first approach for now (a minimal editor built into servant) and see how it works out.

Cheers
momesana
_________________
in the world I see, you're stalking elk throught the grand canyon forests, around the ruins of the rockefeller center. You'll wear leather clothes, that will last you the rest of your life... (Tylers Vision)
Back to top
View user's profile Send private message
tanderson
Retired Dev
Retired Dev


Joined: 11 Apr 2007
Posts: 193

PostPosted: Thu Jun 28, 2007 12:09 pm    Post subject: Reply with quote

Well, I am really Samoth(changed nickname to be the same as IRC).

I would prefer that it would be of a dark background, but that doesn't matter much. The syntax highlighting would be a major +, as I find it much easier to read syntax highlighted stuff. I use vim but I can easily see people from emacs using it(unless they integrate this into emacs :P ) so I would leave it as a WYSIWIG.
_________________
No Man is Just a Number!

--The Prisoner
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9611
Location: beyond the rim

PostPosted: Sat Jun 30, 2007 10:13 am    Post subject: Reply with quote

momesana wrote:
It'd be better to use a graphical editor that is already available like kedit, gedit etc. but how should I find out what editor the user prefers?

$EDITOR should work just fine (you'll have to account for CLI editors though)
Back to top
View user's profile Send private message
momesana
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 212
Location: Germany (Bremen)

PostPosted: Wed Jul 04, 2007 5:00 pm    Post subject: Reply with quote

Genone wrote:
momesana wrote:
It'd be better to use a graphical editor that is already available like kedit, gedit etc. but how should I find out what editor the user prefers?

$EDITOR should work just fine (you'll have to account for CLI editors though)

I thought $EDITOR only contains the CLI editors and there would be an extra variable somewhere describing the GUI editor.

Btw, I just finished moving to a new flat which is managed by the university. That means, I can start coding now. The editor function will be finished by the weekend. Then I'll turn to the wizard functions and use the Qt-4.3 facility classes for developing them replacing my own custom code.

cheers
momesana
_________________
in the world I see, you're stalking elk throught the grand canyon forests, around the ruins of the rockefeller center. You'll wear leather clothes, that will last you the rest of your life... (Tylers Vision)
Back to top
View user's profile Send private message
billydv
l33t
l33t


Joined: 22 Dec 2006
Posts: 911
Location: Mount Vernon, NY

PostPosted: Thu Jul 05, 2007 8:12 am    Post subject: Reply with quote

Please post the new ebuild as soon as its ready, Ive been using servant for a while and I really like it!!!
_________________
Billy DeVincentis
Back to top
View user's profile Send private message
enderandrew
l33t
l33t


Joined: 25 Oct 2005
Posts: 731

PostPosted: Thu Jul 05, 2007 8:41 am    Post subject: Reply with quote

I haven't used it yet, just came across it and poked at screenshots.

Here are two suggestions:

1 - If this is designed to be user-friendly to people new to Linux, then perhaps add descriptions for the services. Obviously it would be difficult to cover every possible service out there (like apache, ssh, etc.) but try to cover as many as the basic ones.

2 - Someone suggested quickly changing many services at once. The only way I think that would make sense is to have service profiles. Like a "Last known good configuration", "laptop battery mode", "gaming mode", "server mode - load apache, sql, etc"
_________________
Nihilism makes me smile.
Back to top
View user's profile Send private message
momesana
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 212
Location: Germany (Bremen)

PostPosted: Thu Jul 05, 2007 9:54 am    Post subject: Reply with quote

enderandrew wrote:
I haven't used it yet, just came across it and poked at screenshots.

Here are two suggestions:

1 - If this is designed to be user-friendly to people new to Linux, then perhaps add descriptions for the services. Obviously it would be difficult to cover every possible service out there (like apache, ssh, etc.) but try to cover as many as the basic ones.

2 - Someone suggested quickly changing many services at once. The only way I think that would make sense is to have service profiles. Like a "Last known good configuration", "laptop battery mode", "gaming mode", "server mode - load apache, sql, etc"


Hi,
about the first point: There is a service description for the services. The descriptions are located in an xml file. Unfortunately there is not much description in it yet. But its only a matter of writing the text. I'll take care of the rest. I've even set up a wiki page where people can add descriptions. Unfortunately there are no entries except the ones I've createde myself: http://gentoo-wiki.com/Talk:HOWTO_Manage_services_and_runlevels_via_a_modern_GUI . Ideally there would be a variable in every initscript itself and I've already proposed that on the gentoo forum but that ended in a flamewar: https://forums.gentoo.org/viewtopic-t-458248-highlight-momesana.html.

Regarding point two: There is already a mass-editing option included in the newest version. You just click on Tools > modify runlevel and then you can choose the runlevel and the associated services from a Listview. It's pretty simple. The Idea with profiles sounds interesting but maybe it would be more appropriate for a newly installed system. Every user has another configuration especially in the gentoo world. You may for example have a server but you wish to disable vsftpd and enable another ftp server instead. There is so much possibility that I am afraid the functionality would not be very useful. But it's not especially hard to implement. I would like to know what other people think of this idea.


Thanx for the feedback
momesana
_________________
in the world I see, you're stalking elk throught the grand canyon forests, around the ruins of the rockefeller center. You'll wear leather clothes, that will last you the rest of your life... (Tylers Vision)
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9611
Location: beyond the rim

PostPosted: Thu Jul 05, 2007 2:58 pm    Post subject: Reply with quote

momesana wrote:
Ideally there would be a variable in every initscript itself and I've already proposed that on the gentoo forum but that ended in a flamewar: https://forums.gentoo.org/viewtopic-t-458248-highlight-momesana.html.

Well, the forums aren't the right place to discuss such ideas anyway, as I said in that thread it's more appropriate for gentoo-dev, or contact the baselayout devs directly.
Back to top
View user's profile Send private message
Genone
Retired Dev
Retired Dev


Joined: 14 Mar 2003
Posts: 9611
Location: beyond the rim

PostPosted: Thu Jul 05, 2007 4:06 pm    Post subject: Reply with quote

#gentoo-dev wrote:
<genone> UberLord: ever thought about descriptions in init scripts? (see https://forums.gentoo.org/viewtopic-p-4130478.html#4130478)
<UberLord> genone: not really. shouldn't the init script desribe itself as it starts and stops?
* UberLord will read that thread later
<genone> UberLord: the issue is about management apps
<UberLord> genone: oh right, so like a function
<UberLord> /etc/init.d/foo describe
<genone> yep
<UberLord> sounds like a good idea
<UberLord> maybe a link to an icon to - heh
<UberLord> genone: want to file a bug on that so I don't forget?

Well, I don't really have a personal interest in that feature, you have, and I don't like to act as relay. So if you want a supported way to have descriptions in init scripts, you better file a bug ;)


Last edited by Genone on Thu Jul 05, 2007 4:21 pm; edited 1 time in total
Back to top
View user's profile Send private message
momesana
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 212
Location: Germany (Bremen)

PostPosted: Thu Jul 05, 2007 4:18 pm    Post subject: Reply with quote

Genone wrote:

Well, I don't really have a personal interest in that feature, you have, and I don't like to act as relay. So if you want a supported way to have descriptions in init scripts, you better file a bug ;)


done! :)
https://bugs.gentoo.org/show_bug.cgi?id=184327
_________________
in the world I see, you're stalking elk throught the grand canyon forests, around the ruins of the rockefeller center. You'll wear leather clothes, that will last you the rest of your life... (Tylers Vision)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Jul 05, 2007 9:23 pm    Post subject: Reply with quote

I'll probably do something about the description in the next alpha of baselayout-2.

BTW, baselayout-2 ships with a C library that exposes functions to manage runlevels and services. Any "replacement" to rc-update and friends should either use this or our legacy bash functions and not touch the file system directly.

baselayout-2 is fairly stable right now, and it used by all our fbsd users and has little outstanding bugs now :)
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Thu Jul 05, 2007 10:09 pm    Post subject: Reply with quote

Shouldn't the "servant" be called a rc-update gui as far as I have read in this thread?. Or Am I wroGn?
AFAIK it is not a replacemet.

Anyway, /me is hardly waiting for baselayout-2 stuff. :D
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
momesana
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 212
Location: Germany (Bremen)

PostPosted: Thu Jul 05, 2007 10:43 pm    Post subject: Reply with quote

zxy wrote:
Shouldn't the "servant" be called a rc-update gui as far as I have read in this thread?. Or Am I wroGn?
AFAIK it is not a replacemet.

Anyway, /me is hardly waiting for baselayout-2 stuff. :D

Not really. I've implemented the rc-update and rc-status functionality from scratch in C++ so its not really a gui for that. Yet the term "replacement" is also not very wisely worded since it was meant as a complementary application designed for newbies rather than a replacement for rc-update . Of course I read both scripts first and while realizing that the two shell scripts were pretty simple and they even didn't reuse each others code even though that was possible for most of the code I went on and implemented it myself (this information is probably more than outdated since that was more than a year ago ). The downside is that the gentoo-init infrastracture has made a lot of advancements lately. One of my friends pointed out to me that servant wouldn't take in account the "inactive" state of an initscript. That is to say, if e.g. the net.eth1 service is started but doesn't have a link it is shown as stopped in servant which is not really correct. The reason is that things like inactive didn't exist when I first wrote servant. ... I've got to take a closer look at the whole thing. Anyway, the "edit intiscript" feature is implemented now. Whoever likes to test it out can grab the ebuild and the tarball from the usual location http://www.informatik.uni-bremen.de/~momesana/sys-apps/servant/ (its version 0.1.7). Compiles with Qt-4.2.* and Qt-4.3.0.

cheers
momesana
_________________
in the world I see, you're stalking elk throught the grand canyon forests, around the ruins of the rockefeller center. You'll wear leather clothes, that will last you the rest of your life... (Tylers Vision)


Last edited by momesana on Thu Jul 05, 2007 10:49 pm; edited 2 times in total
Back to top
View user's profile Send private message
momesana
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 212
Location: Germany (Bremen)

PostPosted: Thu Jul 05, 2007 10:45 pm    Post subject: Reply with quote

UberLord wrote:
I'll probably do something about the description in the next alpha of baselayout-2.

BTW, baselayout-2 ships with a C library that exposes functions to manage runlevels and services. Any "replacement" to rc-update and friends should either use this or our legacy bash functions and not touch the file system directly.

baselayout-2 is fairly stable right now, and it used by all our fbsd users and has little outstanding bugs now :)

cool! I've really be waiting for something like that. Sounds really good and will heavily simplify the servant code. :). I'm looking forward for its release.

thanx
momesana
_________________
in the world I see, you're stalking elk throught the grand canyon forests, around the ruins of the rockefeller center. You'll wear leather clothes, that will last you the rest of your life... (Tylers Vision)
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Thu Jul 05, 2007 10:48 pm    Post subject: Reply with quote

momesana wrote:
zxy wrote:
Shouldn't the "servant" be called a rc-update gui as far as I have read in this thread?. Or Am I wroGn?
AFAIK it is not a replacemet.

Anyway, /me is hardly waiting for baselayout-2 stuff. :D

Not really. I've implemented the rc-update and rc-status functionality from scratch in C++. Of course I read both scripts first and while realizing that the two shell scripts were pretty simple and they even didn't reuse each others code even though that was possible for half of the code I went on and implemented it myself. The downside is that the gentoo-init infrastracture has made a lot of advancements lately. One of my friends pointed out to me that servant wouldn't take in account the "inactive" state of an initscript. That is to say, if e.g. the net.eth1 service is started but doesn't have a link it is shown as stopped in servant which is not really correct. The reason is that things like inactive didn't exist when I first wrote servant. ... I've got to take a closer look at the whole thing. Anyway, the "edit intiscript" feature is implemented now. Whoever likes to test it out can grab the ebuild and the tarball from the usual location http://www.informatik.uni-bremen.de/~momesana/sys-apps/servant/ (its version 0.1.7). Compiles with Qt-4.2.* and Qt-4.3.0.

cheers
momesana


So will there be also a C++ CLI version of servant? Because it sounds much better than a bash version.
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Jul 05, 2007 10:54 pm    Post subject: Reply with quote

zxy wrote:
So will there be also a C++ CLI version of servant? Because it sounds much better than a bash version.


baselayout-2 presently ships with C versions of rc-update and friends which in turn just call our C libraries. We have also removed all bash specific code on favour of POSIX bourne shell code so it works on freebsd native sh, dash and busybox.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
zxy
Veteran
Veteran


Joined: 06 Jan 2006
Posts: 1160
Location: in bed in front of the computer

PostPosted: Thu Jul 05, 2007 10:57 pm    Post subject: Reply with quote

UberLord: sorry if I was uninformed. I really like that. Sounds more like einit now. :D :D :D
_________________
Nature does not hurry, yet everything is accomplished.
Lao Tzu
Back to top
View user's profile Send private message
momesana
Apprentice
Apprentice


Joined: 20 Sep 2004
Posts: 212
Location: Germany (Bremen)

PostPosted: Thu Jul 05, 2007 10:58 pm    Post subject: Reply with quote

zxy wrote:
So will there be also a C++ CLI version of servant? Because it sounds much better than a bash version.

Well, its easy to implement. Actually I implented a very rudimentary CLI test class first to extensively test the functions before writing the GUI on top of it. But to be honest the bashscripts are more than sufficient. Nonetheless it is often not a good Idea to interface a C++ application with a bashscript and so back then I decided to implement the whole stuff as a C++ class with static function calls. Yet it seems like this all has been surpassed by the baselayout development.
_________________
in the world I see, you're stalking elk throught the grand canyon forests, around the ruins of the rockefeller center. You'll wear leather clothes, that will last you the rest of your life... (Tylers Vision)
Back to top
View user's profile Send private message
UberLord
Retired Dev
Retired Dev


Joined: 18 Sep 2003
Posts: 6835
Location: Blighty

PostPosted: Thu Jul 05, 2007 11:00 pm    Post subject: Reply with quote

zxy wrote:
UberLord: sorry if I was uninformed. I really like that. Sounds more like einit now. :D :D :D


basically baselayout-2 is an entire re-write in C. We even have hooks so einit can start baselayout init scripts if it wants to :)
Our init scripts will always remain basic shell scripts as that's what most people are familiar with.
_________________
Use dhcpcd for all your automated network configuration needs
Use dhcpcd-ui (GTK+/Qt) as your System Tray Network tool
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo Chat All times are GMT
Goto page Previous  1, 2, 3, 4  Next
Page 2 of 4

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum