View previous topic :: View next topic |
Author |
Message |
seank l33t
Joined: 08 Jul 2004 Posts: 686
|
Posted: Fri Oct 08, 2004 6:02 am Post subject: System updates menu for ob3 |
|
|
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.
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 |
|
|
Deranger Veteran
Joined: 26 Aug 2004 Posts: 1215
|
Posted: Fri Oct 08, 2004 6:26 am Post subject: |
|
|
Oh my god! It's just great to see new OpenBox goodies every day
Gmail, Free Space, Links, News Headlines, Process List...
Thanks and keep up the great work |
|
Back to top |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Fri Oct 08, 2004 12:32 pm Post subject: |
|
|
Thatas freaking slick. I love OB! _________________ Blog
Code: | denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
|
|
|
Back to top |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Fri Oct 08, 2004 12:48 pm Post subject: |
|
|
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 |
|
|
seank l33t
Joined: 08 Jul 2004 Posts: 686
|
Posted: Fri Oct 08, 2004 6:56 pm Post subject: |
|
|
Yeah, good idea... It should now launch xterm. |
|
Back to top |
|
|
syscrash Guru
Joined: 14 Apr 2003 Posts: 541
|
Posted: Fri Oct 08, 2004 7:22 pm Post subject: |
|
|
Thats pretty cool. I guess we have sparked the openbox revolution! _________________ Play ET? Come by #gentoo.et on freenode!
http://syscrash.ca |
|
Back to top |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Fri Oct 08, 2004 7:26 pm Post subject: |
|
|
I added your script(s) to my OB Resource Thread here
_________________ Blog
Code: | denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
|
|
|
Back to top |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Oct 08, 2004 8:26 pm Post subject: |
|
|
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 |
|
|
placeholder Advocate
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Fri Oct 08, 2004 8:30 pm Post subject: |
|
|
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 |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Oct 08, 2004 8:35 pm Post subject: |
|
|
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 |
|
|
seank l33t
Joined: 08 Jul 2004 Posts: 686
|
Posted: Fri Oct 08, 2004 8:36 pm Post subject: |
|
|
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 |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Fri Oct 08, 2004 8:38 pm Post subject: |
|
|
Or at least give Openbox a try _________________ Blog
Code: | denstark> starbuck authorizes torture?
rokstar> sure they do, you tried their coffee?
|
|
|
Back to top |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Oct 08, 2004 8:39 pm Post subject: |
|
|
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 |
|
|
placeholder Advocate
Joined: 07 Feb 2004 Posts: 2500
|
Posted: Fri Oct 08, 2004 9:22 pm Post subject: |
|
|
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. |
|
Back to top |
|
|
geniux Veteran
Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Oct 08, 2004 9:28 pm Post subject: |
|
|
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. |
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 |
|
|
seank l33t
Joined: 08 Jul 2004 Posts: 686
|
Posted: Fri Oct 08, 2004 10:42 pm Post subject: |
|
|
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
denstark: Could you please update your resource thread? It's now a perl script (updates.pl instead of updates.sh). Thanks |
|
Back to top |
|
|
denstark l33t
Joined: 02 Jun 2003 Posts: 654 Location: sd.ca.us
|
Posted: Fri Oct 08, 2004 11:00 pm Post subject: |
|
|
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
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 |
|
|
seank l33t
Joined: 08 Jul 2004 Posts: 686
|
Posted: Sat Oct 09, 2004 7:36 am Post subject: |
|
|
I released a new one. It now caches when you have no updates instead of just when you do have updates. |
|
Back to top |
|
|
s3ntient Guru
Joined: 13 Apr 2003 Posts: 304 Location: Lyon, France
|
Posted: Tue Oct 26, 2004 2:41 am Post subject: |
|
|
Not Found
The requested URL /updates.pl was not found on this server.
_________________ http://blog.chaostrophy.org |
|
Back to top |
|
|
seank l33t
Joined: 08 Jul 2004 Posts: 686
|
|
Back to top |
|
|
ashtophet Guru
Joined: 08 Aug 2004 Posts: 397
|
Posted: Mon Jan 24, 2005 1:14 pm Post subject: |
|
|
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 |
|
|
|