second commit commit

This commit is contained in:
Harri Lahtinen 2023-11-25 15:32:58 +02:00
commit cf6aabfb95
137 changed files with 7366 additions and 0 deletions

675
LICENSE Normal file
View File

@ -0,0 +1,675 @@
GNU GENERAL PUBLIC LICENSE
Version 3, 29 June 2007
Copyright (C) 2007 Free Software Foundation, Inc. <http://fsf.org/>
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Preamble
The GNU General Public License is a free, copyleft license for
software and other kinds of works.
The licenses for most software and other practical works are designed
to take away your freedom to share and change the works. By contrast,
the GNU General Public License is intended to guarantee your freedom to
share and change all versions of a program--to make sure it remains free
software for all its users. We, the Free Software Foundation, use the
GNU General Public License for most of our software; it applies also to
any other work released this way by its authors. You can apply it to
your programs, too.
When we speak of free software, we are referring to freedom, not
price. Our General Public Licenses are designed to make sure that you
have the freedom to distribute copies of free software (and charge for
them if you wish), that you receive source code or can get it if you
want it, that you can change the software or use pieces of it in new
free programs, and that you know you can do these things.
To protect your rights, we need to prevent others from denying you
these rights or asking you to surrender the rights. Therefore, you have
certain responsibilities if you distribute copies of the software, or if
you modify it: responsibilities to respect the freedom of others.
For example, if you distribute copies of such a program, whether
gratis or for a fee, you must pass on to the recipients the same
freedoms that you received. You must make sure that they, too, receive
or can get the source code. And you must show them these terms so they
know their rights.
Developers that use the GNU GPL protect your rights with two steps:
(1) assert copyright on the software, and (2) offer you this License
giving you legal permission to copy, distribute and/or modify it.
For the developers' and authors' protection, the GPL clearly explains
that there is no warranty for this free software. For both users' and
authors' sake, the GPL requires that modified versions be marked as
changed, so that their problems will not be attributed erroneously to
authors of previous versions.
Some devices are designed to deny users access to install or run
modified versions of the software inside them, although the manufacturer
can do so. This is fundamentally incompatible with the aim of
protecting users' freedom to change the software. The systematic
pattern of such abuse occurs in the area of products for individuals to
use, which is precisely where it is most unacceptable. Therefore, we
have designed this version of the GPL to prohibit the practice for those
products. If such problems arise substantially in other domains, we
stand ready to extend this provision to those domains in future versions
of the GPL, as needed to protect the freedom of users.
Finally, every program is threatened constantly by software patents.
States should not allow patents to restrict development and use of
software on general-purpose computers, but in those that do, we wish to
avoid the special danger that patents applied to a free program could
make it effectively proprietary. To prevent this, the GPL assures that
patents cannot be used to render the program non-free.
The precise terms and conditions for copying, distribution and
modification follow.
TERMS AND CONDITIONS
0. Definitions.
"This License" refers to version 3 of the GNU General Public License.
"Copyright" also means copyright-like laws that apply to other kinds of
works, such as semiconductor masks.
"The Program" refers to any copyrightable work licensed under this
License. Each licensee is addressed as "you". "Licensees" and
"recipients" may be individuals or organizations.
To "modify" a work means to copy from or adapt all or part of the work
in a fashion requiring copyright permission, other than the making of an
exact copy. The resulting work is called a "modified version" of the
earlier work or a work "based on" the earlier work.
A "covered work" means either the unmodified Program or a work based
on the Program.
To "propagate" a work means to do anything with it that, without
permission, would make you directly or secondarily liable for
infringement under applicable copyright law, except executing it on a
computer or modifying a private copy. Propagation includes copying,
distribution (with or without modification), making available to the
public, and in some countries other activities as well.
To "convey" a work means any kind of propagation that enables other
parties to make or receive copies. Mere interaction with a user through
a computer network, with no transfer of a copy, is not conveying.
An interactive user interface displays "Appropriate Legal Notices"
to the extent that it includes a convenient and prominently visible
feature that (1) displays an appropriate copyright notice, and (2)
tells the user that there is no warranty for the work (except to the
extent that warranties are provided), that licensees may convey the
work under this License, and how to view a copy of this License. If
the interface presents a list of user commands or options, such as a
menu, a prominent item in the list meets this criterion.
1. Source Code.
The "source code" for a work means the preferred form of the work
for making modifications to it. "Object code" means any non-source
form of a work.
A "Standard Interface" means an interface that either is an official
standard defined by a recognized standards body, or, in the case of
interfaces specified for a particular programming language, one that
is widely used among developers working in that language.
The "System Libraries" of an executable work include anything, other
than the work as a whole, that (a) is included in the normal form of
packaging a Major Component, but which is not part of that Major
Component, and (b) serves only to enable use of the work with that
Major Component, or to implement a Standard Interface for which an
implementation is available to the public in source code form. A
"Major Component", in this context, means a major essential component
(kernel, window system, and so on) of the specific operating system
(if any) on which the executable work runs, or a compiler used to
produce the work, or an object code interpreter used to run it.
The "Corresponding Source" for a work in object code form means all
the source code needed to generate, install, and (for an executable
work) run the object code and to modify the work, including scripts to
control those activities. However, it does not include the work's
System Libraries, or general-purpose tools or generally available free
programs which are used unmodified in performing those activities but
which are not part of the work. For example, Corresponding Source
includes interface definition files associated with source files for
the work, and the source code for shared libraries and dynamically
linked subprograms that the work is specifically designed to require,
such as by intimate data communication or control flow between those
subprograms and other parts of the work.
The Corresponding Source need not include anything that users
can regenerate automatically from other parts of the Corresponding
Source.
The Corresponding Source for a work in source code form is that
same work.
2. Basic Permissions.
All rights granted under this License are granted for the term of
copyright on the Program, and are irrevocable provided the stated
conditions are met. This License explicitly affirms your unlimited
permission to run the unmodified Program. The output from running a
covered work is covered by this License only if the output, given its
content, constitutes a covered work. This License acknowledges your
rights of fair use or other equivalent, as provided by copyright law.
You may make, run and propagate covered works that you do not
convey, without conditions so long as your license otherwise remains
in force. You may convey covered works to others for the sole purpose
of having them make modifications exclusively for you, or provide you
with facilities for running those works, provided that you comply with
the terms of this License in conveying all material for which you do
not control copyright. Those thus making or running the covered works
for you must do so exclusively on your behalf, under your direction
and control, on terms that prohibit them from making any copies of
your copyrighted material outside their relationship with you.
Conveying under any other circumstances is permitted solely under
the conditions stated below. Sublicensing is not allowed; section 10
makes it unnecessary.
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
No covered work shall be deemed part of an effective technological
measure under any applicable law fulfilling obligations under article
11 of the WIPO copyright treaty adopted on 20 December 1996, or
similar laws prohibiting or restricting circumvention of such
measures.
When you convey a covered work, you waive any legal power to forbid
circumvention of technological measures to the extent such circumvention
is effected by exercising rights under this License with respect to
the covered work, and you disclaim any intention to limit operation or
modification of the work as a means of enforcing, against the work's
users, your or third parties' legal rights to forbid circumvention of
technological measures.
4. Conveying Verbatim Copies.
You may convey verbatim copies of the Program's source code as you
receive it, in any medium, provided that you conspicuously and
appropriately publish on each copy an appropriate copyright notice;
keep intact all notices stating that this License and any
non-permissive terms added in accord with section 7 apply to the code;
keep intact all notices of the absence of any warranty; and give all
recipients a copy of this License along with the Program.
You may charge any price or no price for each copy that you convey,
and you may offer support or warranty protection for a fee.
5. Conveying Modified Source Versions.
You may convey a work based on the Program, or the modifications to
produce it from the Program, in the form of source code under the
terms of section 4, provided that you also meet all of these conditions:
a) The work must carry prominent notices stating that you modified
it, and giving a relevant date.
b) The work must carry prominent notices stating that it is
released under this License and any conditions added under section
7. This requirement modifies the requirement in section 4 to
"keep intact all notices".
c) You must license the entire work, as a whole, under this
License to anyone who comes into possession of a copy. This
License will therefore apply, along with any applicable section 7
additional terms, to the whole of the work, and all its parts,
regardless of how they are packaged. This License gives no
permission to license the work in any other way, but it does not
invalidate such permission if you have separately received it.
d) If the work has interactive user interfaces, each must display
Appropriate Legal Notices; however, if the Program has interactive
interfaces that do not display Appropriate Legal Notices, your
work need not make them do so.
A compilation of a covered work with other separate and independent
works, which are not by their nature extensions of the covered work,
and which are not combined with it such as to form a larger program,
in or on a volume of a storage or distribution medium, is called an
"aggregate" if the compilation and its resulting copyright are not
used to limit the access or legal rights of the compilation's users
beyond what the individual works permit. Inclusion of a covered work
in an aggregate does not cause this License to apply to the other
parts of the aggregate.
6. Conveying Non-Source Forms.
You may convey a covered work in object code form under the terms
of sections 4 and 5, provided that you also convey the
machine-readable Corresponding Source under the terms of this License,
in one of these ways:
a) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by the
Corresponding Source fixed on a durable physical medium
customarily used for software interchange.
b) Convey the object code in, or embodied in, a physical product
(including a physical distribution medium), accompanied by a
written offer, valid for at least three years and valid for as
long as you offer spare parts or customer support for that product
model, to give anyone who possesses the object code either (1) a
copy of the Corresponding Source for all the software in the
product that is covered by this License, on a durable physical
medium customarily used for software interchange, for a price no
more than your reasonable cost of physically performing this
conveying of source, or (2) access to copy the
Corresponding Source from a network server at no charge.
c) Convey individual copies of the object code with a copy of the
written offer to provide the Corresponding Source. This
alternative is allowed only occasionally and noncommercially, and
only if you received the object code with such an offer, in accord
with subsection 6b.
d) Convey the object code by offering access from a designated
place (gratis or for a charge), and offer equivalent access to the
Corresponding Source in the same way through the same place at no
further charge. You need not require recipients to copy the
Corresponding Source along with the object code. If the place to
copy the object code is a network server, the Corresponding Source
may be on a different server (operated by you or a third party)
that supports equivalent copying facilities, provided you maintain
clear directions next to the object code saying where to find the
Corresponding Source. Regardless of what server hosts the
Corresponding Source, you remain obligated to ensure that it is
available for as long as needed to satisfy these requirements.
e) Convey the object code using peer-to-peer transmission, provided
you inform other peers where the object code and Corresponding
Source of the work are being offered to the general public at no
charge under subsection 6d.
A separable portion of the object code, whose source code is excluded
from the Corresponding Source as a System Library, need not be
included in conveying the object code work.
A "User Product" is either (1) a "consumer product", which means any
tangible personal property which is normally used for personal, family,
or household purposes, or (2) anything designed or sold for incorporation
into a dwelling. In determining whether a product is a consumer product,
doubtful cases shall be resolved in favor of coverage. For a particular
product received by a particular user, "normally used" refers to a
typical or common use of that class of product, regardless of the status
of the particular user or of the way in which the particular user
actually uses, or expects or is expected to use, the product. A product
is a consumer product regardless of whether the product has substantial
commercial, industrial or non-consumer uses, unless such uses represent
the only significant mode of use of the product.
"Installation Information" for a User Product means any methods,
procedures, authorization keys, or other information required to install
and execute modified versions of a covered work in that User Product from
a modified version of its Corresponding Source. The information must
suffice to ensure that the continued functioning of the modified object
code is in no case prevented or interfered with solely because
modification has been made.
If you convey an object code work under this section in, or with, or
specifically for use in, a User Product, and the conveying occurs as
part of a transaction in which the right of possession and use of the
User Product is transferred to the recipient in perpetuity or for a
fixed term (regardless of how the transaction is characterized), the
Corresponding Source conveyed under this section must be accompanied
by the Installation Information. But this requirement does not apply
if neither you nor any third party retains the ability to install
modified object code on the User Product (for example, the work has
been installed in ROM).
The requirement to provide Installation Information does not include a
requirement to continue to provide support service, warranty, or updates
for a work that has been modified or installed by the recipient, or for
the User Product in which it has been modified or installed. Access to a
network may be denied when the modification itself materially and
adversely affects the operation of the network or violates the rules and
protocols for communication across the network.
Corresponding Source conveyed, and Installation Information provided,
in accord with this section must be in a format that is publicly
documented (and with an implementation available to the public in
source code form), and must require no special password or key for
unpacking, reading or copying.
7. Additional Terms.
"Additional permissions" are terms that supplement the terms of this
License by making exceptions from one or more of its conditions.
Additional permissions that are applicable to the entire Program shall
be treated as though they were included in this License, to the extent
that they are valid under applicable law. If additional permissions
apply only to part of the Program, that part may be used separately
under those permissions, but the entire Program remains governed by
this License without regard to the additional permissions.
When you convey a copy of a covered work, you may at your option
remove any additional permissions from that copy, or from any part of
it. (Additional permissions may be written to require their own
removal in certain cases when you modify the work.) You may place
additional permissions on material, added by you to a covered work,
for which you have or can give appropriate copyright permission.
Notwithstanding any other provision of this License, for material you
add to a covered work, you may (if authorized by the copyright holders of
that material) supplement the terms of this License with terms:
a) Disclaiming warranty or limiting liability differently from the
terms of sections 15 and 16 of this License; or
b) Requiring preservation of specified reasonable legal notices or
author attributions in that material or in the Appropriate Legal
Notices displayed by works containing it; or
c) Prohibiting misrepresentation of the origin of that material, or
requiring that modified versions of such material be marked in
reasonable ways as different from the original version; or
d) Limiting the use for publicity purposes of names of licensors or
authors of the material; or
e) Declining to grant rights under trademark law for use of some
trade names, trademarks, or service marks; or
f) Requiring indemnification of licensors and authors of that
material by anyone who conveys the material (or modified versions of
it) with contractual assumptions of liability to the recipient, for
any liability that these contractual assumptions directly impose on
those licensors and authors.
All other non-permissive additional terms are considered "further
restrictions" within the meaning of section 10. If the Program as you
received it, or any part of it, contains a notice stating that it is
governed by this License along with a term that is a further
restriction, you may remove that term. If a license document contains
a further restriction but permits relicensing or conveying under this
License, you may add to a covered work material governed by the terms
of that license document, provided that the further restriction does
not survive such relicensing or conveying.
If you add terms to a covered work in accord with this section, you
must place, in the relevant source files, a statement of the
additional terms that apply to those files, or a notice indicating
where to find the applicable terms.
Additional terms, permissive or non-permissive, may be stated in the
form of a separately written license, or stated as exceptions;
the above requirements apply either way.
8. Termination.
You may not propagate or modify a covered work except as expressly
provided under this License. Any attempt otherwise to propagate or
modify it is void, and will automatically terminate your rights under
this License (including any patent licenses granted under the third
paragraph of section 11).
However, if you cease all violation of this License, then your
license from a particular copyright holder is reinstated (a)
provisionally, unless and until the copyright holder explicitly and
finally terminates your license, and (b) permanently, if the copyright
holder fails to notify you of the violation by some reasonable means
prior to 60 days after the cessation.
Moreover, your license from a particular copyright holder is
reinstated permanently if the copyright holder notifies you of the
violation by some reasonable means, this is the first time you have
received notice of violation of this License (for any work) from that
copyright holder, and you cure the violation prior to 30 days after
your receipt of the notice.
Termination of your rights under this section does not terminate the
licenses of parties who have received copies or rights from you under
this License. If your rights have been terminated and not permanently
reinstated, you do not qualify to receive new licenses for the same
material under section 10.
9. Acceptance Not Required for Having Copies.
You are not required to accept this License in order to receive or
run a copy of the Program. Ancillary propagation of a covered work
occurring solely as a consequence of using peer-to-peer transmission
to receive a copy likewise does not require acceptance. However,
nothing other than this License grants you permission to propagate or
modify any covered work. These actions infringe copyright if you do
not accept this License. Therefore, by modifying or propagating a
covered work, you indicate your acceptance of this License to do so.
10. Automatic Licensing of Downstream Recipients.
Each time you convey a covered work, the recipient automatically
receives a license from the original licensors, to run, modify and
propagate that work, subject to this License. You are not responsible
for enforcing compliance by third parties with this License.
An "entity transaction" is a transaction transferring control of an
organization, or substantially all assets of one, or subdividing an
organization, or merging organizations. If propagation of a covered
work results from an entity transaction, each party to that
transaction who receives a copy of the work also receives whatever
licenses to the work the party's predecessor in interest had or could
give under the previous paragraph, plus a right to possession of the
Corresponding Source of the work from the predecessor in interest, if
the predecessor has it or can get it with reasonable efforts.
You may not impose any further restrictions on the exercise of the
rights granted or affirmed under this License. For example, you may
not impose a license fee, royalty, or other charge for exercise of
rights granted under this License, and you may not initiate litigation
(including a cross-claim or counterclaim in a lawsuit) alleging that
any patent claim is infringed by making, using, selling, offering for
sale, or importing the Program or any portion of it.
11. Patents.
A "contributor" is a copyright holder who authorizes use under this
License of the Program or a work on which the Program is based. The
work thus licensed is called the contributor's "contributor version".
A contributor's "essential patent claims" are all patent claims
owned or controlled by the contributor, whether already acquired or
hereafter acquired, that would be infringed by some manner, permitted
by this License, of making, using, or selling its contributor version,
but do not include claims that would be infringed only as a
consequence of further modification of the contributor version. For
purposes of this definition, "control" includes the right to grant
patent sublicenses in a manner consistent with the requirements of
this License.
Each contributor grants you a non-exclusive, worldwide, royalty-free
patent license under the contributor's essential patent claims, to
make, use, sell, offer for sale, import and otherwise run, modify and
propagate the contents of its contributor version.
In the following three paragraphs, a "patent license" is any express
agreement or commitment, however denominated, not to enforce a patent
(such as an express permission to practice a patent or covenant not to
sue for patent infringement). To "grant" such a patent license to a
party means to make such an agreement or commitment not to enforce a
patent against the party.
If you convey a covered work, knowingly relying on a patent license,
and the Corresponding Source of the work is not available for anyone
to copy, free of charge and under the terms of this License, through a
publicly available network server or other readily accessible means,
then you must either (1) cause the Corresponding Source to be so
available, or (2) arrange to deprive yourself of the benefit of the
patent license for this particular work, or (3) arrange, in a manner
consistent with the requirements of this License, to extend the patent
license to downstream recipients. "Knowingly relying" means you have
actual knowledge that, but for the patent license, your conveying the
covered work in a country, or your recipient's use of the covered work
in a country, would infringe one or more identifiable patents in that
country that you have reason to believe are valid.
If, pursuant to or in connection with a single transaction or
arrangement, you convey, or propagate by procuring conveyance of, a
covered work, and grant a patent license to some of the parties
receiving the covered work authorizing them to use, propagate, modify
or convey a specific copy of the covered work, then the patent license
you grant is automatically extended to all recipients of the covered
work and works based on it.
A patent license is "discriminatory" if it does not include within
the scope of its coverage, prohibits the exercise of, or is
conditioned on the non-exercise of one or more of the rights that are
specifically granted under this License. You may not convey a covered
work if you are a party to an arrangement with a third party that is
in the business of distributing software, under which you make payment
to the third party based on the extent of your activity of conveying
the work, and under which the third party grants, to any of the
parties who would receive the covered work from you, a discriminatory
patent license (a) in connection with copies of the covered work
conveyed by you (or copies made from those copies), or (b) primarily
for and in connection with specific products or compilations that
contain the covered work, unless you entered into that arrangement,
or that patent license was granted, prior to 28 March 2007.
Nothing in this License shall be construed as excluding or limiting
any implied license or other defenses to infringement that may
otherwise be available to you under applicable patent law.
12. No Surrender of Others' Freedom.
If conditions are imposed on you (whether by court order, agreement or
otherwise) that contradict the conditions of this License, they do not
excuse you from the conditions of this License. If you cannot convey a
covered work so as to satisfy simultaneously your obligations under this
License and any other pertinent obligations, then as a consequence you may
not convey it at all. For example, if you agree to terms that obligate you
to collect a royalty for further conveying from those to whom you convey
the Program, the only way you could satisfy both those terms and this
License would be to refrain entirely from conveying the Program.
13. Use with the GNU Affero General Public License.
Notwithstanding any other provision of this License, you have
permission to link or combine any covered work with a work licensed
under version 3 of the GNU Affero General Public License into a single
combined work, and to convey the resulting work. The terms of this
License will continue to apply to the part which is the covered work,
but the special requirements of the GNU Affero General Public License,
section 13, concerning interaction through a network will apply to the
combination as such.
14. Revised Versions of this License.
The Free Software Foundation may publish revised and/or new versions of
the GNU General Public License from time to time. Such new versions will
be similar in spirit to the present version, but may differ in detail to
address new problems or concerns.
Each version is given a distinguishing version number. If the
Program specifies that a certain numbered version of the GNU General
Public License "or any later version" applies to it, you have the
option of following the terms and conditions either of that numbered
version or of any later version published by the Free Software
Foundation. If the Program does not specify a version number of the
GNU General Public License, you may choose any version ever published
by the Free Software Foundation.
If the Program specifies that a proxy can decide which future
versions of the GNU General Public License can be used, that proxy's
public statement of acceptance of a version permanently authorizes you
to choose that version for the Program.
Later license versions may give you additional or different
permissions. However, no additional obligations are imposed on any
author or copyright holder as a result of your choosing to follow a
later version.
15. Disclaimer of Warranty.
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
16. Limitation of Liability.
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
SUCH DAMAGES.
17. Interpretation of Sections 15 and 16.
If the disclaimer of warranty and limitation of liability provided
above cannot be given local legal effect according to their terms,
reviewing courts shall apply local law that most closely approximates
an absolute waiver of all civil liability in connection with the
Program, unless a warranty or assumption of liability accompanies a
copy of the Program in return for a fee.
END OF TERMS AND CONDITIONS
How to Apply These Terms to Your New Programs
If you develop a new program, and you want it to be of the greatest
possible use to the public, the best way to achieve this is to make it
free software which everyone can redistribute and change under these terms.
To do so, attach the following notices to the program. It is safest
to attach them to the start of each source file to most effectively
state the exclusion of warranty; and each file should have at least
the "copyright" line and a pointer to where the full notice is found.
{one line to give the program's name and a brief idea of what it does.}
Copyright (C) {year} {name of author}
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 <http://www.gnu.org/licenses/>.
Also add information on how to contact you by electronic and paper mail.
If the program does terminal interaction, make it output a short
notice like this when it starts in an interactive mode:
{project} Copyright (C) {year} {fullname}
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
<http://www.gnu.org/licenses/>.
The GNU General Public License does not permit incorporating your program
into proprietary programs. If your program is a subroutine library, you
may consider it more useful to permit linking proprietary applications with
the library. If this is what you want to do, use the GNU Lesser General
Public License instead of this License. But first, please read
<http://www.gnu.org/philosophy/why-not-lgpl.html>.

344
README.md Normal file
View File

@ -0,0 +1,344 @@
# alis
![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-badge.svg)
![Bash](https://raw.githubusercontent.com/picodotdev/alis/master/images/sh-bash-badge.svg)
![Shellcheck](https://github.com/picodotdev/alis/actions/workflows/shellcheck.yml/badge.svg)
Arch Linux Install Script (or alis, also known as _the Arch Linux executable installation guide and wiki_) installs an unattended, automated and customized Arch Linux system.
alis is a simple Bash script developed from many Arch Linux Wiki pages that fully automates the installation of an [Arch Linux](https://archlinux.org/) system after booting from the original Arch Linux installation media.
It contains the same commands that you would type and execute one by one interactively to complete the installation. The only user intervention needed is to edit a configuration file to choose the installation options and preferences from partitioning, to encryption, bootloader, file system, language and keyboard mapping, desktop environment, kernels, packages to install and graphic drivers. This automation makes the installation easy and fast, as fast as your internet connection allows.
If some time later after a system update, for any reason the system does not boot correctly, a recovery script is also provided to enter into a recovery mode that allows you to downgrade packages or execute any other commands to restore the system. Also, a log of the installation can be taken with <a href="https://asciinema.org/">asciinema</a>.
A simple powerful Bash based script for an unattended, easy and fast way to install Arch Linux.<br>
Boot. Get. Configure. Install. Enjoy.
**Warning! This script can delete all partitions of the persistent storage. It is recommended to test it first in a virtual machine like <a href="https://www.virtualbox.org/">VirtualBox</a>.**
Currently these scripts are for me, but maybe they are useful for you too.
Follow the [Arch Way](https://wiki.archlinux.org/title/Arch_Linux) of doing things and learn what this script does. This will allow you to know what is happening.
Please, don't ask for support for this script in Arch Linux forums, first read the [Arch Linux wiki](https://wiki.archlinux.org), the [Installation Guide](https://wiki.archlinux.org/title/Installation_guide) and the [General Recommendations](https://wiki.archlinux.org/title/General_recommendations), later compare those commands with the commands of this script.
For new features, improvements and bugs, fill an issue in GitHub or make a pull request. You can test it in a virtual machine (strongly recommended) like [VirtualBox](https://www.virtualbox.org/) before you run it in real hardware. If you test it in real hardware, please send me an email to pico.dev@gmail.com with the machine description and tell me if something goes wrong or all works fine. [Pull request](https://github.com/picodotdev/alis/pulls) and [new feature request](https://github.com/picodotdev/alis/issues) are welcome!
**Arch Linux Install Script (alis) is based on Arch Linux but is NOT approved, sponsored, or affiliated with Arch Linux or its related projects.**
[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux.svg "Arch Linux")](https://www.archlinux.org/)
## Index
* [Principles](https://github.com/picodotdev/alis#principles)
* [Features](https://github.com/picodotdev/alis#features)
* [System installation](https://github.com/picodotdev/alis#system-installation)
* [Package installation](https://github.com/picodotdev/alis#packages-installation)
* [Recovery](https://github.com/picodotdev/alis#recovery)
* [SSH install and cloud-init](https://github.com/picodotdev/alis#ssh-install-and-cloud-init)
* [Screenshots](https://github.com/picodotdev/alis#screenshots)
* [Video](https://github.com/picodotdev/alis#video)
* [How you can help](https://github.com/picodotdev/alis#how-you-can-help)
* [Media reference](https://github.com/picodotdev/alis#media-reference)
* [Alternatives](https://github.com/picodotdev/alis#alternatives)
* [Test in VirtualBox with Packer](https://github.com/picodotdev/alis#test-in-virtualbox-with-packer)
* [Arch Linux Installation Media](https://github.com/picodotdev/alis#arch-linux-installation-media)
* [Reference](https://github.com/picodotdev/alis#reference)
## Principles
* Use the original Arch Linux installation media
* As unattended and automated as possible, requires as little interactivity as possible
* Allow to customize the installation to cover the most common cases
* Provide support for system recovery
* Provide support for installation log
* Use sane configuration default values
## Features
* **System**: UEFI, BIOS
* **Storage**: SATA, NVMe and MMC
* **Encryption**: root partition encrypted and no encrypted
* **Partition**: no LVM, LVM, LVM on LUKS, GPT on UEFI, MBR on BIOS, custom partition scheme and mountpoints
* **File system**: ext4, btrfs (with subvols), xfs, f2fs, reiserfs
* **Kernels**: linux, linux-lts, linux-hardened, linux-zen. Supports Unified Kernel Image (UKI).
* **Desktop environment**: GNOME, KDE, XFCE, Mate, Cinnamon, LXDE, i3-wm, i3-gaps, Deepin, Budgie, Bspwm, Awesome, Qtile, Openbox, Leftwm, Dusk
* **Display managers**: GDM, SDDM, Lightdm, lxdm
* **Graphics controller**: intel, nvidia and amd with optionally early KMS start. With intel optionally fastboot, hardware video acceleration and framebuffer compression.
* **Bootloader**: GRUB, rEFInd, systemd-boot, efistub
* **Custom shell**: bash, zsh, dash, fish
* **WPA WIFI network** installation
* **Periodic TRIM** for SSD storage
* Intel and AMD **processors microcode**
* Optional **swap file**
* **PipeWire** support
* **Secure Boot** support
* **Kernel compression** and **custom parameters**
* **Users creation** and **add to sudoers**
* **systemd units enable or disable**
* **systemd-homed** support
* **systemd GPT partition automounting** support
* **Multilib** support
* **Files provision** support
* **VirtualBox guest additions** and **VMware tools** support
* **SSH install** and **cloud-init** support
* Arch Linux custom **packages installation** and **repositories installation**
* Flatpak utility installation and **Flatpak packages installation**
* SDKMAN utility installation and **SDKMAN packages installation**
* **AUR utility** installation (paru, yay, aurman) and **AUR packages installation**
* **Packages installation after base system installation** (preferred way of packages installation)
* Script for download installation and **recovery scripts** and configuration files
* **Retry packages download** on connection/mirror error
* **Packer support** for testing in VirtualBox
* **Installation log** with all commands executed and output in a file and/or **asciinema video**
* Wait after installation for an **abortable reboot**
* **Use your own configuration**
* Bash scripts validated by [Shellcheck](https://www.shellcheck.net/)
## System installation
Download and boot from the latest <a href="https://www.archlinux.org/download/">original Arch Linux installation media</a>. After boot use the following commands to start the installation.
Follow the <a href="https://wiki.archlinux.org/title/Arch_Linux">Arch Way</a> of doing things and learn what this script does. This will allow you to know what is happening.
Internet connection is required, with wireless WIFI connection see <a href="https://wiki.archlinux.org/title/Wireless_network_configuration#Wi-Fi_Protected_Access">Wireless_network_configuration</a> to bring up WIFI connection before start the installation.
**Minimum usage**
```
# # Start the system with latest Arch Linux installation media
# loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# vim alis.conf # Edit configuration and change variables values with your preferences (system configuration)
# ./alis.sh # Start installation
```
**Advanced usage**
```
# # Start the system with latest Arch Linux installation media
# loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
# iwctl --passphrase "[WIFI_KEY]" station [WIFI_INTERFACE] connect "[WIFI_ESSID]" # (Optional) Connect to WIFI network. _ip link show_ to know WIFI_INTERFACE.
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# # curl -sL https://git.io/JeaH6 | bash # Alternative download URL with URL shortener
# # curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash -s -- -h [HASH_COMMIT] # Use specific version of the script based on the commit hash
# ./alis-asciinema.sh # (Optional) Start asciinema video recording
# vim alis.conf # Edit configuration and change variables values with your preferences (system configuration)
# vim alis-packages.conf # (Optional) Edit configuration and change variables values with your preferences (packages to install)
# # (The preferred way to install packages is after system installation, see Packages installation)
# ./alis.sh # Start installation
# ./alis-reboot.sh # (Optional) Reboot the system, only necessary when REBOOT="false"
```
## Package installation
After the base Arch Linux system is installed, alis can install packages with pacman, Flatpak, SDKMAN and from AUR.
```
# # After system installation start a user session
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# # curl -sL https://git.io/JeaH6 | bash # Alternative download URL with URL shortener
# ./alis-packages-asciinema.sh # (Optional) Start asciinema video recording
# vim alis-packages.conf # Edit configuration and change variables values with your preferences (packages to install)
# ./alis-packages.sh # Start packages installation
```
## Recovery
Boot from the latest <a href="https://www.archlinux.org/download/">original Arch Linux installation media</a>. After boot use the following commands to start the recovery, this will allow you to enter in the arch-chroot environment.
```
# # Start the system with latest Arch Linux installation media
# loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
# iwctl --passphrase "[WIFI_KEY]" station [WIFI_INTERFACE] connect "[WIFI_ESSID]" # (Optional) Connect to WIFI network. _ip link show_ to know WIFI_INTERFACE.
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# # curl -sL https://git.io/JeaH6 | bash # Alternative download URL with URL shortener
# ./alis-recovery-asciinema.sh # (Optional) Start asciinema video recording
# vim alis-recovery.conf # Edit configuration and change variables values with your last installation configuration with alis (mainly device and partition scheme)
# ./alis-recovery.sh # Start recovery
# ./alis-recovery-reboot.sh # Reboot the system
```
## SSH install and cloud-init
SSH install and cloud-init allows to install Arch Linux unattended and automated way in local virtual machines and cloud environments.
Build the cloud-init ISO, mount it in the VM along side the official Arch Linux installation media, start the VM and get its IP address.
```
$ ./alis-cloud-init-iso.sh
```
SSH to the VM.
```
$ ./alis-cloud-init-ssh.sh -i "${IP_ADDRESS}"
```
Or, start a unattended installation with the provided configuration.
```
$ ./alis-cloud-init-ssh.sh -i "${IP_ADDRESS}" -c "alis-config-efi-ext4-systemd.sh"
```
## Screenshots
Once the installation ends, you will have a ready to use system with your choosen preferences including all the free software latest version you wish to do produtive task from browsing, multimedia and office programs, to programming languages, compilers and server software and tools for creative and artistic tasks.
These are some desktop environments that can be installed.
[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-gnome-thumb.jpg "Arch Linux with GNOME")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-gnome.jpg)
[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-kde-thumb.jpg "Arch Linux with KDE")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-kde.jpg)
[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-xfce-thumb.jpg "Arch Linux with XFCE")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-xfce.jpg)
[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-cinnamon-thumb.jpg "Arch Linux with Cinnamon")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-cinnamon.jpg)
[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-mate-thumb.jpg "Arch Linux with Mate")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-mate.jpg)
[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-lxde-thumb.jpg "Arch Linux with LXDE")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-lxde.jpg)
[![Arch Linux](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-root-password-thumb.png "Arch Linux unloking LUKS on boot")](https://raw.githubusercontent.com/picodotdev/alis/master/images/archlinux-root-password.png)
## Video
Arch Linux base installation installed in less than 4 minutes with a fiber internet connection and a NVMe SSD. Don't trust me? See the video.
Type the system installation commands and wait to the installation complete. After a reboot the system is ready to use and customized with your choosen preferences.
[![asciicast](https://asciinema.org/a/444025.png)](https://asciinema.org/a/444025)
## How you can help
* Test in VirtualBox and create an issue if something does not work, attach the main parts of the used configuration file and the error message
* Create issues with new features
* Send pull requests
* Share it in social networks, forums, create a blog post or video about it
* Send me an email, I like to read that the script is being used and is useful :). Which are your computer specs, which is your alis configuration, if is your personal or working computer, if all worked fine or some suggestion to improve the script
## Media reference
* 2022.01 [Arch + Alis, Arco Linux](https://www.arcolinuxiso.com/aa/) ([video playlist](https://www.youtube.com/playlist?list=PLlloYVGq5pS7lMblPjiifVxxnMAqYzBU5))
* 2020.07 [Arch installer - alis](https://r1ce.net/2020/07/07/arch-installer-alis/)
* 2019.06 [Arch Linux OS Challenge: Install Arch 'The Easy Way' With These 2 Alternative Methods](https://www.forbes.com/sites/jasonevangelho/2019/06/10/arch-linux-os-challenge-2-alternatives-install-gui-script-easy/)
## Alternatives
There are other quite good similar projects that can be used as alternative to install a vanilla Arch Linux without any additions.
* [Arch Installer](https://github.com/archlinux/archinstall) (archinstall) (maybe is the most relevant as is included in the official installation media)
* [archfi](https://github.com/MatMoul/archfi/)
* [Archlinux Ultimate Installer (aui)](https://github.com/helmuthdu/aui) (only accepts patches)
Also, if you prefer to install an Arch Linux using a guided graphical installer you can choose an [Arch based distribution](https://wiki.archlinux.org/title/Arch-based_distributions#Active).
* [ArcoLinux](https://arcolinux.com/)
* [Manjaro](https://manjaro.org/)
* [EndeavourOS](https://endeavouros.com/)
* [GarudaLinux](https://garudalinux.org/)
* [Archlabs](https://archlabslinux.com/)
* [RebornOS](https://rebornos.org/)
* [BlackArch](https://blackarch.org/)
Also and recommended for new Arch Linux newcomers to follow the Arch Way of doing things is a good way to use and learn about Arch. There are many guides out there, the official Arch Linux installation guide the first one. These are other good ones that explains step by step from instalation media creation to first boot and programs installation, all the necessary to start.
* [The Arch Linux Handbook](https://www.freecodecamp.org/news/how-to-install-arch-linux/)
## Test in VirtualBox with Packer
VirtualBox and [Packer](https://packer.io/) are required.
* Firmware: efi, bios
* File system: ext4, btrfs, f2fs, xfs
* Partition: luks, lvm
* Bootloader: grub, refind, systemd
* Desktop environment: gnome, kde, xfce, ...
```
$ ./alis-packer.sh -c alis-packer-efi-ext4-systemd.sh
$ ./alis-packer.sh -c alis-packer-efi-ext4-systemd-gnome.sh
$ ./alis-packer.sh -c alis-packer-efi-ext4-luks-lvm-grub.sh
$ ./alis-packer.sh -c alis-packer-efi-btrfs-luks-lvm-systemd.sh
$ ./alis-packer.sh -c alis-packer-efi-f2fs-luks-lvm-systemd.sh
$ ./alis-packer.sh -c alis-packer-efi-ext4-grub-gnome.sh
$ ./alis-packer.sh -c alis-packer-efi-ext4-grub-kde.sh
$ ./alis-packer.sh -c alis-packer-efi-ext4-grub-xfce.sh
```
## Arch Linux Installation Media
https://www.archlinux.org/download/
## Reference
* https://archlinux.org/pacman/pacman.conf.5.html#_repository_sections
* https://gitlab.archlinux.org/archlinux/archiso/-/blob/master/configs/releng/packages.x86_64
* https://tldp.org/LDP/abs/html/
* https://tldp.org/LDP/Bash-Beginners-Guide/html/
* https://wiki.archlinux.org/title/AMDGPU
* https://wiki.archlinux.org/title/Arch_User_Repository
* https://wiki.archlinux.org/title/ATI
* https://wiki.archlinux.org/title/Awesome
* https://wiki.archlinux.org/title/Bluetooth
* https://wiki.archlinux.org/title/Bspwm
* https://wiki.archlinux.org/title/Btrfs
* https://wiki.archlinux.org/title/Budgie
* https://wiki.archlinux.org/title/Category:Boot_loaders
* https://wiki.archlinux.org/title/Cloud-init
* https://wiki.archlinux.org/title/Command-line_shell
* https://wiki.archlinux.org/title/Deepin_Desktop_Environment
* https://wiki.archlinux.org/title/Desktop_environment
* https://wiki.archlinux.org/title/Dm-crypt
* https://wiki.archlinux.org/title/Dm-crypt/Device_encryption
* https://wiki.archlinux.org/title/Dm-crypt/Encrypting_an_entire_system
* https://github.com/bakkeby/dusk
* https://wiki.archlinux.org/title/EFI_System_Partition
* https://wiki.archlinux.org/title/Ext4
* https://wiki.archlinux.org/title/F2FS
* https://wiki.archlinux.org/title/File_systems
* https://wiki.archlinux.org/title/Fstab
* https://wiki.archlinux.org/title/General_recommendations
* https://wiki.archlinux.org/title/GNOME
* https://wiki.archlinux.org/title/GRUB
* https://wiki.archlinux.org/title/Hardware_video_acceleration
* https://wiki.archlinux.org/title/I3
* https://wiki.archlinux.org/title/Install_Arch_Linux_via_SSH
* https://wiki.archlinux.org/title/Installation_guide
* https://wiki.archlinux.org/title/Intel_graphics
* https://wiki.archlinux.org/title/Intel_NUC
* https://wiki.archlinux.org/title/KDE
* https://wiki.archlinux.org/title/Kernel_mode_setting
* https://wiki.archlinux.org/title/Kernel_parameters
* https://wiki.archlinux.org/title/Kernels
* https://wiki.archlinux.org/title/LeftWM
* https://wiki.archlinux.org/title/List_of_applications
* https://wiki.archlinux.org/title/LVM
* https://wiki.archlinux.org/title/Main_page
* https://wiki.archlinux.org/title/Microcode
* https://wiki.archlinux.org/title/Mirrors
* https://wiki.archlinux.org/title/Mkinitcpio
* https://wiki.archlinux.org/title/Network_configuration
* https://wiki.archlinux.org/title/NetworkManager
* https://wiki.archlinux.org/title/Nouveau
* https://wiki.archlinux.org/title/NVIDIA
* https://wiki.archlinux.org/title/Openbox
* https://wiki.archlinux.org/title/Pacman
* https://wiki.archlinux.org/title/Partitioning
* https://wiki.archlinux.org/title/Persistent_block_device_naming
* https://wiki.archlinux.org/title/PipeWire
* https://wiki.archlinux.org/title/Qtile
* https://wiki.archlinux.org/title/REFInd
* https://wiki.archlinux.org/title/Reflector
* https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface/Secure_Boot
* https://wiki.archlinux.org/title/Solid_state_drive/NVMe
* https://wiki.archlinux.org/title/Solid_State_Drives
* https://wiki.archlinux.org/title/Swap
* https://wiki.archlinux.org/title/Systemd
* https://wiki.archlinux.org/title/Systemd#GPT_partition_automounting
* https://wiki.archlinux.org/title/Systemd-boot
* https://wiki.archlinux.org/title/Systemd-homed
* https://wiki.archlinux.org/title/Unified_Extensible_Firmware_Interface
* https://wiki.archlinux.org/title/VirtualBox
* https://wiki.archlinux.org/title/Wayland
* https://wiki.archlinux.org/title/Wireless_network_configuration
* https://wiki.archlinux.org/title/Wireless_network_configuration#Connect_to_an_access_point
* https://wiki.archlinux.org/title/Xfce
* https://wiki.archlinux.org/title/XFS
* https://wiki.archlinux.org/title/Xorg

20
alis-asciinema.sh Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
#curl -L -o asciinema-2.0.2.zip https://github.com/asciinema/asciinema/archive/v2.0.2.zip
#bsdtar xvf asciinema-2.0.2.zip
#rm -f alis.asciinema
#(cd asciinema-2.0.2 && python3 -m asciinema rec --stdin -i 5 ~/alis.asciinema)
rm -f alis.asciinema
pacman -Sy
pacman -S --noconfirm asciinema
clear
asciinema rec --stdin -i 5 ~/alis.asciinema

12
alis-cloud-init-iso.sh Executable file
View File

@ -0,0 +1,12 @@
#!/usr/bin/env bash
set -eu
set -o xtrace
if [ ! -f cloud-init/alis.key ]; then
openssl genrsa -out cloud-init/alis.key 8192
fi
SSH_RSA=$(ssh-keygen -y -f cloud-init/alis.key)
mkdir -p cloud-init/iso/
cp cloud-init/meta-data cloud-init/user-data cloud-init/iso/
sed -i "s#\\\${SSH_RSA}#${SSH_RSA}#" cloud-init/iso/user-data
mkisofs -o cloud-init/alis-cloud-init.iso -V CIDATA -iso-level 3 -J -R cloud-init/iso/

60
alis-cloud-init-ssh.sh Executable file
View File

@ -0,0 +1,60 @@
#!/usr/bin/env bash
set -eu
# ./alis-cloud-init-ssh.sh -b sid -i 192.168.122.61 -c alis-config-efi-ext4-luks-systemd.sh
GITHUB_USER="picodotdev"
BRANCH="master"
BRANCH_QUALIFIER=""
IP_ADDRESS=""
VM_TYPE="virtualbox"
VM_NAME="Arch Linux"
CONFIG_FILE_SH="alis-config-efi-ext4-systemd.sh"
while getopts "b:c:i:n:t:u:" arg; do
case $arg in
b)
BRANCH="$OPTARG"
;;
c)
CONFIG_FILE_SH="$OPTARG"
;;
i)
IP_ADDRESS="$OPTARG"
;;
n)
VM_NAME="$OPTARG"
;;
t)
VM_TYPE="$OPTARG"
;;
u)
GITHUB_USER=${OPTARG}
;;
*)
echo "Unknown option: $arg"
exit 1
;;
esac
done
if [ "$BRANCH" == "sid" ]; then
BRANCH_QUALIFIER="-sid"
fi
if [ "$IP_ADDRESS" == "" ] && [ "$VM_TYPE" != "" ] && [ "$VM_NAME" != "" ]; then
IP_ADDRESS=$(VBoxManage guestproperty get "${VM_NAME}" "/VirtualBox/GuestInfo/Net/0/V4/IP" | cut -f2 -d " ")
fi
set -o xtrace
ssh-keygen -R "$IP_ADDRESS"
ssh-keyscan -H "$IP_ADDRESS" >> ~/.ssh/known_hosts
ssh -t -i cloud-init/alis.key root@"$IP_ADDRESS" "bash -c \"curl -sL https://raw.githubusercontent.com/${GITHUB_USER}/alis/${BRANCH}/download${BRANCH_QUALIFIER}.sh | bash -s -- -b ${BRANCH}\""
if [ -z "$CONFIG_FILE_SH" ]; then
ssh -t -i cloud-init/alis.key root@"$IP_ADDRESS"
else
ssh -t -i cloud-init/alis.key root@"$IP_ADDRESS" "bash -c \"configs/$CONFIG_FILE_SH\""
ssh -t -i cloud-init/alis.key root@"$IP_ADDRESS" "bash -c \"./alis.sh -w\""
fi

57
alis-commons.conf Normal file
View File

@ -0,0 +1,57 @@
#!/usr/bin/env bash
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
# Common configuration.
WARNING_CONFIRM="true"
COMMOMS_LOADED="true"
PARTITION_BOOT=""
PARTITION_ROOT=""
PARTITION_BOOT_NUMBER=""
PARTITION_ROOT_NUMBER=""
DEVICE_ROOT=""
DEVICE_LVM=""
LUKS_DEVICE_NAME="root"
LVM_VOLUME_GROUP="vg"
LVM_VOLUME_LOGICAL="root"
SWAPFILE="/swapfile"
BOOT_DIRECTORY=""
ESP_DIRECTORY=""
UUID_BOOT=""
UUID_ROOT=""
PARTUUID_BOOT=""
PARTUUID_ROOT=""
CMDLINE_LINUX_ROOT=""
CMDLINE_LINUX=""
BTRFS_SUBVOLUME_ROOT=()
BTRFS_SUBVOLUME_SWAP=()
USER_NAME_INSTALL="root"
MNT_DIR="/mnt"
AUR_PACKAGE="paru-bin"
AUR_COMMAND="paru"
BIOS_TYPE=""
ASCIINEMA=""
DEVICE_SDA="false"
DEVICE_NVME="false"
DEVICE_VDA="false"
DEVICE_MMC="false"
CPU_VENDOR=""
GPU_VENDOR=""
VIRTUALBOX=""
VMWARE=""
SYSTEM_INSTALLATION=""
INITRD_MICROCODE=""
LOG_TRACE="true"
LOG_FILE="false"
USER_NAME="picodotdev"
USER_PASSWORD="ask"
PACKAGES_PIPEWIRE="false"

495
alis-commons.sh Executable file
View File

@ -0,0 +1,495 @@
#!/usr/bin/env bash
# shellcheck disable=SC2034,SC2001,SC2155,SC2153,SC2143
# SC2034: foo appears unused. Verify it or export it.
# SC2001: See if you can use ${variable//search/replace} instead.
# SC2155 Declare and assign separately to avoid masking return values
# SC2153: Possible Misspelling: MYVARIABLE may not be assigned. Did you mean MY_VARIABLE?
# SC2143: Use grep -q instead of comparing output with [ -n .. ].
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
# Common functions and definitions.
# common static variables
ALIS_CONF_FILE="alis.conf"
ALIS_LOG_FILE="alis.log"
ALIS_ASCIINEMA_FILE="alis.asciinema"
RECOVERY_CONF_FILE="alis-recovery.conf"
RECOVERY_LOG_FILE="alis-recovery.log"
RECOVERY_ASCIINEMA_FILE="alis-recovery.asciinema"
PACKAGES_CONF_FILE="alis-packages.conf"
PACKAGES_LOG_FILE="alis-packages.log"
COMMONS_CONF_FILE="alis-commons.conf"
PROVISION_DIRECTORY="files/"
RED='\033[0;91m'
GREEN='\033[0;92m'
BLUE='\033[0;96m'
WHITE='\033[0;97m'
NC='\033[0m'
function sanitize_variable() {
local VARIABLE="$1"
local VARIABLE=$(echo "$VARIABLE" | sed "s/![^ ]*//g") # remove disabled
local VARIABLE=$(echo "$VARIABLE" | sed -r "s/ {2,}/ /g") # remove unnecessary white spaces
local VARIABLE=$(echo "$VARIABLE" | sed 's/^[[:space:]]*//') # trim leading
local VARIABLE=$(echo "$VARIABLE" | sed 's/[[:space:]]*$//') # trim trailing
echo "$VARIABLE"
}
function trim_variable() {
local VARIABLE="$1"
local VARIABLE=$(echo "$VARIABLE" | sed 's/^[[:space:]]*//') # trim leading
local VARIABLE=$(echo "$VARIABLE" | sed 's/[[:space:]]*$//') # trim trailing
echo "$VARIABLE"
}
function check_variables_value() {
local NAME="$1"
local VALUE="$2"
if [ -z "$VALUE" ]; then
echo "$NAME environment variable must have a value."
exit 1
fi
}
function check_variables_boolean() {
local NAME="$1"
local VALUE="$2"
check_variables_list "$NAME" "$VALUE" "true false" "true" "true"
}
function check_variables_list() {
local NAME="$1"
local VALUE="$2"
local VALUES="$3"
local REQUIRED="$4"
local SINGLE="$5"
if [ "$REQUIRED" == "" ] || [ "$REQUIRED" == "true" ]; then
check_variables_value "$NAME" "$VALUE"
fi
if [[ ("$SINGLE" == "" || "$SINGLE" == "true") && "$VALUE" != "" && "$VALUE" =~ " " ]]; then
echo "$NAME environment variable value [$VALUE] must be a single value of [$VALUES]."
exit 1
fi
if [ "$VALUE" != "" ] && [ -z "$(echo "$VALUES" | grep -F -w "$VALUE")" ]; then #SC2143
echo "$NAME environment variable value [$VALUE] must be in [$VALUES]."
exit 1
fi
}
function check_variables_equals() {
local NAME1="$1"
local NAME2="$2"
local VALUE1="$3"
local VALUE2="$4"
if [ "$VALUE1" != "$VALUE2" ]; then
echo "$NAME1 and $NAME2 must be equal [$VALUE1, $VALUE2]."
exit 1
fi
}
function check_variables_size() {
local NAME="$1"
local SIZE_EXPECT="$2"
local SIZE="$3"
if [ "$SIZE_EXPECT" != "$SIZE" ]; then
echo "$NAME array size [$SIZE] must be [$SIZE_EXPECT]."
exit 1
fi
}
function configure_network() {
if [ -n "$WIFI_INTERFACE" ]; then
iwctl --passphrase "$WIFI_KEY" station "$WIFI_INTERFACE" connect "$WIFI_ESSID"
sleep 10
fi
# only one ping -c 1, ping gets stuck if -c 5
if ! ping -c 1 -i 2 -W 5 -w 30 "$PING_HOSTNAME"; then
echo "Network ping check failed. Cannot continue."
exit 1
fi
}
function facts_commons() {
if [ -d /sys/firmware/efi ]; then
BIOS_TYPE="uefi"
else
BIOS_TYPE="bios"
fi
if [ -f "$ALIS_ASCIINEMA_FILE" ] || [ -f "$RECOVERY_ASCIINEMA_FILE" ]; then
ASCIINEMA="true"
else
ASCIINEMA="false"
fi
if lscpu | grep -q "GenuineIntel"; then
CPU_VENDOR="intel"
elif lscpu | grep -q "AuthenticAMD"; then
CPU_VENDOR="amd"
else
CPU_VENDOR=""
fi
if lspci -nn | grep "\[03" | grep -qi "intel"; then
GPU_VENDOR="intel"
elif lspci -nn | grep "\[03" | grep -qi "amd"; then
GPU_VENDOR="amd"
elif lspci -nn | grep "\[03" | grep -qi "nvidia"; then
GPU_VENDOR="nvidia"
elif lspci -nn | grep "\[03" | grep -qi "vmware"; then
GPU_VENDOR="vmware"
else
GPU_VENDOR=""
fi
if systemd-detect-virt | grep -qi "oracle"; then
VIRTUALBOX="true"
else
VIRTUALBOX="false"
fi
if systemd-detect-virt | grep -qi "vmware"; then
VMWARE="true"
else
VMWARE="false"
fi
INITRD_MICROCODE=""
if [ "$VIRTUALBOX" != "true" ] && [ "$VMWARE" != "true" ]; then
if [ "$CPU_VENDOR" == "intel" ]; then
INITRD_MICROCODE="intel-ucode.img"
elif [ "$CPU_VENDOR" == "amd" ]; then
INITRD_MICROCODE="amd-ucode.img"
fi
fi
USER_NAME_INSTALL="$(whoami)"
if [ "$USER_NAME_INSTALL" == "root" ]; then
SYSTEM_INSTALLATION="true"
else
SYSTEM_INSTALLATION="false"
fi
}
function init_log_trace() {
local ENABLE="$1"
if [ "$ENABLE" == "true" ]; then
set -o xtrace
fi
}
function init_log_file() {
local ENABLE="$1"
local FILE="$2"
if [ "$ENABLE" == "true" ]; then
exec &> >(tee -a "$FILE")
fi
}
function pacman_uninstall() {
local ERROR="true"
local PACKAGES=()
set +e
IFS=' ' read -ra PACKAGES <<< "$1"
local PACKAGES_UNINSTALL=()
for PACKAGE in "${PACKAGES[@]}"
do
execute_sudo "pacman -Qi $PACKAGE > /dev/null 2>&1"
local PACKAGE_INSTALLED=$?
if [ $PACKAGE_INSTALLED == 0 ]; then
local PACKAGES_UNINSTALL+=("$PACKAGE")
fi
done
if [ -z "${PACKAGES_UNINSTALL[*]}" ]; then
return
fi
local COMMAND="pacman -Rdd --noconfirm ${PACKAGES_UNINSTALL[*]}"
if execute_sudo "$COMMAND"; then
local ERROR="false"
fi
set -e
if [ "$ERROR" == "true" ]; then
exit 1
fi
}
function pacman_install() {
local ERROR="true"
local PACKAGES=()
set +e
IFS=' ' read -ra PACKAGES <<< "$1"
for VARIABLE in {1..5}
do
local COMMAND="pacman -Syu --noconfirm --needed ${PACKAGES[*]}"
if execute_sudo "$COMMAND"; then
local ERROR="false"
break
else
sleep 10
fi
done
set -e
if [ "$ERROR" == "true" ]; then
exit 1
fi
}
function aur_install() {
local ERROR="true"
local PACKAGES=()
set +e
which "$AUR_COMMAND"
if [ "$AUR_COMMAND" != "0" ]; then
aur_command_install "$USER_NAME" "$AUR_PACKAGE"
fi
IFS=' ' read -ra PACKAGES <<< "$1"
for VARIABLE in {1..5}
do
local COMMAND="$AUR_COMMAND -Syu --noconfirm --needed ${PACKAGES[*]}"
if execute_aur "$COMMAND"; then
local ERROR="false"
break
else
sleep 10
fi
done
set -e
if [ "$ERROR" == "true" ]; then
return
fi
}
function aur_command_install() {
pacman_install "git"
local USER_NAME="$1"
local COMMAND="$2"
execute_aur "rm -rf /home/$USER_NAME/.alis && mkdir -p /home/$USER_NAME/.alis/aur && cd /home/$USER_NAME/.alis/aur && git clone https://aur.archlinux.org/${COMMAND}.git && (cd $COMMAND && makepkg -si --noconfirm) && rm -rf /home/$USER_NAME/.alis"
}
function systemd_units() {
local UNITS=()
IFS=' ' read -ra UNITS <<< "$SYSTEMD_UNITS"
for U in "${UNITS[@]}"; do
local ACTION=""
local UNIT=${U}
if [[ $UNIT == -* ]]; then
local ACTION="disable"
local UNIT=$(echo "$UNIT" | sed "s/^-//g")
elif [[ $UNIT == +* ]]; then
local ACTION="enable"
local UNIT=$(echo "$UNIT" | sed "s/^+//g")
elif [[ $UNIT =~ ^[a-zA-Z0-9]+ ]]; then
local ACTION="enable"
local UNIT=$UNIT
fi
if [ -n "$ACTION" ]; then
execute_sudo "systemctl $ACTION $UNIT"
fi
done
}
function execute_flatpak() {
local COMMAND="$1"
if [ "$SYSTEM_INSTALLATION" == "true" ]; then
arch-chroot "${MNT_DIR}" bash -c "$COMMAND"
else
bash -c "$COMMAND"
fi
}
function execute_aur() {
local COMMAND="$1"
if [ "$SYSTEM_INSTALLATION" == "true" ]; then
arch-chroot "${MNT_DIR}" sed -i 's/^%wheel ALL=(ALL:ALL) ALL$/%wheel ALL=(ALL:ALL) NOPASSWD: ALL/' /etc/sudoers
arch-chroot "${MNT_DIR}" bash -c "echo -e \"$USER_PASSWORD\n$USER_PASSWORD\n$USER_PASSWORD\n$USER_PASSWORD\n\" | su $USER_NAME -s /usr/bin/bash -c \"$COMMAND\""
arch-chroot "${MNT_DIR}" sed -i 's/^%wheel ALL=(ALL:ALL) NOPASSWD: ALL$/%wheel ALL=(ALL:ALL) ALL/' /etc/sudoers
else
bash -c "$COMMAND"
fi
}
function execute_sudo() {
local COMMAND="$1"
if [ "$SYSTEM_INSTALLATION" == "true" ]; then
arch-chroot "${MNT_DIR}" bash -c "$COMMAND"
else
sudo bash -c "$COMMAND"
fi
}
function execute_user() {
local USER_NAME="$1"
local COMMAND="$2"
if [ "$SYSTEM_INSTALLATION" == "true" ]; then
arch-chroot "${MNT_DIR}" bash -c "su $USER_NAME -s /usr/bin/bash -c \"$COMMAND\""
else
bash -c "$COMMAND"
fi
}
function do_reboot() {
umount -R "${MNT_DIR}"/boot
umount -R "${MNT_DIR}"
reboot
}
function print_step() {
STEP="$1"
echo ""
echo -e "${BLUE}# ${STEP} step${NC}"
echo ""
}
function execute_step() {
local STEP="$1"
eval "$STEP"
}
function partition_setup() {
# setup
if [ "$PARTITION_MODE" == "auto" ]; then
PARTITION_PARTED_FILE_SYSTEM_TYPE="$FILE_SYSTEM_TYPE"
if [ "$PARTITION_PARTED_FILE_SYSTEM_TYPE" == "f2fs" ]; then
PARTITION_PARTED_FILE_SYSTEM_TYPE=""
fi
PARTITION_PARTED_UEFI="mklabel gpt mkpart ESP fat32 1MiB 512MiB mkpart root $PARTITION_PARTED_FILE_SYSTEM_TYPE 512MiB 100% set 1 esp on"
PARTITION_PARTED_BIOS="mklabel msdos mkpart primary ext4 4MiB 512MiB mkpart primary $PARTITION_PARTED_FILE_SYSTEM_TYPE 512MiB 100% set 1 boot on"
elif [ "$PARTITION_MODE" == "custom" ]; then
PARTITION_PARTED_UEFI="$PARTITION_CUSTOM_PARTED_UEFI"
PARTITION_PARTED_BIOS="$PARTITION_CUSTOM_PARTED_BIOS"
fi
if [ "$DEVICE_SDA" == "true" ]; then
PARTITION_BOOT="$(partition_device "${DEVICE}" "${PARTITION_BOOT_NUMBER}")"
PARTITION_ROOT="$(partition_device "${DEVICE}" "${PARTITION_ROOT_NUMBER}")"
DEVICE_ROOT="$(partition_device "${DEVICE}" "${PARTITION_ROOT_NUMBER}")"
fi
if [ "$DEVICE_NVME" == "true" ]; then
PARTITION_BOOT="$(partition_device "${DEVICE}" "${PARTITION_BOOT_NUMBER}")"
PARTITION_ROOT="$(partition_device "${DEVICE}" "${PARTITION_ROOT_NUMBER}")"
DEVICE_ROOT="$(partition_device "${DEVICE}" "${PARTITION_ROOT_NUMBER}")"
fi
if [ "$DEVICE_VDA" == "true" ]; then
PARTITION_BOOT="$(partition_device "${DEVICE}" "${PARTITION_BOOT_NUMBER}")"
PARTITION_ROOT="$(partition_device "${DEVICE}" "${PARTITION_ROOT_NUMBER}")"
DEVICE_ROOT="$(partition_device "${DEVICE}" "${PARTITION_ROOT_NUMBER}")"
fi
if [ "$DEVICE_MMC" == "true" ]; then
PARTITION_BOOT="$(partition_device "${DEVICE}" "${PARTITION_BOOT_NUMBER}")"
PARTITION_ROOT="$(partition_device "${DEVICE}" "${PARTITION_ROOT_NUMBER}")"
DEVICE_ROOT="$(partition_device "${DEVICE}" "${PARTITION_ROOT_NUMBER}")"
fi
}
function partition_device() {
local DEVICE="$1"
local NUMBER="$2"
local PARTITION_DEVICE=""
if [ "$DEVICE_SDA" == "true" ]; then
PARTITION_DEVICE="${DEVICE}${NUMBER}"
fi
if [ "$DEVICE_NVME" == "true" ]; then
PARTITION_DEVICE="${DEVICE}p${NUMBER}"
fi
if [ "$DEVICE_VDA" == "true" ]; then
PARTITION_DEVICE="${DEVICE}${NUMBER}"
fi
if [ "$DEVICE_MMC" == "true" ]; then
PARTITION_DEVICE="${DEVICE}p${NUMBER}"
fi
echo "$PARTITION_DEVICE"
}
function partition_options() {
PARTITION_OPTIONS_BOOT="defaults"
PARTITION_OPTIONS="defaults"
if [ "$DEVICE_TRIM" == "true" ]; then
PARTITION_OPTIONS_BOOT="$PARTITION_OPTIONS_BOOT,noatime"
PARTITION_OPTIONS="$PARTITION_OPTIONS,noatime"
if [ "$FILE_SYSTEM_TYPE" == "f2fs" ]; then
PARTITION_OPTIONS="$PARTITION_OPTIONS,nodiscard"
fi
fi
}
function partition_mount() {
if [ "$FILE_SYSTEM_TYPE" == "btrfs" ]; then
# mount subvolumes
mount -o "subvol=${BTRFS_SUBVOLUME_ROOT[1]},$PARTITION_OPTIONS,compress=zstd" "$DEVICE_ROOT" "${MNT_DIR}"
mkdir -p "${MNT_DIR}"/boot
mount -o "$PARTITION_OPTIONS_BOOT" "$PARTITION_BOOT" "${MNT_DIR}"/boot
for I in "${BTRFS_SUBVOLUMES_MOUNTPOINTS[@]}"; do
IFS=',' read -ra SUBVOLUME <<< "$I"
if [ "${SUBVOLUME[0]}" == "root" ]; then
continue
fi
if [ "${SUBVOLUME[0]}" == "swap" ] && [ -z "$SWAP_SIZE" ]; then
continue
fi
if [ "${SUBVOLUME[0]}" == "swap" ]; then
mkdir -p "${MNT_DIR}${SUBVOLUME[2]}"
chmod 0755 "${MNT_DIR}${SUBVOLUME[2]}"
else
mkdir -p "${MNT_DIR}${SUBVOLUME[2]}"
fi
mount -o "subvol=${SUBVOLUME[1]},$PARTITION_OPTIONS,compress=zstd" "$DEVICE_ROOT" "${MNT_DIR}${SUBVOLUME[2]}"
done
else
# root
mount -o "$PARTITION_OPTIONS" "$DEVICE_ROOT" "${MNT_DIR}"
# boot
mkdir -p "${MNT_DIR}"/boot
mount -o "$PARTITION_OPTIONS_BOOT" "$PARTITION_BOOT" "${MNT_DIR}"/boot
# mount points
for I in "${PARTITION_MOUNT_POINTS[@]}"; do
if [[ "$I" =~ ^!.* ]]; then
continue
fi
IFS='=' read -ra PARTITION_MOUNT_POINT <<< "$I"
if [ "${PARTITION_MOUNT_POINT[1]}" == "/boot" ] || [ "${PARTITION_MOUNT_POINT[1]}" == "/" ]; then
continue
fi
local PARTITION_DEVICE="$(partition_device "${DEVICE}" "${PARTITION_MOUNT_POINT[0]}")"
mkdir -p "${MNT_DIR}${PARTITION_MOUNT_POINT[1]}"
mount -o "$PARTITION_OPTIONS" "${PARTITION_DEVICE}" "${MNT_DIR}${PARTITION_MOUNT_POINT[1]}"
done
fi
}
function ask_password() {
PASSWORD_NAME="$1"
PASSWORD_VARIABLE="$2"
read -r -sp "Type ${PASSWORD_NAME} password: " PASSWORD1
echo ""
read -r -sp "Retype ${PASSWORD_NAME} password: " PASSWORD2
echo ""
if [[ "$PASSWORD1" == "$PASSWORD2" ]]; then
declare -n VARIABLE="${PASSWORD_VARIABLE}"
VARIABLE="$PASSWORD1"
else
echo "${PASSWORD_NAME} password don't match. Please, type again."
ask_password "${PASSWORD_NAME}" "${PASSWORD_VARIABLE}"
fi
}

31
alis-kvm-virt-install.sh Executable file
View File

@ -0,0 +1,31 @@
#!/usr/bin/env bash
set -eu
# https://wiki.archlinux.org/title/Libvirt#Server
# https://wiki.archlinux.org/title/QEMU#Bridged_networking_using_qemu-bridge-helper
# sudo pacman -S virt-install dnsmasq dmidecode
# sudo usermod -a -G libvirtd picodotdev
# sudo systemctl start libvirtd.service
# mkdir -p /etc/qemu
# vim /etc/qemu/bridge.conf
# allow virbr0
# 3D Acceleration
# Host and guest shared clipboard
# Host and guest file sharing
DISK_DIRECTORY="/run/media/picodotdev/Samsung microSD/KVM VMs"
ISO_DIRECTORY="/run/media/picodotdev/Samsung microSD/Iso"
virt-install \
--connect=qemu:///session \
--name archlinux-alis \
--os-variant archlinux \
--vcpu 2 \
--ram 4096 \
--boot uefi \
--disk path="$DISK_DIRECTORY/archlinux-alis.qcow2,format=qcow2,size=40,sparse=yes" \
--cdrom "$ISO_DIRECTORY/archlinux-x86_64.iso" \
--disk cloud-init/alis-cloud-init.iso,device=cdrom,bus=sata \
--network bridge=virbr0 \
--noautoconsole

19
alis-packages-asciinema.sh Executable file
View File

@ -0,0 +1,19 @@
#!/usr/bin/env bash
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
#curl -L -o asciinema-2.0.2.zip https://github.com/asciinema/asciinema/archive/v2.0.2.zip
#bsdtar xvf asciinema-2.0.2.zip
#rm -f alis.asciinema
#(cd asciinema-2.0.2 && python3 -m asciinema rec --stdin -i 5 ~/alis.asciinema)
rm -f alis-packages.asciinema
#pacman -S --noconfirm asciinema
clear
asciinema rec --stdin -i 5 ~/alis-packages.asciinema

23
alis-packages-exit.sh Executable file
View File

@ -0,0 +1,23 @@
#!/usr/bin/env bash
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
LOG_FILE="alis-packages.log"
ASCIINEMA_FILE="alis-packages.asciinema"
function copy_logs() {
if [ -f "$LOG_FILE" ]; then
sudo mkdir -p /var/log/alis
sudo cp "$LOG_FILE" "/var/log/alis/$LOG_FILE"
fi
if [ -f "$ASCIINEMA_FILE" ]; then
sudo mkdir -p /var/log/alis
sudo cp "$ASCIINEMA_FILE" "/var/log/alis/$ASCIINEMA_FILE"
fi
}
copy_logs

89
alis-packages.conf Normal file
View File

@ -0,0 +1,89 @@
# Arch Linux Install Script (alis) configuration file
#
# Some variables values are preceded by a ! character, this means that the value is ignored.
# Some variables accept a single value others accept multiple values as annotated in the comments.
# Some variables are boolean with a value of true or false.
#
# Read the Arch Linux wiki pages to learn more about the variables values.
# https://github.com/picodotdev/alis/blob/master/README.md
# init
## LOG_TRACE outputs the comands executed.
## LOG_FILE generates a log file with the commands executed and output generated during installation.
### The log file is saved to /var/log/alis-packages.log.
LOG_TRACE="true"
LOG_FILE="false"
# pacman
## Arch Linux packages to install
## more at https://www.archlinux.org/packages/
## PACKAGES_PACMAN_CUSTOM_REPOSITORIES custom repositories to add to pacman configuration, see https://archlinux.org/pacman/pacman.conf.5.html#_repository_sections
### Comment lines starting with # charater are removed
PACKAGES_PACMAN_INSTALL="true"
PACKAGES_PACMAN_INSTALL_PIPEWIRE="false"
PACKAGES_PACMAN_INTERNET="!firefox !chromium !curl !wget !filezilla !sshfs !openssh !transmission-gtk !transmission-qt !liferea !gnome-boxes !gnome-tweaks"
PACKAGES_PACMAN_MULTIMEDIA="!gthumb !gimp !imagemagick !krita !inkscape !blender !cmus !vlc !easytag !ardour !audacity !ffmpeg !gnome-phone-manager !kdeconnect !gstreamer !gst-plugins-good !gst-plugins-bad !gst-plugins-ugly !bluez !bluez-utils"
PACKAGES_PACMAN_UTILITIES="!bash-completion !chezmoi !gnome-initial-setup !gnome-extra !code !lz4 !meld !dosfstools !ntfs-3g !exfat-utils !man-db !man-pages"
PACKAGES_PACMAN_DOCUMENTS_AND_TEXT="!libreoffice-fresh !calligra !discount !lyx !vim !calibre"
PACKAGES_PACMAN_COMMUNICATION="!geary !thunderbird !empathy !kopete !polari !konversation"
PACKAGES_PACMAN_GAMES=""
PACKAGES_PACMAN_SECURITY="!ufw !rsync !gnupg !keepassxc !encfs"
PACKAGES_PACMAN_SCIENCE="!geogebra !octave"
PACKAGES_PACMAN_OTHERS="!klavaro !tmux"
PACKAGES_PACMAN_DEVELOPER="!git !python !dotnet-sdk !php !rust !go !virtualbox !docker !ansible !vagrant !packer !terraform !vault !consul !nomad"
PACKAGES_PACMAN_CUSTOM=""
PACKAGES_PACMAN_PIPEWIRE="pipewire pipewire-pulse pipewire-alsa wireplumber !pipewire-jack !helvum !xdg-desktop-portal !xdg-desktop-portal-gnome !xdg-desktop-portal-kde !xdg-desktop-portal-wlr"
PACKAGES_PACMAN_CUSTOM_REPOSITORIES="
#[custom]
#SigLevel = Optional TrustAll
#Server = file:///home/custompkgs
"
## Flatpak packages to install
## more at https://flathub.org/apps/collection/popular
PACKAGES_FLATPAK_INSTALL="false"
PACKAGES_FLATPAK_INTERNET=""
PACKAGES_FLATPAK_MULTIMEDIA="!com.spotify.Client !org.ardour.Ardour !org.audacityteam.Audacity !tv.kodi.Kodi !org.pitivi.Pitivi"
PACKAGES_FLATPAK_UTILITIES="!org.freefilesync.FreeFileSync !org.gnome.World.PikaBackup !com.dropbox.Client"
PACKAGES_FLATPAK_DOCUMENTS_AND_TEXT="!org.onlyoffice.desktopeditors !com.wps.Office"
PACKAGES_FLATPAK_COMMUNICATION="!com.slack.Slack !com.microsoft.Teams !org.jitsi.jitsi-meet !us.zoom.Zoom !org.telegram.desktop"
PACKAGES_FLATPAK_GAMES="!com.valvesoftware.Steam !org.wesnoth.Wesnoth !com.albiononline.AlbionOnline !org.hedgewars.Hedgewars !com.mojang.Minecraft !net.supertuxkart.SuperTuxKart !org.openttd.OpenTTD"
PACKAGES_FLATPAK_SECURITY=""
PACKAGES_FLATPAK_SCIENCE=""
PACKAGES_FLATPAK_OTHERS="!org.gnucash.GnuCash"
PACKAGES_FLATPAK_DEVELOPER="!com.jetbrains.IntelliJ-IDEA-Community !org.eclipse.Java !com.getpostman.Postman"
PACKAGES_FLATPAK_CUSTOM=""
## SDKMAN packages to install
## more at https://sdkman.io/jdks and https://sdkman.io/sdks
PACKAGES_SDKMAN_INSTALL="false"
PACKAGES_SDKMAN_JDKS="!java !java:17.0.1-tem !java:11.0.13-tem !java:8.0.312-tem" # format <candidate>:[version]:[local-path]
PACKAGES_SDKMAN_SDKS="!gradle !maven !kotlin !groovy" # format <candidate>:[version]:[local-path]
## AUR utility and AUR packages to install
## more at https://aur.archlinux.org/packages/
PACKAGES_AUR_INSTALL="false"
PACKAGES_AUR_COMMAND="paru-bin !yay-bin !paru !yay !aurman"
PACKAGES_AUR_INTERNET=""
PACKAGES_AUR_MULTIMEDIA=""
PACKAGES_AUR_UTILITIES=""
PACKAGES_AUR_DOCUMENTS_AND_TEXT=""
PACKAGES_AUR_COMMUNICATION=""
PACKAGES_AUR_GAMES=""
PACKAGES_AUR_SECURITY=""
PACKAGES_AUR_SCIENCE=""
PACKAGES_AUR_OTHERS=""
PACKAGES_AUR_DEVELOPER=""
PACKAGES_AUR_CUSTOM=""
PACKAGES_PACMAN="$PACKAGES_PACMAN_INTERNET $PACKAGES_PACMAN_MULTIMEDIA $PACKAGES_PACMAN_UTILITIES $PACKAGES_PACMAN_DOCUMENTS_AND_TEXT $PACKAGES_PACMAN_COMMUNICATION $PACKAGES_PACMAN_GAMES $PACKAGES_PACMAN_SECURITY $PACKAGES_PACMAN_SCIENCE $PACKAGES_PACMAN_OTHERS $PACKAGES_PACMAN_DEVELOPER $PACKAGES_PACMAN_CUSTOM"
PACKAGES_FLATPAK="$PACKAGES_FLATPAK_INTERNET $PACKAGES_FLATPAK_MULTIMEDIA $PACKAGES_FLATPAK_UTILITIES $PACKAGES_FLATPAK_DOCUMENTS_AND_TEXT $PACKAGES_FLATPAK_COMMUNICATION $PACKAGES_FLATPAK_GAMES $PACKAGES_FLATPAK_SECURITY $PACKAGES_FLATPAK_SCIENCE $PACKAGES_FLATPAK_OTHERS $PACKAGES_FLATPAK_DEVELOPER $PACKAGES_FLATPAK_CUSTOM"
PACKAGES_SDKMAN="$PACKAGES_SDKMAN_JDKS $PACKAGES_SDKMAN_SDKS"
PACKAGES_AUR="$PACKAGES_AUR_INTERNET $PACKAGES_AUR_MULTIMEDIA $PACKAGES_AUR_UTILITIES $PACKAGES_AUR_DOCUMENTS_AND_TEXT $PACKAGES_AUR_COMMUNICATION $PACKAGES_AUR_GAMES $PACKAGES_AUR_SECURITY $PACKAGES_AUR_SCIENCE $PACKAGES_AUR_OTHERS $PACKAGES_AUR_DEVELOPER $PACKAGES_AUR_CUSTOM"
# systemd
## SYSTEMD_UNITS systemd units to enable or disable.
### If preceded with a "+" unit is enabled, if preceded with "-" unit is disabled, if preceded with "!" unit is ignored (no action is performed).
### eg. "+ufw.service" to enable, "-ufw.service" to disable, "!ufw.service" to ignore
SYSTEMD_UNITS="!ufw.service !bluetooth.service !docker.service"

311
alis-packages.sh Executable file
View File

@ -0,0 +1,311 @@
#!/usr/bin/env bash
# shellcheck disable=SC1090,SC2155,SC2034
# SC1090: Can't follow non-constant source. Use a directive to specify location.
# SC2155 Declare and assign separately to avoid masking return values
# SC2034: foo appears unused. Verify it or export it.
set -eu
# Arch Linux Install Script Packages (alis-packages) installs software
# packages.
# Copyright (C) 2022 picodotdev
# 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 <http://www.gnu.org/licenses/>.
# This script is hosted at https://github.com/picodotdev/alis. For new features,
# improvements and bugs fill an issue in GitHub or make a pull request.
# Pull Request are welcome!
#
# If you test it in real hardware please send me an email to pico.dev@gmail.com with
# the machine description and tell me if somethig goes wrong or all works fine.
#
# Please, don't ask for support for this script in Arch Linux forums, first read
# the Arch Linux wiki [1], the Installation Guide [2] and the General
# Recomendations [3], later compare the commands with those of this script.
#
# [1] https://wiki.archlinux.org
# [2] https://wiki.archlinux.org/index.php/Installation_guide
# [3] https://wiki.archlinux.org/index.php/General_recommendations
# Installs packages in a Arch Linux system.
#
# Usage:
# # loadkeys es
# # curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash
# # vim alis-packages.conf
# # ./alis-packages.sh
PACKAGES_STANDALONE="false"
function init_config() {
local COMMONS_FILE="alis-commons.sh"
source "$COMMONS_FILE"
if [ "$PACKAGES_STANDALONE" == "true" ]; then
source "$COMMONS_CONF_FILE"
fi
source "$PACKAGES_CONF_FILE"
}
function sanitize_variables() {
PACKAGES_PACMAN=$(sanitize_variable "$PACKAGES_PACMAN")
PACKAGES_PACMAN_PIPEWIRE=$(sanitize_variable "$PACKAGES_PACMAN_PIPEWIRE")
PACKAGES_FLATPAK=$(sanitize_variable "$PACKAGES_FLATPAK")
PACKAGES_SDKMAN=$(sanitize_variable "$PACKAGES_SDKMAN")
PACKAGES_AUR_COMMAND=$(sanitize_variable "$PACKAGES_AUR_COMMAND")
PACKAGES_AUR=$(sanitize_variable "$PACKAGES_AUR")
SYSTEMD_UNITS=$(sanitize_variable "$SYSTEMD_UNITS")
}
function check_variables() {
check_variables_boolean "PACKAGES_PACMAN_INSTALL" "$PACKAGES_PACMAN_INSTALL"
check_variables_boolean "PACKAGES_PACMAN_INSTALL_PIPEWIRE" "$PACKAGES_PACMAN_INSTALL_PIPEWIRE"
check_variables_boolean "PACKAGES_FLATPAK_INSTALL" "$PACKAGES_FLATPAK_INSTALL"
check_variables_boolean "PACKAGES_SDKMAN_INSTALL" "$PACKAGES_SDKMAN_INSTALL"
check_variables_boolean "PACKAGES_AUR_INSTALL" "$PACKAGES_AUR_INSTALL"
check_variables_list "PACKAGES_AUR_COMMAND" "$PACKAGES_AUR_COMMAND" "paru-bin yay-bin paru yay aurman" "true" "false"
}
function init() {
if [ "$PACKAGES_STANDALONE" == "true" ]; then
init_log_trace "$LOG_TRACE"
init_log_file "$LOG_FILE" "$PACKAGES_LOG_FILE"
fi
}
function facts() {
print_step "facts()"
facts_commons
if [ -z "$USER_NAME" ]; then
USER_NAME="$(whoami)"
fi
}
function checks() {
print_step "checks()"
check_variables_value "USER_NAME" "$USER_NAME"
if [ -n "$PACKAGES_PACMAN" ]; then
execute_sudo "pacman -Syi $PACKAGES_PACMAN"
fi
if [ "$SYSTEM_INSTALLATION" == "false" ]; then
ask_sudo
fi
}
function ask_sudo() {
sudo pwd >> /dev/null
}
function prepare() {
print_step "prepare()"
}
function packages() {
print_step "packages()"
packages_pacman
packages_flatpak
packages_sdkman
packages_aur
}
function packages_pacman() {
print_step "packages_pacman()"
if [ "$PACKAGES_PACMAN_INSTALL" == "true" ]; then
local CUSTOM_REPOSITORIES="$(echo "$PACKAGES_PACMAN_CUSTOM_REPOSITORIES" | grep -E "^[^#]|\n^$"; exit 0)"
if [ -n "$CUSTOM_REPOSITORIES" ]; then
execute_sudo "echo -e \"# alis\n$CUSTOM_REPOSITORIES\" >> /etc/pacman.conf"
fi
if [ -n "$PACKAGES_PACMAN" ]; then
pacman_install "$PACKAGES_PACMAN"
fi
if [[ ("$PACKAGES_PIPEWIRE" == "true" || "$PACKAGES_PACMAN_INSTALL_PIPEWIRE" == "true") && -n "$PACKAGES_PACMAN_PIPEWIRE" ]]; then
if echo "$PACKAGES_PACMAN_PIPEWIRE" | grep -F -qw "pipewire-pulse"; then
pacman_uninstall "pulseaudio pulseaudio-bluetooth"
fi
if echo "$PACKAGES_PACMAN_PIPEWIRE" | grep -F -qw "pipewire-alsa"; then
pacman_uninstall "pulseaudio pulseaudio-alsa"
fi
if echo "$PACKAGES_PACMAN_PIPEWIRE" | grep -F -qw "wireplumber"; then
pacman_uninstall "pipewire-media-session"
fi
if echo "$PACKAGES_PACMAN_PIPEWIRE" | grep -F -qw "pipewire-jack"; then
pacman_uninstall "jack2"
fi
pacman_install "$PACKAGES_PACMAN_PIPEWIRE"
#if [ -n "$(echo "$PACKAGES_PACMAN_PIPEWIRE" | grep -F -w "pipewire-pulse")" ]; then
# execute_user "$USER_NAME" "systemctl enable --user pipewire-pulse.service"
#fi
fi
fi
}
function packages_flatpak() {
print_step "packages_flatpak()"
if [ "$PACKAGES_FLATPAK_INSTALL" == "true" ]; then
pacman_install "flatpak"
if [ -n "$PACKAGES_FLATPAK" ]; then
execute_flatpak "flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo"
flatpak_install "$PACKAGES_FLATPAK"
fi
fi
}
function packages_sdkman() {
print_step "packages_sdkman()"
if [ "$PACKAGES_SDKMAN_INSTALL" == "true" ]; then
pacman_install "zip unzip"
execute_user "$USER_NAME" "curl -s https://get.sdkman.io | bash"
if [ -n "$PACKAGES_SDKMAN" ]; then
execute_user "$USER_NAME" "sed -i 's/sdkman_auto_answer=.*/sdkman_auto_answer=true/g' /home/$USER_NAME/.sdkman/etc/config"
sdkman_install "$PACKAGES_SDKMAN"
execute_user "$USER_NAME" "sed -i 's/sdkman_auto_answer=.*/sdkman_auto_answer=false/g' /home/$USER_NAME/.sdkman/etc/config"
fi
fi
}
function packages_aur() {
print_step "packages_aur()"
if [ "$PACKAGES_AUR_INSTALL" == "true" ]; then
local COMMANDS=()
IFS=' ' read -ra COMMANDS <<< "$PACKAGES_AUR_COMMAND"
for COMMAND in "${COMMANDS[@]}"
do
aur_command_install "$USER_NAME" "$COMMAND"
done
AUR_PACKAGE="${COMMANDS[0]}"
case "${AUR_PACKAGE}" in
"aurman" )
AUR_COMMAND="aurman"
;;
"yay" )
AUR_COMMAND="yay"
;;
"paru" )
AUR_COMMAND="paru"
;;
"yay-bin" )
AUR_COMMAND="yay"
;;
"paru-bin" | *)
AUR_COMMAND="paru"
;;
esac
if [ -n "$PACKAGES_AUR" ]; then
aur_install "$PACKAGES_AUR"
fi
fi
}
function flatpak_install() {
local OPTIONS=""
if [ "$SYSTEM_INSTALLATION" == "true" ]; then
local OPTIONS="--system"
fi
local ERROR="true"
local PACKAGES=()
set +e
IFS=' ' read -ra PACKAGES <<< "$1"
for VARIABLE in {1..5}
do
local COMMAND="flatpak install $OPTIONS -y flathub ${PACKAGES[*]}"
if ! execute_flatpak "$COMMAND"; then
local ERROR="false"
break
else
sleep 10
fi
done
set -e
if [ "$ERROR" == "true" ]; then
return
fi
}
function sdkman_install() {
local ERROR="true"
local PACKAGES=()
local PACKAGE=""
local I=()
set +e
IFS=' ' read -ra PACKAGES <<< "$1"
for PACKAGE in "${PACKAGES[@]}"
do
IFS=':' read -ra I <<< "$PACKAGE"
for VARIABLE in {1..5}
do
local COMMAND="source /home/$USER_NAME/.sdkman/bin/sdkman-init.sh && sdk install ${I[*]}"
if ! execute_user "$USER_NAME" "$COMMAND"; then
local ERROR="false"
break
else
sleep 10
fi
done
done
set -e
if [ "$ERROR" == "true" ]; then
return
fi
}
function end() {
echo ""
echo -e "${GREEN}Arch Linux packages installed successfully"'!'"${NC}"
echo ""
}
function main() {
local START_TIMESTAMP=$(date -u +"%F %T")
set +u
if [ "$COMMOMS_LOADED" != "true" ]; then
PACKAGES_STANDALONE="true"
fi
set -u
init_config
execute_step "sanitize_variables"
execute_step "check_variables"
execute_step "init"
execute_step "facts"
execute_step "checks"
execute_step "prepare"
execute_step "packages"
execute_step "systemd_units"
local END_TIMESTAMP=$(date -u +"%F %T")
local INSTALLATION_TIME=$(date -u -d @$(($(date -d "$END_TIMESTAMP" '+%s') - $(date -d "$START_TIMESTAMP" '+%s'))) '+%T')
echo -e "Installation packages start ${WHITE}$START_TIMESTAMP${NC}, end ${WHITE}$END_TIMESTAMP${NC}, time ${WHITE}$INSTALLATION_TIME${NC}"
execute_step "end"
}
main
"$@"

34
alis-packer.sh Executable file
View File

@ -0,0 +1,34 @@
#!/usr/bin/env bash
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
CONFIG_FILE="alis-packer.json"
BRANCH="master"
BRANCH_QUALIFIER=""
CONFIG_FILE_SH="alis-config-efi-ext4-systemd.sh"
while getopts "b:c:" arg; do
case $arg in
b)
BRANCH="$OPTARG"
;;
c)
CONFIG_FILE_SH="$OPTARG"
;;
*)
echo "Unknown option: $arg"
exit 1
;;
esac
done
if [ "$BRANCH" == "sid" ]; then
BRANCH_QUALIFIER="-sid"
fi
packer validate "packer/$CONFIG_FILE"
packer build -force -on-error=ask -var "branch=$BRANCH branch_qualifier=$BRANCH_QUALIFIER config_file_sh=$CONFIG_FILE_SH" "configs/$CONFIG_FILE"

13
alis-reboot.sh Executable file
View File

@ -0,0 +1,13 @@
#!/usr/bin/env bash
#shellcheck disable=SC1091
#SC1091: Can't follow non-constant source. Use a directive to specify location.
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
source "alis-commons.sh"
do_reboot

20
alis-recovery-asciinema.sh Executable file
View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
#curl -L -o asciinema-2.0.2.zip https://github.com/asciinema/asciinema/archive/v2.0.2.zip
#bsdtar xvf asciinema-2.0.2.zip
#rm -f alis.asciinema
#(cd asciinema-2.0.2 && python3 -m asciinema rec --stdin -i 5 ~/alis.asciinema)
rm -f alis-recovery.asciinema
pacman -Sy
pacman -S --noconfirm asciinema
clear
asciinema rec --stdin -i 5 ~/alis-recovery.asciinema

40
alis-recovery-reboot.sh Executable file
View File

@ -0,0 +1,40 @@
#!/usr/bin/env bash
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
LOG_FILE="alis-recovery.log"
ASCIINEMA_FILE="alis-recovery.asciinema"
function copy_logs() {
if [ -f "$LOG_FILE" ]; then
SOURCE_FILE="$LOG_FILE"
FILE="${MNT_DIR}/var/log/alis/$LOG_FILE"
mkdir -p "${MNT_DIR}/var/log/alis"
cp "$SOURCE_FILE" "$FILE"
chown root:root "$FILE"
chmod 600 "$FILE"
fi
if [ -f "$ASCIINEMA_FILE" ]; then
SOURCE_FILE="$ASCIINEMA_FILE"
FILE="${MNT_DIR}/var/log/alis/$ASCIINEMA_FILE"
mkdir -p "${MNT_DIR}/var/log/alis"
cp "$SOURCE_FILE" "$FILE"
chown root:root "$FILE"
chmod 600 "$FILE"
fi
}
function do_reboot() {
umount -R "${MNT_DIR}"/boot
umount -R "${MNT_DIR}"
reboot
}
copy_logs
do_reboot

55
alis-recovery.conf Normal file
View File

@ -0,0 +1,55 @@
# Arch Linux Install Script (alis) configuration file
#
# Some variables values are preceded by a ! character, this means that the value is ignored.
# Some variables accept a single value others accept multiple values as annotated in the comments.
# Some variables are boolean with a value of true or false.
#
# Read the Arch Linux wiki pages to learn more about the variables values.
# https://github.com/picodotdev/alis/blob/master/README.md
# init
## KEYS sets keyboard layout.
## LOG_TRACE outputs the comands executed.
## LOG_FILE generates a log file with the commands executed and output generated during installation.
### The log file is saved to /var/log/alis-recovery.log.
KEYS="es"
LOG_TRACE="true"
LOG_FILE="false"
# partition
## DEVICE sets which is the device for the installation. auto autodetects the device.
## DEVICE_TRIM sets if the DEVICE device supports TRIM feature.
## LVM sets if the DEVICE is partitioned with LVM partition scheme.
## LUKS_PASSWORD and LUKS_PASSWORD_RETYPE if set is the password for encrypt the device. With LVM, LVM on LUKS is used. If "ask" password alis asks for a secure password.
## FILE_SYSTEM_TYPE root device is formatted with this file system type.
## BTRFS_SUBVOLUMES_MOUNTPOINTS allows to customize btrfs file system subvolumes mountpoints. swap sobvolume is created only if swap file is created (only if there is SWAP_SIZE value).
### Format ("name,subvolume,mount_point")
## FILE_SYSTEM_TYPE root device is formatted with this file system type.
## PARTITION_MODE how partition is performed on DEVICE.
## PARTITION_MOUNT_POINTS mount points, partition number and directory, to mount from DEVICE.
DEVICE="auto !/dev/sda !/dev/nvme0n1 !/dev/vda !/dev/mmcblk0"
DEVICE_TRIM="true"
LVM="false"
LUKS_PASSWORD=""
LUKS_PASSWORD_RETYPE=""
FILE_SYSTEM_TYPE="ext4 !btrfs !xfs !f2fs !reiserfs" # (single)
BTRFS_SUBVOLUMES_MOUNTPOINTS=("root,root,/" "home,home,/home" "var,var,/var" "snapshots,snapshots,/snapshots" "swap,swap,/swap")
#BTRFS_SUBVOLUMES_MOUNTPOINTS=("root,@,/" "home,@home,/home" "var,@var_log,/var/log" "snapshots,@snapshots,/.snapshots" "swap,@swap,/swap")
SWAP_SIZE="!2048 !4096 !8192" # (single)
PARTITION_MODE="auto !custom !manual"
PARTITION_MOUNT_POINTS=("1=/boot" "2=/" "!3=/home")
# network_install
## Variables to setup the WIFI connection to internet.
## The WIFI interface, WIFI ESSID identifier and WIFI password must be specified. If "ask" password alis asks for a secure password.
## PING_HOSTNAME is the host to check the internet connection.
WIFI_INTERFACE=""
WIFI_ESSID=""
WIFI_KEY=""
WIFI_HIDDEN=""
PING_HOSTNAME="mirrors.kernel.org"
# chroot
## CHROOT sets if arch-chroot ${MNT_DIR} command is executed after partitions mounted to start recovery
CHROOT="false"

286
alis-recovery.sh Executable file
View File

@ -0,0 +1,286 @@
#!/usr/bin/env bash
# shellcheck disable=SC1090,SC2153,SC2155,SC2034
#SC1090: Can't follow non-constant source. Use a directive to specify location.
#SC2153: Possible Misspelling: MYVARIABLE may not be assigned. Did you mean MY_VARIABLE?
#SC2155 Declare and assign separately to avoid masking return values
#SC2034: foo appears unused. Verify it or export it.
set -eu
# Arch Linux Install Script Recovery (alis-recovery) start a recovery for an
# failed installation or broken system.
# Copyright (C) 2022 picodotdev
# 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 <http://www.gnu.org/licenses/>.
# This script is hosted at https://github.com/picodotdev/alis. For new features,
# improvements and bugs fill an issue in GitHub or make a pull request.
# Pull Request are welcome!
#
# If you test it in real hardware please send me an email to pico.dev@gmail.com with
# the machine description and tell me if somethig goes wrong or all works fine.
#
# Please, don't ask for support for this script in Arch Linux forums, first read
# the Arch Linux wiki [1], the Installation Guide [2] and the General
# Recomendations [3], later compare the commands with those of this script.
#
# [1] https://wiki.archlinux.org
# [2] https://wiki.archlinux.org/index.php/Installation_guide
# [3] https://wiki.archlinux.org/index.php/General_recommendations
# Starts the reccovery of a Arch Linux system installed with alis.
#
# Usage:
# # loadkeys es
# # curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash
# # vim alis-recovery.conf
# # ./alis-recovery.sh
function init_config() {
local COMMONS_FILE="alis-commons.sh"
source "$COMMONS_FILE"
source "$COMMONS_CONF_FILE"
source "$RECOVERY_CONF_FILE"
}
function sanitize_variables() {
DEVICE=$(sanitize_variable "$DEVICE")
FILE_SYSTEM_TYPE=$(sanitize_variable "$FILE_SYSTEM_TYPE")
PARTITION_MODE=$(sanitize_variable "$PARTITION_MODE")
SWAP_SIZE=$(sanitize_variable "$SWAP_SIZE")
PARTITION_CUSTOMMANUAL_BOOT=$(sanitize_variable "$PARTITION_CUSTOMMANUAL_BOOT")
PARTITION_CUSTOMMANUAL_ROOT=$(sanitize_variable "$PARTITION_CUSTOMMANUAL_ROOT")
for I in "${BTRFS_SUBVOLUMES_MOUNTPOINTS[@]}"; do
IFS=',' read -ra SUBVOLUME <<< "$I"
if [ "${SUBVOLUME[0]}" == "root" ]; then
BTRFS_SUBVOLUME_ROOT=("${SUBVOLUME[@]}")
elif [ "${SUBVOLUME[0]}" == "swap" ]; then
BTRFS_SUBVOLUME_SWAP=("${SUBVOLUME[@]}")
fi
done
for I in "${PARTITION_MOUNT_POINTS[@]}"; do
IFS='=' read -ra PARTITION_MOUNT_POINT <<< "$I"
if [ "${PARTITION_MOUNT_POINT[1]}" == "/boot" ]; then
PARTITION_BOOT_NUMBER="${PARTITION_MOUNT_POINT[0]}"
elif [ "${PARTITION_MOUNT_POINT[1]}" == "/" ]; then
PARTITION_ROOT_NUMBER="${PARTITION_MOUNT_POINT[0]}"
fi
done
}
function check_variables() {
check_variables_value "KEYS" "$KEYS"
check_variables_boolean "LOG_TRACE" "$LOG_TRACE"
check_variables_boolean "LOG_FILE" "$LOG_FILE"
check_variables_value "DEVICE" "$DEVICE"
if [ "$DEVICE" == "auto" ]; then
local DEVICE_BOOT=$(lsblk -oMOUNTPOINT,PKNAME -P -M | grep 'MOUNTPOINT="/run/archiso/bootmnt"' | sed 's/.*PKNAME="\(.*\)".*/\1/')
if [ -n "$DEVICE_BOOT" ]; then
local DEVICE_BOOT="/dev/$DEVICE_BOOT"
fi
local DEVICE_DETECTED="false"
if [ -e "/dev/sda" ] && [ "$DEVICE_BOOT" != "/dev/sda" ]; then
if [ "$DEVICE_DETECTED" == "true" ]; then
echo "Auto device is ambigous, detected $DEVICE and /dev/sda."
exit 1
fi
DEVICE_DETECTED="true"
DEVICE_SDA="true"
DEVICE="/dev/sda"
fi
if [ -e "/dev/nvme0n1" ] && [ "$DEVICE_BOOT" != "/dev/nvme0n1" ]; then
if [ "$DEVICE_DETECTED" == "true" ]; then
echo "Auto device is ambigous, detected $DEVICE and /dev/nvme0n1."
exit 1
fi
DEVICE_DETECTED="true"
DEVICE_NVME="true"
DEVICE="/dev/nvme0n1"
fi
if [ -e "/dev/vda" ] && [ "$DEVICE_BOOT" != "/dev/vda" ]; then
if [ "$DEVICE_DETECTED" == "true" ]; then
echo "Auto device is ambigous, detected $DEVICE and /dev/vda."
exit 1
fi
DEVICE_DETECTED="true"
DEVICE_VDA="true"
DEVICE="/dev/vda"
fi
if [ -e "/dev/mmcblk0" ] && [ "$DEVICE_BOOT" != "/dev/mmcblk0" ]; then
if [ "$DEVICE_DETECTED" == "true" ]; then
echo "Auto device is ambigous, detected $DEVICE and /dev/mmcblk0."
exit 1
fi
DEVICE_DETECTED="true"
DEVICE_MMC="true"
DEVICE="/dev/mmcblk0"
fi
fi
check_variables_boolean "DEVICE_TRIM" "$DEVICE_TRIM"
check_variables_boolean "LVM" "$LVM"
check_variables_equals "LUKS_PASSWORD" "LUKS_PASSWORD_RETYPE" "$LUKS_PASSWORD" "$LUKS_PASSWORD_RETYPE"
check_variables_list "FILE_SYSTEM_TYPE" "$FILE_SYSTEM_TYPE" "ext4 btrfs xfs f2fs reiserfs" "true" "true"
check_variables_size "BTRFS_SUBVOLUME_ROOT" ${#BTRFS_SUBVOLUME_ROOT[@]} 3
check_variables_list "BTRFS_SUBVOLUME_ROOT" "${BTRFS_SUBVOLUME_ROOT[2]}" "/" "true" "true"
if [ -n "$SWAP_SIZE" ]; then
check_variables_size "BTRFS_SUBVOLUME_SWAP" ${#BTRFS_SUBVOLUME_SWAP[@]} 3
fi
for I in "${BTRFS_SUBVOLUMES_MOUNTPOINTS[@]}"; do
IFS=',' read -ra SUBVOLUME <<< "$I"
check_variables_size "SUBVOLUME" ${#SUBVOLUME[@]} 3
done
check_variables_list "PARTITION_MODE" "$PARTITION_MODE" "auto custom manual" "true" "true"
check_variables_value "PARTITION_BOOT_NUMBER" "$PARTITION_BOOT_NUMBER"
check_variables_value "PARTITION_ROOT_NUMBER" "$PARTITION_ROOT_NUMBER"
check_variables_boolean "CHROOT" "$CHROOT"
}
function warning() {
echo -e "${BLUE}Welcome to Arch Linux Install Script Recovery${NC}"
echo ""
read -r -p "Do you want to continue? [y/N] " yn
case $yn in
[Yy]* )
;;
[Nn]* )
exit
;;
* )
exit
;;
esac
}
function init() {
print_step "init()"
init_log_trace "$LOG_TRACE"
init_log_file "$LOG_FILE" "$RECOVERY_LOG_FILE"
loadkeys "$KEYS"
}
function facts() {
print_step "facts()"
facts_commons
if echo "$DEVICE" | grep -q "^/dev/sd[a-z]"; then
DEVICE_SDA="true"
elif echo "$DEVICE" | grep -q "^/dev/nvme"; then
DEVICE_NVME="true"
elif echo "$DEVICE" | grep -q "^/dev/vd[a-z]"; then
DEVICE_VDA="true"
elif echo "$DEVICE" | grep -q "^/dev/mmc"; then
DEVICE_MMC="true"
fi
}
function prepare() {
print_step "prepare()"
prepare_partition
configure_network
ask_passwords
}
function prepare_partition() {
if [ -d "${MNT_DIR}"/boot ]; then
umount "${MNT_DIR}"/boot
umount "${MNT_DIR}"
fi
if [ -e "/dev/mapper/$LVM_VOLUME_GROUP-$LVM_VOLUME_LOGICAL" ]; then
umount "/dev/mapper/$LVM_VOLUME_GROUP-$LVM_VOLUME_LOGICAL"
fi
if [ -e "/dev/mapper/$LUKS_DEVICE_NAME" ]; then
cryptsetup close "$LUKS_DEVICE_NAME"
fi
partprobe "$DEVICE"
}
function ask_passwords() {
if [ "$LUKS_PASSWORD" == "ask" ]; then
PASSWORD_TYPED="false"
while [ "$PASSWORD_TYPED" != "true" ]; do
read -r -sp 'Type LUKS password: ' LUKS_PASSWORD
echo ""
read -r -sp 'Retype LUKS password: ' LUKS_PASSWORD_RETYPE
echo ""
if [ "$LUKS_PASSWORD" == "$LUKS_PASSWORD_RETYPE" ]; then
PASSWORD_TYPED="true"
else
echo "LUKS password don't match. Please, type again."
fi
done
fi
}
function partition() {
print_step "partition()"
# setup
partition_setup
# luks and lvm
if [ -n "$LUKS_PASSWORD" ]; then
echo -n "$LUKS_PASSWORD" | cryptsetup --key-file=- open "$PARTITION_ROOT" "$LUKS_DEVICE_NAME"
sleep 5
fi
if [ -n "$LUKS_PASSWORD" ]; then
DEVICE_ROOT="/dev/mapper/$LUKS_DEVICE_NAME"
fi
if [ "$LVM" == "true" ]; then
DEVICE_ROOT="/dev/mapper/$LVM_VOLUME_GROUP-$LVM_VOLUME_LOGICAL"
fi
# options
partition_options
# mount
partition_mount
}
function recovery() {
arch-chroot "${MNT_DIR}"
}
function end() {
echo ""
if [ "$CHROOT" == "false" ]; then
echo -e "${GREEN}Recovery started.${NC}"
else
echo -e "${GREEN}Recovery ended.${NC}"
fi
echo "You must do an explicit reboot after finalize recovery (exit if in arch-chroot, ./alis-reboot.sh)."
echo ""
}
function main() {
init_config
sanitize_variables
check_variables
warning
init
facts
prepare
partition
if [ "$CHROOT" == "true" ]; then
recovery
fi
end
}
main

187
alis.conf Normal file
View File

@ -0,0 +1,187 @@
# Arch Linux Install Script (alis) configuration file
#
# Some variables values are preceded by a ! character, this means that the value is ignored.
# Some variables accept a single value others accept multiple values as annotated in the comments.
# Some variables are boolean with a value of true or false.
# Some variables are experimental feature (use it and report in case of errors)
#
# Read the Arch Linux wiki pages to learn more about the variables values.
# https://github.com/picodotdev/alis/blob/master/README.md
# init
## KEYS sets keyboard layout.
## LOG_TRACE outputs the comands executed.
## LOG_FILE generates a log file with the commands executed and output generated during installation.
### The log file is saved to /var/log/alis.log.
KEYS="fi"
LOG_TRACE="true"
LOG_FILE="false"
# partition
## DEVICE sets which is the device for the installation. auto autodetects the device.
## DEVICE_TRIM sets if the DEVICE device supports TRIM feature.
## LVM sets if the DEVICE is partitioned with LVM partition scheme.
## LUKS_PASSWORD and LUKS_PASSWORD_RETYPE if set is the password for encrypt the device. With LVM, LVM on LUKS is used. If "ask" password alis asks for a secure password.
## FILE_SYSTEM_TYPE root device is formatted with this file system type.
## BTRFS_SUBVOLUMES_MOUNTPOINTS allows to customize btrfs file system subvolumes mountpoints. swap sobvolume is created only if swap file is created (only if there is SWAP_SIZE value).
### Format ("name,subvolume,mount_point")
## SWAP_SIZE swap file size with a size of the value in megabytes. If no value no swap file is created.
## PARTITION_MODE how partition is performed on DEVICE.
### "auto" value deletes all existing partitions and creates a boot partition and a root partition using disk full size.
### Warning! all disk data will be lost, so backup existing data before.
### "custom" value allows to use a custom parted partition script.
### "manual" allows to specify which existing partitions are used for boot partition and root partition.
## PARTITION_MOUNT_POINTS mount points, partition number and directory, to mount from DEVICE.
## GPT_AUTOMOUNT sets whether to use GPT partition automounting
DEVICE="auto !/dev/sda !/dev/nvme0n1 !/dev/vda !/dev/mmcblk0" # sata nvme mmc (single)
DEVICE_TRIM="true"
LVM="false"
LUKS_PASSWORD=""
LUKS_PASSWORD_RETYPE=""
FILE_SYSTEM_TYPE="ext4 !btrfs !xfs !f2fs !reiserfs" # (single)
BTRFS_SUBVOLUMES_MOUNTPOINTS=("root,root,/" "home,home,/home" "var,var,/var" "snapshots,snapshots,/snapshots" "swap,swap,/swap")
#BTRFS_SUBVOLUMES_MOUNTPOINTS=("root,@,/" "home,@home,/home" "var,@var_log,/var/log" "snapshots,@snapshots,/.snapshots" "swap,@swap,/swap")
SWAP_SIZE="!2048 !4096 !8192" # (single)
PARTITION_MODE="auto !custom !manual"
PARTITION_MOUNT_POINTS=("1=/boot" "2=/" "!3=/home")
PARTITION_CUSTOM_PARTED_UEFI="mklabel gpt mkpart ESP fat32 1MiB 512MiB mkpart root $FILE_SYSTEM_TYPE 512MiB 100% set 1 esp on"
PARTITION_CUSTOM_PARTED_BIOS="mklabel msdos mkpart primary ext4 4MiB 512MiB mkpart primary $FILE_SYSTEM_TYPE 512MiB 100% set 1 boot on"
GPT_AUTOMOUNT="false"
# network_install
## Variables to setup the WIFI connection to internet.
## The WIFI interface, WIFI ESSID identifier and WIFI password must be specified. If "ask" password alis asks for a secure password.
## PING_HOSTNAME is the host to check the internet connection.
WIFI_INTERFACE=""
WIFI_ESSID=""
WIFI_KEY="ask"
WIFI_KEY_RETYPE="ask"
PING_HOSTNAME="mirrors.kernel.org"
# install
## REFLECTOR allows to use reflector utility to use the best mirrors for packages download.
## REFLECTOR_COUNTRIES is an array of countries to select mirrors from.
## PACMAN_MIRROR if reflector is not used this specific mirror is used.
## PACMAN_PARALLEL_DOWNLOADS configures pacman to use parallel downloads, set to false on slow internet connections and disable timeouts.
## KERNELS additional kernels and headers to install.
## KERNELS_COMPRESSION selects the algorithm for kernel compression.
## KERNELS_PARAMETERS specific kernel parameters to set on boot. eg. iommu=soft
REFLECTOR="false"
REFLECTOR_COUNTRIES=("Finland")
PACMAN_MIRROR="https://mirrors.kernel.org/archlinux/\$repo/os/\$arch"
PACMAN_PARALLEL_DOWNLOADS="true"
KERNELS="!linux-lts !linux-lts-headers !linux-hardened !linux-hardened-headers !linux-zen !linux-zen-headers" # (multiple)
KERNELS_COMPRESSION="!gzip !bzip2 !lzma !xz !lzop !lz4 zstd"
KERNELS_PARAMETERS="!iommu=soft !nvme_load=YES"
# aur
## AUR_PACKAGE the AUR command to install in case some package requires it, only is installed if necessary.
AUR_PACKAGE="!paru-bin yay-bin !paru !yay !aurman" # (single)
# display driver
## DISPLAY_DRIVER installs a specific display driver, you must know which brand is the graphics hardware.
### With auto value intel driver is used for Intel brand, amdgpu driver for AMD brand and nvidia driver for NVIDIA brand.
### Other variables activates some features if are supported for the DISPLAY_DRIVER.
## KMS add support for kernel mode setting
## FASTBOOT, FRAMEBUFFER_COMPRESSION for intel graphics.
## DISPLAY_DRIVER_DDX add DDX driver which provides 2D acceleration in Xorg.
## VULKAN add support for Vulkan.
## DISPLAY_DRIVER_HARDWARE_VIDEO_ACCELERATION, DISPLAY_DRIVER_HARDWARE_VIDEO_ACCELERATION_INTEL add support for hardware video acceleration
DISPLAY_DRIVER="auto !intel !amdgpu !ati !nvidia !nvidia-lts !nvidia-dkms !nvidia-470xx-dkms !nvidia-390xx-dkms !nvidia-340xx-dkms !nouveau" # (single)
KMS="true"
FASTBOOT="true"
FRAMEBUFFER_COMPRESSION="true"
DISPLAY_DRIVER_DDX="false"
VULKAN="true"
DISPLAY_DRIVER_HARDWARE_VIDEO_ACCELERATION="true"
DISPLAY_DRIVER_HARDWARE_VIDEO_ACCELERATION_INTEL="intel-media-driver !libva-intel-driver" # (single)
# config
## Some variables for system configuration, from timezone, locale and keyboard to the root password.
## KEYLAYOUT, KEYMODEL, KEYVARIANT, KEYOPTIONS see https://wiki.archlinux.org/title/X_keyboard_extension#Preset_configuration
## KEYMAP, FONT, FONT_MAP see https://man.archlinux.org/man/vconsole.conf.5
## ROOT_PASSWORD root user password. If "ask" password alis asks for a secure password.
TIMEZONE="/usr/share/zoneinfo/Europe/Helsinki"
LOCALES=("en_US.UTF-8 UTF-8")
LOCALE_CONF=("LANG=en_US.UTF-8" "LANGUAGE=en_US:en")
KEYLAYOUT="fi"
KEYMODEL=""
KEYVARIANT=""
KEYOPTIONS=""
KEYMAP="KEYMAP=fi"
FONT=""
FONT_MAP=""
HOSTNAME="archlinux"
ROOT_PASSWORD="ask"
ROOT_PASSWORD_RETYPE="ask"
# user
## USER_NAME, USER_PASSWORD Regular user to create in the system. A password must be specified, if "ask" password alis asks for a secure password.
## ADDITIONAL_USERS is an array of additional users to create in the system, if "ask" password alis asks for a secure password.
USER_NAME="hate"
USER_PASSWORD="ask"
USER_PASSWORD_RETYPE="ask"
ADDITIONAL_USERS=() # eg. ("user1=password1" "user2=password2")
## systemd-homed
### SYSTEMD_HOMED (experimental) "true" value requires interactivity to set user password
SYSTEMD_HOMED="false"
SYSTEMD_HOMED_STORAGE="!auto !luks !subvolume directory !fscrypt !cifs"
SYSTEMD_HOMED_STORAGE_LUKS_TYPE="auto !ext4 !btrfs !xfs"
SYSTEMD_HOMED_STORAGE_CIFS_DOMAIN=""
SYSTEMD_HOMED_STORAGE_CIFS_SERVICE=""
# mkinitcpio
## HOOKS are the system hooks to execute to build the initial ramdisk.
## MODULES are used to specify the modules to load before anything to execute to build the initial ramdisk.
## UKI (experimental) generate and use a Unified Kernel Image.
### Generally, it is not necessary to modify, alis enables or disables some hooks
### taking in account other variables values like bootloader or device encryption.
HOOKS="base !udev !usr !resume !systemd !btrfs autodetect keyboard !keymap !consolefont !sd-vconsole modconf block !net !dmraid !mdadm !mdadm_udev !encrypt !sd-encrypt !lvm2 fsck filesystems"
MODULES="!vmd !tpm"
UKI="false"
# bootloader
## BOOTLOADER system boot loader.
### With auto value grub is used for BIOS system, systemd for UEFI system.
## SECURE_BOOT (experimental) use secure boot.
BOOTLOADER="auto !grub !refind !systemd !efistub" # (single)
SECURE_BOOT="false"
# shell
## CUSTOM_SHELL configures an alternative custom shell interpreter.
CUSTOM_SHELL="bash !zsh !dash !fish" # (single)
# desktop
## DESKTOP_ENVIRONMENT desktop environment to install.
## DISPLAY_MANAGER display manager to install and enable. With auto a default DM will be choosed based on the selected DE.
DESKTOP_ENVIRONMENT="!gnome !kde !xfce !mate !cinnamon !lxde !i3-wm !i3-gaps !deepin !budgie !bspwm !awesome !qtile !openbox !leftwm !dusk" # (single)
DISPLAY_MANAGER="auto !gdm !sddm !lightdm !lxdm" # (single)
# packages
## PACKAGES_MULTILIB configures multilib repository for pacman and install multilib packages for display driver.
## PACKAGES_INSTALL installs packages on system installation, edit alis-packages.conf to select packages.
## PACKAGES_PIPEWIRE installs PipeWire replacing PulseAudio, requires PACKAGES_INSTALL="true".
### It is recommended to install packages after base installation and reboot.
PACKAGES_MULTILIB="false"
PACKAGES_INSTALL="false"
PACKAGES_PIPEWIRE="true"
# provision
## PROVISION provisions the files placed in files directory on the installed system (preserving directory structure). This is useful to copy some configuration files.
PROVISION="false"
# misc
## VAGRANT for build a VirtualBox OVA with Packer
VAGRANT="false"
# systemd
## SYSTEMD_UNITS systemd units to enable or disable.
### If preceded with a "+" unit is enabled, if preceded with "-" unit is disabled, if preceded with "!" unit is ignored (no action is performed).
### eg. "+ufw.service" to enable, "-ufw.service" to disable, "!ufw.service" to ignore
SYSTEMD_UNITS=""
# reboot
## REBOOT on installation end reboots the system automatically. If "false" no reboot is performed and the user must do it explicitly.
REBOOT="true"

1910
alis.sh Executable file

File diff suppressed because it is too large Load Diff

0
cloud-init/meta-data Normal file
View File

8
cloud-init/user-data Normal file
View File

@ -0,0 +1,8 @@
#cloud-config
users:
- name: root
ssh_authorized_keys:
- ${SSH_RSA}
bootcmd:
- sed -i -E 's/#?PasswordAuthentication yes/PasswordAuthentication no/' /etc/ssh/sshd_config
- sed -i -E 's/#?PermitEmptyPasswords no/PermitEmptyPasswords yes/' /etc/ssh/sshd_config

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"true\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"grub\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"grub\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,20 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/^FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"btrfs\"/" ./alis.conf
sed -i "s/^LVM=.*/LVM=\"true\"/" ./alis.conf
sed -i "s/^LUKS_PASSWORD=.*/LUKS_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/^LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/^BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/^DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf
sed -i "s/PACKAGES_INSTALL=.*/PACKAGES_INSTALL=\"true\"/" ./alis.conf
sed -i "s/^PACKAGES_AUR_INSTALL=.*/PACKAGES_AUR_INSTALL=\"true\"/" ./alis-packages.conf
sed -i "s/^PACKAGES_AUR_COMMAND=.*/PACKAGES_AUR_COMMAND=\"paru-bun\"/" ./alis-packages.conf
sed -i "s/^PACKAGES_AUR_OTHERS=.*/PACKAGES_AUR_OTHERS=\"gnucash\"/" ./alis-packages.conf

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"btrfs\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"grub\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"gnome\"/" ./alis.conf

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"grub\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"i3-wm\"/" ./alis.conf

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"grub\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"kde\"/" ./alis.conf

View File

@ -0,0 +1,15 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"grub\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"xfce\"/" ./alis.conf

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"grub\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"grub\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"true\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"grub\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,18 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"true\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/SYSTEMD_HOMED=.*/SYSTEMD_HOMED=\"true\"/" ./alis.conf
sed -i "s/SYSTEMD_HOMED_STORAGE=.*/SYSTEMD_HOMED_STORAGE=\"luks\"/" ./alis.conf
sed -i "s/SYSTEMD_HOMED_STORAGE_LUKS_TYPE=.*/SYSTEMD_HOMED_STORAGE_LUKS_TYPE=\"ext4\")/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf

View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"true\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/CUSTOM_SHELL=.*/CUSTOM_SHELL=\"zsh\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"true\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"true\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"gnome\"/" ./alis.conf
sed -i "s/PACKAGES_INSTALL=.*/PACKAGES_INSTALL=\"true\"/" ./alis.conf
sed -i "s/PACKAGES_PIPEWIRE=.*/PACKAGES_PIPEWIRE=\"true\"/" ./alis.conf
sed -i "s/PACKAGES_FLATPAK_INSTALL=.*/PACKAGES_FLATPAK_INSTALL=\"true\"/" ./alis-packages.conf
sed -i "s/PACKAGES_FLATPAK_CUSTOM=.*/PACKAGES_FLATPAK_CUSTOM=\"org.videolan.VLC\"/" ./alis-packages.conf
sed -i "s/PACKAGES_SDKMAN_INSTALL=.*/PACKAGES_SDKMAN_INSTALL=\"true\"/" ./alis-packages.conf
sed -i "s/PACKAGES_SDKMAN_SDKS=.*/PACKAGES_SDKMAN_SDKS=\"java:17.0.1-tem\"/" ./alis-packages.conf

View File

@ -0,0 +1,22 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"gnome\"/" ./alis.conf
sed -i "s/PACKAGES_INSTALL=.*/PACKAGES_INSTALL=\"true\"/" ./alis.conf
sed -i "s/PACKAGES_INSTALL_PIPEWIRE=.*/PACKAGES_INSTALL_PIPEWIRE=\"false\"/" ./alis.conf
sed -i "s/PACKAGES_FLATPAK_INSTALL=.*/PACKAGES_FLATPAK_INSTALL=\"true\"/" ./alis-packages.conf
sed -i "s/PACKAGES_FLATPAK_CUSTOM=.*/PACKAGES_FLATPAK_CUSTOM=\"org.videolan.VLC\"/" ./alis-packages.conf
sed -i "s/PACKAGES_SDKMAN_INSTALL=.*/PACKAGES_SDKMAN_INSTALL=\"true\"/" ./alis-packages.conf
sed -i "s/PACKAGES_SDKMAN_SDKS=.*/PACKAGES_SDKMAN_SDKS=\"java:17.0.1-tem\"/" ./alis-packages.conf

View File

@ -0,0 +1,17 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"ext4\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"false\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

View File

@ -0,0 +1,16 @@
#!/usr/bin/env bash
set -eu
sed -i "s/LOG=.*/LOG=\"false\"/" ./alis.conf
sed -i "s#DEVICE=.*#DEVICE=\"auto\"#" ./alis.conf
sed -i "s/FILE_SYSTEM_TYPE=.*/FILE_SYSTEM_TYPE=\"f2fs\"/" ./alis.conf
sed -i "s/LVM=.*/LVM=\"true\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD=.*/LUKS_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/LUKS_PASSWORD_RETYPE=.*/LUKS_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD=.*/ROOT_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/ROOT_PASSWORD_RETYPE=.*/ROOT_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD=.*/USER_PASSWORD=\"archlinux\"/" ./alis.conf
sed -i "s/USER_PASSWORD_RETYPE=.*/USER_PASSWORD_RETYPE=\"archlinux\"/" ./alis.conf
sed -i "s/BOOTLOADER=.*/BOOTLOADER=\"systemd\"/" ./alis.conf
sed -i "s/DESKTOP_ENVIRONMENT=.*/DESKTOP_ENVIRONMENT=\"\"/" ./alis.conf

42
configs/alis-packer.json Normal file
View File

@ -0,0 +1,42 @@
{
"variables": {
"iso": "https://archive.archlinux.org/iso/2021.12.01/archlinux-2021.12.01-x86_64.iso",
"disk_size": "16384",
"config_file_sh": ""
},
"builders": [
{
"name": "archlinux-alis-virtualbox",
"type": "virtualbox-iso",
"guest_os_type": "ArchLinux_64",
"guest_additions_mode": "attach",
"headless": false,
"http_directory": ".",
"vboxmanage": [
["modifyvm", "{{.Name}}", "--memory", "2048"],
["modifyvm", "{{.Name}}", "--vram", "128"],
["modifyvm", "{{.Name}}", "--cpus", "2"],
["modifyvm", "{{.Name}}", "--firmware", "efi"]
],
"disk_size": "{{user `disk_size`}}",
"hard_drive_interface": "sata",
"iso_url": "{{user `iso`}}",
"iso_checksum": "sha1:e303b93788220dbe8e0ba1804c90beebe432cf63",
"ssh_username": "vagrant",
"ssh_password": "vagrant",
"ssh_wait_timeout": "120m",
"boot_wait": "5s",
"boot_command": [
"<wait3s><up><up><up><up><up><enter><wait45s>",
"curl -sL http://raw.githubusercontent.com/picodotdev/alis/{{user `branch`}}/download{{user `branch_qualifier`}}.sh | bash<enter><wait1s>",
"loadkeys en<enter><wait1>",
"./alis-asciinema.sh<enter><wait15>",
"less alis.conf<enter><wait2s><pageDown><wait2s><pageDown><wait2s><pageDown><wait2s><pageDown><wait2s><pageDown><wait2s><pageDown><wait2s>q<wait1s>",
"./alis.sh<enter><wait1s>y<wait1s><enter>"
],
"shutdown_command": "echo 'vagrant' | sudo -S systemctl poweroff",
"format": "ova"
}
]
}

46
download-sid.sh Executable file
View File

@ -0,0 +1,46 @@
#!/usr/bin/env bash
#shellcheck disable=SC2034
#SC2034: foo appears unused. Verify it or export it.
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
GITHUB_USER="picodotdev"
BRANCH="master"
HASH=""
ARTIFACT="alis-${BRANCH}"
while getopts "b:h:u:" arg; do
case ${arg} in
b)
BRANCH="${OPTARG}"
ARTIFACT="alis-${BRANCH}"
;;
h)
HASH="${OPTARG}"
ARTIFACT="alis-${HASH}"
;;
u)
GITHUB_USER=${OPTARG}
;;
?)
echo "Invalid option: -${OPTARG}."
exit 1
;;
esac
done
set -o xtrace
if [ -n "$HASH" ]; then
curl -sL -o "${ARTIFACT}.zip" "https://github.com/${GITHUB_USER}/alis/archive/${HASH}.zip"
bsdtar -x -f "${ARTIFACT}.zip"
cp -R "${ARTIFACT}"/*.sh "${ARTIFACT}"/*.conf "${ARTIFACT}"/files/ "${ARTIFACT}"/configs/ ./
else
curl -sL -o "${ARTIFACT}.zip" "https://github.com/${GITHUB_USER}/alis/archive/refs/heads/${BRANCH}.zip"
bsdtar -x -f "${ARTIFACT}.zip"
cp -R "${ARTIFACT}"/*.sh "${ARTIFACT}"/*.conf "${ARTIFACT}"/files/ "${ARTIFACT}"/configs/ ./
fi
chmod +x configs/*.sh
chmod +x ./*.sh

46
download.sh Executable file
View File

@ -0,0 +1,46 @@
#!/usr/bin/env bash
#shellcheck disable=SC2034
#SC2034: foo appears unused. Verify it or export it.
set -eu
# Arch Linux Install Script (alis) installs unattended, automated
# and customized Arch Linux system.
# Copyright (C) 2022 picodotdev
GITHUB_USER="picodotdev"
BRANCH="master"
HASH=""
ARTIFACT="alis-${BRANCH}"
while getopts "b:h:u:" arg; do
case ${arg} in
b)
BRANCH="${OPTARG}"
ARTIFACT="alis-${BRANCH}"
;;
h)
HASH="${OPTARG}"
ARTIFACT="alis-${HASH}"
;;
u)
GITHUB_USER=${OPTARG}
;;
?)
echo "Invalid option: -${OPTARG}."
exit 1
;;
esac
done
set -o xtrace
if [ -n "$HASH" ]; then
curl -sL -o "${ARTIFACT}.zip" "https://github.com/${GITHUB_USER}/alis/archive/${HASH}.zip"
bsdtar -x -f "${ARTIFACT}.zip"
cp -R "${ARTIFACT}"/*.sh "${ARTIFACT}"/*.conf "${ARTIFACT}"/files/ "${ARTIFACT}"/configs/ ./
else
curl -sL -o "${ARTIFACT}.zip" "https://github.com/${GITHUB_USER}/alis/archive/refs/heads/${BRANCH}.zip"
bsdtar -x -f "${ARTIFACT}.zip"
cp -R "${ARTIFACT}"/*.sh "${ARTIFACT}"/*.conf "${ARTIFACT}"/files/ "${ARTIFACT}"/configs/ ./
fi
chmod +x configs/*.sh
chmod +x ./*.sh

View File

@ -0,0 +1,9 @@
Section "ServerFlags"
Option "DontZap" "false"
EndSection
Section "InputClass"
Identifier "Keyboard Defaults"
MatchIsKeyboard "yes"
Option "XkbOptions" "terminate:ctrl_alt_bksp"
EndSection

View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="83" height="20" role="img" aria-label="ArchLinux"><title>ArchLinux</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="83" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="0" height="20" fill="#555"/><rect x="0" width="83" height="20" fill="black"/><rect width="83" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><image x="5" y="3" width="14" height="14" xlink:href="data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjMTc5M0QxIiByb2xlPSJpbWciIHZpZXdCb3g9IjAgMCAyNCAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48dGl0bGU+QXJjaCBMaW51eDwvdGl0bGU+PHBhdGggZD0iTTExLjM5LjYwNUMxMC4zNzYgMy4wOTIgOS43NjQgNC43MiA4LjYzNSA3LjEzMmMuNjkzLjczNCAxLjU0MyAxLjU4OSAyLjkyMyAyLjU1NC0xLjQ4NC0uNjEtMi40OTYtMS4yMjQtMy4yNTItMS44NkM2Ljg2IDEwLjg0MiA0LjU5NiAxNS4xMzggMCAyMy4zOTVjMy42MTItMi4wODUgNi40MTItMy4zNyA5LjAyMS0zLjg2MmE2LjYxIDYuNjEgMCAwMS0uMTcxLTEuNTQ3bC4wMDMtLjExNWMuMDU4LTIuMzE1IDEuMjYxLTQuMDk1IDIuNjg3LTMuOTczIDEuNDI2LjEyIDIuNTM0IDIuMDk2IDIuNDc4IDQuNDA5YTYuNTIgNi41MiAwIDAxLS4xNDYgMS4yNDNjMi41OC41MDUgNS4zNTIgMS43ODcgOC45MTQgMy44NDQtLjcwMi0xLjI5My0xLjMzLTIuNDU5LTEuOTI5LTMuNTctLjk0My0uNzMtMS45MjYtMS42ODItMy45MzMtMi43MTMgMS4zOC4zNTkgMi4zNjcuNzcyIDMuMTM3IDEuMjM0LTYuMDktMTEuMzM0LTYuNTgyLTEyLjg0LTguNjctMTcuNzR6TTIyLjg5OCAyMS4zNnYtLjYyM2gtLjIzNHYtLjA4NGguNTYydi4wODRoLS4yMzR2LjYyM2guMzMxdi0uNzA3aC4xNDJsLjE2Ny41LjAzNC4xMDdhMi4yNiAyLjI2IDAgMDEuMDM4LS4xMTRsLjE3LS40OTNIMjR2LjcwN2gtLjA5MXYtLjU5M2wtLjIwNi41OTNoLS4wODRsLS4yMDUtLjYwMnYuNjAyaC0uMDkxIi8+PC9zdmc+"/><text aria-hidden="true" x="505" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="550">ArchLinux</text><text x="505" y="140" transform="scale(.1)" fill="#fff" textLength="550">ArchLinux</text></g></svg>

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 57 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

BIN
images/archlinux-gnome.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 337 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

BIN
images/archlinux-kde.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 76 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

BIN
images/archlinux-lxde.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 59 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

BIN
images/archlinux-mate.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 26 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

BIN
images/archlinux-xfce.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 KiB

45
images/archlinux.svg Normal file
View File

@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- Created with Inkscape (http://www.inkscape.org/) -->
<svg xmlns:svg="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" version="1.0" width="600" height="199.41692" id="svg2424">
<defs id="defs2426">
<linearGradient x1="112.49854" y1="6.1372099" x2="112.49853" y2="129.3468" id="path1082_2_" gradientUnits="userSpaceOnUse" gradientTransform="translate(287,-83)">
<stop id="stop193" style="stop-color:#ffffff;stop-opacity:0" offset="0"/>
<stop id="stop195" style="stop-color:#ffffff;stop-opacity:0.27450982" offset="1"/>
<midPointStop offset="0" style="stop-color:#FFFFFF" id="midPointStop197"/>
<midPointStop offset="0.5" style="stop-color:#FFFFFF" id="midPointStop199"/>
<midPointStop offset="1" style="stop-color:#000000" id="midPointStop201"/>
</linearGradient>
<linearGradient x1="541.33502" y1="104.50665" x2="606.91248" y2="303.14029" id="linearGradient2544" xlink:href="#path1082_2_" gradientUnits="userSpaceOnUse" gradientTransform="matrix(-0.3937741,0,0,0.393752,357.51969,122.00151)"/>
<linearGradient id="linearGradient3388">
<stop id="stop3390" style="stop-color:#000000;stop-opacity:0" offset="0"/>
<stop id="stop3392" style="stop-color:#000000;stop-opacity:0.37113401" offset="1"/>
</linearGradient>
<linearGradient x1="490.72305" y1="237.72447" x2="490.72305" y2="183.9644" id="linearGradient4416" xlink:href="#linearGradient3388" gradientUnits="userSpaceOnUse" gradientTransform="matrix(0.749107,0,0,0.749107,-35.459862,91.44108)"/>
</defs>
<g transform="translate(-34.777313,-129.80241)" id="layer1">
<g transform="matrix(0.8746356,0,0,0.8746356,14.730518,23.408954)" id="g2424">
<g transform="matrix(0.6378586,0,0,0.6378586,36.486487,2.17139)" id="g2809" style="fill:#4d4d4d;fill-opacity:1">
<path d="m 339.96875,309.09375 c -14.47141,-0.0239 -26.4812,2.94367 -31.125,4.5625 l -4.78125,25.8125 c -0.0116,0.0951 23.79543,-6.34855 34.28125,-5.96875 17.36158,0.62381 18.95948,6.63541 18.65625,14.75 0.29595,0.47462 -4.47933,-7.33192 -19.5,-7.59375 -18.94961,-0.32687 -45.69284,6.70947 -45.65625,35.3125 -0.51086,32.17412 24.03361,41.63882 40.75,41.8125 15.02821,-0.27364 22.0777,-5.69136 25.9375,-8.59375 5.07124,-5.30236 10.87308,-10.63447 16.40625,-17.03125 -5.23567,9.51278 -9.77472,16.0898 -14.5,21.125 l 0,4.25 22.84375,-3.84375 0.15625,-62.09375 c -0.23141,-8.78839 5.04123,-42.41827 -43.46875,-42.5 z m -3.28125,54.0625 c 9.46889,0.12995 20.32788,4.79708 20.34375,16.03125 0.049,10.21821 -12.80005,15.71183 -21.15625,15.625 -8.35976,-0.0868 -19.45093,-6.56982 -19.5,-16.53125 0.16016,-8.90444 10.45953,-15.35418 20.3125,-15.125 z" id="path2284" style="fill:#4d4d4d;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
<path d="m 398.50106,314.83145 -0.15505,102.82693 26.61213,-5.12724 0.0449,-58.30157 c 0.006,-8.68089 12.40554,-18.82451 27.9627,-18.66287 3.30202,-5.97408 9.5087,-21.24219 11.02088,-24.71514 -34.75649,-0.0833 -35.19897,9.98993 -41.24398,14.94517 -0.0631,-9.45285 -0.0213,-15.12741 -0.0213,-15.12741 l -24.2202,4.16213 z" id="path2286" style="fill:#4d4d4d;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
<path d="m 548.2688,328.33058 c -0.25696,-0.12068 -13.87938,-15.93419 -41.26638,-16.0589 -25.65249,-0.42638 -54.42578,9.51895 -54.88631,52.5328 0.22457,37.81852 27.6402,52.59809 55.0314,52.88627 29.31292,0.30451 40.97654,-18.32947 41.67615,-18.79124 -3.49762,-3.0321 -16.59792,-16.0131 -16.59792,-16.0131 0,0 -8.18236,11.65102 -24.05802,11.79913 -15.87942,0.1512 -29.68245,-12.27325 -29.87805,-29.60905 -0.20349,-17.33595 12.68881,-26.72821 29.99725,-27.48687 14.98466,-0.003 23.6297,9.67334 23.6297,9.67334 l 16.35218,-18.93238 z" id="path2288" style="fill:#4d4d4d;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
<path d="m 581.8125,278.84375 -25.125,5.90625 0.1875,133.9375 24.75,-4.46875 0.28125,-63.03125 c 0.0529,-6.60927 9.56127,-16.75916 25.4375,-16.4375 15.17973,0.15775 18.57236,10.11767 18.53125,11.375 l 0.4375,72.96875 24.40625,-4.3125 0.0937,-77.375 c 0.1607,-7.44539 -16.30833,-23.16954 -42.78125,-23.28125 -12.58087,0.0202 -19.54815,2.86825 -23.09375,4.96875 -6.06656,4.68565 -12.9998,9.17543 -19.8125,14.90625 6.29809,-8.09099 11.58551,-13.68516 16.75,-17.84375 l -0.0625,-37.3125 z" id="path2290" style="fill:#4d4d4d;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
</g>
<g transform="matrix(0.9443373,0,0.01336345,0.9443373,78.345657,-412.48879)" id="g5326" style="fill:#1793d1;fill-opacity:1;stroke:none">
<path d="m 400.67581,629.79609 7.68167,-1.91575 -0.92851,91.20792 -7.79574,1.32426 1.04258,-90.61643 z" id="path2292" style="fill:#1793d1;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
<path d="m 421.10266,657.01757 6.75064,-2.9867 -0.86808,65.39931 -6.49779,1.33915 0.61523,-63.75176 z m -1.26059,-23.58316 5.47167,-4.41533 4.42261,4.99952 -5.47558,4.53221 -4.4187,-5.1164 z" id="path2294" style="fill:#1793d1;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
<path d="m 440.44273,655.82614 7.67755,-1.56201 -0.1573,13.6722 c -0.007,0.58717 4.4194,-15.27364 24.68502,-14.92094 19.67986,0.10952 22.68401,15.34634 22.5291,18.76237 l -0.43759,48.0783 -6.73044,1.45631 0.63316,-47.489 c 0.0974,-1.38684 -2.88144,-13.11441 -16.78906,-13.15754 -13.90509,-0.0404 -23.68364,10.10048 -23.75821,16.57937 l -0.48127,41.83477 -7.80388,2.0313 0.63292,-65.28513 z" id="path2296" style="fill:#1793d1;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
<path d="m 561.53301,720.20203 -7.6776,1.56186 0.15737,-13.67198 c 0.007,-0.58742 -4.42201,15.27361 -24.68504,14.92086 -19.67983,-0.10944 -22.68399,-15.34626 -22.52908,-18.76229 l 0.43757,-48.07861 8.15674,-1.64226 -0.54644,47.48988 c -0.0149,1.29682 1.36845,13.29979 15.27604,13.3426 13.90511,0.0405 23.76622,-8.37359 24.01453,-21.04416 l 0.43105,-37.46902 7.5978,-1.93195 -0.63294,65.28507 z" id="path2298" style="fill:#1793d1;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
<path d="m 577.45461,655.28678 -5.42715,4.20017 20.19894,26.93328 -22.39092,31.11622 5.63499,4.226 21.04365,-28.8967 20.8779,29.58159 5.32727,-4.20103 -22.37578,-31.62866 18.56963,-25.5775 -5.53193,-4.73429 -16.92109,23.66778 -19.00551,-24.68686 z" id="path2300" style="fill:#1793d1;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
</g>
<path d="m 105.8125,16.625 c -7.39687,18.135158 -11.858304,29.997682 -20.09375,47.59375 5.04936,5.35232 11.247211,11.585364 21.3125,18.625 C 96.210077,78.390904 88.828713,73.920352 83.3125,69.28125 72.7727,91.274163 56.259864,122.60209 22.75,182.8125 49.087628,167.60733 69.504089,158.23318 88.53125,154.65625 87.714216,151.1422 87.2497,147.34107 87.28125,143.375 l 0.03125,-0.84375 c 0.417917,-16.87382 9.195665,-29.84979 19.59375,-28.96875 10.39809,0.88104 18.48041,15.28242 18.0625,32.15625 -0.0786,3.17512 -0.43674,6.22955 -1.0625,9.0625 18.82058,3.68164 39.01873,13.03179 65,28.03125 -5.123,-9.4318 -9.69572,-17.93388 -14.0625,-26.03125 -6.87839,-5.33121 -14.05289,-12.2698 -28.6875,-19.78125 10.05899,2.61375 17.2611,5.62932 22.875,9 C 124.63297,63.338161 121.03766,52.354109 105.8125,16.625 z" transform="matrix(1.1433333,0,0,1.1433333,22.920168,121.64318)" id="path2518" style="fill:#1793d1;fill-opacity:1;fill-rule:evenodd;stroke:none"/>
<g id="text2634" style="font-size:8.44138241px;font-style:normal;font-weight:normal;fill:#1793d1;fill-opacity:1;stroke:none;font-family:DejaVu Sans Mono">
<path d="m 685.46692,263.83624 0,-5.32944 -1.99082,0 0,-0.71307 4.7895,0 0,0.71307 -1.99906,0 0,5.32944 -0.79962,0" id="path3945" style="fill:#1793d1;fill-opacity:1"/>
<path d="m 689.0982,263.83624 0,-6.04251 1.20355,0 1.43026,4.2784 c 0.13189,0.39843 0.22806,0.69658 0.28852,0.89442 0.0687,-0.21983 0.17586,-0.5427 0.3215,-0.96862 l 1.44674,-4.2042 1.07578,0 0,6.04251 -0.77077,0 0,-5.05741 -1.75587,5.05741 -0.72131,0 -1.74763,-5.14396 0,5.14396 -0.77077,0" id="path3947" style="fill:#1793d1;fill-opacity:1"/>
</g>
<g id="text2638" style="font-size:8.25130367px;font-style:normal;font-weight:normal;fill:#1793d1;fill-opacity:1;stroke:none;font-family:DejaVu Sans Mono">
<path d="m 239.84053,313.69965 0,-5.20945 -1.94598,0 0,-0.697 4.68164,0 0,0.697 -1.95404,0 0,5.20945 -0.78162,0" id="path3940" style="fill:#1793d1;fill-opacity:1"/>
<path d="m 243.39004,313.69965 0,-5.90645 1.17646,0 1.39805,4.18205 c 0.12892,0.38947 0.22293,0.6809 0.28202,0.87429 0.0671,-0.21488 0.1719,-0.53048 0.31426,-0.94681 l 1.41417,-4.10953 1.05155,0 0,5.90645 -0.75341,0 0,-4.94353 -1.71634,4.94353 -0.70506,0 -1.70828,-5.02814 0,5.02814 -0.75342,0" id="path3942" style="fill:#1793d1;fill-opacity:1"/>
</g>
</g>
</g>
</svg>

After

Width:  |  Height:  |  Size: 8.6 KiB

1
images/sh-bash-badge.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="60" height="20" role="img" aria-label="sh: bash"><title>sh: bash</title><linearGradient id="s" x2="0" y2="100%"><stop offset="0" stop-color="#bbb" stop-opacity=".1"/><stop offset="1" stop-opacity=".1"/></linearGradient><clipPath id="r"><rect width="60" height="20" rx="3" fill="#fff"/></clipPath><g clip-path="url(#r)"><rect width="23" height="20" fill="#555"/><rect x="23" width="37" height="20" fill="black"/><rect width="60" height="20" fill="url(#s)"/></g><g fill="#fff" text-anchor="middle" font-family="Verdana,Geneva,DejaVu Sans,sans-serif" text-rendering="geometricPrecision" font-size="110"><text aria-hidden="true" x="125" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="130">sh</text><text x="125" y="140" transform="scale(.1)" fill="#fff" textLength="130">sh</text><text aria-hidden="true" x="405" y="150" fill="#010101" fill-opacity=".3" transform="scale(.1)" textLength="270">bash</text><text x="405" y="140" transform="scale(.1)" fill="#fff" textLength="270">bash</text></g></svg>

After

Width:  |  Height:  |  Size: 1.1 KiB

1
site/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
deploy/

0
site/.hugo_build.lock Normal file
View File

View File

@ -0,0 +1,6 @@
---
title: "{{ replace .Name "-" " " | title }}"
date: {{ .Date }}
draft: true
---

5
site/build-deploy-github.sh Executable file
View File

@ -0,0 +1,5 @@
#!/usr/bin/env bash
set -eu
./build-deploy.sh
./deploy-github.sh

6
site/build-deploy.sh Executable file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -eu
(cd deploy/ && git pull)
hugo gen chromastyles --style=github > themes/alis/assets/syntax.css
hugo --destination="deploy" --gc --cleanDestinationDir

77
site/config.yaml Normal file
View File

@ -0,0 +1,77 @@
title: "alis :. Arch Linux Install Script"
baseURL: https://picodotdev.github.io/alis/
languageCode: "en"
defaultContentLanguage: "en"
metadataformat: "yaml"
timeout: 360000"
theme: "alis"
author:
name: "picodotdev"
description: "Ingeniero de software. I ♥ Java, GNU/Linux and libre software."
disableKinds:
- taxonomy
- taxonomyTerm
markup:
defaultMarkdownHandler: goldmark
blackFriday:
goldmark:
extensions:
linkify: false
renderer:
unsafe: true
xHTML: true
tableOfContents:
startLevel: 3
endLevel: 4
ordered: false
pygmentsUseClasses: true
pygmentsOptions: linenos=table,linenostart=1
pygmentsStyle: github
imaging:
resampleFilter: "box"
quality: 90
menu:
navbar:
- Name: "Home"
URL: "/"
Weight: 1
- Name: "What is alis?"
URL: "/#what-is"
Weight: 2
- Name: "Overview"
URL: "/overview/"
Weight: 3
- Name: "User Guide"
URL: "/user-guide/"
Weight: 4
- Name: "Source code"
URL: "https://github.com/picodotdev/alis/"
Weight: 5
footer:
- Name: "Home"
URL: "/"
Weight: 1
- Name: "What is alis?"
URL: "/#what-is"
Weight: 2
- Name: "Overview"
URL: "/overview/"
Weight: 3
- Name: "User Guide"
URL: "/user-guide/"
Weight: 4
- Name: "Source code"
URL: "https://github.com/picodotdev/alis/"
Weight: 5
params:
description: "A simple powerful Bash based script for an unattended, easy and fast way to install Arch Linux. Developed from many Arch Linux Wiki pages that fully automates the installation of a Arch Linux system after booting from the original Arch Linux installation media."
font:
name: "Open Sans"
sizes: [400,600]

View File

@ -0,0 +1,214 @@
---
pid: 0
title: "alis :. Arch Linux Install Script"
url: "/"
date: 2022-02-04T16:00:00+01:00
updated: 2022-02-04T16:00:00+01:00
index: true
tags: []
---
<div class="container">
<div class="row">
<div class="col-12">
<div class="p-5">
<div class="py-5 text-center">
<h1>Arch Linux Install Script</h1>
<p class="fs-3 text-muted">A simple powerful Bash based script for an unattended, easy and fast way to install Arch Linux.</p>
<p class="fs-3 text-muted">Boot. Get. Configure. Install. Enjoy.</p>
<ul class="list-unstyled list-inline">
<li class="list-inline-item"><a href="#usage">Usage</a></li>
<li class="list-inline-item"><a href="#video">See it in video</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class="container mt-4">
<div class="row justify-content-center">
<div class="col-auto">
<figure class="text-center">
<a href="https://www.archlinux.org/"><img src="images/logotypes/archlinux-logo-dark.svg" width="400" alt="Arch Linux"></a>
</figure>
</div>
<div class="col-auto">
<figure class="text-center">
<a href="https://www.gnu.org/software/bash/"><img src="images/logotypes/bash.svg" width="300" alt="Bash"></a>
</figure>
</div>
</div>
<div class="row justify-content-center">
<div class="col-auto">
<figure class="text-center">
<a href="https://www.gnu.org/"><img src="images/logotypes/gnu.svg" width="150" alt="GNU"></a>
</figure>
</div>
<div class="col-auto">
<figure class="text-center">
<a href="https://www.kernel.org/"><img src="images/logotypes/linux.svg" width="150" alt="Linux"></a>
</figure>
</div>
</div>
</div>
<section id="what-is" class="mt-4">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="fs-3 fw-bold">What is alis?</h2>
{{< markdown >}}
Arch Linux Install Script (or alis, also known as _the Arch Linux executable installation guide and wiki_) installs unattended, automated and customized Arch Linux system.
It is a simple Bash script developed from many Arch Linux Wiki pages that fully automates the installation of a [Arch Linux](https://archlinux.org/) system after booting from the original Arch Linux installation media. It contains the same commands that you would type and execute one by one interactively to complete the installation. The only user intervention needed is to edit a configuration file to choose the installation options and preferences from partitioning, to encryption, bootloader, file system, language and keyboard mapping, desktop environment, kernels, packages to install and graphic drivers. This automation makes the installation easy and fast, as fast as your internet connection allows.
{{< /markdown >}}
</div>
</div>
</div>
</section>
<section id="higlights" class="mt-4">
<div class="container">
<div class="row justify-content-around">
<div class="col-lg-4 col-xs-12">
<div class="card">
<div class="card-body">
<h5 class="card-title fw-bold">Bash based</h5>
<p class="card-text">Contains the same commands you type on a manual install one after another. Being Bash based is easy to compare the script commands with your own manual recipe and easy to compare with the commands provided by the Arch Linux wiki pages and other installation guides, ecause that can be known as _the Arch Linux executable installation guide and wiki_.</p>
<a href="https://github.com/picodotdev/alis" class="card-link">Source code</a>
</div>
</div>
</div>
<div class="col-lg-4 col-xs-12">
<div class="card">
<div class="card-body">
<h5 class="card-title fw-bold">Simple configuration</h5>
<p class="card-text">The configuration is a simple Bash file that defines some environment variables to customize the installation to each user own preferences. Simple variables but that allow most common and quite advanced configurations.</p>
<a href="https://github.com/picodotdev/alis/blob/master/alis.conf" class="card-link">Configuration file</a>
</div>
</div>
</div>
<div class="col-lg-4 col-xs-12">
<div class="card">
<div class="card-body">
<h5 class="card-title fw-bold">Unattended</h5>
<p class="card-text">Fully automated to complete the installation easy and fast, as fast as your internet connection allows. Not a guided script means is not necessary to spend time on answer slowly the same questions over and over on each usage.</p>
<a href="#video" class="card-link">See the video</a>
</div>
</div>
</div>
</div>
<div class="row justify-content-around mt-4">
<div class="col-lg-4 col-xs-12">
<div class="card">
<div class="card-body">
<h5 class="card-title fw-bold">Desktop environments</h5>
<p class="card-text">Choose between the most popular GNU/Linux desktop environments like <a href="https://www.gnome.org/">GNOME</a>, <a href="https://kde.org/">KDE</a>, <a href="https://xfce.org/">XFCE</a> or discover and try alternative graphical environments options like <a href="https://github.com/Airblader/i3">i3-gap</a>, <a href="https://www.deepin.org/en/dde/">Deepin</a>, <a href="https://github.com/BuddiesOfBudgie/budgie-desktop">Budgie</a> and others. Pick one from more than 10 available environments.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-xs-12">
<div class="card">
<div class="card-body">
<h5 class="card-title fw-bold">Advanced features</h5>
<p class="card-text">Based on more than 70 Arch Linux wiki pages to get a successful installation also for advanced features like LVM, LUKS encryption, BTRFS filesystem with subvolumes, alternative kernels, systemd-boot, systemd-homed, PipeWire, AUR utility or SSH install for virtual machines.</p>
</div>
</div>
</div>
<div class="col-lg-4 col-xs-12">
<div class="card">
<div class="card-body">
<h5 class="card-title fw-bold">And much more!</h5>
<p class="card-text">These are a small feature set selection provided by alis. Read the complete list.</p>
<a href="https://github.com/picodotdev/alis#features" class="card-link">Full feature set list</a>
</div>
</div>
</div>
</div>
</div>
</section>
<section class="mt-4">
<div class="container">
<div class="row">
<div class="col-12">
{{< ad-bilboard >}}
</div>
</div>
</div>
</section>
<section id="usage" class="mt-4">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="fs-3 fw-bold">Usage</h2>
<p>Only 4 commands away to have a vanilla Arch Linux system.</p>
{{< code file="install.sh" language="bash" options="" >}}
</div>
</div>
</div>
</section>
<section id="video" class="mt-4">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="fs-3 fw-bold">Video</h2>
<p>Arch Linux base installation installed in less than 4 minutes with a fiber internet connection and a NVMe SSD. Don't trust? See the video.</p>
<p>Type the system installation commands and wait to the installation complete. After a reboot the system is ready to use and customized with your choosen preferences.</p>
<script type="text/javascript" src="https://asciinema.org/a/444025.js" data-size="medium" data-cols="160" data-rows="40" id="asciicast-444025" async></script>
</div>
</div>
</div>
</section>
<section id="screenshots" class="mt-4">
<div class="container">
<div class="row">
<div class="col-12">
<h2 class="fs-3 fw-bold">Screenshots</h2>
<p>Once the installation ends you have a ready to use system with your choosen preferences including all the free software latest version you wish to do produtive task from browsing, multimedia and office programs, to programming languages, compilers and server software and tools for creative and artistic tasks.</p>
<p>These are some desktop environments that can be installed.</p>
<div class="p-5">
<div id="desktopEnvironmentsCarousel" class="carousel slide" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#desktopEnvironmentsCarousel" data-bs-slide-to="0" class="active" aria-current="true" aria-label="GNOME"></button>
<button type="button" data-bs-target="#desktopEnvironmentsCarousel" data-bs-slide-to="1" aria-label="KDE"></button>
<button type="button" data-bs-target="#desktopEnvironmentsCarousel" data-bs-slide-to="2" aria-label="XFCE"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active" data-bs-interval="10000">
<img src="images/archlinux-gnome.jpg" class="d-block w-100" alt="Arch Linux with GNOME desktop environment installed with alis">
<div class="carousel-caption d-none d-md-block bg-dark bg-opacity-50">
<h5>Arch Linux with GNOME desktop environment installed with alis</h5>
</div>
</div>
<div class="carousel-item" data-bs-interval="10000">
<img src="images/archlinux-kde.jpg" class="d-block w-100" alt="Arch Linux with KDE desktop environment installed with alis">
<div class="carousel-caption d-none d-md-block bg-dark bg-opacity-50">
<h5>Arch Linux with KDE desktop environment installed with alis</h5>
</div>
</div>
<div class="carousel-item" data-bs-interval="10000">
<img src="images/archlinux-xfce.jpg" class="d-block w-100" alt="Arch Linux with XFCE desktop environment installed with alis">
<div class="carousel-caption d-none d-md-block bg-dark bg-opacity-50">
<h5>Arch Linux with XFCE desktop environment installed with alis</h5>
</div>
</div>
</div>
<button class="carousel-control-prev" type="button" data-bs-target="#desktopEnvironmentsCarousel" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next" type="button" data-bs-target="#desktopEnvironmentsCarousel" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
</div>
</div>
</div>
</section>

6
site/content/install.sh Normal file
View File

@ -0,0 +1,6 @@
#!/usr/bin/env bash
# # Start the system with latest Arch Linux installation media
# loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# vim alis.conf # Edit configuration and change variables values with your preferences (system configuration)
# ./alis.sh # Start installation

View File

@ -0,0 +1,16 @@
---
pid: 2
title: "Gettting Started :. Arch Linux Install Script"
type: "pages"
url: "/getting-started/"
date: 2022-02-04T16:00:00+01:00
updated: 2022-02-04T16:00:00+01:00
index: true
rss: true
sharing: true
imagePage: "logotype:octopress.png"
tags: []
draft: true
---
# Getting Started

View File

@ -0,0 +1,242 @@
---
pid: 3
title: "Istallation :. Arch Linux Install Script"
type: "pages"
url: "/installation/"
date: 2022-02-04T16:00:00+01:00
updated: 2022-02-04T16:00:00+01:00
index: true
rss: true
sharing: true
imagePage: "logotype:octopress.png"
tags: []
draft: true
---
# Installation
<section id="principles">
<div class="container">
<div class="row">
<div class="col">
<h2 class="fs-3 fw-bold">Principles</h2>
{{< markdown >}}
* Use the original Arch Linux installation media
* As much unattended and automated as possible, require as little interactivity as possible
* Allow to customize the installation to cover the most common cases
* Provide support for system recovery
* Provide support for installation log
{{< /markdown >}}
</div>
</div>
</div>
</section>
<section id="features" class="section is-medium">
<div class="container">
<div class="title-wrapper has-text-centered">
<h2 class="title is-2">Features</h2>
<div class="divider is-centered"></div>
</div>
<div class="content-wrapper">
<ul>
<li><b>System</b>: UEFI, BIOS</li>
<li><b>Storage</b>: SATA, NVMe and MMC</li>
<li><b>Encryption</b>: root partition encrypted and no encrypted</li>
<li><b>Partition</b>: no LVM, LVM, LVM on LUKS, GPT on UEFI, MBR on BIOS, custom partition scheme and mountpoints</li>
<li><b>File system</b>: ext4, btrfs (with subvols), xfs, f2fs, reiserfs</li>
<li><b>Kernels</b>: linux, linux-lts, linux-hardened, linux-zen</li>
<li><b>Desktop environment</b>: GNOME, KDE, XFCE, Mate, Cinnamon, LXDE, i3-wm, i3-gaps, Deepin, Budgie, Bspwm, Awesome, Qtile, Openbox</li>
<li><b>Display managers</b>: GDM, SDDM, Lightdm, lxdm</li>
<li><b>Graphics controller</b>: intel, nvidia and amd with optionally early KMS start. With intel optionally fastboot, hardware video acceleration and framebuffer compression.</li>
<li><b>Bootloader</b>: GRUB, rEFInd, systemd-boot</li>
<li><b>Custom shell</b>: bash, zsh, dash, fish</li>
<li><b>WPA WIFI network</b> installation</li>
<li><b>Periodic TRIM</b> for SSD storage</li>
<li>Intel and AMD </b>processors microcode</b></li>
<li>Optional <b>swap file</b></li>
<li><b>VirtualBox guest additions</b> and <b>VMware tools</b> support</li>
<li><b>Kernel compression</b> and <b>custom parameters</b></li>
<li><b>Users creation</b> and <b>add to sudoers</b></li>
<li><b>systemd units enable or disable</b></li>
<li><b>systemd-homed</b> support</li>
<li><b>PipeWire</b> support</li>
<li><b>Multilib</b> support</li>
<li><b>Files provision</b> support</li>
<li>Arch Linux custom <b>packages installation</b> and <b>repositories installation</b></li>
<li>Flatpak utility installation and <b>Flatpak packages installation</b></li>
<li>SDKMAN utility installation and <b>SDKMAN packages installation</b></li>
<li><b>AUR utility</b> installation (yay, aurman) and <b>AUR packages installation</b></li>
<li><b>Packages installation after base system installation</b> (preferred way of packages installation)</li>
<li>Script for download installation and <b>recovery scripts</b> and configuration files</li>
<li><b>Retry packages download</b> on connection/mirror error</li>
<li><b>Packer support</b> for testing in VirtualBox</li>
<li><b>Installation log</b> with all commands executed and output in a file and/or <b>asciinema video</b></li>
<li>Wait after installation for an <b>abortable reboot</b></li>
<li>Fork the repository and <b>use your own configuration</b></li>
</ul>
</div>
</section>
<section id="system-installation" class="section is-medium">
<div class="container">
<div class="title-wrapper has-text-centered">
<h2 class="title is-2">System installation</h2>
<div class="divider is-centered"></div>
</div>
<div class="content-wrapper">
<p>
Download and boot from the latest <a href="https://www.archlinux.org/download/">original Arch Linux installation media</a>. After boot use the following commands to start the installation.
</p>
<p>
Follow the <a href="https://wiki.archlinux.org/title/Arch_Linux">Arch Way</a> of doing things and learn what this script does. This will allow you to know what is happening.
</p>
<p>
Internet connection is required, with wireless WIFI connection see <a href="https://wiki.archlinux.org/title/Wireless_network_configuration#Wi-Fi_Protected_Access">Wireless_network_configuration</a> to bring up WIFI connection before start the installation.
</p>
<p>
Minimum usage
</p>
{{< highlight bash "" >}}
# Start the system with latest Arch Linux installation media
loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
vim alis.conf # Edit configuration and change variables values with your preferences (system configuration)
./alis.sh # Start installation
{{< / highlight >}}
<p>
Advanced usage
</p>
{{< highlight bash "" >}}
# Start the system with latest Arch Linux installation media
loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
iwctl --passphrase "[WIFI_KEY]" station [WIFI_INTERFACE] connect "[WIFI_ESSID]" # (Optional) Connect to WIFI network. _ip link show_ to know WIFI_INTERFACE.
curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# curl -sL https://git.io/JeaH6 | bash # Alternative download URL with URL shortener
./alis-asciinema.sh # (Optional) Start asciinema video recording
vim alis.conf # Edit configuration and change variables values with your preferences (system configuration)
vim alis-packages.conf # (Optional) Edit configuration and change variables values with your preferences (packages to install)
# (The preferred way to install packages is after system installation, see Packages installation)
./alis.sh # Start installation
./alis-reboot.sh # (Optional) Reboot the system, only necessary when REBOOT="false"
{{< / highlight >}}
</div>
</div>
</section>
<section id="video" class="section is-medium">
<div class="container">
<div class="title-wrapper has-text-centered">
<h2 class="title is-2">Video</h2>
<div class="divider is-centered"></div>
</div>
<div class="content-wrapper">
<p>Arch Linux base installation installed in <b>less than 4 minutes</b> with a fiber internet connection and a NVMe SSD. Don't trust me? See the video.</p>
<script type="text/javascript" src="https://asciinema.org/a/444025.js" data-size="medium" data-cols="160" data-rows="40" id="asciicast-444025" async></script>
</div>
</div>
</section>
<section id="packages-installation" class="section is-medium">
<div class="container">
<div class="title-wrapper has-text-centered">
<h2 class="title is-2">Packages installation</h2>
<div class="divider is-centered"></div>
</div>
<div class="content-wrapper">
<p>
After the base Arch Linux system is installed, alis can install packages with pacman, Flatpak, SDKMAN and from AUR.
</p>
{{< highlight bash "" >}}
# After system installation start a user session
curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# curl -sL https://git.io/JeaH6 | bash # Alternative download URL with URL shortener
./alis-packages-asciinema.sh # (Optional) Start asciinema video recording
vim alis-packages.conf # Edit configuration and change variables values with your preferences (packages to install)
./alis-packages.sh # Start packages installation
{{< / highlight >}}
</div>
</div>
</section>
<section id="recovery" class="section is-medium">
<div class="container">
<div class="title-wrapper has-text-centered">
<h2 class="title is-2">Recovery</h2>
<div class="divider is-centered"></div>
</div>
<div class="content-wrapper">
<p>
Boot from the latest <a href="https://www.archlinux.org/download/">original Arch Linux installation media</a>. After boot use the following comands to start the recovery, this will allow you to enter in the arch-chroot environment.
</p>
{{< highlight bash "" >}}
# Start the system with latest Arch Linux installation media
loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
iwctl --passphrase "[WIFI_KEY]" station [WIFI_INTERFACE] connect "[WIFI_ESSID]" # (Optional) Connect to WIFI network. _ip link show_ to know WIFI_INTERFACE.
curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# curl -sL https://git.io/JeaH6 | bash # Alternative download URL with URL shortener
./alis-recovery-asciinema.sh # (Optional) Start asciinema video recording
vim alis-recovery.conf # Edit configuration and change variables values with your last installation configuration with alis (mainly device and partition scheme)
./alis-recovery.sh # Start recovery
./alis-recovery-reboot.sh # Reboot the system
{{< / highlight >}}
</div>
</div>
</section>
<section id="how-you-can-help" class="section is-medium">
<div class="container">
<div class="title-wrapper has-text-centered">
<h2 class="title is-2">How you can help</h2>
<div class="divider is-centered"></div>
</div>
<div class="content-wrapper">
<ul>
<li>Test in VirtualBox and create an issue if something does not work, attach the main parts of the used configuration file and the error message</li>
<li><a href="https://github.com/picodotdev/alis/issues">Create issues</a> with new features</li>
<li>Send <a href="https://github.com/picodotdev/alis/pulls">pull requests</a></li>
<li>Share it in social networks, forums, create a blog post or video about it</li>
<li>Send me an email, I like to read that the script is being used and is useful :). Which are your computer specs, which is your alis configuration, if is your personal or working computer, if all worked fine or some suggestion to improve the script</li>
</ul>
</div>
</div>
</section>
<section id="media-reference" class="section is-medium">
<div class="container">
<div class="title-wrapper has-text-centered">
<h2 class="title is-2">Media reference</h2>
<div class="divider is-centered"></div>
</div>
<div class="content-wrapper">
<ul>
<li>2022.01 <a href="https://www.arcolinuxiso.com/aa/">Arch + Alis, Arco Linux</a> (<a href="https://www.youtube.com/playlist?list=PLlloYVGq5pS7lMblPjiifVxxnMAqYzBU5">video playlist</a>)</li>
<li>2020.07 <a href="https://r1ce.net/2020/07/07/arch-installer-alis/">Arch installer - alis</a></li>
<li>2019.06 <a href="https://www.forbes.com/sites/jasonevangelho/2019/06/10/arch-linux-os-challenge-2-alternatives-install-gui-script-easy/">Arch Linux OS Challenge: Install Arch 'The Easy Way' With These 2 Alternative Methods</a></li>
</ul>
</div>
</div>
</section>
<div class="container">
<div class="columns is-vcentered">
<div class="column is-8 is-offset-2 has-text-centered">
<div class="col-12 adblock-container-billboard">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-3533636310991304" crossorigin="anonymous"></script>
<!-- alis-auto-billboard -->
<div class="adsense adsense-billboard">
<ins class="adsbygoogle"
style="display:block"
data-ad-client="ca-pub-3533636310991304"
data-ad-slot="8430508513"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
</div>
</div>

View File

@ -0,0 +1,158 @@
---
pid: 1
title: "Overview"
type: "pages"
url: "/overview/"
date: 2022-02-10T19:00:00+01:00
updated: 2022-02-10T16:30:00+01:00
index: true
tags: []
---
<section class="mt-4">
<div class="container">
<div class="row">
<div class="col">
{{< ad-bilboard >}}
</div>
</div>
</div>
</section>
# Overview
The [Arch Linux](https://archlinux.org/) distribution can be intimidating for users who want to use it as it does not offer a graphical installer and the officially recommended option is to read a few dozen pages of the wiki to complete the installation and then type many commands interactively from the terminal in which the installation media is launched. An installer is not offered because one of the principles of Arch is that it adjusts to the user and not the user to Arch, with an installer it is very difficult or impossible to achieve the customization desired by all users, that is why it is left to each user the responsibility but the power to install it as you want according to your preferences.
Actually it is not complicated to install Arch Linux in a basic configuration including a desktop environment but some options have a little more complexity and sometimes it is not achieved on the first try or it is achieved but not done correctly. For example, using LUKS over LVM to encrypt storage are additional steps in the installation that may cause the system to fail to boot properly using a boot loader such as systemd-boot or a user is not aware of the need to enable support for TRIM of the SSD device to keep it in optimal performance and durability conditions.
In any case, reading the wiki pages and finishing the installation successfully requires time and some effort to acquire the necessary knowledge, this makes Arch-based distributions with a graphical installer an alternative for those who want a distro like Arch Linux but installing it easily and quickly. However, some Arch-based distributions add their own customizations are no longer considered an Arch Linux distribution but a derivative distribution.
{{< tableofcontents >}}
### Introduction to Arch Linux
A user who is interested in must be aware of [the Arch Linux principles](https://wiki.archlinux.org/title/Arch_Linux#Principles) on which it is based, also known unofficially as _The Arch Way_, which are stated as _Simplicity_, _Modernity_, _Pragmatism_, _User centrality_ and _Versatility_. They can be summarized in that Arch Linux provides packages with minimal customizations over the original software, it is a _rolling-release_ distribution in which the packages are constantly updated to the latest versions, decisions are based on technical aspects, generally offering free software and open source without excluding proprietary software for those users who require that functionality, it is a user-centric rather than user-friendly distribution, it is intended for competent GNU/Linux users or anyone with an attitude that is willing to read documentation and solve their own problems. Finally, it is a general purpose distribution that not installs unwanted packages.
Once these principles and some of its characteristics are known, if you think that Arch Linux suits your needs, it is time to install. The official way to install Arch Linux is through the [official installation guide](https://wiki.archlinux.org/title/Installation_guide) that is made up of a collection of wiki pages that explain each step together with the commands to execute one after the other on the terminal in which the installation media starts. Installing Arch Linux manually and after reading the various necessary wiki pages you learn and know in more detail various aspects of the installed system, this is a great way to learn many things.
In addition to the principles, another way to see how Arch Linux differs from other distributions is that it is a rolling release distribution, so that in each system update, all the packages and programs are updated to the latest versions. That Arch is a rolling release distribution does not mean it is unstable, on the contrary, it is a very stable distribution that does not usually cause problems and, generally, if they do occur, they are minor and corrected in the next version of the package that presents the bad behavior. For the rare occasions in which there is a serious problem in which the system does not start until the graphic environment and in case it is not possible to restore the proper functioning of the system, it is always recommended to make backup copies so not to lose any important data.
Another relevant aspect is its the great [Arch Linux wiki](https://wiki.archlinux.org/) knowledge base, broken down into topics with enough detail to learn, install, get started, and resolve common known issues. The necessary commands for all of this are included in the wiki pages.
If the wiki is not enough, there are the official discussion [forums](https://bbs.archlinux.org/), to request and offer help to other users of the distribution. Another source of help and information is the [Arch Linux Reddit](https://www.reddit.com/r/archlinux/) channel where you can read and write comments for other users of the distribution, sometimes about help, conversations or news related to Arch.
### The alis script to install Arch Linux
Installing Arch Linux manually allows you to know the installed system in detail, however, reading several dozen pages of the wiki requires time and performing the manual installation is slow with the possibility of making mistakes. The first manual installations of Arch Linux is didactic but it is tedious for users who already know how to do it and simply want to install the system in a short time or without discovering new small steps that have changed over time since the last installation. Luckily, Arch Linux, being a rolling release distribution, and unless the system fails for some reason or you want to make a fundamental change to the system, an installation allows you to keep the system running for years, fully updated with regular system updates every few weeks.
Each Arch Linux user may have his own recipe with the list of commands compiled to perform the installation according to his preferences. Some of these users find it convenient to create a script for personal use to automate the installation. A few of those users share their script in case it is useful to other users. In the absence of an official installer the result is that there are several unofficial user-developed scripts available to perform the installation easily, [arch-install](https://github.com/archlinux/archinstall) and [archfi](https://github.com/MatMoul/archfi/) are two examples.
Another script to install Arch Linux is this one where you are, [alis](https://github.com/picodotdev/alis). Arch Linux Install Script or alis is a script to install a pure Arch Linux from official installation media.
### Motivation
alis is a personal project that arises just like other projects and scripts. The existing scripts that I knew of to install Arch Linux were not flexible enough or ware interactive so at the time I was going to need to install Arch Linux on my next personal computer I was going to use, an Intel NUC, I started creating the script that I wanted but didn't exist.
The goal of alis is to make an Arch Linux installation as fast as possible and flexible enough to be able to install Arch with the most common options that most users want. Even so, since the flexibility of Arch Linux is so great that it is almost impossible to cover all the possible configurations and perform the installation to leave it just as a user wants. alis allows to install a system with the most common and fundamental system options and once installed the user can customize the installation according to the less important specific preferences. Even the installation of packages in alis although it is possible, I recommend installing them after the base installation, because it is more reliable than doing it during the installation, especially some AUR packages that are prone to not compiling well or to fail in the installation.
To satisfy these two properties of speed and flexibility, it is necessary for the script to be unattended, since being guided makes the interaction with the text or graphic interface easier than typing the commands in the terminal, but it is still slow, repetitive and tedious. Also a guided installer would be too complex to cover all possible customization options and if it is very simple it only offers a small part of all the options that users want.
Surely there are many users who, still wanting to install Arch or happy with Arch, switch to another distribution or another Arch derivative distribution for the simple fact that they have a graphical, guided and automated installer after some clicks.
It is a personal project that I keep in my spare time, keep in mind when asking for help or some new feature that you want. If it works for you that is perfect, and if not, send a pull request to GitHub so I can review it and if it improves the script and is useful for other users I will be happy to merge it.
alis is intended both for newcomers to facilitate the task or simply to serve as an executable guide to the commands that he obtains from the wiki. It is also intended for advanced users to avoid the tedious work of performing the installation manually or in a virtual machine, making the installation repeatable and not spending another significant amount of time on each new installation.
I do my best to keep it reliable and fix errors but do not expect it to be perfect and completely error free. Arch is a rolling release distro and things change, I do not have time to try all the possible combinations at all times, so before using it in real hardware try it in a virtual machine.
### Principles
The principles on which alis is based are the following:
* Use the original Arch Linux installation media
* As much unattended and automated as possible, require as little interactivity as possible
* Allow to customize the installation to cover the most common cases
* Provide support for system recovery
* Provide support for installation log
* Use sane configuration default values
I did not want to create a new installation media because it requires a repository to store it and by security concerns so alis is downloaded once booted from the original installation media which authenticity can be checked with a hash algorithm. To use alis only requires four commands to be typed and tweak some configuration variables to easily customize the installation to cover the most common cases. The configuration has sane defaults and allows you to choose more advanced features.
Generally it is not needed to start a recovery but when after an update something serious happens it is necessary to recover the system to a working state, maybe downgrading packages. Also is almost unattended, it allows to collect all the script output to a log including to capture the output to an [asciinema](https://asciinema.org/) video to review after installation if needed.
#### Bash based
alis is a script based on the Bash shell. Contains the same commands you type on a manual install one after another. Being Bash based is easy to compare the script commands with your own manual recipe and easy to compare with the commands provided by the Arch Linux wiki pages and other installation guides. Although alis is not used can serve as a guide and documentation to do some specific tasks, because that can be known as _the Arch Linux executable installation guide and wiki_.
#### Simple configuration
The configuration is a simple Bash file that defines some environment variables to customize the installation to each user's own preferences. Simple variables but that allow most common and quite advanced configurations.
Customizing the installation simply consists of changing the values of the variables for which many of them are already provided as predefined options to choose from. Other variables require the user to enter the exact values that he wants. Editing the configuration file can be done after downloading alis before starting the unattended installation but the configuration can also be downloaded from the internet as a personal GitHub repository and used multiple times.
#### Unattended
Fully automated to complete the installation easy and fast, as fast as your internet connection allows. Not a guided script means it is not necessary to spend time on answer slowly the same questions over and over on each usage.
If the script were guided it would be much more complex to create some kind of text-based interface and much more so if it were graphical. The script being guided would be much more complex and yet would certainly offer a few fewer customization options.
Being a script that I develop in my personal time, being simple is a must and allow new features to be added with the minimal work is essential for it to be maintainable.
#### Desktop environments
The most popular GNU/Linux desktop environments are [GNOME](https://www.gnome.org/), [KDE](https://kde.org/), [XFCE](https://xfce.org/) but also there are many other alternative graphical environments options like [i3-gap](https://github.com/Airblader/i3), [Deepin](https://www.deepin.org/en/dde/), [Budgie](https://github.com/BuddiesOfBudgie/budgie-desktop) and others. alis supports more than 10 environments.
#### Advanced features
Using some advanced features of a system requires additional configuration. Some are likely to be the standard in a few years like [PipeWire](https://pipewire.org/) server for audio and video likely to replace Pulseaudio sound server in most distributions, same for BTRFS file system with subvolumes as replacement for ext4, systemd-boot as loader boot instead of Grub, systemd-homed to make user directories portable and system-independent. In addition, alis offers support for installation via SSH with cloud-init, which is very useful for installing and automating it also on local virtual machines or in the cloud.
#### And much more!
But alis offers many more options like support for systems with BIOS or UEFI, different combinations of partitions with or without LVM and LUKS, different file systems like ext4, btrfs (with subvols), xfs, f2fs, reiserfs, the installation of additional kernels with the possibility of adding boot parameters in the configuration or compression programs for the initramfs, graphics drivers for Intel, AMD, and Nvidia, various boot loaders, customizing the command line interpreter between bash, zsh, dash or fish and support for installing packages during or after the base system install from the Arch Linux and AUR repositories, from Flatpak, or from SDKMAN.
In addition to other features such as support for TRIM on SSD drives to keep them in optimal working order, microcode for Intel and AMD processors, optionally swap with file, file provisioning to provide some configuration file among a few others.
### How you can collaborate
If you use alis and find it useful, there are several ways you can collaborate and give something back in exchange for using the script. Some very simple ones that do not require much effort is to share it on social networks or forums when other users ask for help installing Arch Linux. If you have a blog you can also write an article or if you have a YouTube channel upload a video so that other users when they look for information on how to install Arch Linux quickly and easily find the script in one way or another.
If you make a change to the script and it is interesting for other users, you can send me a pull request so that I can merge it and in this way you do not have to keep the change in your fork. You can also create a issue or open a [discussion](https://github.com/picodotdev/alis/discussions) thread on GitHub.
The above are already great ways to contribute to the script and enough, seeing what is used and useful helps me keep interested in further developing it, fixing bugs, updating and adding new features. If the script has been very useful to you and you want to thank the work also with a small economic donation, especially if you use it in a work or business environment, you can do it through [PayPal](https://www.paypal.com) to my associated PayPal email address [pico.dev@gmail.com](mailto:pico.dev@gmail.com).
### How to submit bug reports and request changes
An Arch Linux user when he has an error or a problem should try first to solve the problem himself, with the help of the wiki and searching for information with an internet search engine. And finally, if you are not able to solve the problem yourself, then ask other users for information. In order for other people to be able to provide you with help quickly and effectively, it is necessary that you describe the problem in detail and provide as much relevant information as possible, sometimes an image is better or complements the description.
The source code repository is hosted on GitHub, which also allows you to create issues with requests for changes or bug fixes, but the best thing is that if you can send a pull request that I will review and if it is useful I will apply to the source code of alis. The changes and new features should be useful to other users as well.
### Other alternatives
There are other quite good similar projects that can be used as alternative to install a pure Arch Linux without any additions.
* [Arch Installer](https://github.com/archlinux/archinstall) (archinstall) (maybe is the most relevant as is included in the official installation media)
* [archfi](https://github.com/MatMoul/archfi/)
* [Archlinux Ultimate Installer (aui)](https://github.com/helmuthdu/aui) (only accepts patches)
Also, if you prefer to install an Arch Linux using a guided graphical installer you can choose an Arch based distribution.
* [ArcoLinux](https://arcolinux.com/)
* [Manjaro](https://manjaro.org/)
* [EndeavourOS](https://endeavouros.com/)
* [Archlabs](https://archlabslinux.com/)
* [RebornOS](https://rebornos.org/)
* [BlackArch](https://blackarch.org/)
Also and recomended for new Arch Linux new comers follow the Arch Way of doing things is a good way to use and learn about Arch. There are many guides out here, the official Arch Linux installation guide the first one. These are other good ones that explains step by step from instalation media creation to first boot and programs installation, all the necessary to start.
* [The Arch Linux Handbook](https://www.freecodecamp.org/news/how-to-install-arch-linux/)
<section class="mt-4">
<div class="container">
<div class="row">
<div class="col">
{{< ad-bilboard >}}
</div>
</div>
</div>
</section>

View File

@ -0,0 +1,6 @@
# shellcheck disable=SC2148
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
$ ./alis-cloud-init-iso.sh
$ ./alis-cloud-kvm-virt-installsh
$ ./alis-cloud-init-ssh.sh -i [ip addr]
$ ./alis-cloud-init-ssh.sh -i [ip addr] -c [config]

View File

@ -0,0 +1,3 @@
# shellcheck disable=SC2148
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
$ ./alis.packages.sh

View File

@ -0,0 +1,3 @@
# shellcheck disable=SC2148
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# alis.sh

View File

@ -0,0 +1,5 @@
# shellcheck disable=SC2148,SC2102
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# SC2102: Ranges can only match single chars (mentioned due to duplicates).
$ paru -S [package]
$ yay -S [package]

View File

@ -0,0 +1,3 @@
# shellcheck disable=SC2148
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash -s -u picodotdev

View File

@ -0,0 +1,3 @@
# shellcheck disable=SC2148
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash

View File

@ -0,0 +1,7 @@
# shellcheck disable=SC2148
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# # Start the system with latest Arch Linux installation media
# loadkeys [keymap] # Load keyboard keymap, eg. loadkeys es, loadkeys us, loadkeys de
# curl -sL https://raw.githubusercontent.com/picodotdev/alis/master/download.sh | bash # Download alis scripts
# vim alis.conf # Edit configuration and change variables values with your preferences (system configuration)
# ./alis.sh # Start installation

View File

@ -0,0 +1,3 @@
# shellcheck disable=SC2148
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# loadkeys [keymap]

View File

@ -0,0 +1,29 @@
# shellcheck disable=SC2148,SC2215
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# SC2215: This flag is used as a command name. Bad line break or missing [ .. ]?
$ ls -l
total 1520
-rwxr-xr-x 1 picodotdev picodotdev 506 mar 20 11:40 alis-asciinema.sh
-rwxr-xr-x 1 picodotdev picodotdev 415 mar 20 11:40 alis-cloud-init-iso.sh
-rwxr-xr-x 1 picodotdev picodotdev 1252 mar 20 11:40 alis-cloud-init-ssh.sh
-rw-r--r-- 1 picodotdev picodotdev 981 mar 20 11:40 alis-commons.conf
-rwxr-xr-x 1 picodotdev picodotdev 13336 mar 20 11:40 alis-commons.sh
-rw-r--r-- 1 picodotdev picodotdev 9319 mar 20 11:40 alis.conf
-rwxr-xr-x 1 picodotdev picodotdev 975 mar 20 11:40 alis-kvm-virt-install.sh
drwxr-xr-x 8 picodotdev picodotdev 4096 mar 20 11:04 alis-master
-rw-r--r-- 1 picodotdev picodotdev 1354656 mar 20 11:40 alis-master.zip
-rwxr-xr-x 1 picodotdev picodotdev 514 mar 20 11:40 alis-packages-asciinema.sh
-rw-r--r-- 1 picodotdev picodotdev 5672 mar 20 11:40 alis-packages.conf
-rwxr-xr-x 1 picodotdev picodotdev 548 mar 20 11:40 alis-packages-exit.sh
-rwxr-xr-x 1 picodotdev picodotdev 9004 mar 20 11:40 alis-packages.sh
-rwxr-xr-x 1 picodotdev picodotdev 670 mar 20 11:40 alis-packer.sh
-rwxr-xr-x 1 picodotdev picodotdev 201 mar 20 11:40 alis-reboot.sh
-rwxr-xr-x 1 picodotdev picodotdev 524 mar 20 11:40 alis-recovery-asciinema.sh
-rw-r--r-- 1 picodotdev picodotdev 2738 mar 20 11:40 alis-recovery.conf
-rwxr-xr-x 1 picodotdev picodotdev 864 mar 20 11:40 alis-recovery-reboot.sh
-rwxr-xr-x 1 picodotdev picodotdev 8702 mar 20 11:40 alis-recovery.sh
-rwxr-xr-x 1 picodotdev picodotdev 67840 mar 20 11:40 alis.sh
drwxr-xr-x 2 picodotdev picodotdev 4096 mar 20 11:40 configs
-rwxr-xr-x 1 picodotdev picodotdev 647 mar 20 11:40 download.sh
-rwxr-xr-x 1 picodotdev picodotdev 645 mar 20 11:40 download-sid.sh
drwxr-xr-x 3 picodotdev picodotdev 4096 mar 20 11:40 files

View File

@ -0,0 +1,4 @@
# shellcheck disable=SC2148
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
$ sha1sum archlinux-2022.03.01-x86_64.iso
64070acf60ac342d7aaddddfa0448f5900c4a0a5 archlinux-2022.03.01-x86_64.iso

View File

@ -0,0 +1,5 @@
# shellcheck disable=SC2148,SC2102
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# SC2102: Ranges can only match single chars (mentioned due to duplicates).
$ pacman -U [package]
$ pacman -U /var/cache/pacman/pkg/linux-5.16.15.arch1-1-x86_64.pkg.tar.zst

View File

@ -0,0 +1,4 @@
# shellcheck disable=SC2148,SC2102
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
$ pacman -S [package]
$ pacman -S firefox

View File

@ -0,0 +1,3 @@
# shellcheck disable=SC2148,SC2102
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
$ pacman -Syu

View File

@ -0,0 +1,4 @@
# shellcheck disable=SC2148,SC2102
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
$ vim alis-recovery.conf
$ ./alis-recovery.sh

View File

@ -0,0 +1,3 @@
# shellcheck disable=SC2148,SC2102
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# vim alis.conf

View File

@ -0,0 +1,3 @@
# shellcheck disable=SC2148,SC2102
# SC2148: Tips depend on target shell and yours is unknown. Add a shebang.
# vim alis-packages.conf

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 15 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 22 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 175 KiB

View File

@ -0,0 +1,321 @@
---
pid: 1
title: "User guide"
type: "pages"
url: "/user-guide/"
date: 2022-03-20T01:00:00+01:00
updated: 2022-03-20T01:00:00+01:00
index: true
tags: []
---
<section class="mt-4">
<div class="container">
<div class="row">
<div class="col">
{{< ad-bilboard >}}
</div>
</div>
</div>
</section>
# User Guide
Installing Arch Linux with alis only requires the use of four commands and depending on the speed of the internet connection a few minutes, more important than the speed of installation is that the script completely automates the installation. Apart from the four commands, it is necessary to edit a configuration file in which to declaratively specify the values of the variables to customize the configuration of the system to be installed according to preferences.
Aside from the four proper commands to run alis, there are some additional tasks common to any way you use to install Arch Linux such as backing up your data, checking the minimum system requirements, and learning about the hardware components of your system. to install, download the installation media, and create a USB drive to start the installation. After the installation, the user will surely have to do some additional customization in terms of desktop configuration, finally Arch Linux periodically requires some maintenance tasks such as updating the packages to the latest versions.
{{< tableofcontents >}}
### Pre-Installation steps
Before starting the installation of Arch Linux with alis, it is convenient to carry out some previous steps, since once the installation has started, the system will not be usable until the installation is finished correctly. These steps are convenient to try to ensure that the installation process is satisfactory on the first attempt, avoiding errors as much as possible and being prepared in case there are any.
Once you have made the decision of wanting to install Arch Linux as an operating system on a system, first of all, it is advisable to make a backup copy of all the important data to keep on an external storage unit of the system, since replacing the existing operating system of the system it is an operation that usually involves partitioning and formatting the operating system partitions on which the data is stored. A graphical interface program for backup is [FreeFileSync][freefilesync].
Knowing the specifications of the system and of the main components of the hardware is convenient, although most of the hardware is detected by Linux without the need to install additional drivers if it may be necessary to indicate the graphic driver. Some details of the main components of a system are make and model of the computer, whether it is a laptop or desktop, make and model of processor ([Intel][intel], [AMD][amd], [ARM][arm]), amount of memory and type, make and model of motherboard , brand and model of the storage unit (hard drive, SSD) along with the interface used (SATA, M.2, NVMe) and capacity (in GB or TB) and brand and model of the graphics card (Intel, AMD, Nvidia) along with whether it is an integrated or discrete graphics card connected to the PCIe port. If the system has a Wi-Fi connection and if Ethernet cable or Wi-Fi is used for the connection. In addition to the drivers, knowing the specifications allows you to give additional information in case you need to ask for help, since an error may be related to the specific combination of system components.
In the case of Arch Linux, regardless of how the installation is carried out, it is convenient to know the manual installation process offered and the necessary commands to execute in each step. Arch Linux has a wiki with information on numerous topics in great detail, usually including several sample commands to perform the most common actions on that topic. The commands to perform the manual installation are included in the installation guide wiki. Reading the wiki allows you to learn what happens during the installation, and again knowing some details allows you to know what could be wrong in case of an error.
Another important step is to decide what features are desired for the new Arch Linux system. One of the characteristics of Arch Linux is that the user decides how he wants his system to be from the boot loader to the desktop environment and installed programs among numerous other customizations. alis is flexible enough to cover the most common use cases and customizations that most users want for their system, it only requires indicating them to install the appropriate system.
To become familiar with the installation process without the risk of doing it for the first time on the system, it is possible to use a virtual machine in which to carry out the process. The installation on the real system is somewhat different in terms of hardware characteristics, but performing an installation on a virtual machine allows you to eliminate most of the doubts you may have.
Finally, given that while the system is being installed it remains unusable until it is properly finished, having another system or a support smartphone available to consult the internet if necessary is of great help.
#### Minimum requirements
Depending on the technical specifications of the system, it is possible to adapt the most suitable software components so that the system has good performance, a light desktop environment for systems with specifications already considered low, or more capable desktop environments that require a more efficient system. powerful enough to also deliver good performance.
For a light desktop environment the minimum requirements start from the following:
* Dual core CPU
* Memory of at least 2 GB
* Storage of at least 40 GB
* USB stick and USB ports
* Internet connection via wifi or ethernet cable
For modern GNOME and KDE desktop environments the minimum requirements are increased slightly:
* Dual or quad core CPU
* Memory of at least 4 GB
* Storage of at least 60 GB
* USB stick and USB ports
* Internet connection via wifi or ethernet cable
#### Download the official Arch Linux media
To start the installation you need to [download the official installation media][archlinux-download]. Downloading is possible via direct web browser download from one of the many mirrors offered around the world, downloading is also possible via torrent file sharing networks.
The installation media is a disk image file that is about 800 MB in size. Once the installation medium has been downloaded, to check the integrity of the medium and ensure that it is the original and there have been no errors in the download, a program can be used to obtain the digital fingerprint of the medium and compare it with the one offered on the download page of Arch Linux as the correct one, if the one obtained and the one offered on the download page coincide, the medium has been downloaded correctly.
{{< markdown >}}
{{< image
gallery="true"
image1="image:archlinux-media.png" optionsthumb1="750x550" title1="Arch Linux installation start" >}}
{{< /markdown >}}
{{< code file="media-fingerprint.sh" language="bash" options="" >}}
#### Create the installation media on a USB stick
Once the installation medium has been downloaded, it must be recorded on a USB memory that allows the Arch Linux installation process to start. The USB drive must have at least 2 GB of storage capacity. The graphical program [Balena Etchet][balena-etcher] allows you to burn the installation media to the USB stick. When recording the installation medium on the USB memory, all the data it had, so it is necessary to make a backup copy of the data it had if you wish to keep any of it.
{{< markdown >}}
{{< image
gallery="true"
image1="image:balena-etcher.png" optionsthumb1="750x550" title1="Arch Linux installation start" >}}
{{< /markdown >}}
#### Start a virtual machine
Using a program to run virtual machines allows you to install on a fictitious machine. The virtual machine behaves like a real machine from the operating system to the programs and graphic environment. The virtual machine, except for some of the hardware components that are also virtualized and different from those of the real system, allows testing the installation and once the resulting system is finished.
Some virtualization software programs are [GNOME Boxes][gnome-boxes], [VirtualBox][virtualbox] and [virt-manager][virt-manager]. VirtualBox is even available for non [GNU][gnu]/[Linux][linux] operating systems like [Windows][windows] or [macOS][macos].
{{< markdown >}}
{{< image
gallery="true"
image1="image:arch-linux-installation.png" optionsthumb1="750x550" title1="Arch Linux installation start" >}}
{{< /markdown >}}
#### Boot a real machine from the installation media
Windows systems require to have the option called Secure Boot enabled, alis requires disabling this option in the system BIOS before starting the installation. When starting the system, it is usually indicated which key must be pressed to enter the BIOS and change this option, save the changes and restart the system.
Starting the installation on the current system requires a reboot and booting from the previously created USB stick. Making the system use memory as the boot device typically requires a key press that varies depending on the make of system and motherboard. With the system turned off and the USB stick with the installation media inserted into a USB port, to select the boot drive, you have to press a key that is usually indicated in the first graphic image on the monitor provided by the system for a short period of time. weather. The key is usually F2, F4, F7, F8, F12 or another.
### Starting the Arch Linux installation with alis
Arch Linux does not offer a graphical installer with which to install the system more easily but much less customizable than is possible with the command line where the Arch Linux installation media is launched. The system boots to a terminal from which the user must enter the commands to perform the installation. The installation guide on the wiki provides the steps and commands required to perform the installation along with other wiki pages on specific topics that are desired. Alternatively, Arch Linux includes [arch-install] on the installation media, it is an interactive, guided text-based installer that asks a series of questions until the installation is complete.
{{< markdown >}}
{{< image
gallery="true"
image1="image:archlinux-installation-start.png" optionsthumb1="750x550" title1="Arch Linux installation start" >}}
{{< /markdown >}}
With alis, the installation only consists of four commands and the edition of one or two configuration files with the desired preferences of the system to be installed. The first command is to set the keyboard layout, the second to download the alis files from the internet, the third to edit the configuration file, and finally to start the installation that requires no further interaction until it is complete.
{{< code file="install.sh" language="bash" options="" >}}
#### Keyboard layout configuration
To list the available keyboard layouts on the system you can use the following command and set the appropriate one with the _loadkeys_ command.
{{< code file="loadkeys.sh" language="bash" options="" >}}
#### Download alis script
To install Arch Linux with alis requires downloading the script from its source code repository with one of the following two commands.
{{< code file="download.sh" language="bash" options="" >}}
The above command downloads the alis script files to the system.
{{< code file="ls-alis.sh" language="plain" options="" >}}
#### alis configuration
All configuration options allowed by alis are provided declaratively in a file that contains multiple environment variables. The configuration file is divided into several groups of various related variables from storage partitioning to desktop environment and boot loader. Each group of variables is preceded by a few lines of comments that briefly indicate what the variable does but with some knowledge of GNU/Linux they should be familiar to any user, some variables may require consulting the Arch Linux wiki or some command.
Variable values can be as simple as true or false, some allow a single value, some allow multiple variables, some allow multiple variables but are a bash array. To facilitate the editing of the files, all the variables have a default value that forms a reasonable and common configuration for a system, normally it is not necessary to modify the values of all the variables, just those in which another configuration is wanted. Another way provided for editing the files is that many variables offer the option of ignoring values by preceding them with the character !, just select the desired value and comment the default one, when starting alis the values are processed and these are preceded with ! are discarded from the value used for the variable.
The config file is just a text file, you really don't even need to edit the user every time you install Arch with alis. It is possible to configure a file according to your preferences, host it in your own repository and download it with a curl command when starting the installation in the same way that you download alis.
{{< code file="download-conf.sh" language="bash" options="" >}}
To avoid errors during the installation, when starting, alis makes some checks on the values of the variables so that the value assigned to the variable is among one of the possible ones and has a value if it is required. Not all invalid values are detected but many variables do have checks.
The configuration file can be edited with a console based text editor such as _vim_ which is pre-installed on the Arch Linux installation media.
{{< code file="vim-alis-conf.sh" language="bash" options="" >}}
For package installation, which is used during system installation for the installation of selected packages, but can also be used after the base installation is done and the desktop environment is started. Installing Arch Linux packages is allowed, from the [AUR repository][archlinux-aur] and installing an AUR utility, Flatpak packages and installing the [SDKMAN][sdkman] utility is installing packages offered in this SDK manager mostly from the Java platform.
{{< code file="vim-alis-packages-conf.sh" language="bash" options="" >}}
{{< code file="alis-packages.sh" language="bash" options="" >}}
#### Start the installation
Finally, the installation starts with another command.
{{< code file="alis.sh" language="bash" options="" >}}
After this command the user no longer requires any additional interaction, the script performs the installation tasks in a completely unattended and automated way until the installation is successfully completed, if everything works correctly. The time it takes to perform the installation depends mainly on the speed of the internet connection and the download of the installation packages. With a fiber internet connection, with ethernet cable and SSD, the installation only takes 4 minutes or even less. During the installation, the console displays the commands that the script executes and all the output that those commands emit.
This is a real-time video captured with ascinema in text format with all the output emitted during the installation.
<script type="text/javascript" src="https://asciinema.org/a/444025.js" data-size="medium" data-cols="160" data-rows="40" id="asciicast-444025" async></script>
#### Desktop environment
Once the installation is finished and after the system has restarted, it starts up to the graphical environment selected to install or if none has been installed until the login to the terminal in which to enter the username and password of one of the created users in the installation.
{{< markdown >}}
{{< image
gallery="true"
image1="image:arch-linux-terminal-login.png" optionsthumb1="750x550" title1="Arch Linux terminal login"
caption="Arch Linux terminal login" >}}
{{< image
gallery="true"
image1="image:gnome-desktop.png" optionsthumb1="750x550" title1="Arch Linux GNOME desktop environment"
caption="Arch Linux GNOME desktop environment" >}}
{{< /markdown >}}
### Steps after installation
After having carried out the installation when using the system over time, some maintenance tasks are necessary so that the system continues to function as newly installed. And maybe some customization tasks that alis does not perform or support such as an icon canvas, font and other types of exclusive user settings.
alis allows installing packages during system installation, but it also supports installing packages after the basic installation with the command ./alis-packages.sh and is the recommended way to do it because it is more reliable and safe for packages of AUR.
#### Upgrade system
Arch Linux is a constantly updated rolling release distribution with daily package updates with bug fixes and updates to new versions, usually to the latest version released by the package author. It is advisable to update the packages installed on the system at least every few weeks so that the number of them does not accumulate, because on some rare occasions it is necessary to update the system before a certain date or simply to get the security fixes discovered and corrected. .
Updating the system is a potential operation that is occasionally capable of producing an error and rarely, in the most serious cases, causes the system to fail in the boot process, leaving the computer inoperative. For this reason, before carrying out a system update, it is advisable to make a backup copy of the data. In Arch Linux, the system update must be done completely for all packages, updating the system partially or individual packages can generate small or serious errors and conflicts between dependencies.
On the main page of the Arch Linux website, among the news, when necessary, messages are published in case you have to carry out any manual operation.
Fortunately, Arch Linux, even though it is a rolling release distribution, is a very stable distribution, there are not many errors that occur after an update, most of them are usually minor and are corrected in a short time with a new version of the problematic package. and serious errors are very rare in common system configurations, serious errors when they do occur are almost more usually caused by the user than by the update itself. In any case, if you are affected by an error in an update, it will surely have happened to another user, possibly there is already a recent thread in the discussion forums or a bug will have been created in the request system.
The command to update the system completely is the following with the package manager that in Arch Linux is pacman.
{{< code file="pacman-update.sh" language="bash" options="" >}}
#### Installing and uninstalling programs
For most users, the most important part of a system is not the operating system they use, but the productive tasks they perform with it. And productivity tasks are done through programs. Like many other GNU/Linux distributions, the Arch Linux distribution offers [a large collection of programs](https://wiki.archlinux.org/title/List_of_applications) with both graphical and command-line interfaces to perform any task that needs to be done. In addition, most programs are free software or open source, generally free, and there is always a free alternative that is almost good or better than any proprietary program that a user is used to using in another operating system.
Here are some program categories.
* Office automation, documents and desk
* Office document editor
* Advanced text editor
* E-books and comics
* Screen capture
* Backups
* Internet and communications
* Browser
* Email
* Feed reader
* Download torrent files and direct downloads
* Instant messaging
* Videoconference
* Private cloud
* Photos and graphics
* Photo retouching
* Multimedia, video and audio
* Video, audio, movie and music player
* Video editor
* Video and audio converter
* Other specific programs
* Games
* Programming and development
* Compilers
* Integrated development environment
* Databases and server software
* Virtualization
* Security and privacy
* Password manager
* File encryption and decryption
* Firewalls
There are different forms and sources of software packages. On the one hand, there are the Arch Linux distribution packages that are installed with the pacman command.
{{< code file="pacman-package-install.sh" language="bash" options="" >}}
In Arch Linux there is also the AUR repository maintained by the distribution's own users. Some are compiled from source code so their installation requires compilation and takes time. The packages in the AUR repository are usually managed with their own utility that takes care of satisfying the necessary dependencies. Due to the fact that some packages are installed from source code and the AUR repository contains packages from any user so it is not completely reliable, the AUR repository is not the first option to use, if there is an alternative it is better to use the package from Pacman or Flatpack.
{{< code file="aur-package-install.sh" language="bash" options="" >}}
Another possibility is to install [Flatpak][flatpak] packages which are distribution independent and can be installed with the graphical package manager offered by the [GNOME][gnome] desktop environment with the Software program.
{{< markdown >}}
{{< image
gallery="true"
image1="image:gnome-software.png" optionsthumb1="750x550" title1="GNOME Software" >}}
{{< /markdown >}}
You already will have the basics of the system and with the programs you want but there are still more customization options that you will have to do for yourself. Managing dotfiles or add some theme to the login manager is something left for the user.
#### How to start recovery
In the event that the error in an update is so serious that the system fails in the boot process and is not resolved with a reboot, it is necessary to recover the system manually. The recovery process consists of booting the system with the Arch Linux installation media itself, mounting the file system, and running the necessary commands to resolve the issue. Generally, if the error occurred after a system update, the problem is a package that has a bug, and the solution is usually to downgrade that package to the correct previous version.
Depending on the system configuration mounting the file system is more or less complicated depending on the disk partitioning, whether LVM or LUKS encryption is used. alis offers a recovery utility that makes it very easy to mount the file system according to the configuration with which it was installed. Starting the recovery script starts with the same steps as installing the system with alis but instead by editing the alis-recovery.conf configuration file and running the alis-recovery.sh command.
{{< code file="recovery.sh" language="bash" options="" >}}
Once the file system is mounted, disabling a package is done with the following command. The package and version to be downgraded is obtained from the local package cache, in this example it is indicated how to downgrade the linux kernel package.
{{< code file="package-downgrade.sh" language="bash" options="" >}}
### Install on virtual machine or cloud with SSH install and cloud-init
alis also offers support to install Arch Linux in an automated and easy way on a local virtual machine on your own computer virtualized with KVM, QEMU, VirtualBox or other virtualization software and also on virtual machines in the cloud. With this support offered via SSH install and cloud-init it is possible to install after booting the virtual machine with SSH either to a local virtual machine or to a cloud machine over the internet.
For installation on virtual machines alis offers three scripts.
* [alis-cloud-init-iso.sh](https://github.com/picodotdev/alis/blob/master/alis-cloud-init-iso.sh) which creates a private and public key pair for the SSH connection and creates a disk image that includes the public key and other instructions for virtual machine initialization provided with cloud-init. The iso image has to be mounted on the virtual machine.
* [alis-kvm-virt-install.sh](https://github.com/picodotdev/alis/blob/master/alis-kvm-virt-install.sh) contains the command to create a virtual machine with KVM on GNU/Linux and the definition of the characteristics of the virtual machine in terms of memory size, virtual CPUs, system BIOS, and storage space as well as network connection. The virtual machine mounts the iso image created in the previous command.
* [alis-cloud-init-ssh.sh](https://github.com/picodotdev/alis/blob/master/alis-cloud-init-ssh.sh) once the virtual machine is started and knowing the IP address assigned to it, this command makes the SSH connection using the private key SSH to perform authentication. And perform the alis script download. In addition, the command with an option allows you to start the installation by applying the changes with the desired configuration to the configuration file and start the installation.
The commands to execute are the following:
{{< code file="alis-cloud.sh" language="bash" options="" >}}
{{< markdown >}}
{{< image
gallery="true"
image1="image:alis-cloud-init-ssh.png" optionsthumb1="750x550" title1="Installing Arch Linux on a remote virtual machine via SSH install and cloud-init"
caption="Installing Arch Linux on a remote virtual machine via SSH install and cloud-init" >}}
{{< /markdown >}}
<section class="mt-4">
<div class="container">
<div class="row">
<div class="col">
{{< ad-bilboard >}}
</div>
</div>
</div>
</section>
[archlinux-download]: https://archlinux.org/download/
[archlinux-aur]: https://aur.archlinux.org/
[freefilesync]: https://freefilesync.org/
[balena-etcher]: https://www.balena.io/etcher/
[Intel]: https://www.intel.es
[AMD]: https://www.amd.com
[ARM]: https://www.arm.com/
[GNOME Boxes]: https://apps.gnome.org/es/app/org.gnome.Boxes/
[VirtualBox]: https://www.virtualbox.org/
[virt-manager]: https://virt-manager.org/
[GNU]: https://www.gnu.org/
[Linux]: https://www.kernel.org/
[Windows]: https://www.microsoft.com/
[macOS]: https://www.apple.com/
[SDKMAN]: https://sdkman.io/
[Flatpak]: https://www.flatpak.org/
[GNOME]: https://www.gnome.org/

Some files were not shown because too many files have changed in this diff Show More