diff options
-rw-r--r-- | LICENSE | 674 | ||||
-rw-r--r-- | archive.html | 59 | ||||
-rw-r--r-- | articles.html | 43 | ||||
-rw-r--r-- | bookmarks.html | 53 | ||||
-rw-r--r-- | books.html | 79 | ||||
-rw-r--r-- | cs.html | 89 | ||||
-rw-r--r-- | donate.html | 43 | ||||
-rw-r--r-- | favicon.ico | bin | 0 -> 160908 bytes | |||
-rw-r--r-- | files/DCN-Google-Data-Collection-Paper.pdf | bin | 0 -> 4624089 bytes | |||
-rw-r--r-- | files/obsd-general.pdf | bin | 0 -> 2759135 bytes | |||
-rw-r--r-- | files/rafael.gpg | 51 | ||||
-rw-r--r-- | files/unabomber.pdf | bin | 0 -> 268770 bytes | |||
-rw-r--r-- | gentoomanual.html | 522 | ||||
-rw-r--r-- | images/bitcoin.png | bin | 0 -> 959 bytes | |||
-rw-r--r-- | images/ethereum.png | bin | 0 -> 325805 bytes | |||
-rw-r--r-- | images/monero.png | bin | 0 -> 7547 bytes | |||
-rw-r--r-- | index.html | 39 | ||||
-rw-r--r-- | kernel.html | 209 | ||||
-rw-r--r-- | kvm.html | 111 | ||||
-rw-r--r-- | people.html | 47 | ||||
-rw-r--r-- | projects.html | 63 | ||||
-rw-r--r-- | styles/style.css | 122 | ||||
-rw-r--r-- | web.html | 53 |
23 files changed, 2257 insertions, 0 deletions
@@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/> + Everyone is permitted to copy and distribute verbatim copies + of this license document, but changing it is not allowed. + + Preamble + + The GNU General Public License is a free, copyleft license for +software and other kinds of works. + + The licenses for most software and other practical works are designed +to take away your freedom to share and change the works. By contrast, +the GNU General Public License is intended to guarantee your freedom to +share and change all versions of a program--to make sure it remains free +software for all its users. We, the Free Software Foundation, use the +GNU General Public License for most of our software; it applies also to +any other work released this way by its authors. You can apply it to +your programs, too. + + When we speak of free software, we are referring to freedom, not +price. Our General Public Licenses are designed to make sure that you +have the freedom to distribute copies of free software (and charge for +them if you wish), that you receive source code or can get it if you +want it, that you can change the software or use pieces of it in new +free programs, and that you know you can do these things. + + To protect your rights, we need to prevent others from denying you +these rights or asking you to surrender the rights. Therefore, you have +certain responsibilities if you distribute copies of the software, or if +you modify it: responsibilities to respect the freedom of others. + + For example, if you distribute copies of such a program, whether +gratis or for a fee, you must pass on to the recipients the same +freedoms that you received. You must make sure that they, too, receive +or can get the source code. And you must show them these terms so they +know their rights. + + Developers that use the GNU GPL protect your rights with two steps: +(1) assert copyright on the software, and (2) offer you this License +giving you legal permission to copy, distribute and/or modify it. + + For the developers' and authors' protection, the GPL clearly explains +that there is no warranty for this free software. For both users' and +authors' sake, the GPL requires that modified versions be marked as +changed, so that their problems will not be attributed erroneously to +authors of previous versions. + + Some devices are designed to deny users access to install or run +modified versions of the software inside them, although the manufacturer +can do so. This is fundamentally incompatible with the aim of +protecting users' freedom to change the software. The systematic +pattern of such abuse occurs in the area of products for individuals to +use, which is precisely where it is most unacceptable. Therefore, we +have designed this version of the GPL to prohibit the practice for those +products. If such problems arise substantially in other domains, we +stand ready to extend this provision to those domains in future versions +of the GPL, as needed to protect the freedom of users. + + Finally, every program is threatened constantly by software patents. +States should not allow patents to restrict development and use of +software on general-purpose computers, but in those that do, we wish to +avoid the special danger that patents applied to a free program could +make it effectively proprietary. To prevent this, the GPL assures that +patents cannot be used to render the program non-free. + + The precise terms and conditions for copying, distribution and +modification follow. + + TERMS AND CONDITIONS + + 0. Definitions. + + "This License" refers to version 3 of the GNU General Public License. + + "Copyright" also means copyright-like laws that apply to other kinds of +works, such as semiconductor masks. + + "The Program" refers to any copyrightable work licensed under this +License. Each licensee is addressed as "you". "Licensees" and +"recipients" may be individuals or organizations. + + To "modify" a work means to copy from or adapt all or part of the work +in a fashion requiring copyright permission, other than the making of an +exact copy. The resulting work is called a "modified version" of the +earlier work or a work "based on" the earlier work. + + A "covered work" means either the unmodified Program or a work based +on the Program. + + To "propagate" a work means to do anything with it that, without +permission, would make you directly or secondarily liable for +infringement under applicable copyright law, except executing it on a +computer or modifying a private copy. Propagation includes copying, +distribution (with or without modification), making available to the +public, and in some countries other activities as well. + + To "convey" a work means any kind of propagation that enables other +parties to make or receive copies. Mere interaction with a user through +a computer network, with no transfer of a copy, is not conveying. + + An interactive user interface displays "Appropriate Legal Notices" +to the extent that it includes a convenient and prominently visible +feature that (1) displays an appropriate copyright notice, and (2) +tells the user that there is no warranty for the work (except to the +extent that warranties are provided), that licensees may convey the +work under this License, and how to view a copy of this License. If +the interface presents a list of user commands or options, such as a +menu, a prominent item in the list meets this criterion. + + 1. Source Code. + + The "source code" for a work means the preferred form of the work +for making modifications to it. "Object code" means any non-source +form of a work. + + A "Standard Interface" means an interface that either is an official +standard defined by a recognized standards body, or, in the case of +interfaces specified for a particular programming language, one that +is widely used among developers working in that language. + + The "System Libraries" of an executable work include anything, other +than the work as a whole, that (a) is included in the normal form of +packaging a Major Component, but which is not part of that Major +Component, and (b) serves only to enable use of the work with that +Major Component, or to implement a Standard Interface for which an +implementation is available to the public in source code form. A +"Major Component", in this context, means a major essential component +(kernel, window system, and so on) of the specific operating system +(if any) on which the executable work runs, or a compiler used to +produce the work, or an object code interpreter used to run it. + + The "Corresponding Source" for a work in object code form means all +the source code needed to generate, install, and (for an executable +work) run the object code and to modify the work, including scripts to +control those activities. However, it does not include the work's +System Libraries, or general-purpose tools or generally available free +programs which are used unmodified in performing those activities but +which are not part of the work. For example, Corresponding Source +includes interface definition files associated with source files for +the work, and the source code for shared libraries and dynamically +linked subprograms that the work is specifically designed to require, +such as by intimate data communication or control flow between those +subprograms and other parts of the work. + + The Corresponding Source need not include anything that users +can regenerate automatically from other parts of the Corresponding +Source. + + The Corresponding Source for a work in source code form is that +same work. + + 2. Basic Permissions. + + All rights granted under this License are granted for the term of +copyright on the Program, and are irrevocable provided the stated +conditions are met. This License explicitly affirms your unlimited +permission to run the unmodified Program. The output from running a +covered work is covered by this License only if the output, given its +content, constitutes a covered work. This License acknowledges your +rights of fair use or other equivalent, as provided by copyright law. + + You may make, run and propagate covered works that you do not +convey, without conditions so long as your license otherwise remains +in force. You may convey covered works to others for the sole purpose +of having them make modifications exclusively for you, or provide you +with facilities for running those works, provided that you comply with +the terms of this License in conveying all material for which you do +not control copyright. Those thus making or running the covered works +for you must do so exclusively on your behalf, under your direction +and control, on terms that prohibit them from making any copies of +your copyrighted material outside their relationship with you. + + Conveying under any other circumstances is permitted solely under +the conditions stated below. Sublicensing is not allowed; section 10 +makes it unnecessary. + + 3. Protecting Users' Legal Rights From Anti-Circumvention Law. + + No covered work shall be deemed part of an effective technological +measure under any applicable law fulfilling obligations under article +11 of the WIPO copyright treaty adopted on 20 December 1996, or +similar laws prohibiting or restricting circumvention of such +measures. + + When you convey a covered work, you waive any legal power to forbid +circumvention of technological measures to the extent such circumvention +is effected by exercising rights under this License with respect to +the covered work, and you disclaim any intention to limit operation or +modification of the work as a means of enforcing, against the work's +users, your or third parties' legal rights to forbid circumvention of +technological measures. + + 4. Conveying Verbatim Copies. + + You may convey verbatim copies of the Program's source code as you +receive it, in any medium, provided that you conspicuously and +appropriately publish on each copy an appropriate copyright notice; +keep intact all notices stating that this License and any +non-permissive terms added in accord with section 7 apply to the code; +keep intact all notices of the absence of any warranty; and give all +recipients a copy of this License along with the Program. + + You may charge any price or no price for each copy that you convey, +and you may offer support or warranty protection for a fee. + + 5. Conveying Modified Source Versions. + + You may convey a work based on the Program, or the modifications to +produce it from the Program, in the form of source code under the +terms of section 4, provided that you also meet all of these conditions: + + a) The work must carry prominent notices stating that you modified + it, and giving a relevant date. + + b) The work must carry prominent notices stating that it is + released under this License and any conditions added under section + 7. This requirement modifies the requirement in section 4 to + "keep intact all notices". + + c) You must license the entire work, as a whole, under this + License to anyone who comes into possession of a copy. This + License will therefore apply, along with any applicable section 7 + additional terms, to the whole of the work, and all its parts, + regardless of how they are packaged. This License gives no + permission to license the work in any other way, but it does not + invalidate such permission if you have separately received it. + + d) If the work has interactive user interfaces, each must display + Appropriate Legal Notices; however, if the Program has interactive + interfaces that do not display Appropriate Legal Notices, your + work need not make them do so. + + A compilation of a covered work with other separate and independent +works, which are not by their nature extensions of the covered work, +and which are not combined with it such as to form a larger program, +in or on a volume of a storage or distribution medium, is called an +"aggregate" if the compilation and its resulting copyright are not +used to limit the access or legal rights of the compilation's users +beyond what the individual works permit. Inclusion of a covered work +in an aggregate does not cause this License to apply to the other +parts of the aggregate. + + 6. Conveying Non-Source Forms. + + You may convey a covered work in object code form under the terms +of sections 4 and 5, provided that you also convey the +machine-readable Corresponding Source under the terms of this License, +in one of these ways: + + a) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by the + Corresponding Source fixed on a durable physical medium + customarily used for software interchange. + + b) Convey the object code in, or embodied in, a physical product + (including a physical distribution medium), accompanied by a + written offer, valid for at least three years and valid for as + long as you offer spare parts or customer support for that product + model, to give anyone who possesses the object code either (1) a + copy of the Corresponding Source for all the software in the + product that is covered by this License, on a durable physical + medium customarily used for software interchange, for a price no + more than your reasonable cost of physically performing this + conveying of source, or (2) access to copy the + Corresponding Source from a network server at no charge. + + c) Convey individual copies of the object code with a copy of the + written offer to provide the Corresponding Source. This + alternative is allowed only occasionally and noncommercially, and + only if you received the object code with such an offer, in accord + with subsection 6b. + + d) Convey the object code by offering access from a designated + place (gratis or for a charge), and offer equivalent access to the + Corresponding Source in the same way through the same place at no + further charge. You need not require recipients to copy the + Corresponding Source along with the object code. If the place to + copy the object code is a network server, the Corresponding Source + may be on a different server (operated by you or a third party) + that supports equivalent copying facilities, provided you maintain + clear directions next to the object code saying where to find the + Corresponding Source. Regardless of what server hosts the + Corresponding Source, you remain obligated to ensure that it is + available for as long as needed to satisfy these requirements. + + e) Convey the object code using peer-to-peer transmission, provided + you inform other peers where the object code and Corresponding + Source of the work are being offered to the general public at no + charge under subsection 6d. + + A separable portion of the object code, whose source code is excluded +from the Corresponding Source as a System Library, need not be +included in conveying the object code work. + + A "User Product" is either (1) a "consumer product", which means any +tangible personal property which is normally used for personal, family, +or household purposes, or (2) anything designed or sold for incorporation +into a dwelling. In determining whether a product is a consumer product, +doubtful cases shall be resolved in favor of coverage. For a particular +product received by a particular user, "normally used" refers to a +typical or common use of that class of product, regardless of the status +of the particular user or of the way in which the particular user +actually uses, or expects or is expected to use, the product. A product +is a consumer product regardless of whether the product has substantial +commercial, industrial or non-consumer uses, unless such uses represent +the only significant mode of use of the product. + + "Installation Information" for a User Product means any methods, +procedures, authorization keys, or other information required to install +and execute modified versions of a covered work in that User Product from +a modified version of its Corresponding Source. The information must +suffice to ensure that the continued functioning of the modified object +code is in no case prevented or interfered with solely because +modification has been made. + + If you convey an object code work under this section in, or with, or +specifically for use in, a User Product, and the conveying occurs as +part of a transaction in which the right of possession and use of the +User Product is transferred to the recipient in perpetuity or for a +fixed term (regardless of how the transaction is characterized), the +Corresponding Source conveyed under this section must be accompanied +by the Installation Information. But this requirement does not apply +if neither you nor any third party retains the ability to install +modified object code on the User Product (for example, the work has +been installed in ROM). + + The requirement to provide Installation Information does not include a +requirement to continue to provide support service, warranty, or updates +for a work that has been modified or installed by the recipient, or for +the User Product in which it has been modified or installed. Access to a +network may be denied when the modification itself materially and +adversely affects the operation of the network or violates the rules and +protocols for communication across the network. + + Corresponding Source conveyed, and Installation Information provided, +in accord with this section must be in a format that is publicly +documented (and with an implementation available to the public in +source code form), and must require no special password or key for +unpacking, reading or copying. + + 7. Additional Terms. + + "Additional permissions" are terms that supplement the terms of this +License by making exceptions from one or more of its conditions. +Additional permissions that are applicable to the entire Program shall +be treated as though they were included in this License, to the extent +that they are valid under applicable law. If additional permissions +apply only to part of the Program, that part may be used separately +under those permissions, but the entire Program remains governed by +this License without regard to the additional permissions. + + When you convey a copy of a covered work, you may at your option +remove any additional permissions from that copy, or from any part of +it. (Additional permissions may be written to require their own +removal in certain cases when you modify the work.) You may place +additional permissions on material, added by you to a covered work, +for which you have or can give appropriate copyright permission. + + Notwithstanding any other provision of this License, for material you +add to a covered work, you may (if authorized by the copyright holders of +that material) supplement the terms of this License with terms: + + a) Disclaiming warranty or limiting liability differently from the + terms of sections 15 and 16 of this License; or + + b) Requiring preservation of specified reasonable legal notices or + author attributions in that material or in the Appropriate Legal + Notices displayed by works containing it; or + + c) Prohibiting misrepresentation of the origin of that material, or + requiring that modified versions of such material be marked in + reasonable ways as different from the original version; or + + d) Limiting the use for publicity purposes of names of licensors or + authors of the material; or + + e) Declining to grant rights under trademark law for use of some + trade names, trademarks, or service marks; or + + f) Requiring indemnification of licensors and authors of that + material by anyone who conveys the material (or modified versions of + it) with contractual assumptions of liability to the recipient, for + any liability that these contractual assumptions directly impose on + those licensors and authors. + + All other non-permissive additional terms are considered "further +restrictions" within the meaning of section 10. If the Program as you +received it, or any part of it, contains a notice stating that it is +governed by this License along with a term that is a further +restriction, you may remove that term. If a license document contains +a further restriction but permits relicensing or conveying under this +License, you may add to a covered work material governed by the terms +of that license document, provided that the further restriction does +not survive such relicensing or conveying. + + If you add terms to a covered work in accord with this section, you +must place, in the relevant source files, a statement of the +additional terms that apply to those files, or a notice indicating +where to find the applicable terms. + + Additional terms, permissive or non-permissive, may be stated in the +form of a separately written license, or stated as exceptions; +the above requirements apply either way. + + 8. Termination. + + You may not propagate or modify a covered work except as expressly +provided under this License. Any attempt otherwise to propagate or +modify it is void, and will automatically terminate your rights under +this License (including any patent licenses granted under the third +paragraph of section 11). + + However, if you cease all violation of this License, then your +license from a particular copyright holder is reinstated (a) +provisionally, unless and until the copyright holder explicitly and +finally terminates your license, and (b) permanently, if the copyright +holder fails to notify you of the violation by some reasonable means +prior to 60 days after the cessation. + + Moreover, your license from a particular copyright holder is +reinstated permanently if the copyright holder notifies you of the +violation by some reasonable means, this is the first time you have +received notice of violation of this License (for any work) from that +copyright holder, and you cure the violation prior to 30 days after +your receipt of the notice. + + Termination of your rights under this section does not terminate the +licenses of parties who have received copies or rights from you under +this License. If your rights have been terminated and not permanently +reinstated, you do not qualify to receive new licenses for the same +material under section 10. + + 9. Acceptance Not Required for Having Copies. + + You are not required to accept this License in order to receive or +run a copy of the Program. Ancillary propagation of a covered work +occurring solely as a consequence of using peer-to-peer transmission +to receive a copy likewise does not require acceptance. However, +nothing other than this License grants you permission to propagate or +modify any covered work. These actions infringe copyright if you do +not accept this License. Therefore, by modifying or propagating a +covered work, you indicate your acceptance of this License to do so. + + 10. Automatic Licensing of Downstream Recipients. + + Each time you convey a covered work, the recipient automatically +receives a license from the original licensors, to run, modify and +propagate that work, subject to this License. You are not responsible +for enforcing compliance by third parties with this License. + + An "entity transaction" is a transaction transferring control of an +organization, or substantially all assets of one, or subdividing an +organization, or merging organizations. If propagation of a covered +work results from an entity transaction, each party to that +transaction who receives a copy of the work also receives whatever +licenses to the work the party's predecessor in interest had or could +give under the previous paragraph, plus a right to possession of the +Corresponding Source of the work from the predecessor in interest, if +the predecessor has it or can get it with reasonable efforts. + + You may not impose any further restrictions on the exercise of the +rights granted or affirmed under this License. For example, you may +not impose a license fee, royalty, or other charge for exercise of +rights granted under this License, and you may not initiate litigation +(including a cross-claim or counterclaim in a lawsuit) alleging that +any patent claim is infringed by making, using, selling, offering for +sale, or importing the Program or any portion of it. + + 11. Patents. + + A "contributor" is a copyright holder who authorizes use under this +License of the Program or a work on which the Program is based. The +work thus licensed is called the contributor's "contributor version". + + A contributor's "essential patent claims" are all patent claims +owned or controlled by the contributor, whether already acquired or +hereafter acquired, that would be infringed by some manner, permitted +by this License, of making, using, or selling its contributor version, +but do not include claims that would be infringed only as a +consequence of further modification of the contributor version. For +purposes of this definition, "control" includes the right to grant +patent sublicenses in a manner consistent with the requirements of +this License. + + Each contributor grants you a non-exclusive, worldwide, royalty-free +patent license under the contributor's essential patent claims, to +make, use, sell, offer for sale, import and otherwise run, modify and +propagate the contents of its contributor version. + + In the following three paragraphs, a "patent license" is any express +agreement or commitment, however denominated, not to enforce a patent +(such as an express permission to practice a patent or covenant not to +sue for patent infringement). To "grant" such a patent license to a +party means to make such an agreement or commitment not to enforce a +patent against the party. + + If you convey a covered work, knowingly relying on a patent license, +and the Corresponding Source of the work is not available for anyone +to copy, free of charge and under the terms of this License, through a +publicly available network server or other readily accessible means, +then you must either (1) cause the Corresponding Source to be so +available, or (2) arrange to deprive yourself of the benefit of the +patent license for this particular work, or (3) arrange, in a manner +consistent with the requirements of this License, to extend the patent +license to downstream recipients. "Knowingly relying" means you have +actual knowledge that, but for the patent license, your conveying the +covered work in a country, or your recipient's use of the covered work +in a country, would infringe one or more identifiable patents in that +country that you have reason to believe are valid. + + If, pursuant to or in connection with a single transaction or +arrangement, you convey, or propagate by procuring conveyance of, a +covered work, and grant a patent license to some of the parties +receiving the covered work authorizing them to use, propagate, modify +or convey a specific copy of the covered work, then the patent license +you grant is automatically extended to all recipients of the covered +work and works based on it. + + A patent license is "discriminatory" if it does not include within +the scope of its coverage, prohibits the exercise of, or is +conditioned on the non-exercise of one or more of the rights that are +specifically granted under this License. You may not convey a covered +work if you are a party to an arrangement with a third party that is +in the business of distributing software, under which you make payment +to the third party based on the extent of your activity of conveying +the work, and under which the third party grants, to any of the +parties who would receive the covered work from you, a discriminatory +patent license (a) in connection with copies of the covered work +conveyed by you (or copies made from those copies), or (b) primarily +for and in connection with specific products or compilations that +contain the covered work, unless you entered into that arrangement, +or that patent license was granted, prior to 28 March 2007. + + Nothing in this License shall be construed as excluding or limiting +any implied license or other defenses to infringement that may +otherwise be available to you under applicable patent law. + + 12. No Surrender of Others' Freedom. + + If conditions are imposed on you (whether by court order, agreement or +otherwise) that contradict the conditions of this License, they do not +excuse you from the conditions of this License. If you cannot convey a +covered work so as to satisfy simultaneously your obligations under this +License and any other pertinent obligations, then as a consequence you may +not convey it at all. For example, if you agree to terms that obligate you +to collect a royalty for further conveying from those to whom you convey +the Program, the only way you could satisfy both those terms and this +License would be to refrain entirely from conveying the Program. + + 13. Use with the GNU Affero General Public License. + + Notwithstanding any other provision of this License, you have +permission to link or combine any covered work with a work licensed +under version 3 of the GNU Affero General Public License into a single +combined work, and to convey the resulting work. The terms of this +License will continue to apply to the part which is the covered work, +but the special requirements of the GNU Affero General Public License, +section 13, concerning interaction through a network will apply to the +combination as such. + + 14. Revised Versions of this License. + + The Free Software Foundation may publish revised and/or new versions of +the GNU General Public License from time to time. Such new versions will +be similar in spirit to the present version, but may differ in detail to +address new problems or concerns. + + Each version is given a distinguishing version number. If the +Program specifies that a certain numbered version of the GNU General +Public License "or any later version" applies to it, you have the +option of following the terms and conditions either of that numbered +version or of any later version published by the Free Software +Foundation. If the Program does not specify a version number of the +GNU General Public License, you may choose any version ever published +by the Free Software Foundation. + + If the Program specifies that a proxy can decide which future +versions of the GNU General Public License can be used, that proxy's +public statement of acceptance of a version permanently authorizes you +to choose that version for the Program. + + Later license versions may give you additional or different +permissions. However, no additional obligations are imposed on any +author or copyright holder as a result of your choosing to follow a +later version. + + 15. Disclaimer of Warranty. + + THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY +APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT +HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY +OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, +THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR +PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM +IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF +ALL NECESSARY SERVICING, REPAIR OR CORRECTION. + + 16. Limitation of Liability. + + IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING +WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS +THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY +GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE +USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF +DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD +PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), +EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF +SUCH DAMAGES. + + 17. Interpretation of Sections 15 and 16. + + If the disclaimer of warranty and limitation of liability provided +above cannot be given local legal effect according to their terms, +reviewing courts shall apply local law that most closely approximates +an absolute waiver of all civil liability in connection with the +Program, unless a warranty or assumption of liability accompanies a +copy of the Program in return for a fee. + + END OF TERMS AND CONDITIONS + + How to Apply These Terms to Your New Programs + + If you develop a new program, and you want it to be of the greatest +possible use to the public, the best way to achieve this is to make it +free software which everyone can redistribute and change under these terms. + + To do so, attach the following notices to the program. It is safest +to attach them to the start of each source file to most effectively +state the exclusion of warranty; and each file should have at least +the "copyright" line and a pointer to where the full notice is found. + + <one line to give the program's name and a brief idea of what it does.> + Copyright (C) 2022 Rafael Marçalo + + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation, either version 3 of the License, or + (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see <https://www.gnu.org/licenses/>. + +Also add information on how to contact you by electronic and paper mail. + + If the program does terminal interaction, make it output a short +notice like this when it starts in an interactive mode: + + <program> Copyright (C) 2022 Rafael Marçalo + This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'. + This is free software, and you are welcome to redistribute it + under certain conditions; type `show c' for details. + +The hypothetical commands `show w' and `show c' should show the appropriate +parts of the General Public License. Of course, your program's commands +might be different; for a GUI interface, you would use an "about box". + + You should also get your employer (if you work as a programmer) or school, +if any, to sign a "copyright disclaimer" for the program, if necessary. +For more information on this, and how to apply and follow the GNU GPL, see +<https://www.gnu.org/licenses/>. + + The GNU General Public License does not permit incorporating your program +into proprietary programs. If your program is a subroutine library, you +may consider it more useful to permit linking proprietary applications with +the library. If this is what you want to do, use the GNU Lesser General +Public License instead of this License. But first, please read +<https://www.gnu.org/licenses/why-not-lgpl.html>. diff --git a/archive.html b/archive.html new file mode 100644 index 0000000..ec13886 --- /dev/null +++ b/archive.html @@ -0,0 +1,59 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Archive"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Archive</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content"> + <h2>Select a Topic:</h2> + <div class="grid"> + <a href="articles.html" class="grid-element"> + <p class="grid-icon">📄</p> + <p class="grid-text">Articles</p> + </a> + <a href="books.html" class="grid-element"> + <p class="grid-icon">📔</p> + <p class="grid-text">Books</p> + </a> + <a href="bookmarks.html" class="grid-element"> + <p class="grid-icon">🔖</p> + <p class="grid-text">Bookmarks</p> + </a> + <a href="people.html" class="grid-element"> + <p class="grid-icon">🧑</p> + <p class="grid-text">People</p> + </a> + <a href="web.html" class="grid-element"> + <p class="grid-icon">🌎</p> + <p class="grid-text">Web</p> + </a> + </div> + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/articles.html b/articles.html new file mode 100644 index 0000000..b5a1bd1 --- /dev/null +++ b/articles.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Articles"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Articles</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content"> + <h2>Articles 📄</h2> + <ul> + <li><a href="kernel.html">Compiling an Android Kernel</a></li> + <li><a href="cs.html">Computer Science Course Contents</a></li> + <li><a href="kvm.html">Create a Virtual Machine using KVM</a></li> + <li><a href="gentoomanual.html">Gentoo Install Manual</a></li> + </ul> + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/bookmarks.html b/bookmarks.html new file mode 100644 index 0000000..9c25da3 --- /dev/null +++ b/bookmarks.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Bookmarks"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Bookmarks</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content"> + <h2>Bookmarks 🔖</h2> + <ul> + <li><a href="https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.9">Android ARM Compiling Toolchain</a></li> + <li><a href="https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9">Android AARCH64 Compiling Toolchain</a></li> + <li><a href="https://archive.archlinux.org/">Arch Linux Package Archive</a></li> + <li><a href="https://wiki.archlinux.org/title/dm-crypt/Device_encryption">Arch Linux dm-crypt/Device encryption</a></li> + <li><a href="https://wiki.archlinux.org/title/Dm-crypt/System_configuration">Arch Linux dm-crypt/System configuration</a></li> + <li><a href="https://wiki.archlinux.org/title/installation_guide">Installation guide</a></li> + <li><a href="https://wiki.gentoo.org/wiki/Safe_CFLAGS">Gentoo Safe CFLAGS</a></li> + <li><a href="https://www.gentoo.org/support/use-flags/">Gentoo USE flags</a></li> + <li><a href="https://wiki.gentoo.org/wiki/Handbook:AMD64/Full/Installation">Gentoo Linux amd64 Handbook</a></li> + <li><a href="files/obsd-general.pdf">OpenBSD General</a></li> + <li><a href="https://ftp.openbsd.org/pub/OpenBSD/">OpenBSD Public Repositories</a></li> + <li><a href="https://searx.space/">SearXNG and searx instances</a></li> + <li><a href="https://suckless.org/rocks/">Suckless stuff that rocks</a></li> + <li><a href="https://wiki.archlinux.org/title/XDG_Base_Directory">XDG Base Directory</a></li> + </ul> + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/books.html b/books.html new file mode 100644 index 0000000..66d978e --- /dev/null +++ b/books.html @@ -0,0 +1,79 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Books"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Books</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content"> + <h2>Books 📔</h2> + <ul style="list-style-type: none;"> + <h3>A</h3> + <li><a href="https://github.com/rangaeeeee/books-bsd/raw/master/No.Starch.Absolute.OpenBSD.2nd.Edition.2013.ISBN.1593274769.pdf">Lucas, Michael - Absolute OpenBSD</a></li> + <li><a href="https://monoskop.org/images/7/7e/Feyerabend_Paul_Against_Method.pdf">Feyerabend, Paul - Against Method</a></li> + <li><a href="https://algs4.cs.princeton.edu/home/">Sedgewick, Robert and Wayne, Kevin - Algorithms</a></li> + <li><a href="http://kgt.bme.hu/files/BMEGT30M400/Taleb_Antifragile__2012.pdf">Taleb, Nassim - Antifragile</a></li> + <li><a href="https://we.riseup.net/assets/389236/Kaczynski%2BAnti-Tech%2BRevolution%2BWhy%2Band%2BHow.pdf">Kaczynski, Theodore - Anti-Tech Revolution Why and How</a></li> + + <h3>B</h3> + <li><a href="https://davidgraeber.org/books/bullshit-jobs/">Graeber, David - Bullshit Jobs</a></li> + + <h3>C</h3> + <li><a href="https://kremlin.cc/k&r.pdf">Kernighan, Brian and Ritchie, Dennis - The C Programming Language</a></li> + <li><a href="https://periferiaactiva.files.wordpress.com/2015/08/joseph-schumpeter-capitalism-socialism-and-democracy-2006.pdf">Schumpeter, Joseph - Capitalism, Socialism and Democracy</a></li> + <li><a href="https://www.catb.org/~esr/writings/cathedral-bazaar/">Raymond, Eric - The Cathedral and The Bazaar</a></li> + + <h3>F</h3> + <li><a href="https://monoskop.org/images/5/53/Sokal_Alan_Bricmont_Jean_Fashionable_Nonsense.pdf">Sokal, Alan and Bricmont, Jean - Fashionable Nonsense</a></li> + + <h3>G</h3> + <li><a href="files/DCN-Google-Data-Collection-Paper.pdf">DCN - Google Data Collection</a></li> + + <h3>H</h3> + <li><a href="https://bible4u.net/static/bible_files/pdf/KJV.pdf">King James Version - The Holy Bible</a></li> + + <h3>I</h3> + <li><a href="files/unabomber.pdf">Kaczynski, Theodore - Industrial Society and Its Future</a></li> + <li><a href="https://mitpress.mit.edu/books/introduction-algorithms-third-edition">Cormen, Thomas - Introduction to Algorithms</a></li> + + <h3>M</h3> + <li><a href="https://library.mpib-berlin.mpg.de/ft/gg/GG_Mindless_2004.pdf">Gigerenzer, Greg - Mindless statistics</a></li> + + <h3>P</h3> + <li><a href="https://goalkicker.com/">Programming Notes for Professionals Books</a></li> + + <h3>S</h3> + <li><a href="https://cast.b-ap.net/arc619f17/wp-content/uploads/sites/39/2017/08/Baudrillard-SimulacraSimulation.pdf">Baudrillard, Jean - Simulacra and Simulation</a></li> + <li><a href="https://web.mit.edu/6.001/6.037/sicp.pdf">Abelson, Harold and Sussman, Geral Jay - Structure and Interpretation of Computer Programs</a></li> + + <h3>T</h3> + <li><a href="https://ia800300.us.archive.org/21/items/tk-Technological-Slavery/tk-Technological-Slavery.pdf">Kaczynski, Theodore - Technological Slavery</a></li> + </ul> + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> @@ -0,0 +1,89 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="College CS Contents by Semester"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>College CS Contents</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + + <div id="content"> + <h2>Computer Science Course Contents by Semester</h2> + <p> I keep this page up as a keepsake for all the software that I used during my CS Course.</p> + + <h3>1st Year</h3> + <h4>1st Semester</h4> + <ul> + <li><b>Computational Logic</b> - Boolean Logic Operators and programmed using VHDL, FBD, STL and Ladder;</li> + <li><b>Introduction to Object Oriented Programming</b> - Programmed in <a href="https://www.oracle.com/java/">Java</a> using the <a href="https://bluej.org/">BlueJ</a>, <a href="https://netbeans.apache.org/">Netbeans</a> and <a href="https://www.jetbrains.com/idea/">IntelliJ IDEA</a> IDE's.</li> + </ul> + + <h4>2nd Semester</h4> + <ul> + <li><b>Algorithms and Abstract Data Types</b> - Programmed in <a href="http://www.open-std.org/jtc1/sc22/wg14/">C</a> using <a href="https://code.visualstudio.com/">Visual Studio Code</a>;</li> + <li><b>Databases</b> - Used <a href="https://www.mysql.com/">MySQL</a> as a database and used <a href="https://mysql.com/products/workbench/">MySQL Workbench</a> as a database design tool;</li> + <li><b>Numerical Analysis</b> - Used <a href="https://gnu.org/software/octave/">GNU Octave</a>;</li> + <li><b>Object Oriented Programming</b> - Programmed in <a href="https://www.oracle.com/java/">Java</a> and <a href="https://openjfx.io/">JavaFX</a> using the <a href="https://www.jetbrains.com/idea/">IntelliJ IDEA</a> IDE.</li> + </ul> + + <h3>2nd Year</h3> + <h4>1st Semester</h4> + <ul> + <li><b>Advanced Programming</b> - Programmed in <a href="https://www.oracle.com/java/">Java</a> and <a href="https://openjfx.io/">JavaFX</a> using the <a href="https://www.jetbrains.com/idea/">IntelliJ IDEA</a> IDE;</li> + <li><b>Databases Complements</b> - Used <a href="https://www.microsoft.com/sql-server">Microsoft SQL Server</a> as a database and used <a href="https://docs.microsoft.com/en-us/sql/ssms/download-sql-server-management-studio-ssms?view=sql-server-ver15">SQL Server Management Studio</a> as a database management tool, also learned the basics of NoSQL Databases such as <a href="https://www.mongodb.com/">MongoDB</a>;</li> + <li><b>Operating Systems</b> - Programmed in <a href="http://www.open-std.org/jtc1/sc22/wg14/">C</a> using <a href="https://www.vim.org/">vim</a> and using Linux C libraries, also programmed in <a href="https://www.oracle.com/java/">Java</a> using <a href="https://www.jetbrains.com/idea/">IntelliJ IDEA</a> IDE;</li> + <li><b>Web Programming</b> - Learned <a href="https://html.spec.whatwg.org/">HTML</a>/<a href="https://www.w3.org/TR/CSS/#css">CSS</a> markup languages and learned <a href="https://www.ecma-international.org/">JavaScript</a> while using <a href="https://nodejs.org/">Node.JS</a> JavaScript runtime engine and <a href="https://expressjs.com/">Express</a> web framework.</li> + </ul> + + <h4>2nd Semester</h4> + <ul> + <li><b>Development of Videogames</b> - Used <a href="">Unity</a> game engine for basic video games development;</li> + <li><b>Human-computer Interaction</b> - Used <a href="https://www.adobe.com/products/xd.html">Adobe XD</a> as a UI/UX design tool;</li> + <li><b>Mobile Computation</b> - Programmed in <a href="https://www.oracle.com/java/">Java</a> for Android using <a href="https://developer.android.com/studio/">Android Studio</a>, also programmed for Android using JavaScript using the <a href="http://reactnative.dev/">React Native</a> framework;</li> + <li><b>Parallel and Distributed Computing</b> - Programmed in <a href="https://www.python.org/">Python</a> using <a href="https://www.jetbrains.com/pycharm/">PyCharm</a> IDE;</li> + <li><b>Statistical Methods</b> - Used <a href="https://www.rstudio.com/">RStudio</a> IDE with <a href="https://www.r-project.org/">R</a> for statistical research.</li> + </ul> + + <h3>3rd Year</h3> + <h4>1st Semester</h4> + <ul> + <li><b>Applied Software Engineering</b> - Used <a href="http://bizagi.com/">Bizagi Modeler</a> in order to use Business Process Model and Notation, and used <a href="https://www.visual-paradigm.com/">Visual Paradigm</a> a UML CASE Tool in order to complement the Bizagi business models;</li> + <li><b>Artificial Intelligence</b> - Programmed in <a href="http://common-lisp.net/">Common Lisp</a> using the <a href="http://lispworks.com/">LispWorks</a> IDE;</li> + <li><b>Computer Networks</b> - Used the <a href="https://www.wireshark.org/">Wireshark</a>, <a href="https://www.netacad.com/courses/packet-tracer">Cisco Packet Tracer</a> and Windows CMD utilities;</li> + <li><b>Information security</b> - Used <a href="https://seedsecuritylabs.org/labsetup.html">SEED Ubuntu VM</a> as an attack vector platform, in other to perform various exploits and weaknesses;</li> + <li><b>Visual Programming</b> - Programmed inside of <a href="https://visualstudio.microsoft.com/">Microsoft Visual Studio</a> with both <a href="https://docs.microsoft.com/en-us/dotnet/csharp/">C#</a> (while using <a href="https://dotnet.microsoft.com/">.NET Framework</a> in addition with <a href="https://docs.microsoft.com/en-us/aspnet/mvc/">ASP.NET MVC</a>) and <a href="https://www.typescriptlang.org/">TypeScript</a> with <a href="https://angular.io/">Angular</a> Web Framework.</li> + </ul> + + <h4>2nd Semester</h4> + <ul> + <li><b>Applied Software Engineering</b> - Used <a href="http://bizagi.com/">Bizagi Modeler</a> in order to use Business Process Model and Notation, and used <a href="https://www.visual-paradigm.com/">Visual Paradigm</a> a UML CASE Tool in order to complement the Bizagi business models;</li> + <li><b>Visual Programming</b> - Programmed inside of <a href="https://visualstudio.microsoft.com/">Microsoft Visual Studio</a> with both <a href="https://docs.microsoft.com/en-us/dotnet/csharp/">C#</a> (while using <a href="https://dotnet.microsoft.com/">.NET Framework</a> in addition with <a href="https://docs.microsoft.com/en-us/aspnet/mvc/">ASP.NET MVC</a>) and <a href="https://www.typescriptlang.org/">TypeScript</a> with <a href="https://angular.io/">Angular</a> Web Framework.</li> + </ul> + </div> + + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/donate.html b/donate.html new file mode 100644 index 0000000..be6721c --- /dev/null +++ b/donate.html @@ -0,0 +1,43 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Donations"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Donate</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content"> + <h2>Crypto 💰</h2> + <ul> + <li><a href="images/bitcoin.png">BTC</a>: 1MvzcDqAVfuQLYZKNCcBoVNYe2neta3pkM</li> + <li><a href="images/ethereum.png">ETH</a>: 0x21014f842718B5f05d5A555825d72D6aA96e5ff4</li> + <li><a href="images/monero.png">XMR</a>: 4254FmcCGBNbaq9CcqkUSk8eY3cqACjrGXRWkxXxXbjD1Up3Nu4BsCA1YCkrnrzG4SUmwDJQnBYJoeLrucWSDRhyRchRAHP</li> + </ul> + + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/favicon.ico b/favicon.ico Binary files differnew file mode 100644 index 0000000..7df8ccd --- /dev/null +++ b/favicon.ico diff --git a/files/DCN-Google-Data-Collection-Paper.pdf b/files/DCN-Google-Data-Collection-Paper.pdf Binary files differnew file mode 100644 index 0000000..529f32f --- /dev/null +++ b/files/DCN-Google-Data-Collection-Paper.pdf diff --git a/files/obsd-general.pdf b/files/obsd-general.pdf Binary files differnew file mode 100644 index 0000000..4499d72 --- /dev/null +++ b/files/obsd-general.pdf diff --git a/files/rafael.gpg b/files/rafael.gpg new file mode 100644 index 0000000..b369c18 --- /dev/null +++ b/files/rafael.gpg @@ -0,0 +1,51 @@ +-----BEGIN PGP PUBLIC KEY BLOCK----- + +mQINBGEeS9UBEAD4XtK2pnHir/TnX6BtWCDApXMW/emQGapTGdmaJgQg0ufG07Hf +IZK2qHJ2KdUExBSVjc0OyBnqlk26T+X7tMTnEwfMlAv4szRFla0eFki9tZkY/yC9 +GzyFrmZ/4ygxUaPbwyXC5t01X3LS7mICB2VOlE2SccGjkIOM0n97EYEC9WVMS2MY +uXlpPShpHhWW+04Jd+zjbK0pxPCgvPXnlMja6lEO2jm9yTf3tgeEcHMX2OiTJtOO +P16s8SbWC3eHg00lFCDpZTwxD+aOGpre0zOMcFlQIXDNw6B4WLDy2vIO9AlFQwRI +cZoPAS1juMfNaZYtW+r2FfBE6JVGaYfkMOdv31N3hq5UPzZklvF3IH/olQ11WzhF +nOA642ud4cxFpaB7ybZqv9acVJabUaa0R5Q8GPaUo+1y/wu/CA6vU1BwXNsdU/5e +E0Pc8GgFf/qytUhi+lwV0qLB3LKgc20ZAV/igRVM9wAGJubI4j6liyy/9bRvjYg5 +6uSiM400EMYW2Bot6CFUira7p5Dsqq6iTJ0UapZ6VAc20wOtnUQTwmzFmX6W6MEK +9YASgGdwvjHkSPM50AhWtkIolB1BtjM1/tIFr2W0i+59GS+QWn7pvwpah+0zJdsI +1kxHw6piukqHjSyCr2RXHjZAqxbROEXmAovdd+lN/1xD2ASHPJG8z2GnDQARAQAB +tCRSYWZhZWwgTWFyw6dhbG8gPHJhcm9tYTA5QGdtYWlsLmNvbT6JAk4EEwEIADgW +IQQymoV4v96sBqHlLXwcjzcu1TGtTQUCYR5L1QIbAwULCQgHAgYVCgkICwIEFgID +AQIeAQIXgAAKCRAcjzcu1TGtTWIGEACLcPwWCTjvEDtGVsPgc1V9UQW+h6bqJwnv +2NWV89uLwYj4x390RmL7j+EAEvUyO3uLgiopim57M2BZlCd4ArMA1cBLh6PfrL7n +uMEDvjazqOovmAb5TQ3+6syWVy9Aq6uNHEeKZWK7M3ESMaz4E1vVHs7A+FBZ5F1f +G2euuajJihPw7tUvKacJQJJgpH2Dx+RDR9fQUjAv9mIsBbk4NKVV1xW7ANJ0St28 +b2hu6DGGEW0ITQKlJCMh6TGLphsBaxMKYaN4oZfc8umlI7d4d6DTtC4oAsX+5t7n +hbgd270S+nrDe2f7lu358WA03clhlKk48NEW85WbsDVCDSz3KySrYxbSm/xDwcp+ +ID8mIQSBpAUwCVnkpagVaMjvXhJDCgGF4LO5r0jingzdW8p4458/o9fNhyL4/uWZ +1ag9h1UHBbgaJdxsvY5lbPNG+E6YFdxsNV60Dba5NuhiHXrHMSvf8cq4TwirOpiq +ppjEQ2gfTvaHZgn2epqk2CvBVpV/LqpWnUfHlV0Q5rh0/yn3SEYcGMwsVr6lYzYY +Jjc7+9WVESdkHKVF59pgpZGcKUYVA+Vn4RAB8cJP7Kekw+y33S/rsnu4TB3j62e7 +Unu5Z6k3UJia95dWow0+yEEvEkMkgTG5Xg8Oo5HzDIT+1NCGrUC41tS5pN4jT8zX +96OEDyNje7kCDQRhHkvVARAAxE12CBSxe45Sfe43zkW9GeNBDqL0w9951V7upTnf +IvbgMByEs6luAxYL7AmKbFKo3/f29LvxPHkfBnwZEX90Vu/+VkzyXv64oDQGpg9M +2PCAyisN60+wk0PuR7SkIeqpunAih+0YiUdaBUbhqT6QaSZuauuO2NLbKOTk9ALH +SdZWIxAAoibquU8IPq1509kvTzKz4aoQ590hV7LQ9QBqWeSo20spsZmjrV6Vcnsh +W4r7RsXm8T2+V/DBZf7uBIWDBADYV1i0u7WtVG+mzYXzHHSlQeKFwC/MxgmXae8y +/65sLTMLGDUJvEKIdqjCHyzuq6Bq6adTe6eiKXooxF0l6N5bVYNjhnSUH19wedKq +z9ILHaYEfPAZqen9c1ZTV4JOgaJ9aaQnNLWHdJhQLr2qEFjFZpD6vyQd9MTBFY/K +3Zb6ujRgd1qsKijLXTN3ve8SHFXsHtVjnvUosMRdzhhwnxKLqGkn/JnhBXRKJDn4 +qsKpJ1kZTKeQe2xg82VaKZ9LMB6CQyUutnrhmc9tHeUtCPxmvub6aERb2MeW5W9/ +M22yt215De4cJ+vGsH3PmPlwdPUyuU5fegPL27puuJtoBfj7vp2InUcsumj2T6wf +3XFtZwGzwknQBBFo5kC66eILFnd9b7qF/HU87665M3yCXFgbL1BitGrTg2dPp0MS +LD8AEQEAAYkCNgQYAQgAIBYhBDKahXi/3qwGoeUtfByPNy7VMa1NBQJhHkvVAhsM +AAoJEByPNy7VMa1N1zcP/02b9qkrLxbiwIDReE/VGzvHJ62vxyg5a3gz3WLvQ2m+ +bucXagq0lHIov5KflexLP1pfO/jvRfMqoyJo4hcHMnaNCkg0X6xN1/RRx20bbq0C +h4dirJuYcckmNfD03hYeJ8H4xhkjEC9o3eHKZqOO+uzYS5u+BCBc3iRmYPFxVVmz +hkq7KyjxXvicwEbsGhXjMJH4PYgMiaV73gjGI0VnuXiQn9j7EYw/5M7jSJCNGrHn +42SWSeJGsaMIhD3kpvR9nZLjAbsC+DsTX9rhx+kc3wdJa9Ah+rHnFLbi67ToNzP/ +8ZA8MMk3FFbzyz8BkG5VrR92Bacfa2DAdf45j/HxjA3tDXiokZDo3hWyBcs6u9HL +emYCjj0qH+NMfrSeqr5CLww08wl5fvnXhDmzmVvV6BkbtNU0DhMAYbCrxqtT/hhg +gOPKYdzrDj878kFFReiWQLXbl0om8VV7NKQBO/wS7NSYDBnJIwtHd/uEF31azEet ++YBYG9UtmJSpaOv82QWEySVrrKD38MIdMkf49+vqQw4bTSwaOz0Deuk8yzLenXFt +tv5txhveb752OUVPXpqgjx4G40B35XkFiN9u5qTuBOmiNn3OZ4m35vRcWMkoW0Mv +IukSXRkkcmREbTlK7cH7WFFmxrsZMR2GS9JDkMOxNxMxkVVmFkcmjT2MJcuyKrCh +=qzcm +-----END PGP PUBLIC KEY BLOCK----- diff --git a/files/unabomber.pdf b/files/unabomber.pdf Binary files differnew file mode 100644 index 0000000..49e814c --- /dev/null +++ b/files/unabomber.pdf diff --git a/gentoomanual.html b/gentoomanual.html new file mode 100644 index 0000000..b304fb7 --- /dev/null +++ b/gentoomanual.html @@ -0,0 +1,522 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Gentoo Install Manual"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Gentoo Install Manual</title> + </head> + + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content"> + <h2 id="steps-to-install-gentoo-on-your-computer">Gentoo Install Manual</h2> + <p><strong>Warning</strong>: the installation can differ from 3 hours to 3 days or more, depending on your installation complexity.</p> + + <h3 id="booting-up-the-cd">Booting up the CD</h3> + <p>When booting up the CD you will be asked which kernel you want to load, I recommend going with the default kernel(<strong>Gentoo</strong>). So in the terminal type</p> + <p><code>gentoo</code></p> + <p>Then you will be asked which keyboard layout you want to use, just choose your current keyboard layout.</p> + + <h3 id="connecting-to-the-internet">Connecting to the internet</h3> + <p>I recommend doing this step through wired connection for easier setup.</p> + <p>If you want to use wifi, I recommend using wpa_supplicant for a setup, in that case type the next commands: + </p> + <ol> + <li> + Type <code>wpa_passphrase YOUR_WIFI_SSID_HERE YOUR_WIFI_PASSWORD_HERE > /etc/wpa_supplicant/wpa_supplicant.conf</code> + </li> + <li> + Type <code>wpa_supplicant -i YOUR_WIFI_INTERFACE -c /etc/wpa_supplicant/wpa_supplicant.conf &</code> + </li> + </ol> + <p>This will use the file you created to connect to the wifi network.</p> + <p>Note: If you are using <em>wpa_supplicant</em> you might need to use the <strong>-D</strong> flag to choose your wifi adapter driver.</p> + + <h3 id="partitioning">Partitioning</h3> + <p>I personally recommend you partitioning your disk with the <strong>cfdisk</strong> tool for easier visualization of your disk. In this case I’ll be using a MBR(dos) partition type and I recommend creating a 2 primary partitions, one for the <strong>swap</strong> partition and one for the <strong>/</strong>(<strong>root</strong>) partition. When creating a swap partition make sure to change the partition type to <em>Linux swap / Solaris</em>.</p> + <ol type="1"> + <li> + Type <code>mkswap /dev/YOUR_SWAP_PARTITION_ID</code> to format the partition as a <strong>swap partition</strong>; + </li> + <li> + Type <code>mkfs.ext4 /dev/YOUR_ROOT_PARTITION_ID</code> to format your root partition as <strong>ext4</strong>; + </li> + </ol> + + <h4 id="mounting-partitions">Mounting partitions</h4> + <p>Now we are going to mount the formatted partitions so we can then deploy the <strong>stage3</strong> package.</p> + <ol type="1"> + <li>Type <code>swapon /dev/YOUR_SWAP_PARTITION_ID</code> to activate your swap partition;</li> + <li>Type <code>mount /dev/YOUR_ROOT_PARTITION_ID /mnt/gentoo</code> to mount your root partition.</li> + </ol> + + <h3 id="installing-stage3-tarball">Installing stage3 tarball</h3> + <ol type="1"> + <li><code>cd /mnt/gentoo</code> to go to the root partition directory;</li> + <li><code>links https://gentoo.org/downloads/</code> to open links, a ncurses based web browser and download the stage3 tarball from there;</li> + <li> + After downloading the stage3 tarball type <code>tar xpvf stage3-*.tar.xz --xattrs-include='*.*' --numeric-owner</code> to unpack it to the root directory; + </li> + <li>After unpacking the tarball you can now delete it <code>rm -rf stage3-*.tar.xz</code>.</li> + </ol> + + <h3 id="configuring-your-compiler">Configuring your Compiler</h3> + <p>In this phase you are going to configure <strong>portage</strong>, your package and “compiler”.</p> + <ol type="1"> + <li>Type <code>nano -w /mnt/gentoo/etc/portage/make.conf</code>;</li> + </ol> + <p>Now, in your <code>make.conf</code> file you’ll find something like this</p> + <pre><code># Compiler flags to set for all languages +COMMON_FLAGS="-march=native -O2 -pipe" +# Use the same settings for both variables +CFLAGS="${COMMON_FLAGS}" +CXXFLAGS="${COMMON_FLAGS}"</code></pre> + <p>In your <em>COMMON_FLAGS</em> variable you can tune and optimize your compiler with certain <em>CFLAGS</em> based on your CPU.</p> + <p>According to the <em>Gentoo Wiki</em>:</p> + <p>A first setting is the <code>-march=</code> or <code>-mtune=</code> flag, which specifies the name of the target architecture.</p> + <p>A second one is the <code>-O</code> flag (that is a capital O, not a zero), which specifies the gcc optimization class flag. Possible classes are s (for size-optimized), <code>0</code> (zero - for no optimizations), 1, 2 or even 3 for more speed-optimization flags (every class has the same flags as the one before, plus some extras).<code>-O2</code> is the recommended default. <code>-O3</code> is known to cause problems when used system-wide, so we recommend to stick to <code>-O2</code>.</p> + <p>Another popular optimization flag is -pipe (use pipes rather than temporary files for communication between the various stages of compilation). It has no impact on the generated code, but uses more memory. On systems with low memory, gcc might get killed. In that case, do not use this flag.</p> + <p>Find out more specific <a href="https://wiki.gentoo.org/wiki/Safe_CFLAGS">CPU Optimizations here</a>.</p> + + <h4 id="makeopts">MAKEOPTS</h4> + <p>The MAKEOPTS variable defines how many parallel compilations should occur when installing a package. A good choice is the number of CPUs (or CPU cores) in the system plus one. In case you want to use MAKEOPTS, you should add this to your <code>make.conf</code> file</p> + <p><code>MAKEOPTS="-jCPU_CORES_PLUS_ONE"</code></p> + + <h3 id="setting-up-gentoo-repos">Setting up <strong>Gentoo</strong> Repos</h3> + + <h4 id="optional---setting-up-mirrors">OPTIONAL - Setting up Mirrors</h4> + <p>This step is optional but since you may want to download your source code faster, you might want to set your nearest mirrors with the next command</p> + <p><code>mirrorselect -i -o >> /mnt/gentoo/etc/portage/make.conf</code></p> + <p>It will open up to you a ncurses complete list of mirrors where you with the <em>spacebar</em> select the ones nearest to you.</p> + + <h4 id="gentoo-ebuild-repository"><strong>Gentoo</strong> ebuild repository</h4> + <p>This file contains the sync information needed to update the package repository. To get this file to work type the next commands:</p> + <ol type="1"> + <li><code>mkdir --parents /mnt/gentoo/etc/portage/repos.conf</code>;</li> + <li><code>cp /mnt/gentoo/usr/share/portage/config/repos.conf /mnt/gentoo/etc/portage/repos.conf/gentoo.conf</code></li> + </ol> + + <h4 id="copying-dns-info">Copying DNS Info</h4> + <p><code>cp --dereference /etc/resolv.conf /mnt/gentoo/etc/</code></p> + + <h3 id="mounting-the-remaining-filesystems">Mounting the remaining filesystems</h3> + <p>Now that you setup your root partition, now you need to prepare the environment so you can chroot into the root partition, you can mount the necessary file systems with next commands</p> + <pre><code>mount --types proc /proc /mnt/gentoo/proc +mount --rbind /sys /mnt/gentoo/sys +mount --make-rslave /mnt/gentoo/sys +mount --rbind /dev /mnt/gentoo/dev +mount --make-rslave /mnt/gentoo/dev +mount --bind /run /mnt/gentoo/run +mount --make-slave /mnt/gentoo/run</code></pre> + + <h4 id="entering-the-new-environment">Entering the new environment</h4> + <p>Since you mounted the remaining file systems you can now chroot into your <strong>Gentoo</strong> installation with the next commands</p> + <pre><code>chroot /mnt/gentoo /bin/bash +source /etc/profile +export PS1="(chroot) ${PS1}"</code></pre> + + <h3 id="configuring-portage">Configuring Portage</h3> + <p>Next step is to install a snapshot of the main ebuild repository. This snapshot contains a collection of files that informs Portage about available software titles (for installation), which profiles the system administrator can select, package or profile specific news items, etc. To download this snapshot type</p> <p><code>emerge-webrsync</code></p> + + <h3 id="updating-ebuild-repository">Updating ebuild repository</h3> + <p>To sync portage with the snapshot you just downloaded type</p> + <p><code>emerge --sync</code></p> + <p>If you want to speedup the process by reducing frame buffers use</p> + <p><code>emerge --sync --quiet</code></p> + + <h4 id="optional-set-up-ccache">OPTIONAL Set Up CCACHE</h4> + <p>In <strong>Gentoo</strong> ccache helps avoid repeated recompilation for the same C and C++ object files by fetching result from a cache directory.</p> + <p>If you want to setup ccache, type the following commands</p> + <ol type="1"> + <li><code>emerge --ask dev-util/ccache</code> <em>This command will install ccache</em>;</li> + <li><code>mkdir -p /var/cache/ccache</code> <em>This will create a directory where C and C++ object files will be stored, you can set up the directory wherever you want, this is just the defaults</em>;</li> + <li><code>chown root:portage /var/cache/ccache</code> <em>To give portage permissions to acess that directory</em>;</li> + <li><code>chmod 2775 /var/cache/ccache</code> <em>Set this directory permissions</em>.</li> + </ol> + <p>Next up you configure ccache with the next config file at <em>/var/cache/ccache/ccache.conf</em></p> + <pre><code># Maximum cache size to maintain +max_size = 100.0G + +# Allow others to run 'ebuild' and share the cache. +umask = 002 + +# Preserve cache across GCC rebuilds and +# introspect GCC changes through GCC wrapper. +compiler_check = %compiler% -v + +# I expect 1.5M files. 300 files per directory. +cache_dir_levels = 3</code></pre> + <p>And finally you add a ccache entry in your portage <code>make.conf</code> file</p> + <pre><code>FEATURES="ccache" +CCACHE_DIR="/var/cache/ccache"</code></pre> + <p>You’re done, now your compilations will be much faster ;)</p> + + <h4 id="optional-cpuid2cpuflags">OPTIONAL cpuid2cpuflags</h4> + <p>This tool guesses the host <em>CPU_FLAGS_*</em> based on their CPU. To get this tool to work, type the following commands</p> + <ol type="1"> + <li><code>emerge --ask app-portage/cpuid2cpuflags</code> <em>This will install the tool</em>;</li> + <li><code>mkdir -p /etc/portage/package.use</code> <em>This will create a directory where the flags will be stored</em>;</li> + <li><code>echo "*/* $(cpuid2cpuflags)" > /etc/portage/package.use/00cpuflags</code> <em>This will link the cpuid2cpuflags to portage make.conf</em>.</li> + </ol> + <p>You are done, now you are squeezing a bit more of performance out of your CPU =)</p> + + <h3 id="choosing-your-profile">Choosing your profile</h3> + <p>A profile not only does it specify default values for <em>USE</em>, <em>CFLAGS</em>, and other important variables, it also locks the system to a certain range of package versions. You can see all the available profiles with <code>eselect profile list</code>, by default, it will preselect <code>default/linux/amd64/17.1</code>, and if you want to use your <strong>Gentoo</strong> system a desktop computer then you should select the <code>default/linux/amd64/17.1/desktop</code> profile, it will have the most appropriate <em>USE</em> and <em>CFLAGS</em> flags for your desktop daily use. Each profiles will have a correspondent number to it, so when you decide which profile you want to use, simply type</p> + <p><code>eselect profile set NUMBER_OF_PROFILE</code></p> + + <h3 id="selecting-your-use-flags">Selecting your USE Flags</h3> + <p><em>USE</em> is one of the most powerful variables <strong>Gentoo</strong> provides to its users. Several programs can be compiled with or without optional support for certain items. For instance, some programs can be compiled with support for GTK+ or with support for Qt. Others can be compiled with or without SSL support. Some programs can even be compiled with frame buffer support (svgalib) instead of X11 support (X-server).</p> + <p>Most distributions compile their packages with support for as much as possible, increasing the size of the programs and startup time, not to mention an enormous amount of dependencies. With <strong>Gentoo</strong> users can define what options a package should be compiled with. This is where <em>USE</em> comes into play.</p> + <p>In the USE variable users define keywords which are mapped onto compile-options. For instance, ssl will compile SSL support in the programs that support it. <code>-X</code> will remove X-server support (note the minus sign in front). <code>gnome gtk -kde -qt4 -qt5</code> will compile programs with GNOME (and GTK+) support, and not with KDE (and Qt) support, making the system fully tweaked for GNOME (if the architecture supports it). </p> + <p>If you want to know which <em>USE</em> flags come by default in your profile just type</p> + <p><code>emerge --info | grep ^USE</code></p> + <p>To manage your <em>USE</em> flags, you can manage them in your portage <code>make.conf</code> with the <em>USE</em> variable. For example, if you wanted to build a system based on <em>qt</em> and <em>kde</em> you would set this <em>USE</em> flags in your <code>make.conf</code> file </p> + <p><code>USE="-gtk -gnome qt4 qt5 kde"</code></p> + <p>Make sure you select the right <em>USE</em> flags at this step of installation, because if after you are fully setup and decide to change your global <em>USE</em> flags, you might have to wait tons of hours just to recompile your entire system with the new <em>USE</em> flags</p> + <p>You can check all the global <em>USE</em> flags <a href="https://gentoo.org/support/use-flags/">here</a>.</p> + + <h3 id="updating-and-recompiling-the-system">Updating and Recompiling the System</h3> + <p>This following step is necessary so the system can apply any updates or USE flag changes which have appeared since the stage3 was built and from any profile selection</p> + <p><code>emerge --ask --verbose --update --deep --newuse @world</code></p> + + <h4 id="notes">Notes:</h4> + <ul> + <li>Warning this might take a long time depending on the <em>USE</em> flags you set;</li> + <li>In this step you might need to use the command <code>etc-update</code> to fix some package dependencies or even you might need to do manual intervention to some of the packages depending on the compiler error.</li> + </ul> + + <h3 id="timezone">Timezone</h3> + <p>Now we start to install the actual system, first we need to choose a timezone, you can check the main available timezones with</p> + <p><code>ls /usr/share/zoneinfo</code></p> + <p>Once you chosen your directory option then use the same command but to see the sub-directories of your selected directory</p> + <p><code>ls /usr/share/zoneinfo/YOUR_SELECTED_MAIN_TIMEZONE/</code></p> + <p>Here you might choose the timezone that better suits you.</p> + <p>After you choose your timezone just add it to your <em>etc</em> directory with</p> + <p><code>echo "YOUR_SELECTED_MAIN_TIMEZONE/TIMEZONE_THAT_BETTER_SUITS_YOU" > /etc/timezone</code></p> + <p>Now, just reload your timezone settings to apply system-wide with</p> + <p><code>emerge --config sys-libs/timezone-data</code></p> + + <h4 id="example">Example</h4> + <p><code>echo "Europe/Lisbon" > /etc/timezone</code></p> + <h3 id="locales">Locales</h3> + <p>Locales specify not only the language that the user should use to interact with the system, but also what the rules are for sorting strings, displaying dates and times, etc.</p> + <p>To set locales, open the <code>/etc/locale.gen</code> file and uncomment the locales you want to use, for example, if you want to use the US locales, just uncomment the next lines</p> + <pre><code>en_US ISO-8859-1 +en_US.UTF-8 UTF-8</code></pre> + <p>This will enable this locales and to generate the specified locales type</p> + <p><code>locale-gen</code></p> + <p>Now, to see the locales you can apply to your environment type</p> + <p><code>eselect locale list</code></p> + <p>You’ll see something like this</p> + <pre><code>Available targets for the LANG variable: + [1] C + [2] POSIX + [3] en_US + [4] en_US.iso88591 + [5] en_US.utf8 + [ ] (free form)</code></pre> + <p>And then, just like the <em>profile</em> you should select a locale number you prefer to apply to your LANG(language) variable, in this case I recommend to you, select a UTF8 locale. When you choose your locale, just type</p> + <p><code>eselect locale set NUMBER_OF_LOCALE</code></p> + <p>All you have to do now, is reload your environment with the new locale with the next command:</p> + <p><code>env-update && source /etc/profile && export PS1="(chroot) ${PS1}"</code></p> + + <h3 id="grabbing-the-kernel-sources">Grabbing the Kernel Sources</h3> + <p>This is phase is based on the kernel compilation and installation, this can be saw has one of the most difficult steps as a Linux user, but once you overcome this step, you’ll see that it ain’t so hard to compile and customize 1. Grab the sources with <code>emerge --ask sys-kernel/gentoo-sources sys-kernel/genkernel</code> - If you need proprietary blobs also type <code>emerge --ask sys-kernel/linux-firmware</code></p> <p>From here and now on, you have two options</p> + <ol type="1"> + <li>Configure manually the kernel(Recommended);</li> + <li>Generate a default <strong>Gentoo</strong> kernel with genkernel (Not recommended because, once you update your kernel, you’ll have to recompile the kernel with all the modules and quirks, while if you manually configure a kernel, you’ll have a faster and faster to compile kernel).</li> + </ol> + + <h3 id="compiling-the-kernel">Compiling the kernel</h3> + + <h4 id="manually-configure-the-kernel">Manually Configure the kernel</h4> + <p><strong>Warning</strong>: you might also need to make some changes to the kernel to suit better your system, these options below are just some base kernel functions.</p> + <ol type="1"> + <li>Go to the kernel sources directory with <code>cd /usr/src/linux</code>;</li> + <li>Now you are going to open a ncurses based kernel configuration menu with <code>make menuconfig</code>, where you can toggle on a option with <em>Y</em>, or toggle off a option with <em>N</em> or simply make the options modules(By default once the kernel boots up they are off, but you can turn them on with <code>modprobe DESIRED_MODULE_TO_TOGGLE_ON</code> command) with <em>M</em>.</li> + </ol> + + <h5 id="activating-required-options">Activating required options</h5> + <p>Make sure that every driver that is vital to the booting of the system (such as SCSI controller, etc.) is compiled in the kernel and not as a module, otherwise the system will not be able to boot completely.</p> + + <h6 id="enabling-devtmpfs-support">Enabling devtmpfs support</h6> + <pre><code>Device Drivers ---> + Generic Driver Options ---> + [*] Maintain a devtmpfs filesystem to mount at /dev + [*] Automount devtmpfs at /dev, after the kernel mounted the rootfs</code></pre> + + <h6 id="enabling-scsi-disk-support">Enabling SCSI disk support</h6> + <pre><code>Device Drivers ---> + SCSI device support ---> + <*> SCSI disk support</code></pre> + + <h6 id="selecting-necessary-file-systems">Selecting necessary file systems</h6> + <p>Now go to File Systems and select support for the file systems you use. Don’t compile the file system that is used for the root file system as module, otherwise the <strong>Gentoo</strong> system will not be able to mount the partition. Also select Virtual memory and /proc file system. Select one or more of the following options as needed by the system.</p> + <pre><code>File systems ---> + <*> Second extended fs support + <*> The Extended 3 (ext3) filesystem + <*> The Extended 4 (ext4) filesystem + <*> Reiserfs support + <*> JFS filesystem support + <*> XFS filesystem support + <*> Btrfs filesystem support + DOS/FAT/NT Filesystems ---> + <*> MSDOS fs support + <*> VFAT (Windows-95) fs support + +Pseudo Filesystems ---> + [*] /proc file system support + [*] Tmpfs virtual memory file system support (former shm fs)</code></pre> + + <h6 id="selecting-pppoe-necessary-drivers">Selecting PPPoE necessary drivers</h6> + <p>If PPPoE is used to connect to the Internet, or a dial-up modem, then enable the following options</p> + <pre><code>Device Drivers ---> + Network device support ---> + <*> PPP (point-to-point protocol) support + <*> PPP support for async serial ports + <*> PPP support for sync tty ports</code></pre> + + <h6 id="activating-smp-support">Activating SMP support</h6> + <pre><code>Processor type and features ---> + [*] Symmetric multi-processing support</code></pre> + + <h6 id="activating-usb-support-for-input-devices">Activating USB support for input devices</h6> + <pre><code>Device Drivers ---> + HID support ---> + -*- HID bus support + <*> Generic HID driver + [*] Battery level reporting for HID devices + USB HID support ---> + <*> USB HID transport layer + [*] USB support ---> + <*> xHCI HCD (USB 3.0) support + <*> EHCI HCD (USB 2.0) support + <*> OHCI HCD (USB 1.1) support</code></pre> + <h6 id="selecting-processor-types-and-features">Selecting processor types and features</h6> + <p>Make sure to select IA32 Emulation if 32-bit programs should be supported.</p> + <pre><code>Processor type and features ---> + [ ] Machine Check / overheating reporting + [ ] Intel MCE Features + [ ] AMD MCE Features + Processor family (AMD-Opteron/Athlon64) ---> + ( ) Opteron/Athlon64/Hammer/K8 + ( ) Intel P4 / older Netburst based Xeon + ( ) Core 2/newer Xeon + ( ) Intel Atom + ( ) Generic-x86-64 +Executable file formats / Emulations ---> + [*] IA32 Emulation</code></pre> + + <h6 id="enable-support-for-gpt">Enable support for GPT</h6> + <p>Enable GPT partition label support if that was used previously when partitioning the disk</p> + <pre><code>-*- Enable the block layer ---> + Partition Types ---> + [*] Advanced partition selection + [*] EFI GUID Partition support</code></pre> + + <h6 id="enable-support-for-uefi">Enable support for UEFI</h6> + <p>Enable EFI stub support and EFI variables in the Linux kernel if UEFI is used to boot the system</p> + <pre><code>Processor type and features ---> + [*] EFI runtime service support + [*] EFI stub support + [*] EFI mixed-mode support + +Firmware Drivers ---> + EFI (Extensible Firmware Interface) Support ---> + <*> EFI Variable Support via sysfs</code></pre> + + <h6 id="kernel-extras">Kernel Extras</h6> + <ul> + <li><a href="https://wiki.gentoo.org/wiki/ALSA">ALSA</a>;</li> + <li><a href="https://wiki.gentoo.org/wiki/AMDGPU">AMD GPU</a>;</li> + <li><a href="https://wiki.gentoo.org/wiki/Android_USB_Tethering">Android USB Tethering</a>;</li> + <li><a href="https://wiki.gentoo.org/wiki/Dm-crypt">Dm-crypt</a>;</li> + <li><a href="https://wiki.gentoo.org/wiki/Iwlwifi">Intel WiFi Drivers</a>;</li> + <li><a href="http://www.users.on.net/~ckolivas/kernel/">Intel CPU Performance Improved Performance + Patch</a>;</li> + <li><a href="https://forums.gentoo.org/viewtopic-p-8352868.html">MMC</a> - + <code>Device Drivers->MMC/SD/SDIO card support->Secure Digital Host Controller Interface support->SDHCI support on PCI bus</code>; + </li> + <li><a href="https://wiki.gentoo.org/wiki/NVIDIA/nvidia-drivers">Nvidia GPU</a>;</li> + <li><a href="https://wiki.gentoo.org/wiki/OpenVPN">OpenVPN</a>;</li> + <li><a href="https://wiki.gentoo.org/wiki/Printing">Printing</a>;</li> + <li><a href="https://wiki.gentoo.org/wiki/PulseAudio">Pulseaudio</a>;</li> + <li><a href="https://wiki.gentoo.org/wiki/QEMU">QEMU</a>;</li> + <li><a href="https://wiki.gentoo.org/wiki/VirtualBox">VirtualBox</a>.</li> + </ul> + <p>From here, your system configurations may vary consonant your system, take a “trip” through the kernel menus and enable/disable the options that better suit you.</p> + + <h6 id="compiling-and-installing-the-kernel">Compiling and Installing the kernel</h6> + <p>Now that your kernel is configured, it’s time to compile it, type <code>make && make modules_install</code> to compile the kernel.</p> + <p>Now to install the kernel type <code>make install</code>. Finally you should generate initramfs of your kernel, so to do that, just type <code>genkernel --install initramfs</code>.</p> + + <h6 id="note">Note</h6> + <p>You can then save your kernel configuration file (The file name <code>.config</code> inside your <code>/usr/src/linux/ directory</code>) wherever you want so if you need to recompile or reinstall the <strong>Gentoo</strong> kernel you just need to put the kernel configuration file inside of <code>/usr/src/linux/</code>.</p> + + <h5 id="using-genkernel">Using Genkernel</h5> + <p>If a manual configuration looks too daunting, then using genkernel is recommended. It will configure and build the kernel automatically. Just type <code>genkernel all</code> to generate the kernel.</p> + + <h3 id="creating-a-fstab-file">Creating a fstab file</h3> + <p>The /etc/fstab file uses a table-like syntax. Every line consists of six fields, separated by whitespace (space(s), tabs or a mixture). Each field has its own meaning:</p> + <p>The first field shows the block special device or remote file system to be mounted. Several kinds of device identifiers are available for block special device nodes, including paths to device files, file system labels and UUIDs, and partition labels and UUIDs. The second field shows the mount point at which the partition should be mounted. The third field shows the file system used by the partition. The fourth field shows the mount options used by mount when it wants to mount the partition. As every file system has its own mount options, users are encouraged to read the mount man page (man mount) for a full listing. Multiple mount options are comma-separated. The fifth field is used by dump to determine if the partition needs to be dumped or not. This can generally be left as 0 (zero). The sixth field is used by fsck to determine the order in which file systems should be checked if the system wasn’t shut down properly. The root file system should have 1 while the rest should have 2 (or 0 if a file system check isn’t necessary).</p> + <p>To start writting a fstab file you can start by typing the next command</p> + <p><code>blkid >> /etc/fstab</code></p> + <p>It will read your disks UUIDs and put them inside of your fstab file. Then type <code>nano -w /etc/fstab</code> to open up your fstab file, and modify it to look something like this, but with your UUIDs:</p> + <pre><code># /dev/YOUR_SWAP_PARTITION_ID +UUID=YOUR_SWAP_PARTITION_UUID none swap sw 0 0 + +# /dev/YOUR_ROOT_PARTITION_ID +UUID=YOUR_ROOT_PARTITION_UUID / ext4 rw,relatime 0 1</code></pre> + + <h3 id="networking-information">Networking Information</h3> + + <h4 id="setting-up-host-name">Setting up Host name</h4> + <p>Type</p> + <p><code>nano -w /etc/conf.d/hostname</code></p> + <p>And then change the host name variable to your desired variable.</p> + + <h4 id="starting-networking-at-boot">Starting Networking at Boot</h4> + <p>In this step, first you need to go into the <code>init.d</code> directory, so type</p> + <p><code>cd /etc/init.d</code></p> + <p>Then link your current interface to <code>net.lo</code></p> + <p><code>ln -s net.lo net.YOUR_INTERNET_INTERFACE</code></p> + <p>Then add this link to openrc boot with</p> + <p><code>rc-update add net.YOUR_INTERNET_INTERFACE default</code></p> + + <h4 id="pcmcia">PCMCIA</h4> + <p>If you are using PCMCIA then type</p> + <p><code>emerge --ask --quiet sys-apps/pcmciautils</code></p> + + <h3 id="system-configurations">System Configurations</h3> + + <h4 id="root-password">Root password</h4> + <p>Change your root password by typing:</p> + <p><code>passwd</code></p> + + <h4 id="creating-a-user">Creating a user</h4> + <p>Create a user by typing:</p> + <p><code>useradd -m -G wheel YOUR_DESIRED_USERNAME</code></p> + <p>Then create a password to that user by typing:</p> + <p><code>passwd YOUR_DESIRED_USERNAME</code></p> + + <h4 id="boot-configuration">Boot configuration</h4> + <p><strong>Gentoo</strong> (at least when using OpenRC) uses /etc/rc.conf to configure the services, startup, and shutdown of a system. You should review most of these settings by typing</p> + <p><code>nano -w /etc/rc.conf</code></p> + <p>Now, you should change your <em>tty</em> keyboard layout inside of <code>/etc/conf.d/keymaps</code> with</p> + <p><code>nano -w /etc/conf.d/keymaps</code></p> + <p>If necessary change the hwclock with</p> + <p><code>nano -w /etc/conf.d/hwclock</code></p> + + <h4 id="system-logger">System logger</h4> + <p>Some tools are missing from the stage3 archive because several packages provide the same functionality. It is recommended the <code>sysklogd</code> package, so to get it and put it to working type:</p> + <pre><code>emerge --quiet --ask app-admin/sysklogd +rc-update add sysklogd default</code></pre> + + <h4 id="cron-daemon">Cron daemon</h4> + <p>A cron daemon executes scheduled commands. It is very handy if some command needs to be executed regularly (for instance daily, weekly or monthly). To setup cronie, type:</p> + <pre><code>emerge --ask sys-process/cronie +rc-update add cronie default +crontab /etc/crontab</code></pre> + + <h4 id="file-indexing">File indexing</h4> + <p>In order to index the file system to provide faster file location capabilities, install<code>mlocate</code> with</p> + <p><code>emerge --ask sys-apps/mlocate</code></p> + + <h4 id="file-systems">File systems</h4> + <p>Depending on the file systems used, it is necessary to install the required file system utilities</p> + <table> + <thead> + <tr class="header"> + <th style="text-align: left;">File system</th> + <th style="text-align: right;">Package</th> + </tr> + </thead> + <tbody> + <tr class="odd"> + <td style="text-align: left;">Ext2, 3, and 4</td> + <td style="text-align: right;">sys-fs/e2fsprogs</td> + </tr> + <tr class="even"> + <td style="text-align: left;">VFAT (FAT32, …)</td> + <td style="text-align: right;">sys-fs/dosfstools</td> + </tr> + <tr class="odd"> + <td style="text-align: left;">NTFS</td> + <td style="text-align: right;">sys-fs/ntfs3g</td> + </tr> + <tr class="even"> + <td style="text-align: left;">XFS</td> + <td style="text-align: right;">sys-fs/xfsprogs</td> + </tr> + <tr class="odd"> + <td style="text-align: left;">ReiserFS</td> + <td style="text-align: right;">sys-fs/reiserfsprogs</td> + </tr> + <tr class="even"> + <td style="text-align: left;">JFS</td> + <td style="text-align: right;">sys-fs/jfsutils</td> + </tr> + <tr class="odd"> + <td style="text-align: left;">Btrfs</td> + <td style="text-align: right;">sys-fs/btrfs-progs</td> + </tr> + </tbody> + </table> + <p>Install your desired file system packages with</p> + <p><code>emerge --ask --quiet YOUR_DESIRED_FILESYSTEM_PACKAGES</code></p> + + <h4 id="networking-tools">Networking Tools</h4> + <p>In order for the system to automatically obtain an IP address for one or more network interface(s) using netifrc scripts, it is necessary to install a DHCP client, to install it type:</p> + <p><code>emerge --quiet --ask net-misc/dhcpcd</code></p> + + <h4 id="optional-pppoe-client">OPTIONAL PPPoE client</h4> + <p>If PPP is used to connect to the internet, install the net-dialup/ppp package with</p> + <p><code>emerge --ask net-dialup/ppp</code></p> + + <h4 id="optional-wireless-networking">OPTIONAL Wireless Networking</h4> + <p>If the system will be connecting to wireless networks, install the next packages with</p> + <p><code>emerge --ask net-wireless/iw net-wireless/wpa_supplicant</code></p> + + <h4 id="installing-grub-boot-loader">Installing GRUB Boot loader</h4> + <p>Install the grub with the next command</p> + <p><code>emerge --ask --quiet sys-boot/grub:2</code></p> + <p>After installing grub, install the boot loader with</p> + <p><code>grub-install /dev/YOUR_DISC_ID</code></p> + <p>Then generate a grub configuration file with</p> + <p><code>grub-mkconfig -o /boot/grub/grub.cfg</code></p> + + <h3 id="finalize-installation">Finalize installation</h3> + <p>Now to finalize the base initialize, exit chroot environment with</p> + <p><code>exit</code></p> + <p>Then unmount the pseudo file systems with</p> + <p><code>umount -l /mnt/gentoo/dev</code></p> + <p>And finally unmount your disk with</p> + <p><code>umount -R /mnt/gentoo</code></p> + <p>Now, reboot your system with the <code>reboot</code> command and enjoy your base system install.</p> + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> + +</html> diff --git a/images/bitcoin.png b/images/bitcoin.png Binary files differnew file mode 100644 index 0000000..ac0a2fc --- /dev/null +++ b/images/bitcoin.png diff --git a/images/ethereum.png b/images/ethereum.png Binary files differnew file mode 100644 index 0000000..a4b1af5 --- /dev/null +++ b/images/ethereum.png diff --git a/images/monero.png b/images/monero.png Binary files differnew file mode 100644 index 0000000..4efe6d2 --- /dev/null +++ b/images/monero.png diff --git a/index.html b/index.html new file mode 100644 index 0000000..ca576aa --- /dev/null +++ b/index.html @@ -0,0 +1,39 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Rafael's Personal Website"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Rafael Marçalo</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content" class="text"> + <h2>Welcome 👋</h2> + <p>Hi, I'm Rafael Marçalo and welcome to my website!</p> + <p>I'm a software engineer and I like to build stuff</p> + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/kernel.html b/kernel.html new file mode 100644 index 0000000..1a434e6 --- /dev/null +++ b/kernel.html @@ -0,0 +1,209 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Compiling an Android Kernel"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Compiling an Android Kernel</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + + <div id="content"> + <h2>Compiling an Android Kernel</h2> + <p>In this tutorial I'm going I recommend any Debian/Ubuntu based distribution due to the extensive availability of the clang package versions, for this instance to be using Linux Mint. As for the android phone I'm going to be using a Xiaomi Redmi Note 9 (merlin) while running the crDroid custom rom.</p> + + <h3>What is the Android Kernel</h3> + <p><em>"The Android kernel is based on an upstream Linux Long Term Supported (LTS) kernel. At Google, LTS kernels are combined with Android-specific patches to form what are known as Android Common Kernels (ACKs)."</em> - <a href="https://source.android.com/docs/core/architecture/kernel">Android Open Source Project</a></p> + + <h3>First steps: Prepping the environment</h3> + <p>In order to customize and compile your own kernel, you must first meet a couple requirements:</p> + + <ul> + <li>Owning an Android device;</li> + <li>Your device must be rooted;</li> + <li>Available kernel source code (for modification/compilation);</li> + <li>Have a linux machine or virtual machine.</li> + </ul> + + <h4>Installing dependencies</h4> + <p>If you have a Debian/Ubuntu based distribution, you must install the below packages:</p> + <pre><code>sudo apt install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng libssl-dev clang</code></pre> + + <p>If you have a Arch based distribution, you must install the below packages:</p> + <pre><code>sudo pacman -S base-devel git clang</code></pre> + + <p><strong>WARNING</strong>: Depending on the kernel you are compiling you might need use a different version of clang according to your device. Most of the current kernels don't yet support the clang current compiler so in this instance I'm going to be using clang-13 available as a package named <code>clang-13</code>.</p> + + <h4>Prepping the folders (Optional, but convenient if using the helper script below)</h4> + <p>I recommend creating a empty folder where all the operations will handled within itself.</p> + + <h3>Grabbing the Sources</h3> + <h4>Kernel Source Code</h4> + <p>In this stage we are going to clone the kernel source code according to my device and OS, in this case, for the crDroid Xiaomi Redmi Note 9 running official crDroid, the kernel is located over at <a href="https://github.com/crdroidandroid/android_kernel_xiaomi_mt6768">https://github.com/crdroidandroid/android_kernel_xiaomi_mt6768</a>. If you intend to use the helper script below I recommend cloning your kernel source code into the recently created folder, otherwise, just clone the source code anywhere you want.</p> + + <p>We can clone the kernel using <code>git clone https://github.com/crdroidandroid/android_kernel_xiaomi_mt6768</code> command.</p> + + <p>After cloning, proceed to change directory into the cloned kernel source code.</p> + + <h4>Compiler and Toolchains (Skippable if using helper script)</h4> + <p>In todays android devices, in order to compile the kernel source code, you need multiple toolchains(the android arm64, and the arm compiling toolchains respectively), and you also need a C/ASM compiler, in this instance, we are going to be using the most used compiler, the clang compiler.</p> + + <p>Both of these toolchains I usually tend to get them from the LineageOS source tree:</p> + + <ul> + <li><a href="https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.9">ARM Toolchain</a></li> + <li><a href="https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9">ARM64 Toolchain</a></li> + </ul> + + <p>If you are using the helper script you don't need to clone them, the script already does that and adds them to your <code>PATH</code> variable, otherwise, do these things yourself.</p> + + <h3>Compilation Process</h3> + <p>The compilation is tha last stage of the entire process, this stage is divided in 3 phases, the selection of a default kernel configuration, the modification of this configuration and the kernel compilation process.</p> + + <h4>Finding the default configuration</h4> + <p>Under the kernel source repository we just cloned, you can follow one of the next paths to your default configuration according to your cpu architecture:</p> + + <p><code>arch/arm64/configs</code> or <code>arch/arm/configs</code></p> + + <p>Under one of these folders you should find your device default kernel configuration file, it'll be probably have a name like <code>DEVICECODENAME_defconfig</code>.</p> + + <p>Ex: <code>merlin_defconfig</code></p> + + <p>After finding this configuration file, take note of the file name, it's very important for later use.</p> + + <h3>Modifying the Default Configuration (Skippable if using helper script)</h3> + + <p>In order to customize your kernel configurations you must first prepare the kernel modification/compilation environment. To achieve this, we can type the next commands:</p> + + <pre><code>mkdir -p modout</code></pre> + + <p>In the below command you must replace the PREVIOUSLYSTATEDFILENAME with the file name stated previously.</p> + + <pre><code>make ARCH=arm64 \ + CC=clang-13 \ + CLANG_TRIPLE=aarch64-linux-gnu- \ + CROSS_COMPILE=aarch64-linux-android- \ + CROSS_COMPILE_ARM32=arm-linux-androideabi- \ + PREVIOUSLYSTATEDFILENAME</code></pre> + + <p>Example:</p> + + <pre><code>make ARCH=arm64 \ + CC=clang-13 \ + CLANG_TRIPLE=aarch64-linux-gnu- \ + CROSS_COMPILE=aarch64-linux-android- \ + CROSS_COMPILE_ARM32=arm-linux-androideabi- \ + merlin_defconfig</code></pre> + + <p>After this, you environment will be prepared and you current configuration will be saved in a file <code>.config</code> which you can either edit manually with your favourite text editor or you can type in the next command in order to edit the configurations with a ncurses based menu:</p> + + <pre><code>make ARCH=arm64 \ + CC=clang-13 \ + CLANG_TRIPLE=aarch64-linux-gnu- \ + CROSS_COMPILE=aarch64-linux-android- \ + CROSS_COMPILE_ARM32=arm-linux-androideabi- \ + menuconfig</code></pre> + + <p>Inside of this menu you will have the option to allow some kernel functionalities with <code>Y</code>, disable the functionalities with <code>N</code> and modularize them with <code>M</code>.</p> + + <p><strong>WARNING</strong>: Some of this functionalities may break during the kernel compilation process.</p> + + <h3>Compiling the kernel (Skippable if using helper script)</h3> + + <p>After setting up the kernel configuration, the file <code>.config</code> will be changed after you click the <code>SAVE</code> button. To start compiling the kernel type in the next command:</p> + + <pre><code>make -jNUMBEROFCORES ARCH=arm64 \ + CC=clang \ + CLANG_TRIPLE=aarch64-linux-gnu- \ + CROSS_COMPILE=aarch64-linux-android- \ + CROSS_COMPILE_ARM32=arm-linux-androideabi-</code></pre> + + <p>If the kernel fails to compile, it's either a problem related to the kernel code you have to fix or either a clang version incompatibility. If the kernel manages to compile sucessfully you must now generate the kernel modules with the command:</p> + + <pre><code>make ARCH=arm64 \ + CC=clang-13 \ + CLANG_TRIPLE=aarch64-linux-gnu- \ + CROSS_COMPILE=aarch64-linux-android- \ + CROSS_COMPILE_ARM32=arm-linux-androideabi- \ + INSTALL_MOD_PATH="modout" \ + INSTALL_MOD_STRIP=1 \ + modules_install</code></pre> + + <h3>Using the compile script instead of manual setup</h3> + <p>If you decided to use a compile script to setup the environment and compile the kernel, then, just after grabbing the kernel sources, at the root level of the kernel source code create a shell script with any name you want and paste the below code inside of it:</p> + + <pre><code>#!/bin/sh + +# Defining Vars +COMPILERS_DIR=$(cd .. && pwd) +COMPILER="https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_aarch64_aarch64-linux-android-4.9" +COMPILER32="https://github.com/LineageOS/android_prebuilts_gcc_linux-x86_arm_arm-linux-androideabi-4.9" +DEFCONFIG="DEVICECODENAME_defconfig" +KERNEL_DIR=$(pwd) +PATH="${COMPILERS_DIR}/gcc/bin:${COMPILERS_DIR}/gcc32/bin:${PATH}" + +# Grabbing Compilers +cd "$COMPILERS_DIR" || exit +git clone "$COMPILER" gcc +git clone "$COMPILER32" gcc32 +cd "$KERNEL_DIR" || exit + +# Compiling Kernel +mkdir -p build/modout +make O=build ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CROSS_COMPILE_ARM32=arm-linux-androideabi- "$DEFCONFIG" +make O=build ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CROSS_COMPILE_ARM32=arm-linux-androideabi- menuconfig +make -jNUMBEROFCORES O=build ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CROSS_COMPILE_ARM32=arm-linux-androideabi- +make O=build ARCH=arm64 CC=clang CLANG_TRIPLE=aarch64-linux-gnu- CROSS_COMPILE=aarch64-linux-android- CROSS_COMPILE_ARM32=arm-linux-androideabi- INSTALL_MOD_PATH="modout" INSTALL_MOD_STRIP=1 modules_install</code></pre> + + <p>After saving the script, change the field with DEVICECODENAME a codename present inside of the folder <code>arch/arm64/configs</code> or the folder <code>arch/arm/configs</code>, and change the field where it says NUMBEROFCORES to the number of cores you want to allocate for compilation.</p> + + <p><strong>WARNING</strong>: You might need to change the <code>CC</code> variable to <code>clang-13</code> if you're not compiling with the clang default compiler version.</p> + + <p>Now just run the script and make the necessary changes to the kernel. After that, the script will automatically start compiling and the kernel image and modules will be built inside a build folder in the root of the kernel sources.</p> + + <h3>Finding the kernel image and modules</h3> + + <p>After generating the kernel modules, you'll have them available inside the folder <code>modout</code>, and the kernel image will be compile inside the folder <code>arch/arm64/boot</code>.</p> + + <h3>Commands recap using the compile script in Linux Mint</h3> + <ol> + <li><code>sudo apt install git ccache automake lzop bison gperf build-essential zip curl zlib1g-dev zlib1g-dev:i386 g++-multilib python-networkx libxml2-utils bzip2 libbz2-dev libbz2-1.0 libghc-bzlib-dev squashfs-tools pngcrush schedtool dpkg-dev liblz4-tool make optipng libssl-dev clang</code></li> + <li><code>mkdir kernel</code></li> + <li><code>cd kernel</code></li> + <li><code>git clone https://github.com/crdroidandroid/android_kernel_xiaomi_mt6768</code></li> + <li><code>cd android_kernel_xiaomi_mt6768</code></li> + <li><em>*Put the script inside the kernel source root folder*</em></li> + <li><em>*Edit the script according to your device and your computer cores*</em></li> + <li><em>*Run the script*</em></li> + <li>Done</li> + </ol> + + <h2>References</h2> + <a href="https://forum.xda-developers.com/t/guide-how-to-build-a-samsung-kernel-july-30-2016.3429355/">[GUIDE] How to build a Samsung Kernel July 30, 2016</a> + </div> + + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/kvm.html b/kvm.html new file mode 100644 index 0000000..14c87eb --- /dev/null +++ b/kvm.html @@ -0,0 +1,111 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Create a Virtual Machine using KVM"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Create a Virtual Machine using KVM</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + + <div id="content"> + + <h2>What is KVM</h2> + <p><em>"Kernel-based Virtual Machine (KVM) is an open source virtualization technology built into Linux®. Specifically, KVM lets you turn Linux into a hypervisor that allows a host machine to run multiple, isolated virtual environments called guests or virtual machines (VMs)."</em> - <a href="https://www.redhat.com/en/topics/virtualization/what-is-KVM">Red Hat, What is KVM?</a></p> + + <h2>Install required packages</h2> + <p>To run a KVM virtual machine you need to have a Intel VT/AMD-V supported machine and you need to be running any sort of Linux distribution which provides virt-manager, libvirt and qemu packages.</p> + <p>For this instance I'm currently running a Artix GNU/Linux distribution(same as Arch Linux), but all the steps should be significantly the same for other distributions excluding the package names</p> + + <h3>Required Packages</h3> + <ul> + <li><code>libvirt</code>;</li> + <li><code>virt-manager</code>;</li> + <li><code>qemu-desktop</code>;</li> + <li><code>edk2-ovmf</code> (Optional, but required if you're trying to virtualize Windows 11);</li> + <li><code>swtpm</code> (Optional, but required if you're trying to virtualize Windows 11).</li> + </ul> + + <h2>Prepairing Virt-Manager</h2> + + <h3>Setting up a user session</h3> + <p>After installing these packages according the OS you're running, you must now open virt-manager and create a new connection to a user qemu/kvm session. You do this by going into the file menu and by clicking on the <code>Add Connection...</code> option.</p> + <p>Now in the <code>Hypervisor</code>, select <code>QEMU/KVM user session</code>.</p> + + <h3>Enabling XML Editing (Optional, but required if installing Windows 11)</h3> + <p>Since each VM is configured in XML in th backend, XML editing will allow you to have more control over your VM.</p> + <p>To do this, all you have to do is, go to the Edit menu, and select <code>Preferences</code>, now just tick on the option that says <code>Enable XML editing</code>.</p> + + <h2>Setting up the Virtual Machine</h2> + <p>In this section I'll be going over the steps to install Windows 11 on KVM. Some of the steps will be marked with a optional marker, which means, that the referred stage is specific to Windows 11 only.</p> + + <h3>Creating the Virtual Machine</h3> + <p>Firstly you must click the "➕" icon and select the <code>Local install media (ISO image or CDROM)</code> option.</p> + + <h3>Install media</h3> + <p>Now go ahead and choose your installation ISO, if the OS is not automatically detected, select it manually or choose something similar to what you are trying to virtualize.</p> + <p><small><strong>Tip:</strong> When browsing for the iso, there's no need to create a pool, you can just click on <code>Browse local</code> and click on the desired ISO file</small></p> + + <h3>Ram and CPU</h3> + <p>After selecting the disk, you'll be prompted with the memory and CPU settings, in this stage my only advice is to use at least 2GiB of ram.</p> + + <h3>Storage</h3> + <p>Next up you'll be prompted with virtual storage, I recommend at least 25GiB if you're running Windows, if you're running any Linux distro I'd give it at least 15GiB.</p> + + <h3>Customize Installation (Optional, but required if installing Windows 11)</h3> + <p>For a Windows 11 installation you need to have a UEFI, secure boot capable machine with the TPM(Trusted Platform Module) minimum version 2.0. Ahead I'll show how to take care of each instance.</p> + + <h4>TPM Module</h4> + <p>After selecting the desired storage, go ahead and tick on the option that says <code>Customize configuration before install</code>.</p> + <p>Here you must click on <code>Add Hardware</code> and select the TPM category</p> + <p>Under TPM, the type must be <code>Emulated</code>. In advanced options, the model must be <code>TIS</code> and the version <code>2.0</code>.</p> + + <h4>Secure Boot</h4> + <p>Still in the <code>Customize configuration before install</code> window, go over to the <code>Overview</code> category and set the firmware to something like <code>UEFI x86_64: /usr/share/edk2-ovmf/x64/OVMF_CODE.secboot.fd</code></p> + <p>After changing the firmware there are some hardware modules that won't working, so we must remove them to evade conflicts. To do this, still in the <code>Overview</code> category, go over to the <code>XML</code> tab and remove the lines below:</p> + + <pre><code><controller type="pci" model="pcie-root"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/> +<controller type="pci" model="pcie-root-port"/></code></pre> + + <h3>Finishing Installation</h3> + <p>Now that you have everything setup to run the VM, just hit <code>Finish</code> or <code>Begin Installation</code>.</p> + </div> + + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/people.html b/people.html new file mode 100644 index 0000000..16cbc2f --- /dev/null +++ b/people.html @@ -0,0 +1,47 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="People"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>People</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content"> + <h2>People 🧑</h2> + <ul> + <li><a href="https://codeyarns.com/">Ashwin Nanjappa</a></li> + <li><a href="https://blog.cryptographyengineering.com/">Criptography Engineering</a></li> + <li><a href="https://g.sicp.me/">Gentoomen</a></li> + <li><a href="https://lukesmith.xyz/">Luke Smith</a></li> + <li><a href="https://www.youtube.com/c/MentalOutlaw/">Mental Outlaw</a></li> + <li><a href="https://romaintrystram.myportfolio.com/">Romain Trystram</a></li> + <li><a href="https://www.rooshv.com/">Roosh Valizadeh</a></li> + <li><a href="https://notthebe.ee/">Wolfgang's blog</a></li> + </ul> + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/projects.html b/projects.html new file mode 100644 index 0000000..4bf49a1 --- /dev/null +++ b/projects.html @@ -0,0 +1,63 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="My Projects"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Projects</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content"> + <h2>Projects from Scratch 📝</h2> + <ul> + <!-- + <li><a href="https://gitlab.com/rafa_99/bo2-plutonium-gsc">Black Ops 2 Zombies Mods</a></li> + <li><a href="https://gitlab.com/cyka-blyad/install">Distro Bootstrap Scripts</a></li> + <li><a href="https://gitlab.com/cyka-blyad/its-just-a-prank-bro">Its Just a Prank Bro</a></li> + --> + + <li><a href="https://gitlab.com/rafa_99/abi">abi</a></li> + <li><a href="https://gitlab.com/rafa_99/cv">cv</a></li> + <li><a href="https://gitlab.com/rafa_99/dirtopkg">Dir to PKG</a></li> + <li><a href="https://gitlab.com/rafa_99/dotfiles">dotfiles</a></li> + <li><a href="https://gitlab.com/rafa_99/jscripts">jscripts</a></li> + <li><a href="https://gitlab.com/rafa_99/pkg">pkg</a></li> + <li><a href="https://gitlab.com/rafa_99/queryt">queryt</a></li> + <li><a href="https://gitlab.com/rafa_99/self-hosting">self-hosing</a></li> + <li><a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io">website</a></li> + </ul> + <h2>Forks 🧪</h2> + <ul> + <li><a href="https://gitlab.com/rafa_99/android_kernel_xiaomi_sdm660">android_kernel_xiaomi_sdm660</a></li> + <li><a href="https://gitlab.com/rafa_99/dmenu">dmenu</a></li> + <li><a href="https://gitlab.com/rafa_99/dwm">dwm</a></li> + <li><a href="https://gitlab.com/rafa_99/neovimb">neovimb</a></li> + <li><a href="https://gitlab.com/rafa_99/st">st</a></li> + <li><a href="https://gitlab.com/rafa_99/xmouseless">xmouseless</a></li> + </ul> + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> diff --git a/styles/style.css b/styles/style.css new file mode 100644 index 0000000..457862f --- /dev/null +++ b/styles/style.css @@ -0,0 +1,122 @@ +:root +{ + --bgcolor: #181a1b; + --fgcolor: #ffffff; + --linkcolor: #82aefa; + --hovercolor: #0ef17d; + --visitedcolor: #ff00ff; +} + +html +{ + background-color: var(--bgcolor); + color: var(--fgcolor); + font-size: 14px; + font-family: monospace; + max-width: 75%; + margin-left: auto; + margin-right: auto; +} + +a +{ + color: var(--linkcolor); + text-decoration: none; + transition: all .5s; +} + +a:hover +{ + color: var(--hovercolor); + text-decoration: underline 2px; +} + +pre +{ + background: rgba(0, 0, 0, 0.5); + border-radius: 4px; + display: block; + line-height: 1.5; + padding: 9.5px; + white-space: pre-wrap; +} + +pre code +{ + background: rgba(0, 0, 0, 0); +} + +code +{ + background: rgba(0, 0, 0, 0.5); + color: var(--linkcolor); + font-family:sans-serif; +} + +div.text +{ + text-align: justify; +} + +nav +{ + display: flex; + justify-content: space-evenly; + padding-top: 1em; + padding-bottom: 1em; +} + +ul, ol +{ + line-height: 2em; +} + +p +{ + text-align: justify; +} + +#header, #content +{ + padding-bottom: 1em; +} + +#footer +{ + line-height: .5em; +} + +.grid +{ + border-radius: 2em; + display: grid; + grid-template-columns: auto; + grid-auto-flow: column; + gap: 1em; +} + +.grid p.grid-icon, p.grid-text +{ + text-align: center; +} + +.grid a.grid-element:hover +{ + background-color: rgba(0, 0, 0, 0.3); + text-decoration: none; +} + +.grid-element +{ + border-radius: 2em; +} + +.grid-icon +{ + font-size: 4em; +} + +.grid-text +{ + font-size: 2em; +} diff --git a/web.html b/web.html new file mode 100644 index 0000000..408ab9c --- /dev/null +++ b/web.html @@ -0,0 +1,53 @@ +<!DOCTYPE html> + +<html lang="en-us"> + <head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <meta name="author" content="Rafael Marçalo"> + <meta name="description" content="Web"> + <link rel="shortcut icon" href="favicon.ico" type="image/x-icon"> + <link rel="stylesheet" type="text/css" href="styles/style.css"> + <title>Web</title> + </head> + <body> + <div id="header"> + <h1>Rafael Marçalo Website</h1> + <nav> + <a href="index.html">home</a> + | + <a href="archive.html">archive</a> + | + <a href="projects.html">projects</a> + | + <a href="donate.html">donate</a> + </nav> + </div> + <div id="content"> + <h2>Web 🌎</h2> + <ul> + <li><a href="https://1mb.club/">1MB Club</a></li> + <li><a href="https://artixlinux.org/">Artix Linux</a></li> + <li><a href="https://based.cooking/">Based Cooking</a></li> + <li><a href="https://e.foundation/">E Foundation</a></li> + <li><a href="https://www.gentoo.org/">Gentoo Linux</a></li> + <li><a href="https://landchad.net/">LandChad</a></li> + <li><a href="https://www3.ntu.edu.sg/home/ehchua/programming/index.html">Nanyang Technological University - Programming Notes</a></li> + <li><a href="https://neovim.io/">Neovim</a></li> + <li><a href="https://www.nerdfonts.com/">Nerd Fonts</a></li> + <li><a href="https://www.openbsd.org/">OpenBSD</a></li> + <li><a href="https://www.parabola.nu/">Parabola GNU/Linux-libre</a></li> + <li><a href="https://searx.me/">Searx</a></li> + <li><a href="https://suckless.org/">suckless.org</a></li> + <li><a href="https://wiby.me/">wiby</a></li> + </ul> + </div> + <div id="footer"> + <div id="contact"> + <p>Links: <a href="https://gitlab.com/rafa_99">Gitlab</a> | <a href="https://gitlab.com/rafa_99/rafa_99.gitlab.io.atom">RSS Feed</a></p> + <p>GPG: <a href="files/rafael.gpg">Public Key</a></p> + <p>License: <a href="https://www.gnu.org/licenses/gpl-3.0.txt">GPLv3</a></p> + </div> + </div> + </body> +</html> |