From 0a716964e908d8ce91f53e362f283be26bec339a Mon Sep 17 00:00:00 2001 From: FangcatChina Date: Sat, 4 Jul 2026 20:55:32 +0800 Subject: New Licence + Github Actions + Content --- .github/workflows/mkdocs-deploy.yml | 58 +++++ CONTRIBUTE.md | 0 LICENSE | 402 +++++++++++++++++++++++++++++ LICENSE.md | 408 ------------------------------ README.md | 6 +- docs/about.md | 15 +- docs/distros/debian/ubuntu.md | 46 ++++ docs/distros/rhel/fedora.md | 69 +++++ docs/getting-started/before-installing.md | 34 +++ docs/getting-started/purpose.md | 16 ++ docs/index.md | 6 +- images/LC.png | Bin 0 -> 59899 bytes mkdocs.yml | 23 ++ templates/concept.md | 18 ++ templates/distro.md | 33 +++ 15 files changed, 714 insertions(+), 420 deletions(-) create mode 100644 .github/workflows/mkdocs-deploy.yml create mode 100644 CONTRIBUTE.md create mode 100644 LICENSE delete mode 100644 LICENSE.md create mode 100644 docs/distros/debian/ubuntu.md create mode 100644 docs/distros/rhel/fedora.md create mode 100644 docs/getting-started/before-installing.md create mode 100644 images/LC.png create mode 100644 templates/concept.md create mode 100644 templates/distro.md diff --git a/.github/workflows/mkdocs-deploy.yml b/.github/workflows/mkdocs-deploy.yml new file mode 100644 index 0000000..01ef5ac --- /dev/null +++ b/.github/workflows/mkdocs-deploy.yml @@ -0,0 +1,58 @@ +name: Deploy MkDocs to GitHub + +on: + # 推送到 main 分支时自动触发 + push: + branches: + - main + paths: + - 'docs/**' + - 'mkdocs.yml' + - '.github/workflows/mkdocs-deploy.yml' + + # 支持手动触发 + workflow_dispatch: + +permissions: + contents: read + pages: write + id-token: write + +jobs: + build-and-deploy: + runs-on: ubuntu-latest + steps: + - name: Checkout 源码 + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: 设置 Python 环境 + uses: actions/setup-python@v5 + with: + python-version: '3.13' + cache: 'pip' + + - name: 安装 MkDocs 及依赖 + run: | + python -m pip install --upgrade pip + pip install mkdocs mkdocs-material + + - name: 构建 MkDocs 站点 + run: mkdocs build + + - name: 推送到目标仓库 + uses: peaceiris/actions-gh-pages@v4 + with: + # 目标仓库地址,格式:用户名/仓库名 + deploy_key: ${{ secrets.DEPLOY_KEY }} + external_repository: LinuxCabin/handbook-website + # 目标仓库的分支 + publish_branch: main + # 构建产物目录 + publish_dir: ./site + # 保留目标分支的历史提交(可选) + keep_files: false + # 提交用户信息 + user_name: 'github-actions[bot]' + user_email: 'github-actions[bot]@users.noreply.github.com' diff --git a/CONTRIBUTE.md b/CONTRIBUTE.md new file mode 100644 index 0000000..e69de29 diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..9badf7a --- /dev/null +++ b/LICENSE @@ -0,0 +1,402 @@ +Attribution-NonCommercial-NoDerivatives 4.0 International + +======================================================================= + +Creative Commons Corporation ("Creative Commons") is not a law firm and +does not provide legal services or legal advice. Distribution of +Creative Commons public licenses does not create a lawyer-client or +other relationship. Creative Commons makes its licenses and related +information available on an "as-is" basis. Creative Commons gives no +warranties regarding its licenses, any material licensed under their +terms and conditions, or any related information. Creative Commons +disclaims all liability for damages resulting from their use to the +fullest extent possible. + +Using Creative Commons Public Licenses + +Creative Commons public licenses provide a standard set of terms and +conditions that creators and other rights holders may use to share +original works of authorship and other material subject to copyright +and certain other rights specified in the public license below. The +following considerations are for informational purposes only, are not +exhaustive, and do not form part of our licenses. + + Considerations for licensors: Our public licenses are + intended for use by those authorized to give the public + permission to use material in ways otherwise restricted by + copyright and certain other rights. Our licenses are + irrevocable. Licensors should read and understand the terms + and conditions of the license they choose before applying it. + Licensors should also secure all rights necessary before + applying our licenses so that the public can reuse the + material as expected. Licensors should clearly mark any + material not subject to the license. This includes other CC- + licensed material, or material used under an exception or + limitation to copyright. More considerations for licensors: + wiki.creativecommons.org/Considerations_for_licensors + + Considerations for the public: By using one of our public + licenses, a licensor grants the public permission to use the + licensed material under specified terms and conditions. If + the licensor's permission is not necessary for any reason--for + example, because of any applicable exception or limitation to + copyright--then that use is not regulated by the license. Our + licenses grant only permissions under copyright and certain + other rights that a licensor has authority to grant. Use of + the licensed material may still be restricted for other + reasons, including because others have copyright or other + rights in the material. A licensor may make special requests, + such as asking that all changes be marked or described. + Although not required by our licenses, you are encouraged to + respect those requests where reasonable. More considerations + for the public: + wiki.creativecommons.org/Considerations_for_licensees + +======================================================================= + +Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 +International Public License + +By exercising the Licensed Rights (defined below), You accept and agree +to be bound by the terms and conditions of this Creative Commons +Attribution-NonCommercial-NoDerivatives 4.0 International Public +License ("Public License"). To the extent this Public License may be +interpreted as a contract, You are granted the Licensed Rights in +consideration of Your acceptance of these terms and conditions, and the +Licensor grants You such rights in consideration of benefits the +Licensor receives from making the Licensed Material available under +these terms and conditions. + + +Section 1 -- Definitions. + + a. Adapted Material means material subject to Copyright and Similar + Rights that is derived from or based upon the Licensed Material + and in which the Licensed Material is translated, altered, + arranged, transformed, or otherwise modified in a manner requiring + permission under the Copyright and Similar Rights held by the + Licensor. For purposes of this Public License, where the Licensed + Material is a musical work, performance, or sound recording, + Adapted Material is always produced where the Licensed Material is + synched in timed relation with a moving image. + + b. Copyright and Similar Rights means copyright and/or similar rights + closely related to copyright including, without limitation, + performance, broadcast, sound recording, and Sui Generis Database + Rights, without regard to how the rights are labeled or + categorized. For purposes of this Public License, the rights + specified in Section 2(b)(1)-(2) are not Copyright and Similar + Rights. + + c. Effective Technological Measures means those measures that, in the + absence of proper authority, may not be circumvented under laws + fulfilling obligations under Article 11 of the WIPO Copyright + Treaty adopted on December 20, 1996, and/or similar international + agreements. + + d. Exceptions and Limitations means fair use, fair dealing, and/or + any other exception or limitation to Copyright and Similar Rights + that applies to Your use of the Licensed Material. + + e. Licensed Material means the artistic or literary work, database, + or other material to which the Licensor applied this Public + License. + + f. Licensed Rights means the rights granted to You subject to the + terms and conditions of this Public License, which are limited to + all Copyright and Similar Rights that apply to Your use of the + Licensed Material and that the Licensor has authority to license. + + g. Licensor means the individual(s) or entity(ies) granting rights + under this Public License. + + h. NonCommercial means not primarily intended for or directed towards + commercial advantage or monetary compensation. For purposes of + this Public License, the exchange of the Licensed Material for + other material subject to Copyright and Similar Rights by digital + file-sharing or similar means is NonCommercial provided there is + no payment of monetary compensation in connection with the + exchange. + + i. Share means to provide material to the public by any means or + process that requires permission under the Licensed Rights, such + as reproduction, public display, public performance, distribution, + dissemination, communication, or importation, and to make material + available to the public including in ways that members of the + public may access the material from a place and at a time + individually chosen by them. + + j. Sui Generis Database Rights means rights other than copyright + resulting from Directive 96/9/EC of the European Parliament and of + the Council of 11 March 1996 on the legal protection of databases, + as amended and/or succeeded, as well as other essentially + equivalent rights anywhere in the world. + + k. You means the individual or entity exercising the Licensed Rights + under this Public License. Your has a corresponding meaning. + + +Section 2 -- Scope. + + a. License grant. + + 1. Subject to the terms and conditions of this Public License, + the Licensor hereby grants You a worldwide, royalty-free, + non-sublicensable, non-exclusive, irrevocable license to + exercise the Licensed Rights in the Licensed Material to: + + a. reproduce and Share the Licensed Material, in whole or + in part, for NonCommercial purposes only; and + + b. produce and reproduce, but not Share, Adapted Material + for NonCommercial purposes only. + + 2. Exceptions and Limitations. For the avoidance of doubt, where + Exceptions and Limitations apply to Your use, this Public + License does not apply, and You do not need to comply with + its terms and conditions. + + 3. Term. The term of this Public License is specified in Section + 6(a). + + 4. Media and formats; technical modifications allowed. The + Licensor authorizes You to exercise the Licensed Rights in + all media and formats whether now known or hereafter created, + and to make technical modifications necessary to do so. The + Licensor waives and/or agrees not to assert any right or + authority to forbid You from making technical modifications + necessary to exercise the Licensed Rights, including + technical modifications necessary to circumvent Effective + Technological Measures. For purposes of this Public License, + simply making modifications authorized by this Section 2(a) + (4) never produces Adapted Material. + + 5. Downstream recipients. + + a. Offer from the Licensor -- Licensed Material. Every + recipient of the Licensed Material automatically + receives an offer from the Licensor to exercise the + Licensed Rights under the terms and conditions of this + Public License. + + b. No downstream restrictions. You may not offer or impose + any additional or different terms or conditions on, or + apply any Effective Technological Measures to, the + Licensed Material if doing so restricts exercise of the + Licensed Rights by any recipient of the Licensed + Material. + + 6. No endorsement. Nothing in this Public License constitutes or + may be construed as permission to assert or imply that You + are, or that Your use of the Licensed Material is, connected + with, or sponsored, endorsed, or granted official status by, + the Licensor or others designated to receive attribution as + provided in Section 3(a)(1)(A)(i). + + b. Other rights. + + 1. Moral rights, such as the right of integrity, are not + licensed under this Public License, nor are publicity, + privacy, and/or other similar personality rights; however, to + the extent possible, the Licensor waives and/or agrees not to + assert any such rights held by the Licensor to the limited + extent necessary to allow You to exercise the Licensed + Rights, but not otherwise. + + 2. Patent and trademark rights are not licensed under this + Public License. + + 3. To the extent possible, the Licensor waives any right to + collect royalties from You for the exercise of the Licensed + Rights, whether directly or through a collecting society + under any voluntary or waivable statutory or compulsory + licensing scheme. In all other cases the Licensor expressly + reserves any right to collect such royalties, including when + the Licensed Material is used other than for NonCommercial + purposes. + + +Section 3 -- License Conditions. + +Your exercise of the Licensed Rights is expressly made subject to the +following conditions. + + a. Attribution. + + 1. If You Share the Licensed Material, You must: + + a. retain the following if it is supplied by the Licensor + with the Licensed Material: + + i. identification of the creator(s) of the Licensed + Material and any others designated to receive + attribution, in any reasonable manner requested by + the Licensor (including by pseudonym if + designated); + + ii. a copyright notice; + + iii. a notice that refers to this Public License; + + iv. a notice that refers to the disclaimer of + warranties; + + v. a URI or hyperlink to the Licensed Material to the + extent reasonably practicable; + + b. indicate if You modified the Licensed Material and + retain an indication of any previous modifications; and + + c. indicate the Licensed Material is licensed under this + Public License, and include the text of, or the URI or + hyperlink to, this Public License. + + For the avoidance of doubt, You do not have permission under + this Public License to Share Adapted Material. + + 2. You may satisfy the conditions in Section 3(a)(1) in any + reasonable manner based on the medium, means, and context in + which You Share the Licensed Material. For example, it may be + reasonable to satisfy the conditions by providing a URI or + hyperlink to a resource that includes the required + information. + + 3. If requested by the Licensor, You must remove any of the + information required by Section 3(a)(1)(A) to the extent + reasonably practicable. + + +Section 4 -- Sui Generis Database Rights. + +Where the Licensed Rights include Sui Generis Database Rights that +apply to Your use of the Licensed Material: + + a. for the avoidance of doubt, Section 2(a)(1) grants You the right + to extract, reuse, reproduce, and Share all or a substantial + portion of the contents of the database for NonCommercial purposes + only and provided You do not Share Adapted Material; + + b. if You include all or a substantial portion of the database + contents in a database in which You have Sui Generis Database + Rights, then the database in which You have Sui Generis Database + Rights (but not its individual contents) is Adapted Material; and + + c. You must comply with the conditions in Section 3(a) if You Share + all or a substantial portion of the contents of the database. + +For the avoidance of doubt, this Section 4 supplements and does not +replace Your obligations under this Public License where the Licensed +Rights include other Copyright and Similar Rights. + + +Section 5 -- Disclaimer of Warranties and Limitation of Liability. + + a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE + EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS + AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF + ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, + IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, + WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR + PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, + ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT + KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT + ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. + + b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE + TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, + NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, + INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, + COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR + USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN + ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR + DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR + IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. + + c. The disclaimer of warranties and limitation of liability provided + above shall be interpreted in a manner that, to the extent + possible, most closely approximates an absolute disclaimer and + waiver of all liability. + + +Section 6 -- Term and Termination. + + a. This Public License applies for the term of the Copyright and + Similar Rights licensed here. However, if You fail to comply with + this Public License, then Your rights under this Public License + terminate automatically. + + b. Where Your right to use the Licensed Material has terminated under + Section 6(a), it reinstates: + + 1. automatically as of the date the violation is cured, provided + it is cured within 30 days of Your discovery of the + violation; or + + 2. upon express reinstatement by the Licensor. + + For the avoidance of doubt, this Section 6(b) does not affect any + right the Licensor may have to seek remedies for Your violations + of this Public License. + + c. For the avoidance of doubt, the Licensor may also offer the + Licensed Material under separate terms or conditions or stop + distributing the Licensed Material at any time; however, doing so + will not terminate this Public License. + + d. Sections 1, 5, 6, 7, and 8 survive termination of this Public + License. + + +Section 7 -- Other Terms and Conditions. + + a. The Licensor shall not be bound by any additional or different + terms or conditions communicated by You unless expressly agreed. + + b. Any arrangements, understandings, or agreements regarding the + Licensed Material not stated herein are separate from and + independent of the terms and conditions of this Public License. + + +Section 8 -- Interpretation. + + a. For the avoidance of doubt, this Public License does not, and + shall not be interpreted to, reduce, limit, restrict, or impose + conditions on any use of the Licensed Material that could lawfully + be made without permission under this Public License. + + b. To the extent possible, if any provision of this Public License is + deemed unenforceable, it shall be automatically reformed to the + minimum extent necessary to make it enforceable. If the provision + cannot be reformed, it shall be severed from this Public License + without affecting the enforceability of the remaining terms and + conditions. + + c. No term or condition of this Public License will be waived and no + failure to comply consented to unless expressly agreed to by the + Licensor. + + d. Nothing in this Public License constitutes or may be interpreted + as a limitation upon, or waiver of, any privileges and immunities + that apply to the Licensor or You, including from the legal + processes of any jurisdiction or authority. + +======================================================================= + +Creative Commons is not a party to its public +licenses. Notwithstanding, Creative Commons may elect to apply one of +its public licenses to material it publishes and in those instances +will be considered the “Licensor.” The text of the Creative Commons +public licenses is dedicated to the public domain under the CC0 Public +Domain Dedication. Except for the limited purpose of indicating that +material is shared under a Creative Commons public license or as +otherwise permitted by the Creative Commons policies published at +creativecommons.org/policies, Creative Commons does not authorize the +use of the trademark "Creative Commons" or any other trademark or logo +of Creative Commons without its prior written consent including, +without limitation, in connection with any unauthorized modifications +to any of its public licenses or any other arrangements, +understandings, or agreements concerning use of licensed material. For +the avoidance of doubt, this paragraph does not form part of the +public licenses. + +Creative Commons may be contacted at creativecommons.org. diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index fe463e0..0000000 --- a/LICENSE.md +++ /dev/null @@ -1,408 +0,0 @@ -Attribution-NonCommercial 4.0 International - -======================================================================= - -Creative Commons Corporation ("Creative Commons") is not a law firm and -does not provide legal services or legal advice. Distribution of -Creative Commons public licenses does not create a lawyer-client or -other relationship. Creative Commons makes its licenses and related -information available on an "as-is" basis. Creative Commons gives no -warranties regarding its licenses, any material licensed under their -terms and conditions, or any related information. Creative Commons -disclaims all liability for damages resulting from their use to the -fullest extent possible. - -Using Creative Commons Public Licenses - -Creative Commons public licenses provide a standard set of terms and -conditions that creators and other rights holders may use to share -original works of authorship and other material subject to copyright -and certain other rights specified in the public license below. The -following considerations are for informational purposes only, are not -exhaustive, and do not form part of our licenses. - - Considerations for licensors: Our public licenses are - intended for use by those authorized to give the public - permission to use material in ways otherwise restricted by - copyright and certain other rights. Our licenses are - irrevocable. Licensors should read and understand the terms - and conditions of the license they choose before applying it. - Licensors should also secure all rights necessary before - applying our licenses so that the public can reuse the - material as expected. Licensors should clearly mark any - material not subject to the license. This includes other CC- - licensed material, or material used under an exception or - limitation to copyright. More considerations for licensors: - wiki.creativecommons.org/Considerations_for_licensors - - Considerations for the public: By using one of our public - licenses, a licensor grants the public permission to use the - licensed material under specified terms and conditions. If - the licensor's permission is not necessary for any reason--for - example, because of any applicable exception or limitation to - copyright--then that use is not regulated by the license. Our - licenses grant only permissions under copyright and certain - other rights that a licensor has authority to grant. Use of - the licensed material may still be restricted for other - reasons, including because others have copyright or other - rights in the material. A licensor may make special requests, - such as asking that all changes be marked or described. - Although not required by our licenses, you are encouraged to - respect those requests where reasonable. More considerations - for the public: - wiki.creativecommons.org/Considerations_for_licensees - -======================================================================= - -Creative Commons Attribution-NonCommercial 4.0 International Public -License - -By exercising the Licensed Rights (defined below), You accept and agree -to be bound by the terms and conditions of this Creative Commons -Attribution-NonCommercial 4.0 International Public License ("Public -License"). To the extent this Public License may be interpreted as a -contract, You are granted the Licensed Rights in consideration of Your -acceptance of these terms and conditions, and the Licensor grants You -such rights in consideration of benefits the Licensor receives from -making the Licensed Material available under these terms and -conditions. - - -Section 1 -- Definitions. - - a. Adapted Material means material subject to Copyright and Similar - Rights that is derived from or based upon the Licensed Material - and in which the Licensed Material is translated, altered, - arranged, transformed, or otherwise modified in a manner requiring - permission under the Copyright and Similar Rights held by the - Licensor. For purposes of this Public License, where the Licensed - Material is a musical work, performance, or sound recording, - Adapted Material is always produced where the Licensed Material is - synched in timed relation with a moving image. - - b. Adapter's License means the license You apply to Your Copyright - and Similar Rights in Your contributions to Adapted Material in - accordance with the terms and conditions of this Public License. - - c. Copyright and Similar Rights means copyright and/or similar rights - closely related to copyright including, without limitation, - performance, broadcast, sound recording, and Sui Generis Database - Rights, without regard to how the rights are labeled or - categorized. For purposes of this Public License, the rights - specified in Section 2(b)(1)-(2) are not Copyright and Similar - Rights. - d. Effective Technological Measures means those measures that, in the - absence of proper authority, may not be circumvented under laws - fulfilling obligations under Article 11 of the WIPO Copyright - Treaty adopted on December 20, 1996, and/or similar international - agreements. - - e. Exceptions and Limitations means fair use, fair dealing, and/or - any other exception or limitation to Copyright and Similar Rights - that applies to Your use of the Licensed Material. - - f. Licensed Material means the artistic or literary work, database, - or other material to which the Licensor applied this Public - License. - - g. Licensed Rights means the rights granted to You subject to the - terms and conditions of this Public License, which are limited to - all Copyright and Similar Rights that apply to Your use of the - Licensed Material and that the Licensor has authority to license. - - h. Licensor means the individual(s) or entity(ies) granting rights - under this Public License. - - i. NonCommercial means not primarily intended for or directed towards - commercial advantage or monetary compensation. For purposes of - this Public License, the exchange of the Licensed Material for - other material subject to Copyright and Similar Rights by digital - file-sharing or similar means is NonCommercial provided there is - no payment of monetary compensation in connection with the - exchange. - - j. Share means to provide material to the public by any means or - process that requires permission under the Licensed Rights, such - as reproduction, public display, public performance, distribution, - dissemination, communication, or importation, and to make material - available to the public including in ways that members of the - public may access the material from a place and at a time - individually chosen by them. - - k. Sui Generis Database Rights means rights other than copyright - resulting from Directive 96/9/EC of the European Parliament and of - the Council of 11 March 1996 on the legal protection of databases, - as amended and/or succeeded, as well as other essentially - equivalent rights anywhere in the world. - - l. You means the individual or entity exercising the Licensed Rights - under this Public License. Your has a corresponding meaning. - - -Section 2 -- Scope. - - a. License grant. - - 1. Subject to the terms and conditions of this Public License, - the Licensor hereby grants You a worldwide, royalty-free, - non-sublicensable, non-exclusive, irrevocable license to - exercise the Licensed Rights in the Licensed Material to: - - a. reproduce and Share the Licensed Material, in whole or - in part, for NonCommercial purposes only; and - - b. produce, reproduce, and Share Adapted Material for - NonCommercial purposes only. - - 2. Exceptions and Limitations. For the avoidance of doubt, where - Exceptions and Limitations apply to Your use, this Public - License does not apply, and You do not need to comply with - its terms and conditions. - - 3. Term. The term of this Public License is specified in Section - 6(a). - - 4. Media and formats; technical modifications allowed. The - Licensor authorizes You to exercise the Licensed Rights in - all media and formats whether now known or hereafter created, - and to make technical modifications necessary to do so. The - Licensor waives and/or agrees not to assert any right or - authority to forbid You from making technical modifications - necessary to exercise the Licensed Rights, including - technical modifications necessary to circumvent Effective - Technological Measures. For purposes of this Public License, - simply making modifications authorized by this Section 2(a) - (4) never produces Adapted Material. - - 5. Downstream recipients. - - a. Offer from the Licensor -- Licensed Material. Every - recipient of the Licensed Material automatically - receives an offer from the Licensor to exercise the - Licensed Rights under the terms and conditions of this - Public License. - - b. No downstream restrictions. You may not offer or impose - any additional or different terms or conditions on, or - apply any Effective Technological Measures to, the - Licensed Material if doing so restricts exercise of the - Licensed Rights by any recipient of the Licensed - Material. - - 6. No endorsement. Nothing in this Public License constitutes or - may be construed as permission to assert or imply that You - are, or that Your use of the Licensed Material is, connected - with, or sponsored, endorsed, or granted official status by, - the Licensor or others designated to receive attribution as - provided in Section 3(a)(1)(A)(i). - - b. Other rights. - - 1. Moral rights, such as the right of integrity, are not - licensed under this Public License, nor are publicity, - privacy, and/or other similar personality rights; however, to - the extent possible, the Licensor waives and/or agrees not to - assert any such rights held by the Licensor to the limited - extent necessary to allow You to exercise the Licensed - Rights, but not otherwise. - - 2. Patent and trademark rights are not licensed under this - Public License. - - 3. To the extent possible, the Licensor waives any right to - collect royalties from You for the exercise of the Licensed - Rights, whether directly or through a collecting society - under any voluntary or waivable statutory or compulsory - licensing scheme. In all other cases the Licensor expressly - reserves any right to collect such royalties, including when - the Licensed Material is used other than for NonCommercial - purposes. - - -Section 3 -- License Conditions. - -Your exercise of the Licensed Rights is expressly made subject to the -following conditions. - - a. Attribution. - - 1. If You Share the Licensed Material (including in modified - form), You must: - - a. retain the following if it is supplied by the Licensor - with the Licensed Material: - - i. identification of the creator(s) of the Licensed - Material and any others designated to receive - attribution, in any reasonable manner requested by - the Licensor (including by pseudonym if - designated); - - ii. a copyright notice; - - iii. a notice that refers to this Public License; - - iv. a notice that refers to the disclaimer of - warranties; - - v. a URI or hyperlink to the Licensed Material to the - extent reasonably practicable; - - b. indicate if You modified the Licensed Material and - retain an indication of any previous modifications; and - - c. indicate the Licensed Material is licensed under this - Public License, and include the text of, or the URI or - hyperlink to, this Public License. - - 2. You may satisfy the conditions in Section 3(a)(1) in any - reasonable manner based on the medium, means, and context in - which You Share the Licensed Material. For example, it may be - reasonable to satisfy the conditions by providing a URI or - hyperlink to a resource that includes the required - information. - - 3. If requested by the Licensor, You must remove any of the - information required by Section 3(a)(1)(A) to the extent - reasonably practicable. - - 4. If You Share Adapted Material You produce, the Adapter's - License You apply must not prevent recipients of the Adapted - Material from complying with this Public License. - - -Section 4 -- Sui Generis Database Rights. - -Where the Licensed Rights include Sui Generis Database Rights that -apply to Your use of the Licensed Material: - - a. for the avoidance of doubt, Section 2(a)(1) grants You the right - to extract, reuse, reproduce, and Share all or a substantial - portion of the contents of the database for NonCommercial purposes - only; - - b. if You include all or a substantial portion of the database - contents in a database in which You have Sui Generis Database - Rights, then the database in which You have Sui Generis Database - Rights (but not its individual contents) is Adapted Material; and - - c. You must comply with the conditions in Section 3(a) if You Share - all or a substantial portion of the contents of the database. - -For the avoidance of doubt, this Section 4 supplements and does not -replace Your obligations under this Public License where the Licensed -Rights include other Copyright and Similar Rights. - - -Section 5 -- Disclaimer of Warranties and Limitation of Liability. - - a. UNLESS OTHERWISE SEPARATELY UNDERTAKEN BY THE LICENSOR, TO THE - EXTENT POSSIBLE, THE LICENSOR OFFERS THE LICENSED MATERIAL AS-IS - AND AS-AVAILABLE, AND MAKES NO REPRESENTATIONS OR WARRANTIES OF - ANY KIND CONCERNING THE LICENSED MATERIAL, WHETHER EXPRESS, - IMPLIED, STATUTORY, OR OTHER. THIS INCLUDES, WITHOUT LIMITATION, - WARRANTIES OF TITLE, MERCHANTABILITY, FITNESS FOR A PARTICULAR - PURPOSE, NON-INFRINGEMENT, ABSENCE OF LATENT OR OTHER DEFECTS, - ACCURACY, OR THE PRESENCE OR ABSENCE OF ERRORS, WHETHER OR NOT - KNOWN OR DISCOVERABLE. WHERE DISCLAIMERS OF WARRANTIES ARE NOT - ALLOWED IN FULL OR IN PART, THIS DISCLAIMER MAY NOT APPLY TO YOU. - - b. TO THE EXTENT POSSIBLE, IN NO EVENT WILL THE LICENSOR BE LIABLE - TO YOU ON ANY LEGAL THEORY (INCLUDING, WITHOUT LIMITATION, - NEGLIGENCE) OR OTHERWISE FOR ANY DIRECT, SPECIAL, INDIRECT, - INCIDENTAL, CONSEQUENTIAL, PUNITIVE, EXEMPLARY, OR OTHER LOSSES, - COSTS, EXPENSES, OR DAMAGES ARISING OUT OF THIS PUBLIC LICENSE OR - USE OF THE LICENSED MATERIAL, EVEN IF THE LICENSOR HAS BEEN - ADVISED OF THE POSSIBILITY OF SUCH LOSSES, COSTS, EXPENSES, OR - DAMAGES. WHERE A LIMITATION OF LIABILITY IS NOT ALLOWED IN FULL OR - IN PART, THIS LIMITATION MAY NOT APPLY TO YOU. - - c. The disclaimer of warranties and limitation of liability provided - above shall be interpreted in a manner that, to the extent - possible, most closely approximates an absolute disclaimer and - waiver of all liability. - - -Section 6 -- Term and Termination. - - a. This Public License applies for the term of the Copyright and - Similar Rights licensed here. However, if You fail to comply with - this Public License, then Your rights under this Public License - terminate automatically. - - b. Where Your right to use the Licensed Material has terminated under - Section 6(a), it reinstates: - - 1. automatically as of the date the violation is cured, provided - it is cured within 30 days of Your discovery of the - violation; or - - 2. upon express reinstatement by the Licensor. - - For the avoidance of doubt, this Section 6(b) does not affect any - right the Licensor may have to seek remedies for Your violations - of this Public License. - - c. For the avoidance of doubt, the Licensor may also offer the - Licensed Material under separate terms or conditions or stop - distributing the Licensed Material at any time; however, doing so - will not terminate this Public License. - - d. Sections 1, 5, 6, 7, and 8 survive termination of this Public - License. - - -Section 7 -- Other Terms and Conditions. - - a. The Licensor shall not be bound by any additional or different - terms or conditions communicated by You unless expressly agreed. - - b. Any arrangements, understandings, or agreements regarding the - Licensed Material not stated herein are separate from and - independent of the terms and conditions of this Public License. - - -Section 8 -- Interpretation. - - a. For the avoidance of doubt, this Public License does not, and - shall not be interpreted to, reduce, limit, restrict, or impose - conditions on any use of the Licensed Material that could lawfully - be made without permission under this Public License. - - b. To the extent possible, if any provision of this Public License is - deemed unenforceable, it shall be automatically reformed to the - minimum extent necessary to make it enforceable. If the provision - cannot be reformed, it shall be severed from this Public License - without affecting the enforceability of the remaining terms and - conditions. - - c. No term or condition of this Public License will be waived and no - failure to comply consented to unless expressly agreed to by the - Licensor. - - d. Nothing in this Public License constitutes or may be interpreted - as a limitation upon, or waiver of, any privileges and immunities - that apply to the Licensor or You, including from the legal - processes of any jurisdiction or authority. - -======================================================================= - -Creative Commons is not a party to its public -licenses. Notwithstanding, Creative Commons may elect to apply one of -its public licenses to material it publishes and in those instances -will be considered the “Licensor.” The text of the Creative Commons -public licenses is dedicated to the public domain under the CC0 Public -Domain Dedication. Except for the limited purpose of indicating that -material is shared under a Creative Commons public license or as -otherwise permitted by the Creative Commons policies published at -creativecommons.org/policies, Creative Commons does not authorize the -use of the trademark "Creative Commons" or any other trademark or logo -of Creative Commons without its prior written consent including, -without limitation, in connection with any unauthorized modifications -to any of its public licenses or any other arrangements, -understandings, or agreements concerning use of licensed material. For -the avoidance of doubt, this paragraph does not form part of the -public licenses. - -Creative Commons may be contacted at creativecommons.org. - diff --git a/README.md b/README.md index 5915f24..5d954b7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ -# LinuxCabin +# LinuxCabin Handbook -嘿!你好👋这是LinuxCabin,一个专为中国用户设计的Linux入门指南! +![Logo](images/LC.png) + +嘿!你好👋这是LinuxCabin Handbook,一个专为中国用户设计的Linux入门指南! **本项目目前处于未完成状态,欢迎贡献!** diff --git a/docs/about.md b/docs/about.md index 7cd0964..e2bdb1e 100644 --- a/docs/about.md +++ b/docs/about.md @@ -5,16 +5,17 @@ LinuxCabin是由[@Fangcat_Dev](https://space.bilibili.com/588672425)与[@13-trix 项目目前处于未完成状态,各位敬请期待! ## 联系方式 - - Fangcat_Dev + +### Fangcat_Dev - QQ: 2950966704 +QQ: 2950966704 - Matrix: @fangcat-dev:fedora.im +Matrix: @fangcat-dev:fedora.im - E-Mail: [f20091219@outlook.com](mailto:f20091219@outlook.com) +E-Mail: [f20091219@outlook.com](mailto:f20091219@outlook.com) - - 13-trixie +### 13-trixie - QQ: 1513463007 +QQ: 1513463007 - Matrix: @13-trixie:matrix.org \ No newline at end of file +Matrix: @13-trixie:matrix.org \ No newline at end of file diff --git a/docs/distros/debian/ubuntu.md b/docs/distros/debian/ubuntu.md new file mode 100644 index 0000000..46c937e --- /dev/null +++ b/docs/distros/debian/ubuntu.md @@ -0,0 +1,46 @@ +# Ubuntu + +![Logo](https://assets.ubuntu.com/v1/8114528b-picto-ubuntu-orange.png) + +## 简介 + +Ubuntu是当今最受认可的Linux发行版,也是中国国家操作系统基准架构。它用户支持广泛,兼容性强,并且有优秀的开箱即用体验。不过近年来的商业化操作令Linux社区对它嗤之以鼻。 + +## 详细信息 + + - 派系:Debian系 + - 发行者:Canonical + - 官网:https://ubuntu.com/ + - 支持的系统架构:x86_64/arm64 + - 自由软件:是 + - 镜像下载地址: + - - TUNA: https://mirrors.tuna.tsinghua.edu.cn/ubuntu-cdimage/ + - - USTC: https://mirrors.ustc.edu.cn/ubuntu-cdimage/ + - - CERNET: https://mirrors.cernet.edu.cn/ubuntu-cdimage/ + - 包管理器:apt + > 注意!使用apt安装部分软件时可能[被Snap劫持](https://www.zhihu.com/question/47659130)! + - 更新方式:传统 + - 换源教程: + - - TUNA: https://mirrors.tuna.tsinghua.edu.cn/help/ubuntu-ports/ + - - USTC: https://mirrors.ustc.edu.cn/help/ubuntu-ports.html + - - CERNET: https://help.mirrors.cernet.edu.cn/ubuntu-ports/ + +## 风味 + +### Desktop + - Edubuntu: 教育 + - Kubuntu: 预装KDE桌面 + - Lubuntu: 预装LXQt桌面 + - Ubuntu Budgie: 预装Budgie桌面 + - Ubuntu Cinnamon: 预装Cinnamon桌面 + - Ubuntu Kylin(优麒麟): 中国特供版,预装UKUI桌面 + - Ubuntu Studio: 内容创作 + - Ubuntu Unity: 预装Unity桌面 + - Xubuntu: 预装Xfce桌面 + +### Server + - Ubuntu Server: 服务器用系统 + +### Core + - Ubuntu Core: 不可变系统,适合IoT设备 + diff --git a/docs/distros/rhel/fedora.md b/docs/distros/rhel/fedora.md new file mode 100644 index 0000000..0210cbe --- /dev/null +++ b/docs/distros/rhel/fedora.md @@ -0,0 +1,69 @@ +# Fedora + +![Logo](https://fedoraproject.org/assets/images/logos/fedora-logo.svg) + +## 简介 + +Fedora是一款前沿、开放的发行版,有着广泛的社区支持,并且提供多种变体可供选择。 + +## 详细信息 + + - 派系:红帽系 + - 发行者:Fedora + - 官网:https://fedoraproject.org/ + - 支持的系统架构:x86_64/arm64 + - 自由软件:是 + - 镜像下载地址: + - - TUNA: https://mirrors.tuna.tsinghua.edu.cn/fedora/releases/ + - - USTC: https://mirrors.ustc.edu.cn/fedora/releases/ + - - CERNET: https://mirrors.cernet.edu.cn/fedora/releases/ + - 包管理器:dnf + - 更新方式:传统 + - 换源教程: + - - TUNA: https://mirrors.tuna.tsinghua.edu.cn/help/fedora/ + - - USTC: https://mirrors.ustc.edu.cn/help/fedora.html + - - CERNET: https://help.mirrors.cernet.edu.cn/fedora/ + +## 风味 + +### Editions + + - Fedora Workstation: 预装GNOME桌面 + - Fedora KDE Plasma Desktop: 预装KDE桌面 + - Fedora Server: 服务器版本 + - Fedora Cloud: 云虚拟机版本 + - Fedora IoT: 嵌入式设备版本 + - Fedora CoreOS: 容器用不可变版本 + +### Atomic Desktops (原子系统) + + - Fedora Silverblue: 预装GNOME桌面,不可变系统 + - Fedora Kinoite: 预装KDE桌面,不可变系统 + - Fedora Sway Atomic: 预装Sway桌面,不可变系统 + - Fedora Budgie Atomic: 预装Budgie桌面,不可变系统 + - Fedora COSMIC Atomic: 预装COSMIC桌面,不可变系统 + +### Spins(预装不同桌面的变体) + + - Xfce Desktop + - Cinnamon Desktop + - MATE+Compiz Desktop + - i3 Tiling WM + - LXQt Desktop + - LXDE Desktop + - SOAS Desktop + - Sway Tiling WM + - Budgie Desktop + - Miracle Desktop + - KDE Mobile Desktop + - COSMIC Desktop + +### Labs(行业特供) + + - Astronomy: 天文 + - Design Suite: 设计 + - Games: 游戏 + - Jam: 音乐 + - Python Classroom: 教育 + - Scientific: 科学 + - Security Lab: 安全 diff --git a/docs/getting-started/before-installing.md b/docs/getting-started/before-installing.md new file mode 100644 index 0000000..79c41ca --- /dev/null +++ b/docs/getting-started/before-installing.md @@ -0,0 +1,34 @@ +# 安装前准备 + +## 准备工具 + +在开始之前,您需要准备好一个空U盘(建议8GB以上),并且关闭电脑的安全启动功能。 + +## 选择发行版 + +下面是一些由我们排序的发行版,您可以点开各自的链接 (WIP) 来了解并比较。 + +(越靠左越前沿,越靠上越困难) + +|困难&前沿 | 困难&保守 +| --- | --- | +| NixOS, Arch Linux| Gentoo | + +|简单&前沿 | 简单&适中 | 简单&保守 +| --- | --- | --- +| [Fedora](../distros/rhel/fedora.md) | Ubuntu/Kubuntu, Linux Mint, Deepin/UOS | RHEL/Rocky Linux + +或者,你也可以试试我们制作的[趣味测试](https://lati-fun.pages.dev/)。 (部署于Cloudflare Pages,访问可能缓慢) + +## 调配分区 + +我们建议您通过专业的分区工具(如[DiskGenius])进行分区。您需要用分区工具在电脑硬盘上腾出40GB(建议值)的**空闲**空间。我们不建议直接创建分区,而是在安装时由安装程序进行创建。 + +**请不要将Linux安装到任何NTFS文件系统的分区!Linux对NTFS的支持尚不完善!!!** + +**任何分区操作都存在风险,请您在操作之前确保已经备份了重要数据!!!** + +## 烧录镜像 + +在下载对应镜像后,你 + diff --git a/docs/getting-started/purpose.md b/docs/getting-started/purpose.md index 24a35a8..07ff5c7 100644 --- a/docs/getting-started/purpose.md +++ b/docs/getting-started/purpose.md @@ -41,11 +41,27 @@ 欢迎来到自由世界!Linux自创立之初就是自由软件(准确来说是创立之后不久),并且极大地推动了世界自由软件的发展,是兼顾“支持”与“自由”的选择。 +我们的教程在编写的时候也会给各个发行版以及相应的软件包标上是否自由的标签,您可以放心阅读。 +点击下一章,开始你的自由旅程吧。 ### 4. 我喜欢Linux酷炫的视觉效果 +我们很理解,作为一名小白,在看到网上那些炫酷的桌面的时候,你内心是怎样的震撼。什么具有科技感的状态栏,炫酷的图标,都比Windows要炫酷不少。 +不过,如果单纯是因为视觉效果而入坑,您一定要做好以下的心理准备: + +1. 可能与终端打交道 +2. 你的配置效果很有可能不尽人意 +3. 我们的教程并不全面,只是为入坑而写 + +并且,您一定要明辨下面的几个概念: + + - 桌面环境 (DDE) + - 发行版 + - 滚动更新 + +好啦,既然你已经准备好了,那我们就向下继续吧! ### 5. 我就是想装逼 diff --git a/docs/index.md b/docs/index.md index 5b2f1a9..313f4e0 100644 --- a/docs/index.md +++ b/docs/index.md @@ -1,9 +1,9 @@ -# LinuxCabin +# LinuxCabin Handbook -嘿!你好👋这是LinuxCabin,一个专为中国用户设计的Linux入门指南! +嘿!你好👋这是LinuxCabin Handbook,一个专为中国用户设计的Linux入门指南! **本项目目前处于未完成状态,欢迎贡献!** ## 想要入门?看这里! -[让我们开始吧!](/getting-started/purpose) +[让我们开始吧!](getting-started/purpose.md) diff --git a/images/LC.png b/images/LC.png new file mode 100644 index 0000000..ecfa1c7 Binary files /dev/null and b/images/LC.png differ diff --git a/mkdocs.yml b/mkdocs.yml index c75d2b7..5bd4ea6 100644 --- a/mkdocs.yml +++ b/mkdocs.yml @@ -1,9 +1,32 @@ site_name: LinuxCabin +site_description: A Linux handbook especially designed for Chinese users. +repo_name: LinuxCabin/linux-handbook +repo_url: https://github.com/LinuxCabin/linux-handbook theme: name: material + language: zh + features: + - search.suggest + - search.highlight + - navigation.footer + + +plugins: + - search + + +copyright: | + Licensed under Creative Commons Attribution-NonCommercial-NoDerivatives 4.0 International nav: - index.md - 开始: - getting-started/purpose.md + - getting-started/before-installing.md + + - 发行版: + - Debian系: + - distros/debian/ubuntu.md + - 红帽系: + - distros/rhel/fedora.md - 关于: about.md diff --git a/templates/concept.md b/templates/concept.md new file mode 100644 index 0000000..d669f1f --- /dev/null +++ b/templates/concept.md @@ -0,0 +1,18 @@ +# 概念名称 + +英文:The name of the concept + +## 解释 + +这是对概念的阐释,您可以自由发挥。阐释应尽量详尽,易懂,并且我们建议您举个例子。 + +## 实践 + +在介绍诸如包管理器/常用命令一类的概念时,请您在这里列举出较为常见的指令。 + +在此以dnf作为例子。 + +1. `sudo dnf install xxx` 安装某个软件包 +2. `sudo dnf remove xxx` 卸载某个软件包 +3. `sudo dnf update` 更新所以软件包 +4. ... \ No newline at end of file diff --git a/templates/distro.md b/templates/distro.md new file mode 100644 index 0000000..18e60b7 --- /dev/null +++ b/templates/distro.md @@ -0,0 +1,33 @@ +# 发行版名称 + +![Logo](https://example.com/example.png) + +## 简介 + +这是一段发行版的简介,你可以写它的优点、特质,当然也可以写它的不足,请尽情发挥!但注意不要写得太长哦。 + +## 详细信息 + + - 派系:Debian/红帽/Arch/其他系 + - 发行者:Owner + - 官网:https://example.com + - 支持的系统架构:x86_64/arm64/... + - 自由软件:是/否 + - 镜像下载地址: + - > 我们建议您只需要填写以下三个主要镜像站,若某个镜像站不存在该镜像,请您直接写“无”而不应直接删除。在发布前请删除这行注释。 + - - TUNA: + - - USTC: + - - CERNET: + - 包管理器:apt/dnf/pacman/... + - 更新方式:传统/滚动/Nix/OSTree/AB分区/... + - 换源教程: + - > 我们建议您只需要填写以下三个主要镜像站,若某个镜像站不存在该镜像,请您直接写“无”而不应直接删除。在发布前请删除这行注释。 + - - TUNA: + - - USTC: + - - CERNET: + +## 风味 + +### A Editions + - Desktop: 简介 + - ... \ No newline at end of file -- cgit v1.3