Fw: Adding a kernel removal script to linux-base or elsewhere

2017-01-13 Thread Jarno Suni


> On Friday, January 13, 2017 5:55 PM, Jarno Suni  wrote:
> >>  On Friday, October 14, 2016 2:13 AM, Alberto Salvia Novella 
>  wrote:
> 
> 
>>  Well, better to fix a thousand computers for the same effort than 
>>  servicing yours alone.
> 
> If you get money for fixing each computer individually, i.e. supporting each 
> client individually, it might be a better deal for you not to provide a fix 
> that 
> services them all publicly.
> 
>>  In the end of the day I need the fix for myself. Why not sharing it 
>>  then, so it becomes available in any computer from now on?
> 
> Everybody gets fixes that are publicly available, but only contributors pay 
> by 
> their work. It is not supportive that the more you contribute, the poorer you 
> get.
> 
> 
>>  That said I believe that, in general, one shall only work in what gives 
>>  good money. Because if it's that valuable to somebody, they will be 
>>  willing to pay for it.
>> 
>>  Just this case is an exception. As the diversity of contributions makes 
>>  it difficult to monetize, it's a byproduct of fixing yourself, and you 
>>  get already a different kind of value: the most powerful computing it 
>>  can be.
> 
> 
> Maybe an association, that had many members, could direct funding to wanted 
> Ubuntu software projects to make Ubuntu and/or its variations greater. The 
> amount of money requested from each member would not be big.
> 

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2017-01-06 Thread Jarno Suni


> On Saturday, October 15, 2016 4:37 PM, Ralf Mardorf 
>  wrote:
> I only wanted to point out that already with minimal knowledge about
> writing shell scripts, it is possible to write a script, that fits to
> individual user needs. If a novice only wants to clean /boot, there are
> tons of scripts available, it requires not much time to get the links,
> when using a much used search engine. DKMS hooks could be tricky,
> they need to run before the kernel gets removed, or the DKMS dir and
> lib/modules need to be cleaned by rm, after the kernel was removed.

And how does one know, if the script works? I have analyzed many of proposed 
scripts and have noticed problems in them. Maybe they work for you, if you are 
lucky. They might e.g. purge more than you expect.

I have never removed lib/modules by rm, but I seem to have only folders for the 
kernels that I have left installed there in the folder anyway, so I do not see 
the problem. Are you sure apt/dpkg do not handle the DKMS hooks? 

> Neither do I know the byobu script, nor yours.

The latter is publicly available 
https://launchpad.net/byobu
https://github.com/dustinkirkland/byobu
It also has open bugs.

> The problem with your script seems to be, that you expect donations.
> Some FLOSS Linux developers follow this concept, too, it works for
> them, if they provide amazing software, that otherwise only could be
> provided by companies of proprietary software, due to the required time
> and manpower. Unlikely that a script to purge kernels is that important.
> If a user should run into issues when using one of the already free as
> in beer provided scripts, she could send a request to the users mailing
> list or any other forum and would get help in fixing the script.

Yes, that is how many Ubuntu users spend their time. Hanging on support 
channels due to broken software. I have done that myself, too.

> If you want to make money from FLOSS, you should offer something for
> free as in beer, too. Assuming it should be amazing software, users of
> the software are likely interested in donating. Some developers of
> amazing software don't want donations, even while many users are
> willing to donate. Some companies provide closed source software, that
> does run on a FLOSS operating system.

I have delivered "free beer" e.g. in 
http://askubuntu.com/users/21005/jarno?tab=answers=activity

Or
https://code.launchpad.net/~jarnos/ppa-purge/+git/ppa-purge/+merge/313001(Though
 I have a significantly better version still unpublished.) 
> In short, it's possible to make money. Regarding a script for
> maintenance, you more likely could earn money by teaching.

Oh, like how?

> In my experience community colleges and something like this, are more
> visited by users of proprietary operating systems, for other computer
> systems, there are usually non-profit clubs and for Linux non-profit
> LUGs.

What community colleges? What are you trying to tell? That some kind of 
association or school would fund my work?

> Good luck!

Thanks.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-18 Thread Jarno Suni
> On Friday, October 14, 2016 1:18 AM, Gunnar Hjalmarsson  
> wrote:

> > Hi Jarno,
> 

> The cold truth is that you can't make money from the kind of help script 
> you have written. People in this community contribute their work all the 
> time for free. We contribute our time and skill, and benefit from 
> contributions from others.


Well, there are software developers paid by Canonical; they write code to 
Ubuntu. E.g. 
Michael Vogt who has written unattended-upgrades and some other apt-related 
stuff.

Ubuntu still does not provide satisfactory automatic kernel removal system at 
least by default. Many end users still get their system wrecked due to kernels 
filling the system. Canonical could do something to help users of supported 
Ubuntu releases to deal with the awkward issue easily. Funding my script would 
be one such thing.

I also have considered publishing the script, and linking a donate button 
somewhere. That way people who have benefited from the script and who maybe are 
not contributors themselves could show some gratitude (if they are aware of 
such a button). But if I believe Gunnar Hjalmarsson, they would not pay anyway.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Ralf Mardorf
On Sat, 15 Oct 2016 17:51:02 + (UTC), Jarno Suni wrote:
>I have tried to make my script safe. Besides it has an optional
>simulation mode: no files or packages will be removed, when using it;
>the script forces to run the simulation mode as normal user. And the
>script has a bug tracker in Launchpad, so people can easily find known
>issues with the script.  

Don't worry, I don't have concerns against anybodies or your scripts.
As Gunnar, my opinion is, that the warning paragraph of the Wiki should
be completely removed. I tried to workaround by editing the paragraph
from "on your own risk" to "ask if you don't understand the content",
but it's definitively better that Gunnar removed it, especially since
my workaround was written in broken English. I usually try to edit
technically issues and not to write long explanations in English. This
is completely unrelated to your script. I just read the link you posted
and as a member of the documentation team, I edit Wikis, if I notice
something and assuming I have got the time to do so.

It's exactly my point that the community notices mistakes and will
correct them, e.b. by reporting bugs, or by disagreeing on a mailing
list, ask Ubuntu, etc. or editing the Wiki.

Regards,
Ralf

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Jarno Suni
> On Saturday, October 15, 2016 6:23 PM, Ralf Mardorf 
>  wrote:


> Some advices, especially from the Ubuntu community, on official Ubuntu
> channels, are encouraging novices to learn. Those sites are monitored by
> the Ubuntu community. Even blogs that are not official Ubuntu
> channels, aren't necessarily bad.
> 
> IMO at least
> 
> "Cryptic Shell Commands
> 
> There are various cryptic shell incantations floating around help sites
> and search engines that promise to remove older kernels. Copy-and-paste
> mysterious incantations into your system at your own risk."
> 
> should read
> 
> "Shell commands and scripts
> 
> There are help sites that help to remove older kernels, too.
> Before you copy-and-paste or install scripts suggested by users of
> official Ubuntu channels, send a request to this channel, to ensure
> that you would do the right thing. Be even more careful with hints from
> websites, that aren't monitored by the Ubuntu community."


I have tried to make my script safe. Besides it has an optional simulation 
mode: no files or packages will be removed, when using it; the script forces to 
run the simulation mode as normal user. And the script has a bug tracker in 
Launchpad, so people can easily find known issues with the script.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Ralf Mardorf
On Sat, 15 Oct 2016 18:40:01 +0200, Gunnar Hjalmarsson wrote:
>I don't think there is a need for that kind of qualification at an 
>individual page in the community help wiki, so I just removed the
>whole section.

Full ACK![1]

I wanted to remove it right now, but you already have done it :), thank
you.

Regards,
Ralf

[1]
"actually I would completely prefer to remove this warning, but
since another author thinks it is required to warn against other help
sites, I guess at least editing it, to make it sound less negative is
appropriate, since at least ask Ubuntu and Ubuntu mailing list archives,
are monitored by the community and usually secure sources of
information. So "on your own risk", should IMO read "ask if you
don't understand the content"." -
https://lists.ubuntu.com/archives/ubuntu-devel-discuss/2016-October/017083.html

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Gunnar Hjalmarsson

On 2016-10-15 17:29, Ralf Mardorf wrote:

On Sat, 15 Oct 2016 17:22:45 +0200, Ralf Mardorf wrote:

Some advices, especially from the Ubuntu community, on official
Ubuntu channels, are encouraging novices to learn. Those sites are
monitored by the Ubuntu community. Even blogs that are not official
Ubuntu channels, aren't necessarily bad.

IMO at least

"Cryptic Shell Commands

There are various cryptic shell incantations floating around help
sites and search engines that promise to remove older kernels.
Copy-and-paste mysterious incantations into your system at your own
risk."

should read

"Shell commands and scripts

There are help sites that help to remove older kernels, too. Before
you copy-and-paste or install scripts suggested by users of
official Ubuntu channels, send a request to this channel, to
ensure that you would do the right thing. Be even more careful with
hints from websites, that aren't monitored by the Ubuntu
community."


"Send a request to this channel"! Which channel?

"To ensure that you would do the right thing"!

What on earth are you talking about? There are thousands of commands, 
code snippets and scripts in the community help wiki. There is no 
"channel", and there is no community or individuals within the community 
who will validate the accuracy of such commands or code. Using at your 
own risk is always implied.



PS:

https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels?action=diff=21=20

 If you disagree, feel free to revert to the previous version,


I don't think there is a need for that kind of qualification at an 
individual page in the community help wiki, so I just removed the whole 
section.


--
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Ralf Mardorf
On Sat, 15 Oct 2016 16:09:42 + (UTC), Jarno Suni wrote:
>> On Saturday, October 15, 2016 6:55 PM, wrote:  
>> I think this is a form of vandalism Ralf. A paranoid message about
>> how users must double check the correct source of whatever script
>> they use. Someone points you to a page he's done and you immediately
>> start to edit it? Because you know better? Jeez...
>
>FWIW, actually I have not written that part of the page. That is Ian
>Weissers' text.
>https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels?action=diff=10=9
>  

JFTR I didn't claim that you have written it ;), Xen claimed you have
done the site. However, even Xen is free to revert it. If Xen wants to
discuss it, there's an appropriate list and I'm even not subscribed to
it, so Xen won't be annoyed by me.

https://lists.ubuntu.com/mailman/listinfo/ubuntu-doc

Regards,
Ralf

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Ralf Mardorf
List owners, could you please ask Xen to stop stalking?

On Sat, 15 Oct 2016 17:55:04 +0200, Xen wrote:
>Ralf Mardorf schreef op 15-10-2016 17:22:
>
>> "Cryptic Shell Commands
>> 
>> There are various cryptic shell incantations floating around help
>> sites and search engines that promise to remove older kernels.
>> Copy-and-paste mysterious incantations into your system at your own
>> risk."
>> 
>> should read
>> 
>> "Shell commands and scripts
>> 
>> There are help sites that help to remove older kernels, too.
>> Before you copy-and-paste or install scripts suggested by users of
>> official Ubuntu channels, send a request to this channel, to ensure
>> that you would do the right thing. Be even more careful with hints
>> from websites, that aren't monitored by the Ubuntu community."
>> 
>> Regards,
>> Ralf  
>
>I think this is a form of vandalism Ralf. A paranoid message about how 
>users must double check the correct source of whatever script they
>use. Someone points you to a page he's done and you immediately start
>to edit it? Because you know better? Jeez...

No, actually I would completely prefer to remove this warning, but since
another author thinks it is required to warn against other help sites,
I guess at least editing it, to make it sound less negative is
appropriate, since at least ask Ubuntu and Ubuntu mailing list archives,
are monitored by the community and usually secure sources of
information. So "on your own risk", should IMO read "ask if you
don't understand the content".

However, stop trolling!

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Jarno Suni
> On Saturday, October 15, 2016 6:55 PM, Xen  wrote:


> I think this is a form of vandalism Ralf. A paranoid message about how 
> users must double check the correct source of whatever script they use. 
> Someone points you to a page he's done and you immediately start to edit 
> it? Because you know better? Jeez...


FWIW, actually I have not written that part of the page. That is Ian Weissers' 
text.
https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels?action=diff=10=9

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Xen

Ralf Mardorf schreef op 15-10-2016 17:22:


"Cryptic Shell Commands

There are various cryptic shell incantations floating around help sites
and search engines that promise to remove older kernels. Copy-and-paste
mysterious incantations into your system at your own risk."

should read

"Shell commands and scripts

There are help sites that help to remove older kernels, too.
Before you copy-and-paste or install scripts suggested by users of
official Ubuntu channels, send a request to this channel, to ensure
that you would do the right thing. Be even more careful with hints from
websites, that aren't monitored by the Ubuntu community."

Regards,
Ralf


I think this is a form of vandalism Ralf. A paranoid message about how 
users must double check the correct source of whatever script they use. 
Someone points you to a page he's done and you immediately start to edit 
it? Because you know better? Jeez...


--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Gunnar Hjalmarsson

On 2016-10-15 15:25, Jarno Suni wrote:

On Friday, October 14, 2016 1:18 AM, Gunnar Hjalmarsson
 wrote: However, you won't show anybody the
script unless you get paid enough money in advance. Did I get it
right? If I did, it's a very odd 'offer' to an open source
community.


No. I'll possibly get paid by Bountysource only after I have
published the code and it has been accepted by backers as a solution
to the issue. To be more specific, refer to
https://github.com/bountysource/core/wiki/Frequently-Asked-Questions


Ok, thanks for the clarification. So it's not "in advance", but IMO it's 
still an odd arrangement for this kind of help script.


--
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Ralf Mardorf
On Sat, 15 Oct 2016 17:22:45 +0200, Ralf Mardorf wrote:
>On Sat, 15 Oct 2016 14:06:02 + (UTC), Jarno Suni wrote:
>>> On Saturday, October 15, 2016 4:37 PM, Ralf Mardorf wrote:  
>>> Just to mention one link out of trillions:
>>> 
>>> http://ubuntuhandbook.org/index.php/2016/05/remove-old-kernels-ubuntu-16-04/
>>> 
>>
>>The substance of that blog post is copied from the Ubuntu Community
>>documentation page mainly I have written:
>>https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels  
>
>The link I posted IMO is straight forward. The Ubuntu help is more
>detailed, perhaps useful if somebody should run into issues, but it
>also could scare or confuse users.
>
>Some advices, especially from the Ubuntu community, on official Ubuntu
>channels, are encouraging novices to learn. Those sites are monitored
>by the Ubuntu community. Even blogs that are not official Ubuntu
>channels, aren't necessarily bad.
>
>IMO at least
>
>"Cryptic Shell Commands
>
>There are various cryptic shell incantations floating around help sites
>and search engines that promise to remove older kernels. Copy-and-paste
>mysterious incantations into your system at your own risk."
>
>should read
>
>"Shell commands and scripts
>
>There are help sites that help to remove older kernels, too.
>Before you copy-and-paste or install scripts suggested by users of
>official Ubuntu channels, send a request to this channel, to ensure
>that you would do the right thing. Be even more careful with hints from
>websites, that aren't monitored by the Ubuntu community."

PS:

https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels?action=diff=21=20

If you disagree, feel free to revert to the previous version, I neither
will edit again, nor discuss it at the editor's list, let alone on this
list.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Ralf Mardorf
On Sat, 15 Oct 2016 14:06:02 + (UTC), Jarno Suni wrote:
>> On Saturday, October 15, 2016 4:37 PM, Ralf Mardorf wrote:  
>> Just to mention one link out of trillions:
>> 
>> http://ubuntuhandbook.org/index.php/2016/05/remove-old-kernels-ubuntu-16-04/ 
>>  
>
>The substance of that blog post is copied from the Ubuntu Community
>documentation page mainly I have written:
>https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels

The link I posted IMO is straight forward. The Ubuntu help is more
detailed, perhaps useful if somebody should run into issues, but it also
could scare or confuse users.

Some advices, especially from the Ubuntu community, on official Ubuntu
channels, are encouraging novices to learn. Those sites are monitored by
the Ubuntu community. Even blogs that are not official Ubuntu
channels, aren't necessarily bad.

IMO at least

"Cryptic Shell Commands

There are various cryptic shell incantations floating around help sites
and search engines that promise to remove older kernels. Copy-and-paste
mysterious incantations into your system at your own risk."

should read

"Shell commands and scripts

There are help sites that help to remove older kernels, too.
Before you copy-and-paste or install scripts suggested by users of
official Ubuntu channels, send a request to this channel, to ensure
that you would do the right thing. Be even more careful with hints from
websites, that aren't monitored by the Ubuntu community."

Regards,
Ralf

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Jarno Suni
> On Saturday, October 15, 2016 4:37 PM, Ralf Mardorf 
>  wrote:

> > Jarno, please reply to the list only,

ok

> I only wanted to point out that already with minimal knowledge about
> writing shell scripts, it is possible to write a script, that fits to
> individual user needs. If a novice only wants to clean /boot, there are
> tons of scripts available, it requires not much time to get the links,
> when using a much used search engine. DKMS hooks could be tricky,
> they need to run before the kernel gets removed, or the DKMS dir and
> lib/modules need to be cleaned by rm, after the kernel was removed.
> 
> Just to mention one link out of trillions:
> 
> http://ubuntuhandbook.org/index.php/2016/05/remove-old-kernels-ubuntu-16-04/


It is kind of sad that you point us to a blog post with commercials. The 
substance of that blog post is copied from the Ubuntu Community documentation 
page mainly I have written:
https://help.ubuntu.com/community/Lubuntu/Documentation/RemoveOldKernels
No credits nor reference mentioned, of course.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Ralf Mardorf
Jarno, please reply to the list only, otherwise I don't receive an
email including the mailing list headers, to avoid duplicates, but this
breaks mailing list reply for my MUA.

I only wanted to point out that already with minimal knowledge about
writing shell scripts, it is possible to write a script, that fits to
individual user needs. If a novice only wants to clean /boot, there are
tons of scripts available, it requires not much time to get the links,
when using a much used search engine. DKMS hooks could be tricky,
they need to run before the kernel gets removed, or the DKMS dir and
lib/modules need to be cleaned by rm, after the kernel was removed.

Just to mention one link out of trillions:

http://ubuntuhandbook.org/index.php/2016/05/remove-old-kernels-ubuntu-16-04/

Neither do I know the byobu script, nor yours.

The problem with your script seems to be, that you expect donations.
Some FLOSS Linux developers follow this concept, too, it works for
them, if they provide amazing software, that otherwise only could be
provided by companies of proprietary software, due to the required time
and manpower. Unlikely that a script to purge kernels is that important.
If a user should run into issues when using one of the already free as
in beer provided scripts, she could send a request to the users mailing
list or any other forum and would get help in fixing the script.

If you want to make money from FLOSS, you should offer something for
free as in beer, too. Assuming it should be amazing software, users of
the software are likely interested in donating. Some developers of
amazing software don't want donations, even while many users are
willing to donate. Some companies provide closed source software, that
does run on a FLOSS operating system.

In short, it's possible to make money. Regarding a script for
maintenance, you more likely could earn money by teaching.

In my experience community colleges and something like this, are more
visited by users of proprietary operating systems, for other computer
systems, there are usually non-profit clubs and for Linux non-profit
LUGs.

Good luck!
Ralf

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Jarno Suni
> On Friday, October 14, 2016 1:18 AM, Gunnar Hjalmarsson  
> wrote:


> There is a script in the archive to help remove old kernels. If I had 
> several old kernels installed, I could easily install the byobu package 
> and run the purge-old-kernels command.

Well, byobu package does not have the script in Trusty; bikeshed has, but even 
that not in Precise IIRC.
Anyway, you could use a PPA.

> Now you tell us that you have written a new script to serve the same 
> purpose but with some improvements. 

Partially, yes. My script can purge new kernels, too :P purge-old-kernels is a 
pretty simple script with some bugs and limitations. E.g. 
https://bugs.launchpad.net/byobu/+bug/1569228
though there has been some attempt to fix things in git.

> However, you won't show anybody the 
> script unless you get paid enough money in advance. Did I get it right? 
> If I did, it's a very odd 'offer' to an open source community.

No. I'll possibly get paid by Bountysource only after I have published the code 
and it has been accepted by backers as a solution to the issue. To be more 
specific, refer to 
https://github.com/bountysource/core/wiki/Frequently-Asked-Questions
I wish the information on the page was correct, but according to rappo on the 
IRC channel:
Oct 11 22:55:22 actually, that needs to be updated.. 
time-limited fundraisers have been removed in favor of monthly recurring, 
salt.bountysource.com

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Jarno Suni
> On Saturday, October 15, 2016 3:06 PM, Jarno Suni  wrote:

> > On Friday, October 14, 2016 2:11 AM, J Fernyhough  
> wrote:
> 
> 
>> Doesn't `apt-get autoremove` remove old kernel versions already? (IIRC 
> it keeps three? old versions)
> 
> 
> It depends on script 
> /etc/kernel/postinst.d/apt-auto-removal and when it is run last time, which 
> automatically 
> installed kernels it does NOT remove. `apt-get autoremove` removes other 
> packages that are automatically installed and that no package depends on, 
> too, 
> which may or may not be wanted. It may be unable to remove old kernels in 
> some 
> cases when /boot or system is full.

System may be so clogged that even dpkg is unable to remove packages, but my 
script can.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Jarno Suni
On Friday, October 14, 2016 2:11 AM, J Fernyhough  
wrote:

>Doesn't `apt-get autoremove` remove old kernel versions already? (IIRC it 
>keeps three? old versions)


It depends on script 
/etc/kernel/postinst.d/apt-auto-removal and when it is run last time, which 
automatically 
installed kernels it does NOT remove. `apt-get autoremove` removes other 
packages that are automatically installed and that no package depends on, too, 
which may or may not be wanted. It may be unable to remove old kernels in some 
cases when /boot or system is full. My script is designed to handle such cases, 
too. My script can even remove kernels that are unknown to the package 
management system.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-15 Thread Jarno Suni
> On Friday, October 14, 2016 3:18 AM, Ralf Mardorf 
>  wrote:

 
> I don't need to care about dkms, an universal script must care about it,
> too. I only need to care about lowlatency, an universal script should
> be able to handle all types of kernels, including local builds. An
> universal script should provide options, for example to keep two or
> tree kernels of the same type.

My script handles different types of kernels. Including signed kernels.

And you can keep the wanted number of kernels of each series non-interactively 
(and of course interactively). For example, in Trusty, if you have 
linux-image-generic and linux-image-generic-lts-xenial installed, you could 
keep e.g. 3 latest kernels of each series. (The one that the meta kernel 
depends on and 2 earlier versions, if installed.) `purge-old-kernels` and 
`apt-get autoremove` do not have this feature.

My script does not care about dkms, if that is not done automatically by 
standard tools. I don't know what kind of care you mean.

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-13 Thread Ralf Mardorf
On Fri, 14 Oct 2016 00:09:44 +0100, J Fernyhough wrote:
>Doesn't `apt-get autoremove` remove old kernel versions already?

Yesno depending on how the meta package is installed, automatically or
manual. However, writhing scripts to manage something to a user's
individual needs isn't hard to do.

I don't need to care about dkms, an universal script must care about it,
too. I only need to care about lowlatency, an universal script should
be able to handle all types of kernels, including local builds. An
universal script should provide options, for example to keep two or
tree kernels of the same type.

My script does something unimportant for other users, it removes and
adds links required by the used bootloader. The script doesn't do
anything automatically in the first place, but it suggests something I
could copy and paste and add as the options that should be used.

[root@moonstudio ~]# cat /usr/local/sbin/lowlatency
#!/bin/bash

usage() {
cat

Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-13 Thread J Fernyhough
On 13 October 2016 at 23:18, Gunnar Hjalmarsson  wrote:

> Hi Jarno,
>
> On 2016-10-13 21:17, Jarno Suni wrote:
>
>> Okay, I have created the project in Launchpad. I am using git.
>> If I get enough support, I will publish the script. Here is where you
>> can support:
>> https://www.bountysource.com/issues/38300038-feature-request
>> -the-command-should-work-like-this
>>
>
> Let's see..
>
> There is a script in the archive to help remove old kernels. If I had
> several old kernels installed, I could easily install the byobu package and
> run the purge-old-kernels command.
>


Doesn't `apt-get autoremove` remove old kernel versions already? (IIRC it
keeps three? old versions)


Re: the rest, holding back contributions to open source software for money
is pretty poor form. Either contribute, or don't.


J
-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-13 Thread Gunnar Hjalmarsson

Hi Jarno,

On 2016-10-13 21:17, Jarno Suni wrote:

Okay, I have created the project in Launchpad. I am using git.
If I get enough support, I will publish the script. Here is where you
can support:
https://www.bountysource.com/issues/38300038-feature-request-the-command-should-work-like-this


Let's see..

There is a script in the archive to help remove old kernels. If I had 
several old kernels installed, I could easily install the byobu package 
and run the purge-old-kernels command.


Now you tell us that you have written a new script to serve the same 
purpose but with some improvements. However, you won't show anybody the 
script unless you get paid enough money in advance. Did I get it right? 
If I did, it's a very odd 'offer' to an open source community.


The cold truth is that you can't make money from the kind of help script 
you have written. People in this community contribute their work all the 
time for free. We contribute our time and skill, and benefit from 
contributions from others.


A few people tried to explain this to you on the ubuntu-doc mailing 
list; this was my concise reply:


https://lists.ubuntu.com/archives/ubuntu-doc/2016-July/020122.html

I'm sorry if someone previously tricked you to believe something else. 
My advice now: Face it and move on.


--
Gunnar Hjalmarsson
https://launchpad.net/~gunnarhj

--
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-13 Thread Jarno Suni
Okay, I have created the project in Launchpad. I am using git.
If I get enough support, I will publish the script. Here is where you can 
support:
https://www.bountysource.com/issues/38300038-feature-request-the-command-should-work-like-this
 -- 
Jarno Suni - http://iki.fi/8/ 



> On Thursday, October 6, 2016 4:42 PM, Jarno Suni  wrote:
> > Hello!
> 
> What is the recommended way to publish the script? I guess Launchpad would be 
> the right place. And using Git repository might be a good idea. I have got a 
> Launchpad account (jarnos). Is it better to create a project in Launchpad or 
> to 
> create a PPA? Detailed instruction would be welcome.
> 
> -- 
> Jarno Suni - http://iki.fi/8/ 
> 
> 
> 
>>  On Tuesday, September 27, 2016 10:32 PM, Jarno Suni 
>  wrote:
>>  > Here is some update. My script does not use linux-version anymore. But 
> I named 
>>  the script linux-purge. It can remove kernels even in some problem cases 
> where 
>>  e.g. there are dependency problems due to an unsuccessful kernel update 
> (e.g. 
>>  due to full /boot partition). It provides optional UI for interactive 
> checklist 
>>  based kernel removal. It does not support kfreebsd-image and gnumach-image 
>>  kernels, but only Linux kernels and it is designed to work in any flavor of 
> 
>>  Ubuntu.
>>  Here is a demo that shows it in action: 
>>  https://youtu.be/TpsZoAnOVTU
>> 
>>  I have not published the script yet, but maybe later, if there is enough 
>>  interest.
>>  -- 
>>  Jarno Suni - http://iki.fi/8/ 
>> 
>> 
>> 
>> 
>>>   On Tuesday, May 24, 2016 2:29 PM, Jarno Suni 
>  
>>  wrote:
>>>   > Now that linux-base is part of .?ubuntu 16.04, I think it would 
> be 
>>  good to add a 
>>>   linux-kernel removal tool to linux-base. On the other hand, I think 
> such a 
>>>   script is especially useful for some older releases, since e.g. Trusty 
> 
>>  tends to 
>>>   mark kernel updates as being manually installed packages and as such 
>>>   'apt-get autoremove --purge' can not purge them. (
>>>   https://bugs.launchpad.net/ubuntu/vivid/+source/aptdaemon/+bug/1439769
>>>   https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1492709
>>>   https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1175637)
>>>   If automatic removal of unneeded kernels is not enabled, /boot fills 
> up, 
>>  and 
>>>   blocks kernel updates:
>>>   
> https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1054927
>>> 
>>>   There is purge-old-kernels currently at byobu repository, but maybe it 
> is 
>>  too 
>>>   simple, and has some bugs:
>>>   https://bugs.launchpad.net/byobu/+bug/1569228
>>>   https://bugs.launchpad.net/bikeshed/+bug/1532153
>>>   I have rewritten it to fix those at 
>>> 
>>>   https://github.com/dustinkirkland/bikeshed/pull/1
>>>   when purge-old-kernels was located at bikeshed, and as I have written 
> in 
>>  the 
>>>   (last) comment: "I have written an enhanced script for similar 
> purpose 
>> 
>>>   again, but maybe it is not good to call it purge-old-kernels, since it 
> can 
>>  be 
>>>   used to purge newer kernels, too (but keeping the kernels that 
> installed 
>>  kernel 
>>>   meta packages depend on and given number of older ones). It currently 
> uses 
>>>   linux-version from linux-base package to sort kernel releases as 
> needed. I 
>>  am 
>>>   looking for a suitable place to publish the bash script."
>>> 
>>>   Finding meta kernel packages is problematic. I have used regular 
> expression 
>> 
>>>   matching the package names: 
>>>   http://askubuntu.com/q/775830/21005It seems to work in Ubuntu, but not 
> in 
>>  Debian 
>>>   as such, I think. Also getting versioned kernels (and packages related 
> to 
>>  kernel 
>>>   of specific release) may be problematic in general:
>>>   https://lists.debian.org/deity/2016/05/msg00115.html
>>> 
>>>   So how about adding some ubuntu-purge, linux-purge or kernel-purge in 
>>>   linux-base? Should it support 
>>>   kfreebsd-image and gnumach-image that are listed by "apt-config 
>>  dump"?
>>>   -- 
>>>   Jarno Suni - http://iki.fi/8/ 
>>> 
>> 
> 

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-10-06 Thread Jarno Suni
Hello!

What is the recommended way to publish the script? I guess Launchpad would be 
the right place. And using Git repository might be a good idea. I have got a 
Launchpad account (jarnos). Is it better to create a project in Launchpad or to 
create a PPA? Detailed instruction would be welcome. 
 
-- 
Jarno Suni - http://iki.fi/8/ 



> On Tuesday, September 27, 2016 10:32 PM, Jarno Suni  
> wrote:
> > Here is some update. My script does not use linux-version anymore. But I 
> > named 
> the script linux-purge. It can remove kernels even in some problem cases 
> where 
> e.g. there are dependency problems due to an unsuccessful kernel update (e.g. 
> due to full /boot partition). It provides optional UI for interactive 
> checklist 
> based kernel removal. It does not support kfreebsd-image and gnumach-image 
> kernels, but only Linux kernels and it is designed to work in any flavor of 
> Ubuntu.
> Here is a demo that shows it in action: 
> https://youtu.be/TpsZoAnOVTU
> 
> I have not published the script yet, but maybe later, if there is enough 
> interest.
> -- 
> Jarno Suni - http://iki.fi/8/ 
> 
> 
> 
> 
>>  On Tuesday, May 24, 2016 2:29 PM, Jarno Suni  
> wrote:
>>  > Now that linux-base is part of .?ubuntu 16.04, I think it would be 
> good to add a 
>>  linux-kernel removal tool to linux-base. On the other hand, I think such a 
>>  script is especially useful for some older releases, since e.g. Trusty 
> tends to 
>>  mark kernel updates as being manually installed packages and as such 
>>  'apt-get autoremove --purge' can not purge them. (
>>  https://bugs.launchpad.net/ubuntu/vivid/+source/aptdaemon/+bug/1439769
>>  https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1492709
>>  https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1175637)
>>  If automatic removal of unneeded kernels is not enabled, /boot fills up, 
> and 
>>  blocks kernel updates:
>>  https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1054927
>> 
>>  There is purge-old-kernels currently at byobu repository, but maybe it is 
> too 
>>  simple, and has some bugs:
>>  https://bugs.launchpad.net/byobu/+bug/1569228
>>  https://bugs.launchpad.net/bikeshed/+bug/1532153
>>  I have rewritten it to fix those at 
>> 
>>  https://github.com/dustinkirkland/bikeshed/pull/1
>>  when purge-old-kernels was located at bikeshed, and as I have written in 
> the 
>>  (last) comment: "I have written an enhanced script for similar purpose 
> 
>>  again, but maybe it is not good to call it purge-old-kernels, since it can 
> be 
>>  used to purge newer kernels, too (but keeping the kernels that installed 
> kernel 
>>  meta packages depend on and given number of older ones). It currently uses 
>>  linux-version from linux-base package to sort kernel releases as needed. I 
> am 
>>  looking for a suitable place to publish the bash script."
>> 
>>  Finding meta kernel packages is problematic. I have used regular expression 
> 
>>  matching the package names: 
>>  http://askubuntu.com/q/775830/21005It seems to work in Ubuntu, but not in 
> Debian 
>>  as such, I think. Also getting versioned kernels (and packages related to 
> kernel 
>>  of specific release) may be problematic in general:
>>  https://lists.debian.org/deity/2016/05/msg00115.html
>> 
>>  So how about adding some ubuntu-purge, linux-purge or kernel-purge in 
>>  linux-base? Should it support 
>>  kfreebsd-image and gnumach-image that are listed by "apt-config 
> dump"?
>>  -- 
>>  Jarno Suni - http://iki.fi/8/ 
>> 
> 

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Re: Adding a kernel removal script to linux-base or elsewhere

2016-09-27 Thread Jarno Suni
Here is some update. My script does not use linux-version anymore. But I named 
the script linux-purge. It can remove kernels even in some problem cases where 
e.g. there are dependency problems due to an unsuccessful kernel update (e.g. 
due to full /boot partition). It provides optional UI for interactive checklist 
based kernel removal. It does not support kfreebsd-image and gnumach-image 
kernels, but only Linux kernels and it is designed to work in any flavor of 
Ubuntu.
Here is a demo that shows it in action: 
https://youtu.be/TpsZoAnOVTU

I have not published the script yet, but maybe later, if there is enough 
interest.
-- 
Jarno Suni - http://iki.fi/8/ 



> On Tuesday, May 24, 2016 2:29 PM, Jarno Suni  wrote:
> > Now that linux-base is part of .?ubuntu 16.04, I think it would be good to 
> > add a 
> linux-kernel removal tool to linux-base. On the other hand, I think such a 
> script is especially useful for some older releases, since e.g. Trusty tends 
> to 
> mark kernel updates as being manually installed packages and as such 
> 'apt-get autoremove --purge' can not purge them. (
> https://bugs.launchpad.net/ubuntu/vivid/+source/aptdaemon/+bug/1439769
> https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1492709
> https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1175637)
> If automatic removal of unneeded kernels is not enabled, /boot fills up, and 
> blocks kernel updates:
> https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1054927
> 
> There is purge-old-kernels currently at byobu repository, but maybe it is too 
> simple, and has some bugs:
> https://bugs.launchpad.net/byobu/+bug/1569228
> https://bugs.launchpad.net/bikeshed/+bug/1532153
> I have rewritten it to fix those at 
> 
> https://github.com/dustinkirkland/bikeshed/pull/1
> when purge-old-kernels was located at bikeshed, and as I have written in the 
> (last) comment: "I have written an enhanced script for similar purpose 
> again, but maybe it is not good to call it purge-old-kernels, since it can be 
> used to purge newer kernels, too (but keeping the kernels that installed 
> kernel 
> meta packages depend on and given number of older ones). It currently uses 
> linux-version from linux-base package to sort kernel releases as needed. I am 
> looking for a suitable place to publish the bash script."
> 
> Finding meta kernel packages is problematic. I have used regular expression 
> matching the package names: 
> http://askubuntu.com/q/775830/21005It seems to work in Ubuntu, but not in 
> Debian 
> as such, I think. Also getting versioned kernels (and packages related to 
> kernel 
> of specific release) may be problematic in general:
> https://lists.debian.org/deity/2016/05/msg00115.html
> 
> So how about adding some ubuntu-purge, linux-purge or kernel-purge in 
> linux-base? Should it support 
> kfreebsd-image and gnumach-image that are listed by "apt-config dump"?
> -- 
> Jarno Suni - http://iki.fi/8/ 
> 

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss


Adding a kernel removal script to linux-base or elsewhere

2016-05-24 Thread Jarno Suni
Now that linux-base is part of .?ubuntu 16.04, I think it would be good to add 
a linux-kernel removal tool to linux-base. On the other hand, I think such a 
script is especially useful for some older releases, since e.g. Trusty tends to 
mark kernel updates as being manually installed packages and as such 'apt-get 
autoremove --purge' can not purge them. (
https://bugs.launchpad.net/ubuntu/vivid/+source/aptdaemon/+bug/1439769
https://bugs.launchpad.net/ubuntu/+source/update-manager/+bug/1492709
https://bugs.launchpad.net/ubuntu/+source/apt/+bug/1175637)
If automatic removal of unneeded kernels is not enabled, /boot fills up, and 
blocks kernel updates:
https://bugs.launchpad.net/ubuntu/+source/unattended-upgrades/+bug/1054927

There is purge-old-kernels currently at byobu repository, but maybe it is too 
simple, and has some bugs:
https://bugs.launchpad.net/byobu/+bug/1569228
https://bugs.launchpad.net/bikeshed/+bug/1532153
I have rewritten it to fix those at 

https://github.com/dustinkirkland/bikeshed/pull/1
when purge-old-kernels was located at bikeshed, and as I have written in the 
(last) comment: "I have written an enhanced script for similar purpose again, 
but maybe it is not good to call it purge-old-kernels, since it can be used to 
purge newer kernels, too (but keeping the kernels that installed kernel meta 
packages depend on and given number of older ones). It currently uses 
linux-version from linux-base package to sort kernel releases as needed. I am 
looking for a suitable place to publish the bash script."

Finding meta kernel packages is problematic. I have used regular expression 
matching the package names: 
http://askubuntu.com/q/775830/21005It seems to work in Ubuntu, but not in 
Debian as such, I think. Also getting versioned kernels (and packages related 
to kernel of specific release) may be problematic in general:
https://lists.debian.org/deity/2016/05/msg00115.html

So how about adding some ubuntu-purge, linux-purge or kernel-purge in 
linux-base? Should it support 
kfreebsd-image and gnumach-image that are listed by "apt-config dump"?
-- 
Jarno Suni - http://iki.fi/8/ 

-- 
Ubuntu-devel-discuss mailing list
Ubuntu-devel-discuss@lists.ubuntu.com
Modify settings or unsubscribe at: 
https://lists.ubuntu.com/mailman/listinfo/ubuntu-devel-discuss