New Project: Yum Web GUI

General Discussion of atomic repo and development projects.

Ask for help here with anything else not covered by other forums.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

New Project: Yum Web GUI

Unread post by scott »

This is going to be an open source project to build a web based front end for yum, specifically to run in plesk. We need developers in PHP and/or python, and web designers/graphic artists to handle the look and feel.

I've put together the intial mockup here:
http://www.atomicrocketturtle.com/galle ... temId=1430

This is based on the yumex interface we use in gnome for now. I'm open to different ideas on how to make this more practical in a web environment.
Troy McClure
Forum Regular
Forum Regular
Posts: 196
Joined: Tue May 10, 2005 1:24 pm

Unread post by Troy McClure »

I am a php developer and would be happy to help in anyway I can.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Internally with yum we're working with some basic commands:

yum list

yum update

yum install

The data itself is stored in a sqlite database (I think), and there is another open source project that reads that into a web interface now:

http://www.mricon.com/trac/wiki/Repoview

My idea here is to have the web gui work from the sqlite database, which will probably be faster than calling yum in real time. We could update the yum cache on demand with a button in the gui.

So to start with I think we need to look at how we can read the yum cache, probably using Repoview as a guide to start with. With that data in hand we can use that to pass the variables into yum itself. Do all the manipulation, searching, etc right out of the cache (sqlite).
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Basic "Updates" view

http://www.atomicrocketturtle.com/galle ... =xf37e2220

The next hurdle is to get this data through the yum API as opposed to manipulating the output from "yum check-update" or "yum list". The issue we're running into right now is that even if you tell yum to work from the cache, there is still a DNS lookup event against all the configured yum repos. Normally this is OK, but it causes problems when a repo is having problems. This can cause delays in running the command for several minutes, which in a web interface isn't going to cut it.

Plan B is to extract this data directly from the yum sqlite DB's used by each repository. This was my original idea, but I think going through the yum api is going to be more efficient, and save time if the formats change in the future.

PS- send help!
Troy McClure
Forum Regular
Forum Regular
Posts: 196
Joined: Tue May 10, 2005 1:24 pm

Unread post by Troy McClure »

After I posted in this thread, I haven't had any extra time to think about this. I will try to catch you on im later today if I have time and see what I can help with.
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Awesome, right now weve completed the prototype which can:

Update/Install/Remove packages
Browse Repositories
View information about a package

The TODO is:
Search
Confirmation Screen (Are you sure you want to remove/update/install these packages Y/N?)
Edit/Add/Remove Repositories
Group View
"Monitor-mode" (This is if you have a really long update, something to watch a log file from yum rather than wait for yum to exit normally inside PHP.)
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

The initial release, version 0.1 is now available for CentOS5. CentOS4 is going to take a little bit more work due to the lack of a core dependency not being available. You might also be able to get this to work on FC6 or FC7 so versions have been produced for those platforms as well (untested).

You can install atomic-yum through yum with:

yum install atomic-yum

This version supports Smarty templates, which is great because as you'll quickly see, Tony and I have exactly zero skill with making a good looking interface. Someone save us from ourselves!

Ubiquitous screenshots are available here:
http://www.atomicrocketturtle.com/galle ... temId=1428
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Very nice Scott and Thx! :) keep us posted on the CentOS 4 version please :) I saw version 1.0.3 was released yesterday...
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Atomic-yum 0.2 is out, this supports CentOS4.

and there was much rejoicing
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Works great on CentOS 4 now :) Thx! again, maybe you can give it another color icon as the ASL icon ;)
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
Kalimari
Forum Regular
Forum Regular
Posts: 526
Joined: Wed Jan 02, 2008 3:21 pm
Location: United Kingdom

Unread post by Kalimari »

Works great on RHEL4 also (as you'd expect), just upgraded ASL. I agree about the icon colour, but it's no biggie!

Thanks guys - nice work :D
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Awesome. If someone wants to give us a hand on the graphics side that would be great, the extent of my skills go no further than cut and paste.
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

Turtle
Image = ASL
Image = Backup?
Image = YUM (Yellow)
Image = Next?

Bug
Image = ASL
Image = YUM
Image = Next?

Shield
Image = ASL
Image = YUM
Image = Next?

Plugin
Image = ASL
Image = YUM
Image = Next?

Server
Image = ASL
Image = YUM
Image = Next?

Others
Image Image Image
Image Image

How many Plesk modules do you have?
Last edited by BerArt on Wed Feb 06, 2008 8:22 am, edited 1 time in total.
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
scott
Atomicorp Staff - Site Admin
Atomicorp Staff - Site Admin
Posts: 8355
Joined: Wed Dec 31, 1969 8:00 pm
Location: earth
Contact:

Unread post by scott »

Wow thats awesome! How do you do that so fast?

At the moment, I have the 2 modules done (ASL, and yum), and ideas for lots of other ones. Like backups for example, or cluster management.
BerArt
Forum Regular
Forum Regular
Posts: 478
Joined: Tue Jan 15, 2008 3:57 am
Location: Netherlands

Unread post by BerArt »

back-up! that would be nice! :) Most of these icons I have in archive. I have a lot more (royalty free offcause) feel free to use them.
best regards,

http://hosting.ber-art.nl
Professional Secure Linux Plesk Hosting
Post Reply