You are not logged in.

#1 2010-03-20 19:18:01

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 139

archup - the lightweigth archlinux update-notifier

Hi,
I want to present you http://wiki.archlinux.org/index.php/archup. It's a small C application using libnotify to display desktop-notifications about new archlinux updates.

More informations, screenshots and downloadlinks can be found in the wiki .

Offline

#2 2010-03-20 19:22:33

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: archup - the lightweigth archlinux update-notifier

great, i try now wink!!

Offline

#3 2010-03-20 21:08:07

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 120
Website

Re: archup - the lightweigth archlinux update-notifier

@Rorschach
Just what I was looking for!
Installed,cron job set and waiting for updates notification...

Last edited by ancleessen4 (2010-03-20 21:09:48)

Offline

#4 2010-03-20 23:01:02

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: archup - the lightweigth archlinux update-notifier

works perfectly,
Btw. in the cron script is important to change the user_name. Maybe add a note in the wiki.

Offline

#5 2010-03-21 11:45:30

Roline
Member
From: Netherlands
Registered: 2009-12-05
Posts: 207
Website

Re: archup - the lightweigth archlinux update-notifier

Waiting for the cronjob to do its duty.


Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch

Offline

#6 2010-03-21 13:29:43

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 120
Website

Re: archup - the lightweigth archlinux update-notifier

and waiting...

The bash script works if I click on it in /etc/cron.hourly.

#!/bin/bash

arch_user=neil

if [ -z "$(pgrep pacman)" ];then
        /usr/bin/pacman -Sy > /dev/null
fi
XAUTHORITY=/home/$arch_user/.Xauthority DISPLAY=:0.0 /usr/bin/archup

As you can see from the screengrab I get a knotify popup telling me there are updates available.
I have yet to see this happen by cron.hourly

snapshot-archup-150x150.png

Full size http://neilhoughton.com/wp-content/uplo … archup.png
Any tips much appreciated.

Offline

#7 2010-03-21 14:02:41

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: archup - the lightweigth archlinux update-notifier

Do you give execute permissions to the script?
Btw, the name of the script is: cron.hourly?

Last edited by n0dix (2010-03-21 14:04:18)

Offline

#8 2010-03-21 14:36:12

seiichiro0185
Member
From: Leipzig/Germany
Registered: 2009-04-09
Posts: 182
Website

Re: archup - the lightweigth archlinux update-notifier

thanks rorschach, working well here!


My Scripts at github: github
My Homepage: Seiichiros HP

Offline

#9 2010-03-21 14:46:07

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 120
Website

Re: archup - the lightweigth archlinux update-notifier

OK-renamed the script: cron.hourly and executable...

Offline

#10 2010-03-21 14:48:25

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: archup - the lightweigth archlinux update-notifier

ancleessen4 wrote:

OK-renamed the script: cron.hourly and executable...

this means, it works, or you do that and didn't work?

Offline

#11 2010-03-21 14:54:50

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 120
Website

Re: archup - the lightweigth archlinux update-notifier

OK-if I click on 'cron.hourly' I get the knotify window popup for 5 seconds showing updates are available.
See my screenshot as before.
So, do I wait now for the cron job to happen in the next hour?

Offline

#12 2010-03-21 15:04:13

n0dix
Member
Registered: 2009-09-22
Posts: 956

Re: archup - the lightweigth archlinux update-notifier

ancleessen4 wrote:

OK-if I click on 'cron.hourly' I get the knotify window popup for 5 seconds showing updates are available.
See my screenshot as before.
So, do I wait now for the cron job to happen in the next hour?

I supposed are differents ways to do this but i'm not called the script cron.hourly but archup.sh and put it into /etc/cron.hourly/ directory.

Offline

#13 2010-03-21 15:10:53

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 120
Website

Re: archup - the lightweigth archlinux update-notifier

OK-modified accordingly and waiting on cronjob again.

Offline

#14 2010-03-21 15:40:36

beroal
Member
From: Ukraine
Registered: 2009-06-07
Posts: 234
Website

Re: archup - the lightweigth archlinux update-notifier

I'm seeking a notifier which does not use that pop-up window. It interrupts my work.

Last edited by beroal (2010-03-21 15:40:51)


we are not condemned to write ugly code

Offline

#15 2010-03-21 16:04:09

yugrotavele
Member
From: Fond du Lac, WI
Registered: 2007-10-14
Posts: 12

Re: archup - the lightweigth archlinux update-notifier

Works perfectly! Thanks.


The box said
"Requires Windows XP or better"
So I installed Arch Linux.
Registered Linux User # 424781

Offline

#16 2010-03-21 17:55:28

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 139

Re: archup - the lightweigth archlinux update-notifier

Thanks for your feedback! I updated the wiki in order to better explain how to setup archup. I also created a manpage.

I also released a new version 1.2.

Changelog:
* improved sourcecode documentation
* added commandline options (--help,--version,--timeout|-tm,--maxentries|-m)
* moved timeout and maxentries values from compiletime-options to runtime-options
* replaced the static memory managment with a dynamic one using realloc
* added manpage
* added $DESTDIR support in the make install and make uninstall commands

Offline

#17 2010-03-21 18:52:54

arch0r
Member
From: From the Chron-o-John
Registered: 2008-05-13
Posts: 597

Re: archup - the lightweigth archlinux update-notifier

thx a lot for this handy app! actually, i love to pacman manually, but this is really nice and extends and improves every arch desktop :>

how do i use knotify? every hour this ugly gtk notify thingy pops up hmm

Offline

#18 2010-03-21 19:24:05

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 139

Re: archup - the lightweigth archlinux update-notifier

knotify is not supported, just libnotify. I also can't find knotify documentation for C or some examples about it and because I don't use KDE I have no idea about this...but patches are welcome!

Offline

#19 2010-03-22 00:14:54

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 120
Website

Re: archup - the lightweigth archlinux update-notifier

Oops, so I am using KDE and this does not work?

Offline

#20 2010-03-22 00:17:51

flamelab
Member
From: Athens, Hellas (Greece)
Registered: 2007-12-26
Posts: 2,160

Re: archup - the lightweigth archlinux update-notifier

ancleessen4 wrote:

Oops, so I am using KDE and this does not work?

It works right here:


tM3dxNQ

Offline

#21 2010-03-22 00:26:01

ancleessen4
Member
From: Luxembourg
Registered: 2009-11-22
Posts: 120
Website

Re: archup - the lightweigth archlinux update-notifier

@flamelab
Cool-patience is a virtue...
I will see what tomorrow brings.

Offline

#22 2010-03-22 00:39:25

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 139

Re: archup - the lightweigth archlinux update-notifier

@flamelab: Is there anything special needed to make it run under KDE with knotify? And can I use your screenshot in the wiki?

Last edited by Rorschach (2010-03-22 00:45:06)

Offline

#23 2010-04-03 12:46:50

Rorschach
Member
From: Ankh-Morpork
Registered: 2008-11-07
Posts: 139

Re: archup - the lightweigth archlinux update-notifier

Released new version 1.3. Changelog:
archup-1.3
        * some code cleanup, updated docs, ...
        * added --uid|-i flag to allow dropping the rights if executed as root-cronjob
        * added --command|-c flag to allow a custom updatelist retrival command
        * added --urgency|-u flag to choose the urgencylevel and thus the color of the notification

Code hosting moved from launchpad (bzr) to savannah (git) and new webpage: http://www.nongnu.org/archup/

Offline

#24 2010-04-12 00:17:41

Roline
Member
From: Netherlands
Registered: 2009-12-05
Posts: 207
Website

Re: archup - the lightweigth archlinux update-notifier

It works great, but one little thing: it shows packages that I have added to the ignorepkg. There for the the notice constantly shows up, even when there are no packages to update. smile


Bitbucket - DeviantART - Userstyles
*Currently Not Using Arch

Offline

#25 2010-04-12 05:09:49

Andrwe
Member
From: Leipzig/Germany
Registered: 2009-06-17
Posts: 322
Website

Re: archup - the lightweigth archlinux update-notifier

Very nice tool Rorschachn, thank you.
Because I've build my own repository I've written a little script which runs using your Archup and check for updates of packages in my repository, too.

Offline

Board footer

Powered by FluxBB