LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


View Poll Results: License choice
Apache License 2.0 0 0%
BSD 3-Clause "New" or "Revised" license 0 0%
BSD 2-Clause "Simplified" or "FreeBSD" license 0 0%
GNU General Public License (GPL) 9 45.00%
GNU Library or "Lesser" General Public License (LGPL) 2 10.00%
MIT license 5 25.00%
Mozilla Public License 2.0 0 0%
Common Development and Distribution License 0 0%
Eclipse Public License version 2.0 0 0%
other 7 35.00%
Multiple Choice Poll. Voters: 20. You may not vote on this poll

Reply
  Search this Thread
Old 08-08-2019, 06:50 AM   #1
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Which open source license do you use?


I am currently thinking about open-sourcing a small program I have written but I am undecided on which license to use. I found this Wikipedia page and the opensource.org website on the subject but I do not have the time to check all those licenses (I am also not a lawyer so it would not even be fun if I had the time). If you have published an open-source project then I would like to know which license you used. I would also appreciate if you could briefly explain the motivation for your choice.

PS:
Not sure if this is a factor in the decision but here is some context:
The program is nothing spectacular or ground-breaking. It is just a small tool written in C. It caters to my personal preferences with Shell script creation/maintenance which I initially did not intend to publish. It was just a project which I did mainly for fun.
 
Old 08-08-2019, 06:54 AM   #2
average_user
Member
 
Registered: Dec 2010
Location: Warsaw, Poland
Distribution: Slackware
Posts: 560

Rep: Reputation: 220Reputation: 220Reputation: 220
I would use BSD because it's more free (freer?) than GPL.
 
1 members found this post helpful.
Old 08-08-2019, 08:43 AM   #3
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,499
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
I've written only a couple of small programs for public use (and the public ain't using them as far as I know!) but I automatically used GPL. I've read it and I like it, so why would I want to use anything else?

The only other free licenses that I know anything about are LGPL and Mozilla. I can see the logic of LGPL for libraries but not for programs. As for Mozilla, I can see why they want to protect their trademarks. Browsers and mail programs are like your lungs and your digestive system: the first port of call for incoming infections. So if you modify their code to make it less secure, of course they don't want their name on that. I don't think that's unreasonable for that kind of program but I don't like it as a general idea.

Last edited by hazel; 08-08-2019 at 08:47 AM.
 
1 members found this post helpful.
Old 08-08-2019, 08:45 AM   #4
hazel
LQ Guru
 
Registered: Mar 2016
Location: Harrow, UK
Distribution: LFS, AntiX, Slackware
Posts: 7,499
Blog Entries: 19

Rep: Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410Reputation: 4410
Quote:
Originally Posted by average_user View Post
I would use BSD because it's more free (freer?) than GPL.
But because it's so free, anyone is free to make it unfree. You just need to change a few bits, then copyright the result. Isn't that how Windows got their first networking software? GPL is carefully set up to prevent that, which I like.
 
3 members found this post helpful.
Old 08-08-2019, 08:57 AM   #5
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,877
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by crts View Post
The program is nothing spectacular or ground-breaking. It is just a small tool written in C. It caters to my personal preferences with Shell script creation/maintenance which I initially did not intend to publish. It was just a project which I did mainly for fun.
Why lawyer this up and why use any license at all? What would you be protecting? I'm not interested in the various descriptions of "open source", to me it is two words, when combined indicate to me that there are no restrictions on the copying and re-using of my source that I publicly posted somewhere.
 
2 members found this post helpful.
Old 08-08-2019, 03:27 PM   #6
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Use this to look them up, if you haven't already.

https://tldrlegal.com/
 
1 members found this post helpful.
Old 08-09-2019, 02:12 AM   #7
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
I'm just using the GPL3 for my pet projects.
I don't care about it too much, but do want to have some sort of license around it.
 
1 members found this post helpful.
Old 08-09-2019, 02:39 AM   #8
Turbocapitalist
LQ Guru
 
Registered: Apr 2005
Distribution: Linux Mint, Devuan, OpenBSD
Posts: 7,258
Blog Entries: 3

Rep: Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713Reputation: 3713
Quote:
Originally Posted by rtmistler View Post
Why lawyer this up and why use any license at all? What would you be protecting? I'm not interested in the various descriptions of "open source", to me it is two words, when combined indicate to me that there are no restrictions on the copying and re-using of my source that I publicly posted somewhere.
The Berne Convention means that without a license saying otherwise what you have posted is fully proprietary. So without including licenses, what you've been publicly posting has only been proprietary and has no relation to free or open source software in any way. The lack of licensing on your code easy enough to fix though, if you wish for it to become free and open source software.

I don't write any more much but, given a choice, prefer AGPL among the reciprocal licenses for end-user oriented programs. For libraries or modules or drivers I prefer something non-reciprocal that still covers patents, such as the Apache 2.0 license.

The reason being is that end-user benefit from the freedom of reciprocal licenses and developers benefit from the non-reciprocal style. However, unless the product is a one-off and planned to be abandoned immediately without updates, then even the people using non-reciprocal licenses learn that it is to their advantage to commit upstream as much as possible.
 
3 members found this post helpful.
Old 08-09-2019, 07:45 AM   #9
freemedia2018
Member
 
Registered: Mar 2019
Distribution: various automated remasters
Posts: 216

Rep: Reputation: 208Reputation: 208Reputation: 208
Quote:
Originally Posted by rtmistler View Post
why use any license at all? What would you be protecting?
All works in a fixed medium created after 1976 in the United States (with similar issues via international convention) are automatically copyrighted. This doesn't cover works that are not copyrightable.

Without a license or public domain waiver, people have no legal right to change or share your software. Attaching a license or public domain waiver ensures they have the right. Most people will not opt to share (many will not even opt to use) your software unless it comes with a license that permits it, because it comes with risks to do so. EDIT: looks like this was already covered, oops.

Last edited by freemedia2018; 08-09-2019 at 07:48 AM.
 
1 members found this post helpful.
Old 08-09-2019, 08:48 AM   #10
dugan
LQ Guru
 
Registered: Nov 2003
Location: Canada
Distribution: distro hopper
Posts: 11,200

Rep: Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307Reputation: 5307
Quote:
Originally Posted by rtmistler View Post
Why lawyer this up and why use any license at all?
If code does not have an open source license, then it's not open source.
 
1 members found this post helpful.
Old 08-11-2019, 09:03 AM   #11
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Original Poster
Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Thanks everybody for your input so far, this has been quite informative and is much appreciated.
Quote:
Originally Posted by rtmistler View Post
Why lawyer this up and why use any license at all?
As has already been commented, it has to be specifically declared open source but I did not know that. My main concern were liability issues. Some licenses contain clauses that explicitly states that the software comes without any warranties. I do not know if some liability could be claimed if such a clause is not present. So it is not only about protecting the software but also oneself with at suitable license.
 
Old 08-11-2019, 02:26 PM   #12
ntubski
Senior Member
 
Registered: Nov 2005
Distribution: Debian, Arch
Posts: 3,774

Rep: Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081Reputation: 2081
Quote:
Originally Posted by crts View Post
It is just a small tool written in C.
Even the GNU project suggests a non-copyleft license for small programs:
Quote:
Small programs

It is not worth the trouble to use copyleft for most small programs. We use 300 lines as our benchmark: when a software package's source code is shorter than that, the benefits provided by copyleft are usually too small to justify the inconvenience of making sure a copy of the license always accompanies the software.

For those programs, we recommend the Apache License 2.0. [...]
https://www.gnu.org/licenses/license...endations.html
 
1 members found this post helpful.
Old 08-16-2019, 10:46 AM   #13
Yogi John
LQ Newbie
 
Registered: Feb 2009
Location: Santa Barbara, California
Posts: 4

Rep: Reputation: 1
IF your small tool uses any code from somewhere else you need to consider that code's license.
 
1 members found this post helpful.
Old 08-30-2019, 11:17 AM   #14
dogpatch
Member
 
Registered: Nov 2005
Location: Central America
Distribution: Mepis, Android
Posts: 490
Blog Entries: 4

Rep: Reputation: 238Reputation: 238Reputation: 238
What do you (and other LQers) think of the copyheart.org concept of "copying is an act of love"?

Check out astrogeek's signature for more

Last edited by dogpatch; 08-30-2019 at 11:18 AM. Reason: add 'other LQers'
 
1 members found this post helpful.
Old 08-30-2019, 11:42 AM   #15
crts
Senior Member
 
Registered: Jan 2010
Posts: 2,020

Original Poster
Rep: Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757Reputation: 757
Quote:
Originally Posted by dogpatch View Post
What do you (and other LQers) think of the copyheart.org concept of "copying is an act of love"?
My first thought when I read the name was, it sounds kind of "hippiesk", something that cannot be meant seriously.
A cursory look at the website confirms the initial suspicion:
Quote:
Q.Is the Copyheart legally binding?

A. Probably not, although you could test it:
A license that is not legally binding serves no purpose. That copyheart is nothing but a facetious gimmick. As the saying goes, there is a time and a place. It has no business in a legally binding document.
 
1 members found this post helpful.
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: If you were on a desert island, which license would you take with you? LXer Syndicated Linux News 0 07-20-2017 12:45 AM
LXer: Which type of open source license do you prefer? LXer Syndicated Linux News 0 08-12-2016 02:39 PM
LXer: Which open source software license should I use? LXer Syndicated Linux News 0 01-29-2013 12:11 PM
which is best licensed ftp server : Pureftp(Bsd license) vs vsftpd (Gpl license) jsaravana87 Linux - Server 1 10-03-2012 11:22 AM
How to use the Windows-XP License Sticker - I've got NO CD - just the License-Sticker jomen General 4 02-13-2010 02:51 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 02:31 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration