Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
System updates menu for ob3
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo Chat
View previous topic :: View next topic  
Author Message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Fri Oct 08, 2004 6:02 am    Post subject: System updates menu for ob3 Reply with quote

I made yet another pipe menu generator for Openbox. This time it generates a menu that has all the system updates in it (output of emerge -uD world). You can click on individual updates in the menu to update just that one package or click Update All to update every package.

If you don't run Openbox as root (not recommended) then you have to allow whatever user you run Openbox with to run emerge without having to provide a password in your sudoers file.

Preview
Script

Let me know if you run into any problems. I'm sure there will be some. :P

EDIT: I made a new one that now supports caching. It is also written entirely in perl now. Check it out.


Last edited by seank on Fri Oct 08, 2004 10:38 pm; edited 1 time in total
Back to top
View user's profile Send private message
Deranger
Veteran
Veteran


Joined: 26 Aug 2004
Posts: 1215

PostPosted: Fri Oct 08, 2004 6:26 am    Post subject: Reply with quote

Oh my god! It's just great to see new OpenBox goodies every day :P

Gmail, Free Space, Links, News Headlines, Process List...

Thanks and keep up the great work ;)
Back to top
View user's profile Send private message
denstark
l33t
l33t


Joined: 02 Jun 2003
Posts: 654
Location: sd.ca.us

PostPosted: Fri Oct 08, 2004 12:32 pm    Post subject: Reply with quote

Thatas freaking slick. I love OB! :D
_________________
Blog
Code:
denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
Back to top
View user's profile Send private message
denstark
l33t
l33t


Joined: 02 Jun 2003
Posts: 654
Location: sd.ca.us

PostPosted: Fri Oct 08, 2004 12:48 pm    Post subject: Reply with quote

I got a request/comment.

When selecting an update, or updating them all, it doesnt show any output, so if it could be made to launch a terminal (most likeley xterm) to show the output, so your not swinging in the dark about when it would be finished.

Other than that, it works good with sudo, just set a rule to allow your user to use emerge.

Thanks again, works like a charm.
_________________
Blog
Code:
denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Fri Oct 08, 2004 6:56 pm    Post subject: Reply with quote

Yeah, good idea... It should now launch xterm.
Back to top
View user's profile Send private message
syscrash
Guru
Guru


Joined: 14 Apr 2003
Posts: 541

PostPosted: Fri Oct 08, 2004 7:22 pm    Post subject: Reply with quote

Thats pretty cool. I guess we have sparked the openbox revolution! :lol:
_________________
Play ET? Come by #gentoo.et on freenode!
http://syscrash.ca
Back to top
View user's profile Send private message
denstark
l33t
l33t


Joined: 02 Jun 2003
Posts: 654
Location: sd.ca.us

PostPosted: Fri Oct 08, 2004 7:26 pm    Post subject: Reply with quote

I added your script(s) to my OB Resource Thread here
8)
_________________
Blog
Code:
denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
Back to top
View user's profile Send private message
geniux
Veteran
Veteran


Joined: 19 Feb 2004
Posts: 1400
Location: /home

PostPosted: Fri Oct 08, 2004 8:26 pm    Post subject: Reply with quote

Would this, somehow, be possible to put into my Flux-menu? Must have
_________________
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Back to top
View user's profile Send private message
placeholder
Advocate
Advocate


Joined: 07 Feb 2004
Posts: 2500

PostPosted: Fri Oct 08, 2004 8:30 pm    Post subject: Reply with quote

geniux wrote:
Would this, somehow, be possible to put into my Flux-menu? Must have

With the current Fluxbox, it would not be possible due to it not support pipe menus.
Back to top
View user's profile Send private message
geniux
Veteran
Veteran


Joined: 19 Feb 2004
Posts: 1400
Location: /home

PostPosted: Fri Oct 08, 2004 8:35 pm    Post subject: Reply with quote

Pwnz3r wrote:
geniux wrote:
Would this, somehow, be possible to put into my Flux-menu? Must have

With the current Fluxbox, it would not be possible due to it not support pipe menus.

As I figured :(
Anyway to rewrite the code or so? I can't code, so for me it's screwed
_________________
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Fri Oct 08, 2004 8:36 pm    Post subject: Reply with quote

geniux wrote:
Would this, somehow, be possible to put into my Flux-menu? Must have

You could actually do that in fluxbox, but it would be inefficient and a pain in the ass. :) Fluxbox allows you to include other menu files into the main menu file, so... a script could generate a menu and put it into a file and then the main menu file would include it. The script would have to be a daemon though and generate a new menu whenever there is a change. You should just switch to Openbox. ;p
Back to top
View user's profile Send private message
denstark
l33t
l33t


Joined: 02 Jun 2003
Posts: 654
Location: sd.ca.us

PostPosted: Fri Oct 08, 2004 8:38 pm    Post subject: Reply with quote

Or at least give Openbox a try ;-)
_________________
Blog
Code:
denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
Back to top
View user's profile Send private message
geniux
Veteran
Veteran


Joined: 19 Feb 2004
Posts: 1400
Location: /home

PostPosted: Fri Oct 08, 2004 8:39 pm    Post subject: Reply with quote

skennedy wrote:
geniux wrote:
Would this, somehow, be possible to put into my Flux-menu? Must have

You could actually do that in fluxbox, but it would be inefficient and a pain in the ass. :) Fluxbox allows you to include other menu files into the main menu file, so... a script could generate a menu and put it into a file and then the main menu file would include it. The script would have to be a daemon though and generate a new menu whenever there is a change. You should just switch to Openbox. ;p

I've tried it out, but for some reason I like Flux better :(
_________________
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Back to top
View user's profile Send private message
placeholder
Advocate
Advocate


Joined: 07 Feb 2004
Posts: 2500

PostPosted: Fri Oct 08, 2004 9:22 pm    Post subject: Reply with quote

geniux wrote:
I've tried it out, but for some reason I like Flux better :(

I liked Fluxbox more for a while, but once I got to coding my own pipe menus it became more fun to use Openbox. Also, the added mouse bindings are very handy. :wink:
Back to top
View user's profile Send private message
geniux
Veteran
Veteran


Joined: 19 Feb 2004
Posts: 1400
Location: /home

PostPosted: Fri Oct 08, 2004 9:28 pm    Post subject: Reply with quote

Pwnz3r wrote:
geniux wrote:
I've tried it out, but for some reason I like Flux better :(

I liked Fluxbox more for a while, but once I got to coding my own pipe menus it became more fun to use Openbox. Also, the added mouse bindings are very handy. :wink:

Yea, I've heard and read of all this great stuff. But I've used Flux since 2002, and I've always come back to it after trying someother wm/de, I'm stuck. But I do play a little with ob on the side, but it doesn't give me the same satisfaction though.
_________________
AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Fri Oct 08, 2004 10:42 pm    Post subject: Reply with quote

I realeased an improved system updates script.

It now caches the updates. Refer to my original post to see a screenshot and get the new one.

I would have to say the main reason I wrote in caching support is because if I accidently moused over the "Available Updates" menu i would have to wait 10 seconds for it to finally let me do something else ;p -- You can change the lifetime of the cache to w/e you think is necassary. In the next release, I would like it to only update the menu if an "emerge sync" has been performed or an update. Anyway, enjoy it for now :P

denstark: Could you please update your resource thread? It's now a perl script (updates.pl instead of updates.sh). Thanks :)
Back to top
View user's profile Send private message
denstark
l33t
l33t


Joined: 02 Jun 2003
Posts: 654
Location: sd.ca.us

PostPosted: Fri Oct 08, 2004 11:00 pm    Post subject: Reply with quote

skennedy wrote:
I realeased an improved system updates script.

It now caches the updates. Refer to my original post to see a screenshot and get the new one.

I would have to say the main reason I wrote in caching support is because if I accidently moused over the "Available Updates" menu i would have to wait 10 seconds for it to finally let me do something else ;p -- You can change the lifetime of the cache to w/e you think is necassary. In the next release, I would like it to only update the menu if an "emerge sync" has been performed or an update. Anyway, enjoy it for now :P

denstark: Could you please update your resource thread? It's now a perl script (updates.pl instead of updates.sh). Thanks :)

Yes, i will :)
_________________
Blog
Code:
denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Sat Oct 09, 2004 7:36 am    Post subject: Reply with quote

I released a new one. It now caches when you have no updates instead of just when you do have updates.
Back to top
View user's profile Send private message
s3ntient
Guru
Guru


Joined: 13 Apr 2003
Posts: 304
Location: Lyon, France

PostPosted: Tue Oct 26, 2004 2:41 am    Post subject: Reply with quote

Not Found

The requested URL /updates.pl was not found on this server.

:cry:
_________________
http://blog.chaostrophy.org
Back to top
View user's profile Send private message
seank
l33t
l33t


Joined: 08 Jul 2004
Posts: 686

PostPosted: Tue Oct 26, 2004 2:51 am    Post subject: Reply with quote

Zyklon wrote:
Not Found

The requested URL /updates.pl was not found on this server.

:cry:

It's at http://seank.homelinux.com/ob3_goodies.
Back to top
View user's profile Send private message
ashtophet
Guru
Guru


Joined: 08 Aug 2004
Posts: 397

PostPosted: Mon Jan 24, 2005 1:14 pm    Post subject: Reply with quote

Hi, could anyone post a diferent mirror for update.pl? I've been trying during last days, but server seems dead...

thanX

Edit. The wonderful webpage is up again... ;)
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
Page 1 of 1

 
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