| Author |
Message |
|
Stevo
MEPIS Enthusiast
Joined: Fri Dec 15, 2006 8:07 pm Posts: 7354 Location: Skullcrusher Mountain, Santee, CA USA Has thanked: 322 times Have thanks: 1185 times
|
Post # 225089
 Anybody thinking about an apt-notify plasmoid?
What was the old KDE 3 app polling to find out if there were updates? A python plasmoid is quite easy to build, either manually or with Kdevelop (install kdevelop and kdesdk) see this link: http://www.ibm.com/developerworks/linux/library/l-kde-plasmoids/?ca=drs-but I really don't know the code to insert into the plasmoid. You can look at something like the simple CPU temperature plasmoid at kde-look.org to see how he greps the cpu temp (a .plasmoid file is just a renamed tar.gz, easy to extract), and one that displays the number of updates would show it on the desktop or on the taskbar. Edit: Latest test versions of the applet:
You do not have the required permissions to view the files attached to this post.
_________________ Lenovo ThinkPad Edge 14 inch: 4 GB RAM, Intel i5-480 processor, Intel HD graphics and sound, Intel 1000 "n" WiFi, Acer CrystalEye webcam, Hot Keys, suspend, hibernate, KDE openGL effects: all work out of the box with 64-bit MEPIS 11!
|
| Sun Apr 04, 2010 11:27 pm |
|
 |
|
The Garage
MEPIS Rules!
Joined: Tue Jan 15, 2008 7:32 am Posts: 335 Has thanked: 1 time Have thanks: 1 time
|
Post # 225091
I once had trouble with mepis apt-notify & had to add this to my /etc/sudoers file to make it work again. Maybe this points you in the right direction?
_________________
|
| Sun Apr 04, 2010 11:47 pm |
|
 |
|
kmathern
MEPIS Enthusiast
Joined: Wed Jul 12, 2006 2:26 pm Posts: 5144 Has thanked: 269 times Have thanks: 1400 times
|
Post # 225094
Could you do something with apt-show-versions -u, it can run as either user or root. If you have upgrades available you get something like: {I temporarily enabled squeeze so there would be upgrades available to show you} You could grep on the word "upgradeable". With some fancy scripting (beyond my ability) you might even be able to keep a count of how many occurances of "upgradeable" were grep'd. How would the apt-get update as a regular user get performed? Could fakeroot do that?
|
| Sun Apr 04, 2010 11:56 pm |
|
 |
|
Stevo
MEPIS Enthusiast
Joined: Fri Dec 15, 2006 8:07 pm Posts: 7354 Location: Skullcrusher Mountain, Santee, CA USA Has thanked: 322 times Have thanks: 1185 times
|
Post # 225097
There's an apt updating script in /etc/cron.daily that already is doing that, and it could be moved into the cron.hourly folder. I think that was what the old notifier was using.
_________________ Lenovo ThinkPad Edge 14 inch: 4 GB RAM, Intel i5-480 processor, Intel HD graphics and sound, Intel 1000 "n" WiFi, Acer CrystalEye webcam, Hot Keys, suspend, hibernate, KDE openGL effects: all work out of the box with 64-bit MEPIS 11!
|
| Mon Apr 05, 2010 12:05 am |
|
 |
|
kmathern
MEPIS Enthusiast
Joined: Wed Jul 12, 2006 2:26 pm Posts: 5144 Has thanked: 269 times Have thanks: 1400 times
|
Post # 225099
The old mepis-aptnotify package installed a /etc/apt/apt.conf.d/15periodic-update file that contained:
|
| Mon Apr 05, 2010 12:11 am |
|
 |
|
tzefanyah
MEPIS Novice
Joined: Tue Dec 09, 2008 7:35 pm Posts: 73 Has thanked: 0 time Have thanks: 0 time
|
Post # 225132
 Porting suggestion....
Hello,
What about porting what PCLinuxOS uses? Eventhough it is rpm based they use synaptic package manager like we do. I am going to check to see if I could download an rpm and covert to alien and see what I can do from there. I will keep everyone posted.
Update: Looked in the their repo and did not see any obvious file. I believe the have one though and I think any accompanying scripts could be modified from rpm to deb based. I think I will leave this to those who have more experience, but let us know if I could be on to something.
regards, tzefanyah
_________________ Only Linux since 1997. Athlon XP3000 3gb RAM 256mb Nvidia FX6200 MAudio 1010LT snd card
|
| Mon Apr 05, 2010 8:06 am |
|
 |
|
Adrian
MEPIS Enthusiast
Joined: Wed Jul 12, 2006 1:42 am Posts: 3544 Has thanked: 181 times Have thanks: 297 times
|
Post # 225143
Yes, that's it, MEPIS 8 and some older version had that in sudoers. I can't try apt-get -s upgrade right now because I don't have anything to update on my system but I bet you could use some simple grep/cut commands to get how many upgrades are available.
|
| Mon Apr 05, 2010 10:17 am |
|
 |
|
Stevo
MEPIS Enthusiast
Joined: Fri Dec 15, 2006 8:07 pm Posts: 7354 Location: Skullcrusher Mountain, Santee, CA USA Has thanked: 322 times Have thanks: 1185 times
|
Post # 225145
Yes, that's it. Pehaps we can add some of those older apt-notify files to a apt-notify python plasmoid to get it working like the old one: the sudoers modification, the /etc/apt/apt.conf.d/15periodic-update,and the plasmoid. It would require the plasma-python engine, but that's 180 K uncompressed.
_________________ Lenovo ThinkPad Edge 14 inch: 4 GB RAM, Intel i5-480 processor, Intel HD graphics and sound, Intel 1000 "n" WiFi, Acer CrystalEye webcam, Hot Keys, suspend, hibernate, KDE openGL effects: all work out of the box with 64-bit MEPIS 11!
|
| Mon Apr 05, 2010 11:01 am |
|
 |
|
kmathern
MEPIS Enthusiast
Joined: Wed Jul 12, 2006 2:26 pm Posts: 5144 Has thanked: 269 times Have thanks: 1400 times
|
Post # 225151
Do you need to do anything else after having used visudo to add to /etc/sudoers? Do you need to logout, restart X, run some other command, etc. I still get the following error message:
|
| Mon Apr 05, 2010 11:19 am |
|
 |
|
richb
Administrator
Joined: Wed Jul 12, 2006 2:17 pm Posts: 8750 Location: Rochester NY Has thanked: 580 times Have thanks: 956 times
|
Post # 225152
You are more knowledgeable than me about this. But shouldn't you be
root@mepis1
[kent@mepis1 ~]$ /usr/bin/apt-get -s upgrade E: Could not open lock file /var/lib/dpkg/lock - open (13 Permission denied) E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
_________________ Forum Rules Guide - How to Ask for Help Link to Wiki Rich
Acer Laptop 5750G: Intel i5, 4 GIG mem, nVidia GT540M/Intel integrated graphics Kubuntu 13.04, KDE 4.10.2 M12 Alpha 2 in VirtualBox
|
| Mon Apr 05, 2010 11:23 am |
|
|