I noticed that Trisquel doesn't automatically check for updates, so I made "yawn"...

8 replies [Last post]
jHvost
Offline
Joined: 04/10/2015

... And I want to share it with you guys :)

It's just a *simple* script (nothing too fancy) that, as the thread title says, checks every 30 minutes for updates and asks you if you want to install them right away or later on.

A .deb package has already been made by me (my first one :D), so you just have to run two commands (literally) to install yawn.

Here's the source and the .deb package: https://github.com/JustHvost/yawn

By the way, English is not my main language so: sorry for any grammars mistakes.

Any suggestions on how to improve yawn are welcome, of course :)

(I was bored while writing this script, "yawn" seemed an appropriate name to me. So I'm sticking with it)

lembas
Offline
Joined: 05/13/2010

I guess now would be a good time to inform you that Trisquel does automatically check for updates.

jHvost
Offline
Joined: 04/10/2015

It doesn't, on my pc at least. Sooo dunno :/

Magic Banana

I am a member!

I am a translator!

Offline
Joined: 07/24/2010

See the third tab ("Updates") of "Software & updates" in the "System settings". You can decide there to automatically check for updates. At most once a day. Checking more frequently is kind of a waste of bandwidth (there are not that many mirrors of Trisquel's repositories).

Also, you should learn about 'cron' (instead of using the 'sleep' command). I actually believe /etc/cron.daily/apt daily checks for updates on my system (because I asked for daily updates in the utility mentioned above) and /etc/cron.daily/update-notifier-common notifies them to me.

marioxcc
Offline
Joined: 08/13/2014

¡Thanks for sharing the script!. Even if it duplicates existing functionality, the intention is good and so is the attitude of working in the problems you face and sharing the solution.

I recommend licensing under the GNU GPL 3 or any later version and to follow the GNU project licensing recommendations. There is a guide to the GNU GPL in http://copyleft.org/, alternative link http://gpl.guide/.

There are software hosting providers more compatible with the free software philosophy than Github, consider using them instead. There is GNU Savannah and several others. See threads in this forum 1, 2, 3, 4, 5 or use this web site search engine on “gitorious”, which will give several threads about alternatives to it, including the ones I listed.

Calinou
Offline
Joined: 03/08/2014

Use http://notabug.org/ or http://git.framasoft.org/ for hosting.

Short scripts don't need to use the GPLv3, you can use the Expat (MIT) license: http://choosealicense.com/licenses/mit/

onpon4
Offline
Joined: 05/30/2012

I'd recommend the Apache License over the Expat License. It's a longer license, but it doesn't need to be distributed with the program anyway, and it provides protection from patents.

marioxcc
Offline
Joined: 08/13/2014

I advice against recommending and using http://choosealicense.com/. It uses the open source viewpoint, promotes the attitude of “make the least effort possible” when licensing, and contains outright falsehoods.

Specifically, it invites to the bad practice of simply placing a license file in the program repository (see the link for an explanation). While it mentions the FSF and Apache Foundation recommendation of clearly licensing each file, it doesn't endorses it or mentions why it is important. The site fails miserably to address other points of licensing, like including Copyright notices for each Copyright holder: it doesn't even tries. Following their recommendation of just placing the license itself leaves the program without a Copyright notice.

The site contains factual errors: it asserts than “no license” allows commercial and private use. The GNU project has a better explanation of the effects of not including a license. See also Wikipedia and Commons explanations.

In the age where short web pages are around 30 KB of HTML plus images and reusable CSS, there is no reason to reject the GNU GPL on size. Also, if size is a problem, the Copyright holder can waive the requirement to include a copy of the GNU GPL. Copyleft is more than legal protection from proprietarization, it is also a political statement, and therefore it is a good idea to use it even for small scripts.

We have a serious source of information on licensing from the GNU Project which is much more comprehensive and has links to essays on free software as well (so it promotes the free software philosophy). I recommend, and advice to recommend this resource instead.

onpon4
Offline
Joined: 05/30/2012

It looks like that page is talking about use, i.e. which doesn't involve distribution. Stuff that has nothing to do with copyright.