diff --git a/GSHS_SERVER_INTRO_2/LICENSE b/GSHS_SERVER_INTRO_2/LICENSE new file mode 100644 index 0000000..94a9ed0 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/LICENSE @@ -0,0 +1,674 @@ + GNU GENERAL PUBLIC LICENSE + Version 3, 29 June 2007 + + Copyright (C) 2007 Free Software Foundation, Inc. + 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. + + + Copyright (C) + + 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 . + +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: + + Copyright (C) + 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 +. + + 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 +. diff --git a/GSHS_SERVER_INTRO_2/README.md b/GSHS_SERVER_INTRO_2/README.md new file mode 100644 index 0000000..a50e604 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/README.md @@ -0,0 +1,9 @@ +# GSHS-Linux-Intro +서버를 처음 접하는 연구자를 위한 리눅스 기반 서버 사용 설명서입니다. + +경기과학고등학교 리눅스 사용자협회와 서버관리 봉사동아리 GM에 의해 관리되고 있습니다. + +LaTeX로 작성되어 있으며 [오버리프 링크](https://www.overleaf.com/read/dyfnsffzsnvq)에서 볼 수 있습니다. + +![image](https://user-images.githubusercontent.com/48399106/128599886-d168cbce-c34b-42d1-a424-b8c9cdef77f2.png) +![image](https://user-images.githubusercontent.com/48399106/128599925-ed93e668-faa4-4d09-8811-ab6d27ab6653.png) diff --git a/GSHS_SERVER_INTRO_2/appA/appendix_a_main.tex b/GSHS_SERVER_INTRO_2/appA/appendix_a_main.tex new file mode 100644 index 0000000..2892bb7 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/appA/appendix_a_main.tex @@ -0,0 +1,18 @@ +\chapter{Troubleshooting} +\section{Graphic Driver} +\subsection{nvidia-smi} +nvidia driver labrary mismatch~\\ + +cuda +\section{Storage} +dev1 +\section{Python Environments} +pip, pip3, venv +\section{Jupyter} +config +\section{SSH} +sshd\_config +\section{Database} +mongodb, mariadb +\section{Nginx} +nginx.conf \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/appB/appendix_b_main.tex b/GSHS_SERVER_INTRO_2/appB/appendix_b_main.tex new file mode 100644 index 0000000..2da9944 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/appB/appendix_b_main.tex @@ -0,0 +1,10 @@ +\chapter{GSHS CSLAB} +정보과 연구용 기기 목록 +\begin{itemize} + \item Nvidia RTX 2070 eGPU $\times$ 2 + \item Nvidia RTX 2080 Super eGPU $\times$ 1 + \item Nvidia RTC 3070 $\times$ 1 + \item Intel NUC $\times$ 2 + \item 메인 서버. + \item 구서버 (테스트용 서버) +\end{itemize} diff --git a/GSHS_SERVER_INTRO_2/appC/appendix_c_main.tex b/GSHS_SERVER_INTRO_2/appC/appendix_c_main.tex new file mode 100644 index 0000000..2df7a27 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/appC/appendix_c_main.tex @@ -0,0 +1,7 @@ + +\chapter{Contributors} + +37st (Version1) : 19007 권준우, 19011 김도영, 19032 노현서, 19042 박영민 + + +38st (Version2) : 20059 송혁중 \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/chap1/images/test_image_goku.jpg b/GSHS_SERVER_INTRO_2/chap1/images/test_image_goku.jpg new file mode 100644 index 0000000..7620263 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap1/images/test_image_goku.jpg differ diff --git a/GSHS_SERVER_INTRO_2/chap1/introduction_main.tex b/GSHS_SERVER_INTRO_2/chap1/introduction_main.tex new file mode 100644 index 0000000..c7a4cc4 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/chap1/introduction_main.tex @@ -0,0 +1,16 @@ +\chapter{Introduction} + +\graphicspath{{./chap1/images/}} +\textbf{서버는 모두가 함께 사용하는 것입니다.} + +\section{Motivation} +경기과학고등학교(\acs{GSHS})에는 고성능 \acs{GPU} 6개, 그리고 40개의 \acs{CPU} 코어를 가진 서버가 있다. 이 서버는 강력하기에 학생들은 자신의 연구에 큰 도움을 받고 있다. 그러나, 그 서버의 무분별한 사용과 관리자 부재로 인해 연구활동에 어려움을 겪게 되었으며 신입생들의 경우 구전으로 전해지는 사용 방법에 의존해야 했다. 이에 문제의식을 느낀 37기 정보과 일동은 경기과학고등학교 리눅스 사용자 협회, 그리고 교내 봉사모둠인 GM을 만들어 서버 사용 및 관리를 체계화하는 한편 본 설명서를 통해 처음 서버를 이용하는 학생들을 돕고자 한다. + +\section{Ubuntu} +Ubuntu Linux는 윈도우와 같은 운영체제로, 윈도우와 달리 무료이며 공개 소스이다. 서버에 일반적으로 이용하는 Ubuntu Server는 \acs{GUI}가 없는 Ubuntu로, 마우스 없이 명령줄만으로 제어하는 \acs{CLI} 환경이다. 윈도우의 명령 프롬프트(cmd)와 유사하다. + +%\subsection{Showing the Use of Acronyms} + +%In the early nineties, \acs{GSM} was deployed in many European countries. \ac{GSM} offered for the first time international roaming for mobile subscribers. The \acs{GSM}’s use of \ac{TDMA} as its communication standard was debated at length. And every now and then there are big discussion whether \ac{CDMA} should have been chosen over \ac{TDMA}. + +%If you want to know more about \acf{GSM}, \acf{TDMA}, \acf{CDMA} and other acronyms, just read a book about mobile communication. Just to mention it: There is another \ac{UA}, for testing. \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/chap2/connection_main.tex b/GSHS_SERVER_INTRO_2/chap2/connection_main.tex new file mode 100644 index 0000000..fbf54ea --- /dev/null +++ b/GSHS_SERVER_INTRO_2/chap2/connection_main.tex @@ -0,0 +1,59 @@ + +\graphicspath{{./chap2/images/}} +\chapter{Connection} + +\textbf{이 장은 서버와의 연결, 그리고 파일 송수신 방법을 다룬다.} + +\section{SSH를 이용한 서버 접속} + 서버는 학교에 있으므로 원격으로만 이용할 수 있다. 이를 위하여 SSH(Secure SHell)를 쓴다. Putty와 같은 전용 프로그램을 이용해도 되고, OpenSSH를 설치한 후 명령 프롬프트와 같은 환경에서 SSH 명령어를 이용해도 된다. 이 문서에서는 후자를, Windows 10 기준으로 설명하도록 하겠다.\\ + + 먼저 윈도우에서 시작 > 설정 > 앱 > 앱 및 기능에 들어간다. + \begin{figure}[h] + \begin{center} + \includegraphics[width=5cm]{ssh1.png} + \caption{앱 및 기능} + \end{center} + \end{figure} + + 여기서 선택적 기능을 클릭하고 SSH를 검색해 OpenSSH를 찾아 설치한다. + + \begin{figure}[H] + \begin{center} + \includegraphics[width=4cm]{ssh2.png} + \includegraphics[width=4cm]{ssh3.png} + \caption{OpenSSH 서버 설치} + \end{center} + \end{figure} + + + 경기과학고등학교 연구용 서버는 Ubuntu 18.04로 구성되어 있다. 이 운영체제는 Windows처럼 사용자 이름(username)과 암호(password)가 있어야 한다. 만약 본인이 서버를 이용하고 싶다면 근처의 정보전공 친구에게 사이다를 사주고 계정을 얻어내도록 하자. 일련의 과정을 통해 서버에 접속할 계정명과 암호, 주소와 포트까지 알게 되었다면 다음과 같은 명령어를 통해 서버에 접속할 수 있다. 이후 암호를 입력하면 접속에 성공한 것이다. 참고로 root 계정은 보통 이용하지 않는다.\\ + \begin{lstlisting} + $ ssh -p [port] [username]@[address] + ex) ssh -p 22 root@127.0.0.1 + \end{lstlisting} + + + 로그인하면 다음과 같은 화면을 볼 수 있다. 참고로 서버는 TUI 환경이기에 접속된 창으로 모든 작업을 수행하게 된다. + \begin{figure}[H] + \begin{center} + \includegraphics[width=7cm]{ssh5.png} + \caption{SSH 접속창} + \end{center} + \end{figure} + +\section{SFTP를 이용한 파일 관리} + SFTP는 SSH File Transfer Protocol의 약어다. 즉, 이미 다룬 SSH 통신을 이용해 파일을 전송하는 것이다. 대표적인 프로그램으로 \href{https://filezilla-project.org/}{FileZilla}가 있다. 파일질라를 설치한 후 좌측 상단 사이트 관리자에서 새 로그인 정보를 만들어 저장하고 연결하면 된다. + \begin{figure}[H] + \begin{center} + \includegraphics[width=8cm]{sftp2.png} + \caption{FileZilla 접속} + \end{center} + \end{figure} + 접속에 성공하면 화면 양쪽에 파일 탐색기가 생길 것이다. 좌측은 현재 사용자의 컴퓨터이며 우측은 서버다. 이제 사용자는 평소 윈도우 파일 탐색기를 이용하듯 파일을 끌어 옮기거나 다운로드하여 편집할 수 있다. 다만 파일을 다운로드 후 편집하고 다시 업로드를 해야 서버의 파일이 수정된다는 점에 유의해야 한다. + \begin{figure}[H] + \begin{center} + \includegraphics[width=8cm]{sftp3.png} + \caption{파일질라 접속} + \end{center} + \end{figure} + \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/chap2/images/FileZilla_install.PNG b/GSHS_SERVER_INTRO_2/chap2/images/FileZilla_install.PNG new file mode 100644 index 0000000..f51cac2 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/FileZilla_install.PNG differ diff --git a/GSHS_SERVER_INTRO_2/chap2/images/FileZilla_serveradd.PNG b/GSHS_SERVER_INTRO_2/chap2/images/FileZilla_serveradd.PNG new file mode 100644 index 0000000..cf43890 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/FileZilla_serveradd.PNG differ diff --git a/GSHS_SERVER_INTRO_2/chap2/images/sftp1.png b/GSHS_SERVER_INTRO_2/chap2/images/sftp1.png new file mode 100644 index 0000000..62cd982 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/sftp1.png differ diff --git a/GSHS_SERVER_INTRO_2/chap2/images/sftp2.png b/GSHS_SERVER_INTRO_2/chap2/images/sftp2.png new file mode 100644 index 0000000..05db220 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/sftp2.png differ diff --git a/GSHS_SERVER_INTRO_2/chap2/images/sftp3.png b/GSHS_SERVER_INTRO_2/chap2/images/sftp3.png new file mode 100644 index 0000000..181c06e Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/sftp3.png differ diff --git a/GSHS_SERVER_INTRO_2/chap2/images/ssh1.png b/GSHS_SERVER_INTRO_2/chap2/images/ssh1.png new file mode 100644 index 0000000..d71ee95 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/ssh1.png differ diff --git a/GSHS_SERVER_INTRO_2/chap2/images/ssh2.png b/GSHS_SERVER_INTRO_2/chap2/images/ssh2.png new file mode 100644 index 0000000..4a02b53 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/ssh2.png differ diff --git a/GSHS_SERVER_INTRO_2/chap2/images/ssh3.png b/GSHS_SERVER_INTRO_2/chap2/images/ssh3.png new file mode 100644 index 0000000..2a6f950 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/ssh3.png differ diff --git a/GSHS_SERVER_INTRO_2/chap2/images/ssh4.png b/GSHS_SERVER_INTRO_2/chap2/images/ssh4.png new file mode 100644 index 0000000..8be5174 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/ssh4.png differ diff --git a/GSHS_SERVER_INTRO_2/chap2/images/ssh5.png b/GSHS_SERVER_INTRO_2/chap2/images/ssh5.png new file mode 100644 index 0000000..b6f729e Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap2/images/ssh5.png differ diff --git a/GSHS_SERVER_INTRO_2/chap3/command_main.tex b/GSHS_SERVER_INTRO_2/chap3/command_main.tex new file mode 100644 index 0000000..f9e82bd --- /dev/null +++ b/GSHS_SERVER_INTRO_2/chap3/command_main.tex @@ -0,0 +1,183 @@ + +\graphicspath{{./chap3/images/}} +\chapter{Command} +\textbf{이 장은 기본 리눅스 명령어를 다룬다.} +\section{파일 관리} +\subsection{절대경로와 상대경로} +절대경로는 /home/gs19000/dir1/dir2와 같은 것이다. 상대경로는 현재 내 위치에서 시작하는 경로다. 즉, 내가 지금 /home/gs19000/dir1에 있다면 여기서 /home/gs19000/dir1/dir2의 상대경로는 그냥 dir2다. +\subsection{디렉토리 및 탐색} +cd 명령어를 사용해서 디렉터리를 탐색할 수 있다. \\ ..은 상위 디렉토리, -은 이전 디렉토리, $\sim$는 홈 디렉토리를 의미한다. +cd (디렉토리)라 치면 해당 디렉토리로 이동된다. 디렉토리를 표현할 때 절대경로, 상대경로 둘 다 가능하며, 실행시 주소쪽 값이 변경된다. +\begin{lstlisting} + $ cd dir1 입력시 + ~/dir1$ __으로 바뀐다. + $ cd /home/gs19000/dir1 + $ cd .. + $ cd - + $ cd ~ +\end{lstlisting} +\subsection{디렉토리 및 파일 관리} +rm 명령어를 사용해서 파일을 삭제할 수 있다.\\ +rm (file) : 해당 파일을 삭제한다. rm -r (dir) : 해당 디렉토리를 삭제한다. +또한, mkdir 명령어를 사용해서 디렉터리를 만들 수 있다.\\ +mkdir (dir) : 해당 이름의 디렉토리가 존재하지 않을 경우 새로 dir이름의 디렉터리를 생성한다.\\ + + +다음으로 cp, mv 명령어를 통해 파일을 옯기거나 복사할 수 있다.\\ +cp (file1) (file2) : file1의 이름을 file2 이름으로 바꾸어 복사한다.(file1은 삭제되지 않음 file2가 이미 존재할 경우 덮어씌워진다)\\ +cp -r (dir1) (dir2) : dir1이름의 디렉토리를 dir2 디렉토리 내부에 복사한다.(dir1은 반드시 존재해야 하며 dir2는 존재하지 않을 경우 새로 만들어진다)\\ +mv (file1) (file2) : file1의 이름을 file2로 바꾼다.(file2가 이미 존재할 경우 덮어씌워진다)\\ +mv (dir1) (dir2) : dir1의 이름을 dir2로 바꾼다.(dir1은 반드시 존재해야 하며 dir2가 존재할 경우 dir2 내부에 dir1 파일을 이동시킨다.)\\ +마지막으로, cat을 이용해 내용을 읽어올 수 있다. cat (file1) : file1의 내용을 불러온다. + \begin{lstlisting} + $ rm file1 + $ rm -r dir1 + $ mkdir dir2 + $ cp file1 file2 + $ cp -r dir1 dir2 + $ mv file1 file2 + $ mv dir1 dir2 + $ cat file3.txt + \end{lstlisting} +\section{기타 기능} +\subsection{프로세스 관리} +htop을 이용해 실행중인 프로세스를 확인할 수 있다. kill, pkill을 통해 프로세스를 제거할 수 있다. + \begin{lstlisting} + $ htop + $ kill -9 + \end{lstlisting} +\subsection{권한 관리} +chmod를 이용해 권한을 관리할 수 있다. 권한에 대한 자세한 정보는 ... + \begin{lstlisting} + $ sudo chmod 777 file1 + \end{lstlisting} +\subsection{Vim} +기본 메모장과 같다. 우분투 서버를 지속적으로 다룰 생각이 있다면 Vim 에디터에 익숙해질 필요가 있다. 먼저, vim 에디터를 사용하여 파일을 수정하기 위해서는 vim 에디터를 실행해야 한다. vim 에디터는 다음과 같은 명령어를 통해 실행할 수 있다. + \begin{lstlisting} + $ vim filename + \end{lstlisting} +위와 같이 vim 에디터를 통해 파일을 열게 되면 다음과 같은 화면이 나타난다. + +\begin{figure}[H] + \begin{center} + \includegraphics[width=0.8\linewidth]{chap3/images/vim.png} + \caption{vim 에디터 실행 화면} + \end{center} +\end{figure} + +그런데 이 상태에서 무언가를 입력하려 하면 아마 파일이 수정되지 않을 것이다.\\ +왜냐하면 vim 에디터는 수정 모드가 아니라면 파일의 내용을 수정할 수 없기 때문이다.\\ +vim 에디터에서 수정모드로 변환하는 방법은 간단하다. i를 입력하면 수정모드로 변환되며, 만약 수정모드를 다시 끄고 싶다면 ESC 키를 누르면 수정모드가 종료된다.\\ +수정모드가 아닌 상태에서는 여러 가지 단축키와 커맨드를 통해 여러 기능을 사용할 수 있는데, 이 문서에서는 자주 사용하는 기능의 단축키만을 다룰 것이다. 아래 단축키들을 자주 사용하므로 미리 숙지해놓자.\\ + +\subsubsection{이동} +\paragraph{기본 이동} +\begin{itemize}[$\bullet$] + \item h,j,k,l : 좌,하,상,우 커서 이동 + \item - : 줄의 처음 위치로 이동 + \item gg : 맨 위로 커서 이동 + \item Shift + g : 맨 아래로 커서 이동 +\end{itemize} +\paragraph{단어 단위로 이동} +\begin{itemize}[$\bullet$] + \item w : 단어의 시작 위치로 커서 이동 (forward 방향) + \begin{itemize}[Ex)] + \item 3w : 세 단어 앞으로 커서 이동 + \end{itemize} + \item e : 단어의 마지막 위치로 커서 이동 (forward 방향) + \item b : 단어의 시작 위치로 커서 이동 (backward 방향) + \item ge : 단어의 마지막 위치로 커서 이동 (backward 방향) +\end{itemize} +\paragraph{한 문장 내에서의 이동} +\begin{itemize}[$\bullet$] + \item \^ : 문장 맨 앞으로 커서 이동 + \item \$ : 문장 맨 뒤로 커서 이동 +\end{itemize} +\paragraph{대략적인 위치로 이동} +\begin{itemize}[$\bullet$] + \item Shift + h : 현재 보이는 페이지를 기준으로 맨 위로 커서 이동 + \item Shift + m : 현재 보이는 페이지를 기준으로 중간 라인으로 커서 이동 + \item Shift + l : 현재 보이는 페이지를 기준으로 가장 아래로 커서 이동 +\end{itemize} +\paragraph{페이지 이동} +\begin{itemize}[$\bullet$] + \item Ctrl + f : 다음 페이지의 첫 줄로 커서 이동 + \item Ctrl + b : 다음 페이지의 마지막 줄로 커서 이동 + \item Ctrl + d : 페이지의 절반 크기만큼 아래로 커서 이동 + \item Ctrl + u : 페이지의 절반 크기만큼 위로 커서 이동 +\end{itemize} +\paragraph{원하는 줄 번호로 한번에 이동} +\begin{itemize}[$\bullet$] + \item :[number] : [number]행으로 이동 + \begin{itemize}[Ex)] + \item :3 : 3번째 줄로 이동. 줄 번호는 1부터 시작한다. + \end{itemize} +\end{itemize} +\paragraph{\{\} 기준으로 이동} +\begin{itemize}[$\bullet$] + \item ]] : \{로 커서 이동 (forward 방향) + \begin{itemize}[$\circ$] + \item 없으면 페이지의 맨 아래로 커서 이동 + \item \{은 가장 상위의 블록을 감싸고 있는 문자만 찾는다. + \end{itemize} + \item[$\bullet$] [[ : \{로 커서 이동 (backward 방향) + \item ][ : \}로 커서 이동 (forward 방향) + \begin{itemize}[$\circ$] + \item 없으면 페이지의 맨 아래로 커서 이동 + \item \}은 가장 상위의 블록을 감싸고 있는 문자만 찾는다. + \end{itemize} + \item[$\bullet$] [] : \}로 커서 이동 (backward 방향) + \item \% : \{\}나 ()에서 현재 괄호의 짝으로 커서 이동 +\end{itemize} + +\subsubsection{편집} +\paragraph{삽입 관련 단축키} +\begin{itemize}[$\bullet$] + \item i : 현재 커서가 위치한 문자의 앞에 insert 하기 + \item I : 현재 커서가 위치한 줄 맨 앞에 insert 하기 + \item a : 현재 커서가 위치한 문자의 뒤에 insert 하기 + \item A : 현재 커서가 위치한 줄 맨 뒤에 insert 하기 + \item O : 현재 커서가 위치한 줄 바로 윗줄에 insert 하기 + \item o : 현재 커서가 위치한 줄 바로 아랫줄에 insert 하기 +\end{itemize} +\paragraph{삭제/잘라내기 및 수정 관련 단축키} +\begin{itemize}[$\bullet$] + \item dd : 커서가 위치한 줄 잘라내기 + \item dw : 커서가 위치한 곳부터 단어의 마지막까지 잘라내기 + \item Shift + d : 커서가 위치한 곳부터 줄의 끝까지 잘라내기 + \item x : 커서가 위치한 문자 잘라내기 + \item Shift + x : 커서가 위치한 문자 바로 앞에 있는 문자 잘라내기 + \item s : 커서가 위치한 문자 잘라내고 insert 하기 + \item cc 또는 Shift + s : 커서가 위치한 줄 전체 잘라내고 insert 하기 + \item cw : 커서가 위치한 곳부터 단어의 마지막까지 잘라내고 insert 하기 + \item Shift + c : 현재 커서의 위치부터 줄의 끝까지 잘라내고 insert 하기 + \item r + [변경할 문자] : 커서가 위치한 문자 하나 수정하기 + \begin{itemize}[Ex)] + \item 4rx : 현재 커서 이후 4개의 글자를 x로 수정한다. + \end{itemize} +\end{itemize} +\paragraph{복사/붙여넣기 관련 단축키} +\begin{itemize}[$\bullet$] + \item yl : 현재 커서가 위치한 문자 하나만 복사하기 + \begin{itemize}[Ex)] + \item 3yl : 현재 커서 이후 3개의 문자를 복사한다. + \end{itemize} + \item yy : 현재 커서가 위치한 줄 복사하기 + \item yw : 현재 커서의 위치부터 단어가 끝나는 위치까지 복사하기 + \item y : 블럭 단위로 체크한 내용(비주얼 모드 이용) 복사하기 - 한 문자만 복사 X + \begin{itemize}[Ex)] + \item[Ex)] [number] + y : 커서가 위치한 줄부터 [number]만큼의 줄 복사하기 + \item y\$ : 커서가 위치한 곳부터 줄의 마지막까지 복사하기 + \end{itemize} + \item p : 복사한 것을 붙여넣기. 단어를 복사한 경우 커서가 위치한 곳에 붙여넣고, 행 단위를 복사한 경우 커서가 위치한 줄 다음 줄에 붙여넣는다. + \item Shift + p : 복사한 것을 앞에 붙여넣기. 단어를 복사한 경우 커서가 위치한 곳 앞에 붙여넣고, 행 단위를 복사한 경우 커서가 위치한 줄 바로 윗줄에 붙여넣는다. + \item[$\bullet$] [number] + p : [number] 만큼 붙여넣기를 반복. +\end{itemize} + +이외에도 다양한 단축키가 있으니, 위 목록에 없는 단축키를 안다면 추후 추가 바람. + +\subsection{Pipeline} +파이프라인을 통해 출력값에서 원하는 문자열을 확인할 수 있다. 보통 아래와 같이 |와 grep을 이용해 사용한다. 아래의 경우 file2.txt를 출력하는데, 그중 "abc"가 포함된 부분을 찾는 것이다. + \begin{lstlisting} + $ cat file2.txt | grep abc + \end{lstlisting} diff --git a/GSHS_SERVER_INTRO_2/chap3/images/vim.png b/GSHS_SERVER_INTRO_2/chap3/images/vim.png new file mode 100644 index 0000000..9e57f50 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap3/images/vim.png differ diff --git a/GSHS_SERVER_INTRO_2/chap4/environments_main.tex b/GSHS_SERVER_INTRO_2/chap4/environments_main.tex new file mode 100644 index 0000000..fd49b54 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/chap4/environments_main.tex @@ -0,0 +1,136 @@ + +\graphicspath{{./chap4/images/}} +\chapter{Environments} + +\textbf{이 장은 기본 연구 환경을 다룬다.} +\section{주의사항} +\begin{itemize} + \item \textbf{sudo reboot은 그 어떠한 경우에도 사용하면 안 된다.} 새로운 프로그램을 설치하는 등 작업 도중 블로그 글을 따라쓰게 될 수 있는데, 그중에 reboot 명령어가 있으면 건너뛰자. 타인의 프로세스가 비정상적으로 종료될 위험이 크다. + \item \textbf{모든 사용자는 반드시 가상환경을 구성하고, 그 가상환경 내에 여러가지 연구에 필요한 프로그램들을 설치해 사용해야 한다.} 이렇게 하면 관리자 권한 없이 원하는 대로 프로그램의 버전이나 설정을 바꿀 수 있다. +\end{itemize} + + +\section{간편 설치} +\label{easy} +관리자가 미리 만들어 둔 계정의 폴더를 복사한다. +\begin{lstlisting} + $ cp -r /home/sampleUser/* ~/ +\end{lstlisting} +이 방법을 사용하면 \ref{venv}와 \ref{jupyter}로 향하면 된다.~\\\\ + +\section{가상환경 설치 및 이용} +\label{venv} +만약 가상환경을 추가로 설치하려 하거나 \ref{easy}의 간편 설치를 이용하지 않았다면 다음 명령어로 가상환경을 설치하자. +\begin{lstlisting} + $ virtualenv venv + $ virtualenv venv --python=python3.6 +\end{lstlisting} +여기서 3.5 대신 원하는 다른 버전을 다운받아도 된다. \\ +~\\ + + +이후 가상환경을 사용할 때에는 다음 명령어를 사용하면 된다. +\begin{lstlisting}[language=bash] + $ source ~/venv/bin/activate +\end{lstlisting} +\begin{figure}[H] + \begin{center} + \includegraphics[width=0.6\linewidth]{venv} + \caption{활성화된 venv 환경} + \end{center} + \end{figure} +\section{Jupyter Notebook 설치} +\label{jupyter} +가상환경을 켠 상태로 다음 명령어를 입력하자. +\begin{lstlisting} + $ pip3 install jupyter +\end{lstlisting} +설치가 제대로 되었는지를 확인하기 위해 다음 명령어를 입력하여 Jupyter Notebook 버전을 확인하자. +\begin{lstlisting} + $ jupyter --version +\end{lstlisting} + +\begin{figure}[H] + \begin{center} + \includegraphics[width=0.4\linewidth]{jupyter_version} + \caption{Jupyter Notebook 버전 확인} + \end{center} +\end{figure} + +다음 명령어를 입력하여 $\sim$/.jupyter 디렉토리에 접근하자. +\begin{lstlisting} + $ cd ~/.jupyter +\end{lstlisting} +만약 해당 디렉토리가 존재하지 않는다면, 다음 명령어를 입력하여 해당 디렉토리를 생성한 후 해당 디렉토리에 접근하면 된다. +\begin{lstlisting} + $ mkdir ~/.jupyter +\end{lstlisting} +이제 다음 명령어를 이용하여 config 파일을 생성하자. +\begin{lstlisting} + $ jupyter notebook --generate-config +\end{lstlisting} + +\begin{figure}[H] + \begin{center} + \includegraphics[width=0.8\linewidth]{jupyter_config_generation} + \caption{Jupyter Notebook config 파일 생성} + \end{center} +\end{figure} + +이제 $\sim$/.jupyter 디렉토리에 jupyter\_notebook\_config.py라는 파일이 생성되었을 것이다. 해당 파일의 내용을 지우고 다음 내용을 입력하자. 단, username에는 자신의 아이디를, student\_number에는 자신의 학번을 입력한다. +\begin{lstlisting} + c = get_config() + c.NotebookApp.allow_origin='*' + c.NotebookApp.notebook_dir='/home/username' + c.NotebookApp.ip='115.23.235.135' + c.NotebookApp.port=student_number + c.NotebookApp.open_browser=False +\end{lstlisting} +이제 jupyter notebook을 실행시키기 위해 다음 명령어를 입력하자. +\begin{lstlisting} + $ jupyter notebook --config ~/.jupyter/jupyter_notebook_config.py +\end{lstlisting} +이제 터미널 창에 뜨는 url을 복사하여 접속하면 jupyter notebook을 사용할 수 있다.\\ + +\begin{figure}[H] + \begin{center} + \includegraphics[width=0.6\linewidth]{jupyter_notebook_running} + \caption{Jupyter Notebook 실행 모습} + \end{center} +\end{figure} + +\begin{figure}[H] + \begin{center} + \includegraphics[width=0.8\linewidth]{jupyter_notebook_display} + \caption{Jupyter Notebook 화면} + \end{center} +\end{figure} + +터미널 창의 세션이 종료되어도 jupyter notebook이 계속 실행되도록 하려면 nohup 명령어를 이용하면 된다. +\begin{lstlisting} + $ nohup jupyter notebook --config ~/.jupyter/jupyter_notebook_config.py +\end{lstlisting} +\section{tensorflow 설치(선택)} +가상환경을 켠 상태로 다음 명령어를 입력하자. +\begin{lstlisting} + $ pip3 install --upgrade tensorflow +\end{lstlisting} +\section{CUDA 설치} +만약 서버에 없는 \acs{CUDA}가 필요하다면 관리자에게 문의해야 한다. 이후 자신의 환경변수에 설치된 특정 버전의 \acs{CUDA}를 추가하면 된다.~\\ + + +관리자는 \acs{CUDA}의 정상 작동을 위해 노력해야 한다. 자세한 내용은 Chapter 6 참고.\\ + +\section{쉘 바꾸기(선택)} +만약 계정이 불가피하게 useradd 명령어로 생성되었거나 프로파일이 손상된 경우 bash가 자동으로 활성화되지 않을 수 있다. 사실 쉘에는 sh, bash 등이 있는데, 계정명이 초록색이 아니고 경로가 표시되지 않는다면 쉘이 sh로 설정이 되어있을 수 있다. bash가 여러가지 좋은 기능(위 아래 방향키로 이전 명령 불러오기 등)이 있으므로 다음 명령어를 쳐서 bash로 쉘을 바꿔주자. +\begin{lstlisting} + $ chsh -s /bin/bash +\end{lstlisting} +이후 서버와의 연걸을 한 번 끊었다가 재접속했을 때 아래처럼 \$ 옆에 사용자명이 뜨면 성공한 것이다. +\begin{figure}[H] + \begin{center} + \includegraphics[width=5cm]{bash} + \caption{bash로 변경} + \end{center} +\end{figure} +현재 서버에서 bash 쉘을 사용하는 상태에서 GPU를 사용하는 프로그램을 실행시키는 경우, GPU에 메모리만 할당되고 GPU를 사용하지 않는 현상이 종종 나타나고 있으니 만약 bash 쉘을 사용하는데 GPU 사용량이 이상할 만큼 저조하다면, 이를 한 번 의심해보자. 해당 프로그램을 실행시킬 때에만 bash를 사용하지 않으면 이러한 문제를 해결할 수 있다. \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/chap4/images/bash.png b/GSHS_SERVER_INTRO_2/chap4/images/bash.png new file mode 100644 index 0000000..eeb4670 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap4/images/bash.png differ diff --git a/GSHS_SERVER_INTRO_2/chap4/images/jupyter_config_generation.png b/GSHS_SERVER_INTRO_2/chap4/images/jupyter_config_generation.png new file mode 100644 index 0000000..0d35cb4 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap4/images/jupyter_config_generation.png differ diff --git a/GSHS_SERVER_INTRO_2/chap4/images/jupyter_notebook_display.png b/GSHS_SERVER_INTRO_2/chap4/images/jupyter_notebook_display.png new file mode 100644 index 0000000..1afa119 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap4/images/jupyter_notebook_display.png differ diff --git a/GSHS_SERVER_INTRO_2/chap4/images/jupyter_notebook_running.png b/GSHS_SERVER_INTRO_2/chap4/images/jupyter_notebook_running.png new file mode 100644 index 0000000..0dde047 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap4/images/jupyter_notebook_running.png differ diff --git a/GSHS_SERVER_INTRO_2/chap4/images/jupyter_version.png b/GSHS_SERVER_INTRO_2/chap4/images/jupyter_version.png new file mode 100644 index 0000000..55781cd Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap4/images/jupyter_version.png differ diff --git a/GSHS_SERVER_INTRO_2/chap4/images/venv.png b/GSHS_SERVER_INTRO_2/chap4/images/venv.png new file mode 100644 index 0000000..0c3247f Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap4/images/venv.png differ diff --git a/GSHS_SERVER_INTRO_2/chap5/other_main.tex b/GSHS_SERVER_INTRO_2/chap5/other_main.tex new file mode 100644 index 0000000..1c947ea --- /dev/null +++ b/GSHS_SERVER_INTRO_2/chap5/other_main.tex @@ -0,0 +1,17 @@ + +\graphicspath{{./chap5/images/}} +\chapter{Other} + +\textbf{이 장은 서버의 다른 이용 방법들을 다룬다.} + +\section{NewKOI} +Hydro랑 Vj4 번역 거의 했음 +\section{CMS} + +이건 37기 권준우가 적어둔 \href{https://github.com/gshslinuxintro/cslab.gs.hs.kr/tree/master/docs/cms}{문서(링크)}를 참고하자. +\section{DB} +MySQL로 적는게 좋을듯? +\section{GCC} +To-do: cmake(?) +\section{Robocode} +To-do: x-11 디스플레이 포트포워딩, java 설치 diff --git a/GSHS_SERVER_INTRO_2/chap6/admin_main.tex b/GSHS_SERVER_INTRO_2/chap6/admin_main.tex new file mode 100644 index 0000000..d9a1cfa --- /dev/null +++ b/GSHS_SERVER_INTRO_2/chap6/admin_main.tex @@ -0,0 +1,155 @@ +\graphicspath{{./chap6/images/}} +\chapter{Admin} +\textbf{이 장은 관리자 작업과 관련된 것들을 다룬다.} + +\section{공지} +서버에는 여러 학생들의 연구 및 논문 데이터가 있다. 그러므로 서버에서의 중대한 작업이 진행될 경우 사전에 공지하여 백업하도록 하는 것이 바람직하다. 리눅스 사용자 협회 오픈채팅방 등을 이용하면 된다. +\subsection{유저 관리} +adduser를 이용해 유저를 생성할 수 있다. usermod를 이용해 유저의 그룹을 관리할 수 있다. su를 이용해 사용자를 바꿀 수 있다. useradd를 사용할 경우 유저의 홈 디렉트리, bash 쉘 등이 생성되지 않으므로 adduser의 사용을 권장한다. + \begin{lstlisting} + $ adduser gs21000 + $ usermod -aG GROUP gs21000 + $ su gs20000 + \end{lstlisting} +\section{초기화} +서버에 중대한 문제가 발생하여 해결이 불가하거나 심히 어려운 경우 초기화가 그 해결책이 될 수 있다. 본 문서는 Ubuntu Server 20.04.2 LTS를 기반으로 작성되었다. +\subsection{설치디스크 준비} +\begin{enumerate} + \item 2GB 이상의 USB 준비 + \item 우분투 이미지 사이트\href{https://releases.ubuntu.com/20.04/}{(링크)}에서 Ubuntu Server 20.04 준비한다. 원하는 버전을 준비하면 된다. 중요한 것은 LTS 버전을 다운로드해야 된다는 것이다. + \item Rufus\href{https://rufus.ie/}{(링크)} 준비 + \item Rufus 실행 후 준비한 iso 선택 + \item 준비한 USB를 선택하고 '시작' 클릭 (iso 우선 모드는 큰 상관이 없다. +\end{enumerate} +\subsection{기타 OS 설치} +방법은 동일하다. 현재 관리자 송혁중은 OPENSUSE에 빠져 상업용 Opensuse를 무료로 사용할 수 있는 권한까지 받아 학교 서버에 설치할 수 있었지만 호환성 문제로 하지 않았다. 그러니 다른 OS는 추천하지는 않는다. 다른 OS를 깔았다가 모든 학생들이 반발하는 모습을 볼 수 있을 것이다. 특히나 데비안 계열에서 다른 계열로 변경하는 것은 비추천한다... +\subsection{Ubuntu 설치} +연구용 서버는 SRC 7층 서버실에 위치해 있다. 먼저 7층 교무실에 계시는 정덕교 선생님이나 박종화 선생님께 서버 초기화를 위해 왔음을 알여야 한다. + +테스트용서버(구서버)는 서버실에서 가장 가까운 서버렉의 제일 아래에 있다. 후면에 USB와 VGA 단자가 있고 안쪽에는 키보드, 마우스와 모니터가 있으므로 연결하여 작업하면 된다. 먼저 전원 버튼을 꾹 눌러 종료시킨 뒤 다시 눌러 시스템을 시작한다. 이후 바이오스 창이 나올 때 F2 또는 Del 키를 누르면 부팅 디스크를 선택할 수 있게 된다. +메인서버(신서버, 115.23.235.150)은 서버실의 가장 가까운 서버렉의 위에서 2번째 칸에 위치한다. gpu 10장이 들어가기 위한 것 같아보이는 서버가 신서버이다. 마찬가지지만 usb 단자가 앞면에 위치하고 있다. +이후 설치 과정을 따라하면 된다. 이때 OpenSSH-Server를 설치하는 것을 추천한다. 또, 중간에 네트워크를 설정하는 창이 나오면 설정표\href{https://github.com/gshslinuxintro/Server-Configuration/blob/main/Network.md}{(비공개 링크)}를 보고 정덕교 선생님께 여쭤보며 작성하면 된다. 신서버를 처음 설치할때는 22.04 버전을 설치하였지만 호환성이 맞지 않는 패키지가 많았으므로 이를 해결하기 위해서 20.04로 다운그레이드를 진행하였다. 버전 업그레이드는 추천하지 않는다. (cuda의 지원 속도가 매우 느린 편) + +\section{Drivers} +\textbf{이 Section은 어떤 드라이버도 깔려 있지 않은 상태에서의 설치 상황을 다룬다. 설치과정에서 자동으로 driver를 설치할 수는 있지만 추천하지 않는다.} + +먼저 아래 명령어를 통해 현재 설치된 GPU에 적합한 드라이버를 찾을 수 있다. +\begin{lstlisting} + $ ubuntu-drivers devices +\end{lstlisting} +이후 그중 하나를 골라(recommended) 설치하면 된다. +\begin{lstlisting} + $ sudo apt install nvidia-driver-XXX (숫자) +\end{lstlisting} +적용하려면 재부팅이 필요하다. +\begin{lstlisting} + $ sudo reboot +\end{lstlisting} +Nvidia-smi를 통해 설치를 확인할 수 있다. +\begin{lstlisting} + $ nvidia-smi +\end{lstlisting} +\begin{figure}[H] + \begin{center} + \includegraphics[width=5cm]{nvidia-smi} + \caption{nvidia-smi} + \end{center} +\end{figure} +여기서 CUDA Version은 권장 사항으로, 실제 CUDA 버전 및 설치 유무와는 상관 없다. + + +\section{CUDA 및 cuDNN} +\subsection{CUDA 설치} +기본적으로 알아야 할 사실은 CUDA가 라이브러리라는 것이다. 그렇기에 여러 CUDA 버전을 동시에 설치할 수 있다. 또, debian package로 설치하지만 않았다면 다음 명령어를 통해 쉽게 제거할 수 있음을 기억하자. +\begin{lstlisting} + $ sudo rm -rf /usr/local/cuda* +\end{lstlisting} + +CUDA 설치를 위해서는 gcc가 필요하다. +\begin{lstlisting} + $ sudo apt-get install build-essential +\end{lstlisting} +이후 CUDA 설치를 위해 먼저 Nvidia Developer 사이트\href{https://developer.nvidia.com/cuda-toolkit-archive}{(링크)}에 들어간다. + +여기서 현재 서버의 상황에 맞는 버튼들을 누른다. 참고로 CUDA 12 이후 버전들은 점진적으로 Compute Compatability가 3.x대인 GPU들에 대한 지원을 제한하고 있는데, 연구용 서버에 장착된 GPU인 Tesla K40c의 Compute Compatability는 3.5다. 따라서 11.2 이하 버전의 설치를 권장한다. +\begin{figure}[H] + \begin{center} + \includegraphics[width=9cm]{cuda1} + \caption{CUDA 설치} + \end{center} +\end{figure} +이후 지시사항에 따라 명령어를 입력하면 된다. +\begin{figure}[H] + \begin{center} + \includegraphics[width=12cm]{cuda2} + \caption{CUDA 설치} + \end{center} +\end{figure} + + +중간에 설치 프롬프트가 뜨는데, 스페이스 키를 눌러 드라이버는 설치에서 제외한다. 이후 설치를 진행하면 된다. +\begin{figure}[H] + \begin{center} + \includegraphics[width=5cm]{cuda3} + \caption{CUDA 설치 - Drivers} + \end{center} +\end{figure} + +\subsection{환경변수 설정} +먼저 다음 명령어를 통해 CUDA를 환경변수에 등록한다. 11.2 자리에 다른 버전을 넣을 수도 있다. +\begin{lstlisting} + $ sudo sh -c "echo 'export PATH=$PATH:/usr/local/cuda-11.2/bin' >> /etc/profile" + + $ sudo sh -c "echo 'export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/cuda-11.2/lib64' >> /etc/profile" + + $ sudo sh -c "echo 'export CUDADIR=/usr/local/cuda-11.2' >> /etc/profile" + + $ source /etc/profile +\end{lstlisting} +이후 다음 명령어를 입력했을 때 CUDA 버전이 올바르게 출력된다면 설치 성공이다. +\begin{lstlisting} + $ nvcc -V +\end{lstlisting} +\subsection{cuDNN 설치} +Nvidia Developer 사이트\href{https://developer.nvidia.com/cudnn}{(링크)}에 들어간다. +로그인 또는 회원가입 후 약관 및 서약에 동의하면 링크가 생긴다. 여기서 Archived cuDNN Releases에 들어가 cuDNN v8.1.1 (Feburary 26th, 2021), for CUDA 11.0,11.1 and 11.2를 다운로드 받는다. +\begin{figure}[H] + \begin{center} + \includegraphics[width=12cm]{cudnn1} + \caption{cuDNN 설치} + \end{center} +\end{figure} + +이 파일은 서버에서는 다운받을 수 없다. 따라서 sftp 등의 방법으로 서버에 업로드해야 한다. 이후 다음 명령어를 차례로 입력한다. +\begin{lstlisting} + $ tar xvzf cudnn-11.2-linux-x64-v8.1.1*.tgz + + $ sudo cp cuda/include/cudnn* /usr/local/cuda/include + + $ sudo cp cuda/lib64/libcudnn* /usr/local/cuda/lib64 + + $ sudo chmod a+r /usr/local/cuda/include/cudnn.h /usr/local/cuda/lib64/libcudnn* + + + $ sudo ln -sf /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8.1.1 /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_train.so.8 + + $ sudo ln -sf /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8.1.1 /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_infer.so.8 + + $ sudo ln -sf /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8.1.1 /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_train.so.8 + + $ sudo ln -sf /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8.1.1 /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_adv_infer.so.8 + + $ sudo ln -sf /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8.1.1 /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_ops_train.so.8 + + $ sudo ln -sf /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8.1.1 /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn_cnn_infer.so.8 + + $ sudo ln -sf /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn.so.8.1.1 /usr/local/cuda-11.2/targets/x86_64-linux/lib/libcudnn.so.8 + + $ sudo ldconfig +\end{lstlisting} +이후 다음 명령어를 입력했을 때 버전이 정확하게 출력되면 된다. +\begin{lstlisting} + $ ldconfig -N -v $(sed 's/:/ /' <<< $LD_LIBRARY_PATH) 2>/dev/null | grep libcudnn +\end{lstlisting} +\section{Storage} +신서버를 구축하면서 15T짜리 디스크 레이드를 구성해야 되는 일이 생겼다. 이와 관련된 얘기들을 적을 예정. LVM groups가 무엇인가?, mount는 무엇인가?, 레이드는 무엇인가? diff --git a/GSHS_SERVER_INTRO_2/chap6/images/cuda1.png b/GSHS_SERVER_INTRO_2/chap6/images/cuda1.png new file mode 100644 index 0000000..6e39b1f Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap6/images/cuda1.png differ diff --git a/GSHS_SERVER_INTRO_2/chap6/images/cuda2.png b/GSHS_SERVER_INTRO_2/chap6/images/cuda2.png new file mode 100644 index 0000000..69cc179 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap6/images/cuda2.png differ diff --git a/GSHS_SERVER_INTRO_2/chap6/images/cuda3.png b/GSHS_SERVER_INTRO_2/chap6/images/cuda3.png new file mode 100644 index 0000000..5345600 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap6/images/cuda3.png differ diff --git a/GSHS_SERVER_INTRO_2/chap6/images/cudnn1.png b/GSHS_SERVER_INTRO_2/chap6/images/cudnn1.png new file mode 100644 index 0000000..26f03df Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap6/images/cudnn1.png differ diff --git a/GSHS_SERVER_INTRO_2/chap6/images/nvidia-smi.png b/GSHS_SERVER_INTRO_2/chap6/images/nvidia-smi.png new file mode 100644 index 0000000..7f283f3 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/chap6/images/nvidia-smi.png differ diff --git a/GSHS_SERVER_INTRO_2/frontmatter/abbreviations.tex b/GSHS_SERVER_INTRO_2/frontmatter/abbreviations.tex new file mode 100644 index 0000000..1bb4c76 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/frontmatter/abbreviations.tex @@ -0,0 +1,21 @@ +%% will only print what is used ... useful. +%% also acronyms are clickable, which is awesome + +\chapter*{List of Abbreviations} +\markboth{List of Abbreviations}{List of Abbreviations} + +\begin{acronym}\itemsep-20pt\parsep-20pt %% if you remove these spacing params this list becomes huge! +\acro{GSHS}{Gyeonggi Science High School} +\acro{GPU}{Graphic Processing Unit} +\acro{CPU}{Central Processing Unit} +\acro{GUI}{Graphic User Interface} +\acro{CLI}{Command Line Interface} +\acro{CUDA}{Compute Unified Device Architecture} +\acro{CP}{Compute Compatibility} +\acro{UA}{Used Acronym} +\acro{lox}[\ensuremath{LOX}]{Liquid Oxygen} +\acro{lh2}[\ensuremath{LH_2}]{Liquid Hydrogen} +\acro{IC}{Integrated Circuit} +\acro{BUT}{Block Under Test} +\acrodefplural{BUT}{Blocks Under Test} +\end{acronym} diff --git a/GSHS_SERVER_INTRO_2/frontmatter/abstract.tex b/GSHS_SERVER_INTRO_2/frontmatter/abstract.tex new file mode 100644 index 0000000..5beaee9 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/frontmatter/abstract.tex @@ -0,0 +1,10 @@ +\begin{abstract} +4차 산업혁명이 시작되고, 수많은 데이터가 정보화되어 처리되고 있다. 또, 인공지능과 같은 첨단 프로그램들은 많은 양의 데이터를 빠르게 처리해야 하기에 고성능 컴퓨터를 필요로 한다. 본 설명서는 리눅스 서버를 처음 접하는 정보과학 연구자들을 위해 작성되었다. 특히, 리눅스 서버 이용을 위해 필수적인 ssh, sftp 등의 사용 방법, 공용 서버 사용 규칙, 인공지능 연구를 위해 필수적인 Python, CUDA, TensorFlow, Torch, venv 등의 사용 방법을 다뤘다. 또, 함께 쓰는 공동 연구 환경에서 어떻게 자신의 연구를 해나가야 하는지 방향을 제시했다.~\\ + + +정보과학 연구의 세계는 깊고도 넓기에 연구의 의미와 가치를 잘 이애하고 자신에게 맞는 연구를 하는 것이 중요하다. 연구 방법을 익히고, 다양한 사람들의 연구를 경험해봐야 한다. 저자는 본 설명서를 통해, 서버를 이용한 정보과학 연구에 꼭 필요한 것을들 가려 뽑아 연구의 모든 것을 간명하게 전달하려고 노력했다. 본 설명서가 귀하의 미래를 밝히는 길잡이가 되기를 기원한다.~\\\\ +\end{abstract} +\begin{dedication2} +{\large{37기 정보과 일동}}\\[5mm] +2021년 5월 17일, 송죽골에서. +\end{dedication2} \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/frontmatter/acknowledgements.tex b/GSHS_SERVER_INTRO_2/frontmatter/acknowledgements.tex new file mode 100644 index 0000000..5939f92 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/frontmatter/acknowledgements.tex @@ -0,0 +1,32 @@ +\begin{acknowledgements} +\textbf{ +서버의 효율적인 이용을 위해 아래와 같은 규칙들이 있다.} +~\\ + + +\begin{itemize} + \item 서버는 연구 및 공적 목적으로만 사용 가능하다. + \item 서버는 함께 사용한다. + \item 계정명은 반드시 gs00000 (학번)으로 한다. + \item GPU는 송죽학사를 통해 신청한 자만이 사용할 수 있다. + \item GPU를 신청하지 않은 상태에서 사용할 시 프로세스가 강제 종료될 수 있다. + \item 과도한 CPU/GPU/RAM 사용으로 서버에 과부하를 유발하는 프로세스는 강제로 종료될 수 있으며 사용자는 경고를 받을 수 있다. 경고 3회 누적시 GPU 신청이 제한될 수 있다. + \item 관리자 권한이 없는 계정은 졸업 시 삭제를 원칙으로 한다. + \item 관리자 계정은 Devops 운영진만이 소유한다. + \item 허가 없이 reboot 명령어를 사용해서는 안 된다. + \item 모든 사용자는 자신의 가상환경을 구성해 사용해야 한다. +\end{itemize}~\\ + + + +\textbf{ +아래는 유용한 링크들이다.} +~\\ +\begin{itemize} + \item 경기과학고등학교 연구용 서버 사용 및 관리 설명서 (\href{https://www.overleaf.com/project/60a1d2365a26a733e5a9b16f}{Overleaf 주소}) + \item 경기과학고등학교 리눅스 사용자 협회 (\href{https://github.com/gshslinuxintro}{Github 주소}) + \item 경기과학고등학교 리눅스 사용자 협회 오픈채팅방 (\href{https://open.kakao.com/o/go6dFeee}{카카오톡 주소}) + \item 현재 연구용 메인서버 IP (\href{http://115.23.235.150}{서버 주소}) + \item 현재 테스트용 서버 IP (\href{http://115.23.235.135}{서버 주소}) +\end{itemize}~\\ +\end{acknowledgements} \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/frontmatter/copyright.tex b/GSHS_SERVER_INTRO_2/frontmatter/copyright.tex new file mode 100644 index 0000000..97fdd38 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/frontmatter/copyright.tex @@ -0,0 +1,2 @@ +\begin{copyrightenv} +\end{copyrightenv} diff --git a/GSHS_SERVER_INTRO_2/frontmatter/dedication.tex b/GSHS_SERVER_INTRO_2/frontmatter/dedication.tex new file mode 100644 index 0000000..eef00e7 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/frontmatter/dedication.tex @@ -0,0 +1,5 @@ +\begin{dedication} +{\large{To The Researchers of Gyeonggi Science High School}}\\[5mm] +Calculation is the best way to prove. +\end{dedication} + diff --git a/GSHS_SERVER_INTRO_2/frontmatter/originality.tex b/GSHS_SERVER_INTRO_2/frontmatter/originality.tex new file mode 100644 index 0000000..6173e24 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/frontmatter/originality.tex @@ -0,0 +1,2 @@ +\begin{originality} +\end{originality} \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/gs-plainnat.bst b/GSHS_SERVER_INTRO_2/gs-plainnat.bst new file mode 100644 index 0000000..36f41e7 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/gs-plainnat.bst @@ -0,0 +1,1436 @@ +%% File: `plainnat.bst' +%% A modification of `plain.bst' for use with natbib package +%% +%% Copyright 1993-2007 Patrick W Daly +%% Max-Planck-Institut f\"ur Sonnensystemforschung +%% Max-Planck-Str. 2 +%% D-37191 Katlenburg-Lindau +%% Germany +%% E-mail: daly@mps.mpg.de +%% +%% This program can be redistributed and/or modified under the terms +%% of the LaTeX Project Public License Distributed from CTAN +%% archives in directory macros/latex/base/lppl.txt; either +%% version 1 of the License, or any later version. +%% + % Version and source file information: + % \ProvidesFile{natbst.mbs}[2007/11/26 1.93 (PWD)] + % + % BibTeX `plainnat' family + % version 0.99b for BibTeX versions 0.99a or later, + % for LaTeX versions 2.09 and 2e. + % + % For use with the `natbib.sty' package; emulates the corresponding + % member of the `plain' family, but with author-year citations. + % + % With version 6.0 of `natbib.sty', it may also be used for numerical + % citations, while retaining the commands \citeauthor, \citefullauthor, + % and \citeyear to print the corresponding information. + % + % For version 7.0 of `natbib.sty', the KEY field replaces missing + % authors/editors, and the date is left blank in \bibitem. + % + % Includes field EID for the sequence/citation number of electronic journals + % which is used instead of page numbers. + % + % Includes fields ISBN and ISSN. + % + % Includes field URL for Internet addresses. + % + % Includes field DOI for Digital Object Idenfifiers. + % + % Works best with the url.sty package of Donald Arseneau. + % + % Works with identical authors and year are further sorted by + % citation key, to preserve any natural sequence. + % +ENTRY + { address + author + booktitle + chapter + doi + eid + edition + editor + howpublished + institution + isbn + issn + journal + key + month + note + number + organization + pages + publisher + school + series + title + type + url + volume + year + } + {} + { label extra.label sort.label short.list } + +INTEGERS { output.state before.all mid.sentence after.sentence after.block } + +FUNCTION {init.state.consts} +{ #0 'before.all := + #1 'mid.sentence := + #2 'after.sentence := + #3 'after.block := +} + +STRINGS { s t } + +FUNCTION {output.nonnull} +{ 's := + output.state mid.sentence = + { ", " * write$ } + { output.state after.block = + { add.period$ write$ + newline$ + "\newblock " write$ + } + { output.state before.all = + 'write$ + { add.period$ " " * write$ } + if$ + } + if$ + mid.sentence 'output.state := + } + if$ + s +} + +FUNCTION {output} +{ duplicate$ empty$ + 'pop$ + 'output.nonnull + if$ +} + +FUNCTION {output.check} +{ 't := + duplicate$ empty$ + { pop$ "empty " t * " in " * cite$ * warning$ } + 'output.nonnull + if$ +} + +FUNCTION {fin.entry} +{ add.period$ + write$ + newline$ +} + +FUNCTION {new.block} +{ output.state before.all = + 'skip$ + { after.block 'output.state := } + if$ +} + +FUNCTION {new.sentence} +{ output.state after.block = + 'skip$ + { output.state before.all = + 'skip$ + { after.sentence 'output.state := } + if$ + } + if$ +} + +FUNCTION {not} +{ { #0 } + { #1 } + if$ +} + +FUNCTION {and} +{ 'skip$ + { pop$ #0 } + if$ +} + +FUNCTION {or} +{ { pop$ #1 } + 'skip$ + if$ +} + +FUNCTION {new.block.checka} +{ empty$ + 'skip$ + 'new.block + if$ +} + +FUNCTION {new.block.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.block + if$ +} + +FUNCTION {new.sentence.checka} +{ empty$ + 'skip$ + 'new.sentence + if$ +} + +FUNCTION {new.sentence.checkb} +{ empty$ + swap$ empty$ + and + 'skip$ + 'new.sentence + if$ +} + +FUNCTION {field.or.null} +{ duplicate$ empty$ + { pop$ "" } + 'skip$ + if$ +} + +FUNCTION {emphasize} +{ duplicate$ empty$ + { pop$ "" } + { "\emph{" swap$ * "}" * } + if$ +} + +INTEGERS { nameptr namesleft numnames } + +FUNCTION {format.names} +{ 's := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr "{ff~}{vv~}{ll}{, jj}" format.name$ 't := + nameptr #1 > + { namesleft #1 > + { ", " * t * } + { numnames #2 > + { "," * } + 'skip$ + if$ + t "others" = + { " et~al." * } + { " and " * t * } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {format.key} +{ empty$ + { key field.or.null } + { "" } + if$ +} + +FUNCTION {format.authors} +{ author empty$ + { "" } + { author format.names } + if$ +} + +FUNCTION {format.editors} +{ editor empty$ + { "" } + { editor format.names + editor num.names$ #1 > + { ", editors" * } + { ", editor" * } + if$ + } + if$ +} + +FUNCTION {format.isbn} +{ isbn empty$ + { "" } + { new.block "ISBN " isbn * } + if$ +} + +FUNCTION {format.issn} +{ issn empty$ + { "" } + { new.block "ISSN " issn * } + if$ +} + +FUNCTION {format.url} +{ url empty$ + { "" } + { new.block "URL \url{" url * "}" * } + if$ +} + +FUNCTION {format.doi} +{ doi empty$ + { "" } + { new.block "\doi{" doi * "}" * } + if$ +} + +FUNCTION {format.title} +{ title empty$ + { "" } + { title "t" change.case$ } + if$ +} + +FUNCTION {format.full.names} +{'s := + #1 'nameptr := + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { s nameptr + "{vv~}{ll}" format.name$ 't := + nameptr #1 > + { + namesleft #1 > + { ", " * t * } + { + numnames #2 > + { "," * } + 'skip$ + if$ + t "others" = + { " et~al." * } + { " and " * t * } + if$ + } + if$ + } + 't + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {author.editor.full} +{ author empty$ + { editor empty$ + { "" } + { editor format.full.names } + if$ + } + { author format.full.names } + if$ +} + +FUNCTION {author.full} +{ author empty$ + { "" } + { author format.full.names } + if$ +} + +FUNCTION {editor.full} +{ editor empty$ + { "" } + { editor format.full.names } + if$ +} + +FUNCTION {make.full.names} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.full + { type$ "proceedings" = + 'editor.full + 'author.full + if$ + } + if$ +} + +FUNCTION {output.bibitem} +{ newline$ + "\bibitem[" write$ + label write$ + ")" make.full.names duplicate$ short.list = + { pop$ } + { * } + if$ + "]{" * write$ + cite$ write$ + "}" write$ + newline$ + "" + before.all 'output.state := +} + +FUNCTION {n.dashify} +{ 't := + "" + { t empty$ not } + { t #1 #1 substring$ "-" = + { t #1 #2 substring$ "--" = not + { "--" * + t #2 global.max$ substring$ 't := + } + { { t #1 #1 substring$ "-" = } + { "-" * + t #2 global.max$ substring$ 't := + } + while$ + } + if$ + } + { t #1 #1 substring$ * + t #2 global.max$ substring$ 't := + } + if$ + } + while$ +} + +FUNCTION {format.date} +{ year duplicate$ empty$ + { "empty year in " cite$ * warning$ + pop$ "" } + 'skip$ + if$ + month empty$ + 'skip$ + { month + " " * swap$ * + } + if$ + extra.label * +} + +FUNCTION {format.btitle} +{ title emphasize +} + +FUNCTION {tie.or.space.connect} +{ duplicate$ text.length$ #3 < + { "~" } + { " " } + if$ + swap$ * * +} + +FUNCTION {either.or.check} +{ empty$ + 'pop$ + { "can't use both " swap$ * " fields in " * cite$ * warning$ } + if$ +} + +FUNCTION {format.bvolume} +{ volume empty$ + { "" } + { "volume" volume tie.or.space.connect + series empty$ + 'skip$ + { " of " * series emphasize * } + if$ + "volume and number" number either.or.check + } + if$ +} + +FUNCTION {format.number.series} +{ volume empty$ + { number empty$ + { series field.or.null } + { output.state mid.sentence = + { "number" } + { "Number" } + if$ + number tie.or.space.connect + series empty$ + { "there's a number but no series in " cite$ * warning$ } + { " in " * series * } + if$ + } + if$ + } + { "" } + if$ +} + +FUNCTION {format.edition} +{ edition empty$ + { "" } + { output.state mid.sentence = + { edition "l" change.case$ " edition" * } + { edition "t" change.case$ " edition" * } + if$ + } + if$ +} + +INTEGERS { multiresult } + +FUNCTION {multi.page.check} +{ 't := + #0 'multiresult := + { multiresult not + t empty$ not + and + } + { t #1 #1 substring$ + duplicate$ "-" = + swap$ duplicate$ "," = + swap$ "+" = + or or + { #1 'multiresult := } + { t #2 global.max$ substring$ 't := } + if$ + } + while$ + multiresult +} + +FUNCTION {format.pages} +{ pages empty$ + { "" } + { pages multi.page.check + { "pages" pages n.dashify tie.or.space.connect } + { "page" pages tie.or.space.connect } + if$ + } + if$ +} + +FUNCTION {format.eid} +{ eid empty$ + { "" } + { "art." eid tie.or.space.connect } + if$ +} + +FUNCTION {format.vol.num.pages} +{ volume field.or.null + number empty$ + 'skip$ + { "\penalty0 (" number * ")" * * + volume empty$ + { "there's a number but no volume in " cite$ * warning$ } + 'skip$ + if$ + } + if$ + pages empty$ + 'skip$ + { duplicate$ empty$ + { pop$ format.pages } + { ":\penalty0 " * pages n.dashify * } + if$ + } + if$ +} + +FUNCTION {format.vol.num.eid} +{ volume field.or.null + number empty$ + 'skip$ + { "\penalty0 (" number * ")" * * + volume empty$ + { "there's a number but no volume in " cite$ * warning$ } + 'skip$ + if$ + } + if$ + eid empty$ + 'skip$ + { duplicate$ empty$ + { pop$ format.eid } + { ":\penalty0 " * eid * } + if$ + } + if$ +} + +FUNCTION {format.chapter.pages} +{ chapter empty$ + 'format.pages + { type empty$ + { "chapter" } + { type "l" change.case$ } + if$ + chapter tie.or.space.connect + pages empty$ + 'skip$ + { ", " * format.pages * } + if$ + } + if$ +} + +FUNCTION {format.in.ed.booktitle} +{ booktitle empty$ + { "" } + { editor empty$ + { "In " booktitle emphasize * } + { "In " format.editors * ", " * booktitle emphasize * } + if$ + } + if$ +} + +FUNCTION {empty.misc.check} +{ author empty$ title empty$ howpublished empty$ + month empty$ year empty$ note empty$ + and and and and and + key empty$ not and + { "all relevant fields are empty in " cite$ * warning$ } + 'skip$ + if$ +} + +FUNCTION {format.thesis.type} +{ type empty$ + 'skip$ + { pop$ + type "t" change.case$ + } + if$ +} + +FUNCTION {format.tr.number} +{ type empty$ + { "Technical Report" } + 'type + if$ + number empty$ + { "t" change.case$ } + { number tie.or.space.connect } + if$ +} + +FUNCTION {format.article.crossref} +{ key empty$ + { journal empty$ + { "need key or journal for " cite$ * " to crossref " * crossref * + warning$ + "" + } + { "In \emph{" journal * "}" * } + if$ + } + { "In " } + if$ + " \citet{" * crossref * "}" * +} + +FUNCTION {format.book.crossref} +{ volume empty$ + { "empty volume in " cite$ * "'s crossref of " * crossref * warning$ + "In " + } + { "Volume" volume tie.or.space.connect + " of " * + } + if$ + editor empty$ + editor field.or.null author field.or.null = + or + { key empty$ + { series empty$ + { "need editor, key, or series for " cite$ * " to crossref " * + crossref * warning$ + "" * + } + { "\emph{" * series * "}" * } + if$ + } + 'skip$ + if$ + } + 'skip$ + if$ + " \citet{" * crossref * "}" * +} + +FUNCTION {format.incoll.inproc.crossref} +{ editor empty$ + editor field.or.null author field.or.null = + or + { key empty$ + { booktitle empty$ + { "need editor, key, or booktitle for " cite$ * " to crossref " * + crossref * warning$ + "" + } + { "In \emph{" booktitle * "}" * } + if$ + } + { "In " } + if$ + } + { "In " } + if$ + " \citet{" * crossref * "}" * +} + +FUNCTION {article} +{ output.bibitem + format.authors "author" output.check + author format.key output + new.block + format.title "title" output.check + new.block + crossref missing$ + { journal emphasize "journal" output.check + eid empty$ + { format.vol.num.pages output } + { format.vol.num.eid output } + if$ + format.date "year" output.check + } + { format.article.crossref output.nonnull + eid empty$ + { format.pages output } + { format.eid output } + if$ + } + if$ + format.issn output + format.doi output +%% format.url output %% no url + new.block + note output + fin.entry +} + +FUNCTION {book} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + editor format.key output + } + { format.authors output.nonnull + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + new.block + format.btitle "title" output.check + crossref missing$ + { format.bvolume output + new.block + format.number.series output + new.sentence + publisher "publisher" output.check + address output + } + { new.block + format.book.crossref output.nonnull + } + if$ + format.edition output + format.date "year" output.check + format.isbn output + format.doi output + format.url output + new.block + note output + fin.entry +} + +FUNCTION {booklet} +{ output.bibitem + format.authors output + author format.key output + new.block + format.title "title" output.check + howpublished address new.block.checkb + howpublished output + address output + format.date output + format.isbn output + format.doi output + format.url output + new.block + note output + fin.entry +} + +FUNCTION {inbook} +{ output.bibitem + author empty$ + { format.editors "author and editor" output.check + editor format.key output + } + { format.authors output.nonnull + crossref missing$ + { "author and editor" editor either.or.check } + 'skip$ + if$ + } + if$ + new.block + format.btitle "title" output.check + crossref missing$ + { format.bvolume output + format.chapter.pages "chapter and pages" output.check + new.block + format.number.series output + new.sentence + publisher "publisher" output.check + address output + } + { format.chapter.pages "chapter and pages" output.check + new.block + format.book.crossref output.nonnull + } + if$ + format.edition output + format.date "year" output.check + format.isbn output + format.doi output + format.url output + new.block + note output + fin.entry +} + +FUNCTION {incollection} +{ output.bibitem + format.authors "author" output.check + author format.key output + new.block + format.title "title" output.check + new.block + crossref missing$ + { format.in.ed.booktitle "booktitle" output.check + format.bvolume output + format.number.series output + format.chapter.pages output + new.sentence + publisher "publisher" output.check + address output + format.edition output + format.date "year" output.check + } + { format.incoll.inproc.crossref output.nonnull + format.chapter.pages output + } + if$ + format.isbn output + format.doi output + format.url output + new.block + note output + fin.entry +} + +FUNCTION {inproceedings} +{ output.bibitem + format.authors "author" output.check + author format.key output + new.block + format.title "title" output.check + new.block + crossref missing$ + { format.in.ed.booktitle "booktitle" output.check + format.bvolume output + format.number.series output + format.pages output + address empty$ + { organization publisher new.sentence.checkb + organization output + publisher output + format.date "year" output.check + } + { address output.nonnull + format.date "year" output.check + new.sentence + organization output + publisher output + } + if$ + } + { format.incoll.inproc.crossref output.nonnull + format.pages output + } + if$ + format.isbn output + format.doi output + format.url output + new.block + note output + fin.entry +} + +FUNCTION {conference} { inproceedings } + +FUNCTION {manual} +{ output.bibitem + format.authors output + author format.key output + new.block + format.btitle "title" output.check + organization address new.block.checkb + organization output + address output + format.edition output + format.date output + format.url output + new.block + note output + fin.entry +} + +FUNCTION {mastersthesis} +{ output.bibitem + format.authors "author" output.check + author format.key output + new.block + format.title "title" output.check + new.block + "Master's thesis" format.thesis.type output.nonnull + school "school" output.check + address output + format.date "year" output.check + format.url output + new.block + note output + fin.entry +} + +FUNCTION {misc} +{ output.bibitem + format.authors output + author format.key output + title howpublished new.block.checkb + format.title output + howpublished new.block.checka + howpublished output + format.date output + format.issn output + format.url output + new.block + note output + fin.entry + empty.misc.check +} + +FUNCTION {phdthesis} +{ output.bibitem + format.authors "author" output.check + author format.key output + new.block + format.btitle "title" output.check + new.block + "PhD thesis" format.thesis.type output.nonnull + school "school" output.check + address output + format.date "year" output.check + format.url output + new.block + note output + fin.entry +} + +FUNCTION {proceedings} +{ output.bibitem + format.editors output + editor format.key output + new.block + format.btitle "title" output.check + format.bvolume output + format.number.series output + address output + format.date "year" output.check + new.sentence + organization output + publisher output + format.isbn output + format.doi output + format.url output + new.block + note output + fin.entry +} + +FUNCTION {techreport} +{ output.bibitem + format.authors "author" output.check + author format.key output + new.block + format.title "title" output.check + new.block + format.tr.number output.nonnull + institution "institution" output.check + address output + format.date "year" output.check + format.url output + new.block + note output + fin.entry +} + +FUNCTION {unpublished} +{ output.bibitem + format.authors "author" output.check + author format.key output + new.block + format.title "title" output.check + new.block + note "note" output.check + format.date output + format.url output + fin.entry +} + +FUNCTION {default.type} { misc } + + +MACRO {jan} {"January"} + +MACRO {feb} {"February"} + +MACRO {mar} {"March"} + +MACRO {apr} {"April"} + +MACRO {may} {"May"} + +MACRO {jun} {"June"} + +MACRO {jul} {"July"} + +MACRO {aug} {"August"} + +MACRO {sep} {"September"} + +MACRO {oct} {"October"} + +MACRO {nov} {"November"} + +MACRO {dec} {"December"} + + + +MACRO {acmcs} {"ACM Computing Surveys"} + +MACRO {acta} {"Acta Informatica"} + +MACRO {cacm} {"Communications of the ACM"} + +MACRO {ibmjrd} {"IBM Journal of Research and Development"} + +MACRO {ibmsj} {"IBM Systems Journal"} + +MACRO {ieeese} {"IEEE Transactions on Software Engineering"} + +MACRO {ieeetc} {"IEEE Transactions on Computers"} + +MACRO {ieeetcad} + {"IEEE Transactions on Computer-Aided Design of Integrated Circuits"} + +MACRO {ipl} {"Information Processing Letters"} + +MACRO {jacm} {"Journal of the ACM"} + +MACRO {jcss} {"Journal of Computer and System Sciences"} + +MACRO {scp} {"Science of Computer Programming"} + +MACRO {sicomp} {"SIAM Journal on Computing"} + +MACRO {tocs} {"ACM Transactions on Computer Systems"} + +MACRO {tods} {"ACM Transactions on Database Systems"} + +MACRO {tog} {"ACM Transactions on Graphics"} + +MACRO {toms} {"ACM Transactions on Mathematical Software"} + +MACRO {toois} {"ACM Transactions on Office Information Systems"} + +MACRO {toplas} {"ACM Transactions on Programming Languages and Systems"} + +MACRO {tcs} {"Theoretical Computer Science"} + + +READ + +FUNCTION {sortify} +{ purify$ + "l" change.case$ +} + +INTEGERS { len } + +FUNCTION {chop.word} +{ 's := + 'len := + s #1 len substring$ = + { s len #1 + global.max$ substring$ } + 's + if$ +} + +FUNCTION {format.lab.names} +{ 's := + s #1 "{vv~}{ll}" format.name$ + s num.names$ duplicate$ + #2 > + { pop$ " et~al." * } + { #2 < + 'skip$ + { s #2 "{ff }{vv }{ll}{ jj}" format.name$ "others" = + { " et~al." * } + { " and " * s #2 "{vv~}{ll}" format.name$ * } + if$ + } + if$ + } + if$ +} + +FUNCTION {author.key.label} +{ author empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {author.editor.key.label} +{ author empty$ + { editor empty$ + { key empty$ + { cite$ #1 #3 substring$ } + 'key + if$ + } + { editor format.lab.names } + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {author.key.organization.label} +{ author empty$ + { key empty$ + { organization empty$ + { cite$ #1 #3 substring$ } + { "The " #4 organization chop.word #3 text.prefix$ } + if$ + } + 'key + if$ + } + { author format.lab.names } + if$ +} + +FUNCTION {editor.key.organization.label} +{ editor empty$ + { key empty$ + { organization empty$ + { cite$ #1 #3 substring$ } + { "The " #4 organization chop.word #3 text.prefix$ } + if$ + } + 'key + if$ + } + { editor format.lab.names } + if$ +} + +FUNCTION {calc.short.authors} +{ type$ "book" = + type$ "inbook" = + or + 'author.editor.key.label + { type$ "proceedings" = + 'editor.key.organization.label + { type$ "manual" = + 'author.key.organization.label + 'author.key.label + if$ + } + if$ + } + if$ + 'short.list := +} + +FUNCTION {calc.label} +{ calc.short.authors + short.list + "(" + * + year duplicate$ empty$ + short.list key field.or.null = or + { pop$ "" } + 'skip$ + if$ + * + 'label := +} + +FUNCTION {sort.format.names} +{ 's := + #1 'nameptr := + "" + s num.names$ 'numnames := + numnames 'namesleft := + { namesleft #0 > } + { + s nameptr "{vv{ } }{ll{ }}{ ff{ }}{ jj{ }}" format.name$ 't := + nameptr #1 > + { + " " * + namesleft #1 = t "others" = and + { "zzzzz" * } + { numnames #2 > nameptr #2 = and + { "zz" * year field.or.null * " " * } + 'skip$ + if$ + t sortify * + } + if$ + } + { t sortify * } + if$ + nameptr #1 + 'nameptr := + namesleft #1 - 'namesleft := + } + while$ +} + +FUNCTION {sort.format.title} +{ 't := + "A " #2 + "An " #3 + "The " #4 t chop.word + chop.word + chop.word + sortify + #1 global.max$ substring$ +} + +FUNCTION {author.sort} +{ author empty$ + { key empty$ + { "to sort, need author or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { author sort.format.names } + if$ +} + +FUNCTION {author.editor.sort} +{ author empty$ + { editor empty$ + { key empty$ + { "to sort, need author, editor, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { editor sort.format.names } + if$ + } + { author sort.format.names } + if$ +} + +FUNCTION {author.organization.sort} +{ author empty$ + { organization empty$ + { key empty$ + { "to sort, need author, organization, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { "The " #4 organization chop.word sortify } + if$ + } + { author sort.format.names } + if$ +} + +FUNCTION {editor.organization.sort} +{ editor empty$ + { organization empty$ + { key empty$ + { "to sort, need editor, organization, or key in " cite$ * warning$ + "" + } + { key sortify } + if$ + } + { "The " #4 organization chop.word sortify } + if$ + } + { editor sort.format.names } + if$ +} + + +FUNCTION {presort} +{ calc.label + label sortify + " " + * + type$ "book" = + type$ "inbook" = + or + 'author.editor.sort + { type$ "proceedings" = + 'editor.organization.sort + { type$ "manual" = + 'author.organization.sort + 'author.sort + if$ + } + if$ + } + if$ + " " + * + year field.or.null sortify + * + " " + * + cite$ + * + #1 entry.max$ substring$ + 'sort.label := + sort.label * + #1 entry.max$ substring$ + 'sort.key$ := +} + +ITERATE {presort} + +SORT + +STRINGS { longest.label last.label next.extra } + +INTEGERS { longest.label.width last.extra.num number.label } + +FUNCTION {initialize.longest.label} +{ "" 'longest.label := + #0 int.to.chr$ 'last.label := + "" 'next.extra := + #0 'longest.label.width := + #0 'last.extra.num := + #0 'number.label := +} + +FUNCTION {forward.pass} +{ last.label label = + { last.extra.num #1 + 'last.extra.num := + last.extra.num int.to.chr$ 'extra.label := + } + { "a" chr.to.int$ 'last.extra.num := + "" 'extra.label := + label 'last.label := + } + if$ + number.label #1 + 'number.label := +} + +FUNCTION {reverse.pass} +{ next.extra "b" = + { "a" 'extra.label := } + 'skip$ + if$ + extra.label 'next.extra := + extra.label + duplicate$ empty$ + 'skip$ + { "{\natexlab{" swap$ * "}}" * } + if$ + 'extra.label := + label extra.label * 'label := +} + +EXECUTE {initialize.longest.label} + +ITERATE {forward.pass} + +REVERSE {reverse.pass} + +FUNCTION {bib.sort.order} +{ sort.label 'sort.key$ := +} + +ITERATE {bib.sort.order} + +SORT + +FUNCTION {begin.bib} +{ preamble$ empty$ + 'skip$ + { preamble$ write$ newline$ } + if$ + "\begin{thebibliography}{" number.label int.to.str$ * "}" * + write$ newline$ + "\providecommand{\natexlab}[1]{#1}" + write$ newline$ + "\providecommand{\url}[1]{\texttt{#1}}" + write$ newline$ + "\expandafter\ifx\csname urlstyle\endcsname\relax" + write$ newline$ + " \providecommand{\doi}[1]{doi: #1}\else" + write$ newline$ + " \providecommand{\doi}{doi: \begingroup \urlstyle{rm}\Url}\fi" + write$ newline$ +} + +EXECUTE {begin.bib} + +EXECUTE {init.state.consts} + +ITERATE {call.type$} + +FUNCTION {end.bib} +{ newline$ + "\end{thebibliography}" write$ newline$ +} + +EXECUTE {end.bib} diff --git a/GSHS_SERVER_INTRO_2/gshs-server-intro.cls b/GSHS_SERVER_INTRO_2/gshs-server-intro.cls new file mode 100644 index 0000000..7dcf3da --- /dev/null +++ b/GSHS_SERVER_INTRO_2/gshs-server-intro.cls @@ -0,0 +1,333 @@ + +\NeedsTeXFormat{LaTeX2e} +\ProvidesClass{gshs-server-intro}[] + + +\DeclareOption*{\PassOptionsToClass{\CurrentOption}{memoir}} +\ProcessOptions\relax +\LoadClass[11pt,a4paper,oneside]{memoir} + + +%% **************** Packages (Start) ********************* +\usepackage{cmap} + +\RequirePackage[utf8]{inputenc} % Required for inputting international characters +\RequirePackage[T1]{fontenc} % Output font encoding for international characters +\RequirePackage{mathpazo} % Use the Palatino font by default +\RequirePackage[english]{babel} % Load babel if you're unsure about the default language - mostly to be safe +\RequirePackage{xcolor} % For named colors +\RequirePackage{eso-pic} % required to place huge uni logo at the back - on title page +\RequirePackage[pdftex]{graphicx} % For pictures +\RequirePackage{amssymb} % At least, for black squares in bullet list +\RequirePackage[pdfusetitle, colorlinks = true, + linkcolor = blue, + urlcolor = blue, + citecolor = blue, + anchorcolor = blue]{hyperref} % For hyperreferences +\RequirePackage[authoryear,semicolon,sort]{natbib} % for (Ebejer, 2012; Alba, 2013) kind of references; removed 'square' option after viva examination comments + +\RequirePackage{longtable} % For very long tables +\RequirePackage{pdflscape} % For landscape tables (instead of portrait) +\usepackage[defaultsans]{lato} % Sans font to use +\usepackage[printonlyused,withpage]{acronym} +\usepackage{lipsum} % dummy text +\usepackage{float} % dummy text +\usepackage{listings} +\usepackage{etoolbox} + +\input glyphtounicode +\pdfgentounicode=1 +%% ****************** Packages (End) ********************* + + + +\definecolor{OxfordBlue}{rgb}{0,0.106,0.329} % Color +\definecolor{GsBlue}{rgb}{0,0.106,0.329} % + +% Setup logo +\def\logo{{\includegraphics[width=30mm]{logo}}} + +% The year and term the thesis is submitted +\def\degreedate#1{\gdef\@degreedate{#1}} +% The full (unabbreviated) name of the degree +\def\degree#1{\gdef\@degree{#1}} +% The name of your supervisor +\def\supervisor#1{\gdef\@supervisor{#1}} +% The name of your co-supervisor +\def\cosupervisor#1{\gdef\@cosupervisor{#1}} +% The name of your department (e.g. Computer Science, Statistics, Biochemistry, AI) +\def\department#1{\gdef\@department{#1}} +% The name of your faculty +\def\faculty#1{\gdef\@faculty{#1}} +% The name of your faculty +\def\subjectcode#1{\gdef\@subjectcode{#1}} +% The tagline +\def\tagline#1{\gdef\@tagline{#1}} +% The document type, e.g. a dissertation or a thesis +\def\doctype#1{\gdef\@doctype{#1}} +\def\authorID#1{\gdef\@authorID{#1}} + +%% ************* Definitions (End) ****************** + + +%% ************ Document Options (Start) ***************** + +\OnehalfSpacing % One and a half line spacing + +\setlength{\headsep}{1.5cm} % Add space between the header and text + +\nouppercaseheads % Don't convert titles to Uppercase +\makepagestyle{gspage} + + % This travesty is due to a bug in memoir, see https://tex.stackexchange.com/questions/468922/oneside-in-memoir-causing-header-trouble +\makeevenhead{gspage}{\color{gray}\sffamily\small\leftmark}{}{\color{gray}\sffamily\small\rightmark} +\makeoddhead{gspage}{\color{gray}\sffamily\small\leftmark}{}{\color{gray}\sffamily\small\rightmark} +\makeevenfoot{gspage}{}{\thepage}{} % UM pagestyle, put page at bottom +\makeoddfoot{gspage}{}{\thepage}{} +\makeheadfootruleprefix{gspage}{\color{gray}}{} +\makeheadrule{gspage}{\textwidth}{\normalrulethickness} +\makepsmarks{gspage}{% + \createmark{chapter}{left}{shownumber}{\@chapapp\ }{. \ } + \createmark{section}{right}{shownumber}{}{. \ } +} + + +\setlrmarginsandblock{2.5cm}{2.5cm}{*} % Set the page margins (for one and two sided docs) +\checkandfixthelayout % Put layout into effect + +\graphicspath{{./images/}} % Where to look for images (paths) ... +\DeclareGraphicsExtensions{.pdf,.jpeg,.png,.jpg} % Graphics extensions to load + +\chapterstyle{ell} % how to draw the different chapter headings + +\renewcommand*{\chapnumfont}{\sffamily\HUGE\bfseries\color{GsBlue}} % Chapter titles should be normal +\renewcommand*{\chaptitlefont}{\sffamily\HUGE\bfseries\color{GsBlue}} +\setsecheadstyle{\sffamily\LARGE\bfseries\color{GsBlue}}% Set \section style +\setsubsecheadstyle{\sffamily\Large\color{GsBlue}}% Set \subsection style +\setsubsubsecheadstyle{\sffamily\large\color{GsBlue}}% Set \subsection style +\setsecnumformat{\csname the#1\endcsname\enskip{\color{gray}\textbar}\enskip} + +\newsubfloat{figure} % declares a new subfloat element which allows to use \subbottom commands + +\renewcommand{\labelitemi}{\color{GsBlue}\scriptsize$\blacksquare$} + +\addto{\captionsenglish}{\renewcommand{\bibname}{References}} % because we are using babel we need this + % instead of just redefining bibname +\setlength{\bibitemsep}{\onelineskip} + +\newcommand{\ra}[1]{\renewcommand{\arraystretch}{#1}} % to set array stretch within tables + +\hypersetup{% + colorlinks=false, + linkcolor=GsBlue, + citecolor=GsBlue, + urlcolor=GsBlue, + filecolor=magenta, + pdfborder={0 0 0}, +} + +\feetbelowfloat % we want the footnotes below floats, not wierdly above + +\setsecnumdepth{subsubsection} % three level depth - chapter, section, subsection, subsubsection +\settocdepth{section} + +\renewcommand*{\cftappendixname}{Appendix\space} +\newcommand{\removelinebreaks}[1]{% + \begingroup\def\\{ }#1\endgroup} + +%% ************* Document Options (End) ****************** + + + + + + +%% *************** Environments (Start) ****************** + +%% *** Title Page (Start) *** +% background image +% taken from http://tug.org/pracjourn/2008-1/mori/mori.pdf +\newcommand\AlCentroPagina[1]{% +\AddToShipoutPicture*{\AtPageCenter{% +\makebox(0,-50){\includegraphics[width=0.5\paperwidth]{#1}}}}} + +% The front page +\renewcommand{\maketitle} +{\begingroup +\AlCentroPagina{logo_gray} +\parbox[b][0.95\textheight][t]{0.2\textwidth}{\raggedleft\logo} %% this 0.95 is important, otherwise page overflows in next page +\hspace*{2ex} +\textcolor{GsBlue}{\rule{2pt}{0.95\textheight}} +\hspace*{2ex} +\parbox[b][0.95\textheight][t]{0.8\textwidth}{ + \setlength{\parindent}{0pt} + %%\fontfamily{pag}\selectfont + \sffamily + {\Huge\bfseries{\begin{Spacing}{1.15}\textcolor{GsBlue}{\@title}\end{Spacing}}} + \vspace*{2ex} + {\large\textit{\@tagline}}\\[1in] + + {\LARGE\bfseries \textsc{\@author}} \\[1cm] + {\large 관리자 \@supervisor} + \@ifundefined{@cosupervisor}{\\[2ex]}{\\[2ex]\large 모둠장 \@cosupervisor}\\[1cm] + {\large \@department} \\[1ex] + {\large \@faculty} \\[1ex] + {\large Gyeonggi Science High School} \\ + \vfill + {\bfseries \@degreedate}\\[\baselineskip] + \parbox[t]{0.80\linewidth}{\footnotesize\textit{이 \@doctype\ 는 비영리적 목적에 한해 제한 없이 배포할 수 있습니다}.} +} +\thispagestyle{empty} +\if@openright\cleardoublepage\else\clearpage\fi +\endgroup} +%% *** Title Page (End) *** + +\newenvironment{acknowledgements} +{\renewcommand{\abstractname}{\Large\bfseries\sffamily\textcolor{GsBlue}{Acknowledgements}}\abstract} +{\endabstract\if@openright\cleardoublepage\else\clearpage\fi} + +\addto{\captionsenglish}{\renewcommand{\abstractname}{\Large\bfseries\sffamily\textcolor{GsBlue}{Preface}}} + +\newenvironment{dedication2} + { % we want a new page + \thispagestyle{empty}% no header and footer + \vspace*{\stretch{1}}% some space at the top + \itshape % the text is in italics + \raggedleft % flush to the right margin + \textcolor{GsBlue} + } + {\par % end the paragraph + \vspace{\stretch{3}} % space at bottom is three times that at the top + \if@openright\cleardoublepage\else\clearpage\fi + } + +\newenvironment{dedication} + {\clearpage % we want a new page + \thispagestyle{empty}% no header and footer + \vspace*{\stretch{1}}% some space at the top + \itshape % the text is in italics + \raggedleft % flush to the right margin + \textcolor{GsBlue} + } + {\par % end the paragraph + \vspace{\stretch{3}} % space at bottom is three times that at the top + \if@openright\cleardoublepage\else\clearpage\fi + } + + +%%\renewenvironment{abstract} +%%{\begin{alwayssingle} \thispagestyle{empty} +%%\begin{center} +%%\vspace*{0.5cm} +%%{\large \bfseries \textcolor{GsBlue}{Abstract}} +%%\end{center} +%%\singlespacing\enlargethispage{\baselineskip}} +%%{\end{alwayssingle}} + +%%{\cleardoublepage\newgeometry{right=1.3cm,top=2.4cm,bottom=2cm}\pagestyle{empty}\begin{center}\bfseries\large\textcolor{OxfordBlue}\abstractname\end{center}\normalsize\onehalfspacing\begin{quotation}}{\end{quotation}\restoregeometry\cleardoublepage} + + +% STATEMENT OF ORIGINALITY +% +% The originality environment puts a large, bold, centered +% "Statement of originality" label at the top of the page. The statement +% of originality itself appears in a quote environment, i.e. tabbed in at +% both sides, and on its own page. + +%\newenvironment{originality} +%{\clearpage +%\begin{center} +%\vspace*{1.5cm} +%{\Large\bfseries\sffamily\textcolor{GsBlue}{Statement of Originality}\par} +%\vspace*{1.5cm} +%{I, the undersigned, declare that this is my own work unless where otherwise acknowledged and referenced. \par} +%\vspace*{1.5cm} +%\renewcommand\arraystretch{1.5} +%\begin{tabular}{ll} +% {\bfseries Candidate} & \@author \\[15mm] +% {\bfseries Signed} & \makebox[1.5in]{\hrulefill} \\ +% {\bfseries Date} & \today \\ +%\end{tabular} +%\end{center} +%\if@openright\cleardoublepage\else\clearpage\fi} + +%% This was updated to the official Statement of Originality (Authentication form) + +\newenvironment{originality} +{\clearpage\thispagestyle{empty} +\begin{figure}[h] + \includegraphics[width=4in]{logo_full} +\end{figure} +\vspace{3mm} +{\noindent\Large\bfseries\sffamily\textcolor{GsBlue}{서버 사용 규칙}}\\ %% FIXME this will have to change if not postgraduate ... + +{\setlength{\parindent}{0em} + +\textbf{(a) 사용 목적}\\ + +\noindent 경기과학고등학교의 연구용 서버는 7층 서버실에 있다. 이 서버는 정보과학 연구 또는 이외 학교의 공적인 목적으로만 이용할 수 있으며 암호화폐 채굴, 게임 연산 보조 등 사적인 목적으로 이용할 수 없다.\\ + +\textbf{(b) 사용 신청}\\ + +연구용 서버의 GPU를 사용하지 않는 경우 별도의 사용 신청이 필요하지 않다. 서버의 GPU를 사용하고자 하는 학생은 반드시 송죽학사를 통해 미리 신청해야 한다. 신청하고 승인받은 이후 사용하고자 할 때는 반드시 정해진 GPU를 정해진 기한 동안만 사용해야 한다.\\ + +\textbf{(c) 관리}\\ + +연구용 서버는 GM 봉사모둠이 관리한다. 또한, GM 봉사모둠원만이 관리자 계정을 가질 수 있으며 root 계정의 비밀번호는 각 기수의 관리자가 관리한다. \\ + +\textbf{(d) 현재 서버 정보}}\\ + +%%\newcolumntype{L}{>{\arraybackslash}m{2.5in}} +\bgroup +\def\arraystretch{1.2}% +\begin{tabular}{|l|l} +{\bfseries OS} & {Ubuntu 20.04.2 LTS} \\ +{\bfseries CPU} & {Intel(R) Xeon(R) CPU E5-2680 v2 @ 2.80GHz $\times$ 40} \\ +{\bfseries GPU} & {Nvidia Tesla K40c $\times$ 6} \\ +{\bfseries IP} & {115.23.235.135} \\ +{\bfseries SSH Port} & {-----} \\ +{\bfseries Location} & {SRC 720} \\ +{\bfseries Admin} & {20059 송혁중} \\ +{\bfseries As of} & {2021.5.11.} \\ +\end{tabular}\\ +\begin{tabular}{|l|l} +{\bfseries OS} & {Ubuntu 20.04.2 LTS} \\ +{\bfseries CPU} & {Intel Xeon Silver 44310 Processor (2.1GHz 12Core) $\times$ 2} \\ +{\bfseries GPU} & {Nvidia Qudro RTX A6000 48GB $\times$ 10} \\ +{\bfseries IP} & {115.23.235.150} \\ +{\bfseries SSH Port} & {-----} \\ +{\bfseries Location} & {SRC 720} \\ +{\bfseries Admin} & {20059 송혁중} \\ +{\bfseries As of} & {2022.5.2.} \\ +\end{tabular}\\ +이외 egpu 및 데스크탑 사용은 정보과 선생님께 문의 +\egroup +\if@openright\cleardoublepage\else\clearpage\fi} + + +% COPYRIGHT +% +% The originality environment puts a large, bold, centered +% "Statement of originality" label at the top of the page. The statement +% of originality itself appears in a quote environment, i.e. tabbed in at +% both sides, and on its own page. + +\newenvironment{copyrightenv} +{\clearpage + ~\vfill + \thispagestyle{empty} + + \begin{figure}[h] + \includegraphics[width=4in]{logo_full} + \end{figure} + + \noindent Copyright \textcopyright\the\year\ Gyeonggi Science High School\\ % Copyright notice + + \noindent \textsc{https://www.gs.hs.kr/}\\ % URL + + \noindent \textit{Compiled at \today} % Printing/edition date + + %% \noindent Licensed under the Creative Commons Attribution-NonCommercial 3.0 Unported License (the ``License''). You may not use this file except in compliance with the License. You may obtain a copy of the License at \url{http://creativecommons.org/licenses/by-nc/3.0}. Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an \textsc{``as is'' basis, without warranties or conditions of any kind}, either express or implied. See the License for the specific language governing permissions and limitations under the License.\\ % License information + \if@openright\cleardoublepage\else\clearpage\fi} + +%% **************** Environments (End) ******************* \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/gshs-server-intro_main.tex b/GSHS_SERVER_INTRO_2/gshs-server-intro_main.tex new file mode 100644 index 0000000..1371699 --- /dev/null +++ b/GSHS_SERVER_INTRO_2/gshs-server-intro_main.tex @@ -0,0 +1,156 @@ +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% +%% +%% gshs-server-intro by devops members +%% 경기과학고등학교 리눅스 사용자협회 +%% +%% total supervisor : toadsong8451 (20059 송혁중) +%% gs20059@gs.hs.kr +%% +%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% + + +\RequirePackage[l2tabu, orthodox]{nag} % tells you of any bad LaTeX usage + % must be first thing in class (with the exception of comments) + +%% There is one option you should define; oneside or twoside +%% Use twoside for your viva docs (examiners hate long docs they need to carry around) +%% and oneside for the final thing you submit to the library. Note that margins will +%% change accordingly + +\documentclass[twoside]{gshs-server-intro} % custom gshs + + +%% **************** (Your) Packages (Start) ****************** + +% \listfiles % uncomment this to know which packages you are using + % the list of packages will be in the bottom of the .log file + +%% Note that packges may already be loaded from the um (and memoir) classes. +%% Do not add your packages to the template, but rather add them here. + +\usepackage{blindtext} %% for some dummy text, remove in your writeup +\usepackage{kotex} +\usepackage{indentfirst} + + +%% ***************** (Your) Packages (End) ******************* + + +%% **************** (Your) Data (Start) ****************** + +\title{경기과학고등학교 연구용 서버\\사용 및 관리 설명서} % use \\ here otherwise you get a justified title + % note capitalization of the title (only common + % words in lower case) +\tagline{version 2.01} % tag line +\author{리눅스 사용자 협회} % your name +\authorID{GSHS} % your University Identifier +\supervisor{20059 송혁중} % your supervisor(s) name - no . in Dr + % your cosupervisor(s) name - no . in Dr ** OPTIONAL ** + % simply comment out the above line if absent +\department{경기과학고등학교} % your department (e.g. Artifical Intelligence) +\faculty{정보과학과} % your faculty (e.g. ICT) +\degree{M.Sc.\ in Your Degree} % the degree you are reading + % note the \ after the dot, so not to consider it a fullstop +\doctype{설명서} % the type of document (fyp, dissertation, thesis) +\degreedate{2022. 5.} % when did you submit -- officially after your corrections ! +%%\subjectcode{ICS5200} % the study unit-code (currently not used) + +%% ***************** (Your) Data (End) ******************* + + +%% ******** (Your) Document Settings (Start) ************* + +% You should have an images directory in every chapX subdir +% NOTE: Trailing / for subdirs is required. +\graphicspath{{./images/}{./chap1/images/}} % Paths where to look for images, if defined "images" must always be there as it holds the images in-use by the template. + +\makeindex + +%% ********* (Your) Document Settings (End) ************** + +% DOCTOR'S (JP) ORDERS: MAKE SURE TO READ MY TWO BLOG ENTRIES WITH +% CONTENT AND LaTeX TIPS FOR YOUR WRITE-UP. THESE ARE BASED ON +% EXAMINER'S FEEDBACK +% +% URLS: +% https://bitsilla.com/blog/2019/03/content-tips-for-your-dissertation-or-project-write-up/ +% https://bitsilla.com/blog/2019/01/latex-tips-for-your-dissertation-or-project-write-up/ + +% end the preamble and start the document + +\begin{document} +\frontmatter + \maketitle + \input{frontmatter/copyright} + \input{frontmatter/originality} + \input{frontmatter/dedication} % include a dedication.tex file + \input{frontmatter/acknowledgements} % include an acknowledgements.tex file + \input{frontmatter/abstract}\if@openright\cleardoublepage\else\clearpage\fi + \tableofcontents*\if@openright\cleardoublepage\else\clearpage\fi + \listoffigures*\if@openright\cleardoublepage\else\clearpage\fi + \listoftables*\if@openright\cleardoublepage\else\clearpage\fi + \input{frontmatter/abbreviations}\if@openright\cleardoublepage\else\clearpage\fi + +%% Note: always use \input as you cannot nest \includes (amongst other things) +\definecolor{dkgreen}{rgb}{0,0.6,0} +\definecolor{gray}{rgb}{0.5,0.5,0.5} +\definecolor{mauve}{rgb}{0.58,0,0.82} +\definecolor{codegreen}{rgb}{0,0.6,0} \definecolor{codegray}{rgb}{0.5,0.5,0.5} \definecolor{codepurple}{rgb}{0.58,0,0.82} \definecolor{backcolour}{rgb}{0.95,0.95,0.92} +\makeatletter +\newcommand*\verbfont{% + \normalfont\ttfamily\hyphenchar\font\m@ne\@noligs} +\makeatother +\lstset{ % + language=bash, % the language of the code + basicstyle = \color{black}\raggedright\verbfont\footnotesize\selectfont, + backgroundcolor=\color{backcolour}, + commentstyle=\color{codegreen} + keywordstyle=\color{magenta}, + numberstyle=\tiny\color{codegray}, + stringstyle=\color{codepurple}, % numberstyle=\footnotesize, % the size of the fonts that are used for the line-numbers + stepnumber=2, % the step between two line-numbers. If it's 1, each line % will be numbered + numbersep=5pt, % how far the line-numbers are from the code + %backgroundcolor=\color{white}, % choose the background color. You must add \usepackage{color} + showspaces=false, % show spaces adding particular underscores + showstringspaces=false, % underline spaces within strings + showtabs=false, % show tabs within strings adding particular underscores + frame=single, % adds a frame around the code + tabsize=2, % sets default tabsize to 2 spaces + captionpos=b, % sets the caption-position to bottom + breaklines=true, % sets automatic line breaking + breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace + title=\lstname, % show the filename of files included with \lstinputlisting; + % also try caption instead of title + %numberstyle=\tiny\color{gray}, % line number style + %keywordstyle=\color{blue}, % keyword style + %commentstyle=\color{dkgreen}, % comment style + %stringstyle=\color{mauve}, % string literal style + escapeinside={\%*}{*)}, % if you want to add a comment within your code + morekeywords={*,...} % if you want to add more keywords to the set + basicstyle=\ttfamily, + columns=flexible +} +\pagestyle{gspage} +\mainmatter + \input{chap1/introduction_main} + \input{chap2/connection_main} + \input{chap3/command_main} + \input{chap4/environments_main} + \input{chap6/admin_main} + \input{chap5/other_main} + \appendix + \input{appA/appendix_a_main} % these are just test names as I didn't know what you'd want + \input{appB/appendix_b_main} + \input{appC/appendix_c_main} + +{\backmatter + % Bibliography + \if@openright\cleardoublepage\else\clearpage\fi + \bibliographystyle{gs-plainnat} %% specific plainnat does not show url for articles + {\footnotesize\bibliography{chap1/introduction_biblio,chap2/background_and_lit_overview_biblio}} + \printindex +} + +\end{document} + +%%% The End %%% \ No newline at end of file diff --git a/GSHS_SERVER_INTRO_2/images/logo.png b/GSHS_SERVER_INTRO_2/images/logo.png new file mode 100644 index 0000000..2d1bb37 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/images/logo.png differ diff --git a/GSHS_SERVER_INTRO_2/images/logo_full.png b/GSHS_SERVER_INTRO_2/images/logo_full.png new file mode 100644 index 0000000..1dbd8ad Binary files /dev/null and b/GSHS_SERVER_INTRO_2/images/logo_full.png differ diff --git a/GSHS_SERVER_INTRO_2/images/logo_gray.png b/GSHS_SERVER_INTRO_2/images/logo_gray.png new file mode 100644 index 0000000..f391185 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/images/logo_gray.png differ diff --git a/GSHS_SERVER_INTRO_2/images/pg1.png b/GSHS_SERVER_INTRO_2/images/pg1.png new file mode 100644 index 0000000..26aac35 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/images/pg1.png differ diff --git a/GSHS_SERVER_INTRO_2/images/pg2.png b/GSHS_SERVER_INTRO_2/images/pg2.png new file mode 100644 index 0000000..3a7513e Binary files /dev/null and b/GSHS_SERVER_INTRO_2/images/pg2.png differ diff --git a/GSHS_SERVER_INTRO_2/images/pg3.png b/GSHS_SERVER_INTRO_2/images/pg3.png new file mode 100644 index 0000000..6ac0820 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/images/pg3.png differ diff --git a/GSHS_SERVER_INTRO_2/images/pg4.png b/GSHS_SERVER_INTRO_2/images/pg4.png new file mode 100644 index 0000000..12ea977 Binary files /dev/null and b/GSHS_SERVER_INTRO_2/images/pg4.png differ