Linux
Linux
Linux
Linux
Kernel: Monolítico/Modular
Licença: Várias
Linux é o termo geralmente usado para designar qualquer sistema operativo (português
europeu)
ou sistema operacional (português brasileiro) que utilize o núcleo Linux. Foi
desenvolvido pelo Finlandês Linus Torvalds, inspirado no sistema Minix. O seu código fonte
está disponível sob licença GPL para qualquer pessoa que utilizar, estudar, modificar e
distribuir de acordo com os termos da licença.
Inicialmente desenvolvido e utilizado por grupos de entusiastas em computadores pessoais,
o sistema Linux passou a ter a colaboração de grandes empresas, como a IBM, a Sun
Microsystems, a Hewlett-Packard, Red Hat, Novell e a Canonical. Com isso aumentou
bastante também o número de colaborações dos usuários, o que ajudou muito o projeto,
principalmente na tradução do mesmo.[carece de fontes?]
Linux 2
História
O kernel Linux foi, originalmente, escrito por Linus
Torvalds do Departamento de Ciência da Computação
da Universidade de Helsinki, Finlândia, com a ajuda de
vários programadores voluntários através da Usenet
(uma espécie de sistema de listas de discussão
existente desde os primórdios da Internet).
Você suspira pelos bons tempos do Minix-1.1, quando os homens eram homens e escreviam seus
[1]
próprios "device drivers"? Você está sem um bom projecto em mãos e deseja trabalhar num S.O.
que possa modificar de acordo com as suas necessidades? Acha frustrante quando tudo funciona
no Minix? Chega de noite ao computador para conseguir que os programas funcionem? Então esta
mensagem pode ser exactamente para você. Como eu mencionei há um mês atrás, estou
trabalhando numa versão independente de um S.O. similar ao Minix para computadores AT-386.
Ele está, finalmente, próximo do estado em que poderá ser utilizado (embora possa não ser o que
você espera), e eu estou disposto a disponibilizar o código-fonte para ampla distribuição. Ele está
na versão 0.02... contudo eu tive sucesso ao executar bash, gcc, gnu-make, gnu-sed, compressão
etc. nele.
Curiosamente, o nome → Linux foi criado por Ari Lemmke, administrador do site [Link]
que deu esse nome ao diretório FTP onde o kernel Linux estava inicialmente disponível.[2]
(Linus tinha-o baptizado como "Freax", inicialmente)[3]
No dia 5 de outubro de 1991 Linus Torvalds anunciou a primeira versão "oficial" do kernel
Linux, versão 0.02. Desde então muitos programadores têm respondido ao seu chamado, e
têm ajudado a fazer do Linux o sistema operacional que é hoje. No início era utilizado por
programadores ou só por quem tinha conhecimentos, usavam linhas de comando. Hoje isso
mudou, existem diversas empresas que criam os ambientes gráficos, as distribuições cada
vez mais amigáveis de forma que uma pessoa com poucos conhecimentos consegue usar o
Linux. Hoje o Linux é um sistema estável e consegue reconhecer todos os periféricos sem a
necessidade de se instalar os drivers de som, vídeo, modem, rede, entre outros.
Linux 3
Núcleo (kernel)
O termo Linux refere-se ao núcleo (ou "cerne",
"coração", do Inglês kernel) do sistema
operativo. O termo também é usado pelos meios
de comunicação e usuários para referir-se aos
sistemas operacionais baseados no núcleo Linux
agregado a outros programas. Segundo
Tanenbaum e Silberschatz, um kernel pode ser
considerado o próprio sistema operativo, quando
este é definido como um gerenciador de
recursos de hardware.
Portabilidade
Embora Linus Torvalds não tenha tido como objetivo inicial tornar o Linux um sistema
portável, ele evoluiu nessa direção. Linux é hoje um dos núcleos de sistemas operativos
mais portáveis, correndo em sistemas desde o iPaq (um computador portátil) até o IBM
S/390 (um denso e altamente custoso mainframe).
Os esforços de Linus foram também dirigidos a um diferente tipo de portabilidade.
Portabilidade, de acordo com Linus, era a habilidade de facilmente compilar aplicações de
uma variedade de código fonte no seu sistema; consequentemente, o Linux originalmente
tornou-se popular em parte devido ao esforço para que os códigos-fonte GPL ou outros
favoritos de todos corressem em Linux.
O Linux hoje funciona em dezenas de plataformas, desde mainframes até um relógio de
pulso, passando por várias arquitecturas: x86 (Intel, AMD), x86-64 (Intel EM64T, AMD64),
ARM, PowerPC, Alpha, SPARC etc., com grande penetração também em sistemas
embarcados, como handhelds, PVR, consola de videojogos e centros multimídia, entre
outros.
Termos de Licenciamento
Inicialmente, Torvalds lançou o Linux sob uma licença de software que proibia qualquer uso
comercial. Isso foi mudado de imediato para a GNU General Public License. Essa licença
permite a distribuição e mesmo a venda de versões possivelmente modificadas do Linux
mas requer que todas as cópias sejam lançadas dentro da mesma licença e acompanhadas
do código fonte.
Linux 4
Apesar de alguns dos programadores que contribuem para o kernel permitirem que o seu
código seja licenciado com GPL versão 2 ou posterior, grande parte do código (incluído as
contribuições de Torvalds) menciona apenas a GPL versão 2. Isto faz com que o kernel
como um todo esteja sob a versão 2 exclusivamente, não sendo de prever a adopção da
nova GPLv3.
Sistema Operacional
Logo que Linus Torvalds passou a disponibilizar o → Linux,
ou seja na sua versão 0.01, já havia suporte ao disco rígido,
tela, teclado e portas seriais, o sistema de arquivos adotava
o mesmo layout do Minix (embora não houvesse código do
Minix no Linux), havia extensos trechos em assembly, e ela
já era capaz de rodar o bash e o gcc.
A linha guia quando implementei o Linux foi: fazê-lo funcionar rápido. Eu queria o kernel simples,
[5]
mas poderoso o suficiente para rodar a maioria dos aplicativos Unix.
para um sistema operacional adquirir funcionalidade são necessários também vários outros
aplicativos que determinam funções específicas que aquele sistema será capaz de
desenvolver, os aplicativos existentes em um sistema operacional com a única
exceção do núcleo são determinados pelo usuário do computador, como por exemplo:
interpretadores de comandos, gerenciadores de janelas, que oferecem respectivamente
uma interface para o usuário do computador, CLI ou GUI, e outros aplicativos como
editores de texto, editores de imagem, tocadores de som, e, mas não necessariamente,
compiladores.
A maioria dos sistemas inclui ferramentas e utilitários baseados no BSD e tipicamente usam
XFree86 ou [Link] para oferecer a funcionalidade do sistemas de janelas X — interface
gráfica. Assim como também oferecem ferramentas desenvolvidas pelo projeto GNU.
No momento do desenvolvimento do Linux, vários aplicativos já vinham sendo reunidos pelo
Projeto GNU da Free Software Foundation (‘Fundação Software Livre’), que embarcara em
um subprojeto que ainda continua para obter um núcleo, o GNU Hurd. Porém devido a
várias complicações o projeto GNU e demora em desenvolver o Hurd, Stallman acabou
adotando o núcleo Linux como base para distribuir os programas do projeto GNU , não
obstante diversas pessoas e instituições tiveram a mesma idéia e assim várias distribuições
começaram a surgir baseadas no núcleo desenvolvido inicialmente por Linus.
Distribuições
Atualmente, um Sistema Operacional (em Portugal Sistema Operativo) Linux ou GNU/Linux
completo (uma "Lista de distribuições de Linux ou GNU/Linux") é uma coleção de software
livre (e por vezes não-livres) criados por indivíduos, grupos e organizações de todo o
mundo, incluindo o núcleo Linux. Companhias como a Red Hat, a SuSE, a Mandriva (união
da Mandrake com a Conectiva) e a Canonical (desenvolvedora do Ubuntu Linux), bem como
projetos de comunidades como o Debian ou o Gentoo, compilam o software e fornecem um
sistema completo, pronto para instalação e uso. Patrick Volkerding também fornece uma
distribuição → Linux, o Slackware.
As distribuições do Linux ou GNU/Linux começaram a receber uma popularidade limitada
desde a segunda metade dos anos 90, como uma alternativa livre para os sistemas
operacionais Microsoft Windows e Mac OS, principalmente por parte de pessoas
acostumadas com o Unix na escola e no trabalho. O sistema tornou-se popular no mercado
de Desktops e servidores, principalmente para a Web e servidores de bancos de dados.
No decorrer do tempo, várias distribuições surgiram e desapareceram, cada qual com sua
característica. Algumas distribuições são maiores outras menores, dependendo do número
de aplicações e sua finalidade. Algumas distribuições de tamanhos menores cabem num
disquete com 1,44 MB, outras precisam de vários CDs, existindo até algumas versões em
DVD. Todas elas tem o seu público e sua finalidade, as pequenas (que ocupam poucos
disquetes) são usadas para recuperação de sistemas danificados ou em monitoramento de
redes de computadores.
De entre as maiores, distribuídas em CDs, podem-se citar: Slackware, Debian, Suse, e
Conectiva. O que faz a diferença é como estão organizadas e pré-configuradas as
aplicações. A distribuição Conectiva → Linux, por exemplo, tinha as suas aplicações
traduzidas em português, o que facilitou que usuários que falam a Língua Portuguesa
tenham aderido melhor a esta distribuição. Hoje esta distribuição foi incorporada à
Mandrake, o que resultou na Mandriva. Para o português, existe também a distribuição
Linux 6
brasileira Kurumin, construída sobre Knoppix e Debian, e a Caixa Mágica, existente nas
versões 32 bits, 64 bits, Live CD 32 bits e Live CD 64 bits, e com vários programas open
source: [Link], Mozilla Firefox, entre outros.
Existem distribuições com ferramentas para configuração que facilitam a administração do
sistema. As principais diferenças entre as distribuições estão nos seus sistemas de pacotes,
nas estruturas dos diretórios e na sua biblioteca básica. Por mais que a estrutura dos
diretórios siga o mesmo padrão, o FSSTND é um padrão muito relaxado, principalmente em
arquivos onde as configurações são diferentes entre as distribuições. Então normalmente
todos seguem o padrão FHS (File Hierarchy System), que é o padrão mais novo. Vale
lembrar, entretanto, que qualquer aplicativo ou driver desenvolvido para Linux pode ser
compilado em qualquer distribuição que vai funcionar da mesma maneira.
Quanto à biblioteca, é usada a Biblioteca libc, contendo funções básicas para o sistema
Operacional Linux. O problema está quando do lançamento de uma nova versão da
Biblioteca libc, algumas das distribuições colocam logo a nova versão, enquanto outras
aguardam um pouco. Por isso, alguns programas funcionam numa distribuição e noutras
não. Existe um movimento LSB (Linux Standard Base) que proporciona uma maior
padronização. Auxilia principalmente vendedores de software que não liberam para
distribuição do código fonte, sem tirar características das distribuições. O sistemas de
pacotes não é padronizado.
Caixa Mágica, Debian, Dual OS, Fedora, Freedows, Kurumin, Mandriva, Satux, Slackware,
SuSE, e Ubuntu são algumas das distribuições mais utilizadas actualmente, listadas aqui
por ordem alfabética.
Um exemplo de distribuição que corre num CD é o Kurumin → Linux, criado por Carlos E.
Morimoto, baseada no Knoppix.
De entre as distribuições consideradas mais difíceis de gerir (por preferirem assegurar a
estabilidade tecnológica em detrimento da interface de utilizador), destacam-se a Debian,
Gentoo e Slackware.
Sobre o símbolo
O símbolo do software foi escolhido pelo seu criador, que achou a foto de um pinguim na
internet. [10]
Em 1996, muitos integrantes da lista de discussão Linux-Kernel estavam discutindo sobre a
criação de um logotipo ou de um mascote que representasse o Linux. Muitas das sugestões
eram paródias ao logotipo de um sistema operacional concorrente e muito conhecido.
Outros eram monstros ou animais agressivos. Linus Torvalds acabou entrando nesse debate
ao afirmar em uma mensagem que gostava muito de pingüins. Isso foi o suficiente para dar
fim à discussão.
Depois disso, várias tentativas foram feitas numa espécie
de concurso para que a imagem de um pingüim servisse
aos propósitos do Linux, até que alguém sugeriu a figura
de um "pingüim sustentando o mundo". Em resposta, Linus
Torvalds declarou que achava interessante que esse
pingüim tivesse uma imagem simples: um pingüim
"gordinho" e com expressão de satisfeito, como se tivesse
acabado de comer uma porção de peixes. Torvalds também
não achava atraente a idéia de algo agressivo, mas sim a
idéia de um pingüim simpático, do tipo em que as crianças
perguntam "mamãe, posso ter um desses também?". Ainda,
Tux Torvalds também frisou que trabalhando dessa forma, as
pessoas poderiam criar várias modificações desse pingüim.
Isso realmente acontece. Quando questionado sobre o porquê de pingüins, Linus Torvalds
respondeu que não havia uma razão em especial, mas os achava engraçados e até citou que
foi mordido por um "pingüim assassino" na Austrália e ficou impressionado como a mordida
de um animal aparentemente tão inofensivo podia ser tão dolorosa.
Linux 8
Notas
[1] Primeiro período do original, em inglês: Do you pine for the nice days of minix-1.1, when men were men and
wrote their own device drivers?
[2] Lars Wirzenius (27 de Abril de 1998). Linux Anecdotes (http:/ / liw. iki. fi/ liw/ texts/ linux-anecdotes. html).
Página visitada em 15 de Junho de 2007.
[3] Carlos E. Morimoto. Linux, Ferramentas Técnicas 2ed (em Português). [Link]. GDH Press e Sul Editores,
2006. 312 p. ISBN 8520504019
[4] Reiser4 ainda está em desenvolvimento
[5] No original, em inglês: the guiding line when implementing linux was: get it working fast. I wanted the kernel
simple, yet powerful enough to run most unix software.
[6] Richard Stallman. Linux and the GNU Project (http:/ / www. gnu. org/ gnu/ linux-and-gnu. html) (HTML) (em
inglês). Página visitada em 7 de março de 2008.
[7] Eric Raymond. Linux (http:/ / catb. org/ jargon/ html/ L/ Linux. html) (HTML) (em inglês). Página visitada em 7
de março de 2008.
[8] Revolution OS, documentário de 2001 sobre o Linux. Produzido, dirigido e escrito por J.T.S. Moore
[9] Linus Torvalds (3 de junho de 1996). Lignux, what's the matter with you people? (http:/ / groups. google. com/
group/ comp. os. linux. misc/ msg/ 7781d4221fceedb2) (HTML) (em inglês). Página visitada em 7 de março de
2008.
[10] Revista Superinteressante, O Mistério das Marcas, edição 261, janeiro de 2009, p. 34
Ver também
• Commons
• Wikilivros
• Lista de distribuições de Linux
• Comparação entre distribuições Linux
• LINUX Guia de Comandos
• Guia Bozolinux
• Installfest
• Lei de Linus
Ligações externas
• Um guia completo sobre sistemas operacionais GNU/Linux (http:/ / focalinux. cipsga. org.
br/ ) (em português)
• Controvérsia sobre o nome (http:/ / www. gnu. org/ gnu/ linux-and-gnu. pt-br. html) (em
português)
• What is Linux (http:/ / www. linux. org/ info/ index. html) (em inglês)
• O que é Linux (http:/ / www. linuxnarede. com. br/ artigos/ fullnews. php?id=1) (em
português)
• GNU/Linux distro timeline (http:/ / futurist. se/ gldt/ ) (em inglês)
• Linux: The 0.01 Release (http:/ / kerneltrap. org/ node/ 14002) (em inglês)
• Comunidade Viva o Linux!! (http:/ / www. vivaolinux. com. br) (em português)
Linux 9
Licença
Version 1.2, November 2002
Copyright (C) 2000,2001,2002 Free Software Foundation, Inc.
51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
0. PREAMBLE
The purpose of this License is to make a manual, textbook, or other functional and useful document "free" in the sense of freedom: to assure everyone
the effective freedom to copy and redistribute it, with or without modifying it, either commercially or noncommercially. Secondarily, this License
preserves for the author and publisher a way to get credit for their work, while not being considered responsible for modifications made by others.
This License is a kind of "copyleft", which means that derivative works of the document must themselves be free in the same sense. It complements the
GNU General Public License, which is a copyleft license designed for free software.
We have designed this License in order to use it for manuals for free software, because free software needs free documentation: a free program should
come with manuals providing the same freedoms that the software does. But this License is not limited to software manuals; it can be used for any
textual work, regardless of subject matter or whether it is published as a printed book. We recommend this License principally for works whose purpose
is instruction or reference.
2. VERBATIM COPYING
You may copy and distribute the Document in any medium, either commercially or noncommercially, provided that this License, the copyright notices,
and the license notice saying this License applies to the Document are reproduced in all copies, and that you add no other conditions whatsoever to
those of this License. You may not use technical measures to obstruct or control the reading or further copying of the copies you make or distribute.
However, you may accept compensation in exchange for copies. If you distribute a large enough number of copies you must also follow the conditions in
section 3.
You may also lend copies, under the same conditions stated above, and you may publicly display copies.
3. COPYING IN QUANTITY
If you publish printed copies (or copies in media that commonly have printed covers) of the Document, numbering more than 100, and the Document's
license notice requires Cover Texts, you must enclose the copies in covers that carry, clearly and legibly, all these Cover Texts: Front-Cover Texts on the
front cover, and Back-Cover Texts on the back cover. Both covers must also clearly and legibly identify you as the publisher of these copies. The front
cover must present the full title with all words of the title equally prominent and visible. You may add other material on the covers in addition. Copying
with changes limited to the covers, as long as they preserve the title of the Document and satisfy these conditions, can be treated as verbatim copying in
other respects.
If the required texts for either cover are too voluminous to fit legibly, you should put the first ones listed (as many as fit reasonably) on the actual cover,
and continue the rest onto adjacent pages.
If you publish or distribute Opaque copies of the Document numbering more than 100, you must either include a machine-readable Transparent copy
along with each Opaque copy, or state in or with each Opaque copy a computer-network location from which the general network-using public has
access to download using public-standard network protocols a complete Transparent copy of the Document, free of added material. If you use the latter
option, you must take reasonably prudent steps, when you begin distribution of Opaque copies in quantity, to ensure that this Transparent copy will
remain thus accessible at the stated location until at least one year after the last time you distribute an Opaque copy (directly or through your agents or
retailers) of that edition to the public.
It is requested, but not required, that you contact the authors of the Document well before redistributing any large number of copies, to give them a
chance to provide you with an updated version of the Document.
4. MODIFICATIONS
You may copy and distribute a Modified Version of the Document under the conditions of sections 2 and 3 above, provided that you release the Modified
Version under precisely this License, with the Modified Version filling the role of the Document, thus licensing distribution and modification of the
Modified Version to whoever possesses a copy of it. In addition, you must do these things in the Modified Version:
1. Use in the Title Page (and on the covers, if any) a title distinct from that of the Document, and from those of previous versions (which should, if there
were any, be listed in the History section of the Document). You may use the same title as a previous version if the original publisher of that version
gives permission.
2. List on the Title Page, as authors, one or more persons or entities responsible for authorship of the modifications in the Modified Version, together
with at least five of the principal authors of the Document (all of its principal authors, if it has fewer than five), unless they release you from this
requirement.
3. State on the Title page the name of the publisher of the Modified Version, as the publisher.
4. Preserve all the copyright notices of the Document.
5. Add an appropriate copyright notice for your modifications adjacent to the other copyright notices.
Licença 12
6. Include, immediately after the copyright notices, a license notice giving the public permission to use the Modified Version under the terms of this
License, in the form shown in the Addendum below.
7. Preserve in that license notice the full lists of Invariant Sections and required Cover Texts given in the Document's license notice.
8. Include an unaltered copy of this License.
9. Preserve the section Entitled "History", Preserve its Title, and add to it an item stating at least the title, year, new authors, and publisher of the
Modified Version as given on the Title Page. If there is no section Entitled "History" in the Document, create one stating the title, year, authors, and
publisher of the Document as given on its Title Page, then add an item describing the Modified Version as stated in the previous sentence.
10. Preserve the network location, if any, given in the Document for public access to a Transparent copy of the Document, and likewise the network
locations given in the Document for previous versions it was based on. These may be placed in the "History" section. You may omit a network
location for a work that was published at least four years before the Document itself, or if the original publisher of the version it refers to gives
permission.
11. For any section Entitled "Acknowledgements" or "Dedications", Preserve the Title of the section, and preserve in the section all the substance and
tone of each of the contributor acknowledgements and/or dedications given therein.
12. Preserve all the Invariant Sections of the Document, unaltered in their text and in their titles. Section numbers or the equivalent are not considered
part of the section titles.
13. Delete any section Entitled "Endorsements". Such a section may not be included in the Modified Version.
14. Do not retitle any existing section to be Entitled "Endorsements" or to conflict in title with any Invariant Section.
15. Preserve any Warranty Disclaimers.
If the Modified Version includes new front-matter sections or appendices that qualify as Secondary Sections and contain no material copied from the
Document, you may at your option designate some or all of these sections as invariant. To do this, add their titles to the list of Invariant Sections in the
Modified Version's license notice. These titles must be distinct from any other section titles.
You may add a section Entitled "Endorsements", provided it contains nothing but endorsements of your Modified Version by various parties--for example,
statements of peer review or that the text has been approved by an organization as the authoritative definition of a standard.
You may add a passage of up to five words as a Front-Cover Text, and a passage of up to 25 words as a Back-Cover Text, to the end of the list of Cover
Texts in the Modified Version. Only one passage of Front-Cover Text and one of Back-Cover Text may be added by (or through arrangements made by)
any one entity. If the Document already includes a cover text for the same cover, previously added by you or by arrangement made by the same entity
you are acting on behalf of, you may not add another; but you may replace the old one, on explicit permission from the previous publisher that added the
old one.
The author(s) and publisher(s) of the Document do not by this License give permission to use their names for publicity for or to assert or imply
endorsement of any Modified Version.
5. COMBINING DOCUMENTS
You may combine the Document with other documents released under this License, under the terms defined in section 4 above for modified versions,
provided that you include in the combination all of the Invariant Sections of all of the original documents, unmodified, and list them all as Invariant
Sections of your combined work in its license notice, and that you preserve all their Warranty Disclaimers.
The combined work need only contain one copy of this License, and multiple identical Invariant Sections may be replaced with a single copy. If there are
multiple Invariant Sections with the same name but different contents, make the title of each such section unique by adding at the end of it, in
parentheses, the name of the original author or publisher of that section if known, or else a unique number. Make the same adjustment to the section
titles in the list of Invariant Sections in the license notice of the combined work.
In the combination, you must combine any sections Entitled "History" in the various original documents, forming one section Entitled "History"; likewise
combine any sections Entitled "Acknowledgements", and any sections Entitled "Dedications". You must delete all sections Entitled "Endorsements."
6. COLLECTIONS OF DOCUMENTS
You may make a collection consisting of the Document and other documents released under this License, and replace the individual copies of this
License in the various documents with a single copy that is included in the collection, provided that you follow the rules of this License for verbatim
copying of each of the documents in all other respects.
You may extract a single document from such a collection, and distribute it individually under this License, provided you insert a copy of this License into
the extracted document, and follow this License in all other respects regarding verbatim copying of that document.
8. TRANSLATION
Translation is considered a kind of modification, so you may distribute translations of the Document under the terms of section 4. Replacing Invariant
Sections with translations requires special permission from their copyright holders, but you may include translations of some or all Invariant Sections in
addition to the original versions of these Invariant Sections. You may include a translation of this License, and all the license notices in the Document,
and any Warranty Disclaimers, provided that you also include the original English version of this License and the original versions of those notices and
disclaimers. In case of a disagreement between the translation and the original version of this License or a notice or disclaimer, the original version will
prevail.
If a section in the Document is Entitled "Acknowledgements", "Dedications", or "History", the requirement (section 4) to Preserve its Title (section 1) will
typically require changing the actual title.
9. TERMINATION
You may not copy, modify, sublicense, or distribute the Document except as expressly provided for under this License. Any other attempt to copy, modify,
sublicense or distribute the Document is void, and will automatically terminate your rights under this License. However, parties who have received
copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance.