RSCC-Page/public/Articles/tylkolinux-installation/index.html

544 lines
43 KiB
HTML
Raw Normal View History

2025-03-04 04:23:12 +01:00
2025-02-06 18:05:35 +01:00
<!DOCTYPE html>
2025-03-04 04:23:12 +01:00
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" >
2025-02-06 18:05:35 +01:00
<head>
<meta charset="UTF-8" />
<meta name="description" content="Well, get on this site and find out." />
<meta name="viewport" content="width=device-width, initial-scale=1" />
2025-03-04 04:23:12 +01:00
<meta name="base" content="https://rootsource.cc" />
2025-02-12 02:31:01 +01:00
<title>TylkoLinux install guide (Delirium). - RSCC</title>
2025-03-04 04:23:12 +01:00
<link rel="canonical" href="https://rootsource.cc/Articles/tylkolinux-installation/" />
<meta content="Zola" name="generator">
<link rel="icon" type="image/png" href="https://rootsource.cc/favicon.png?h=4b8b8481f5ac84986183" />
<link rel="preload" href="https://rootsource.cc/fonts/geist.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="https://rootsource.cc/fonts/geist-mono.woff2" as="font" type="font/woff2" crossorigin>
<link rel="preload" href="https://rootsource.cc/fonts/phosphor-bold.woff2" as="font" type="font/woff2" crossorigin><style type="text/css">
:root {
--accent-color: hsl(324 2% 43%);
--accent-h: 324;
--accent-s: 2%;
--accent-l: 43%;
}[data-theme="dark"] {
--accent-color: hsl(0 1% 75%);
--accent-h: 0;
--accent-s: 1%;
--accent-l: 75%;
}
2025-02-06 18:05:35 +01:00
2025-03-04 04:23:12 +01:00
@media (prefers-color-scheme: dark) {
:root:not([data-theme="light"]) {
--accent-color: hsl(0 1% 75%);
--accent-h: 0;
--accent-s: 1%;
--accent-l: 75%;
}
}</style>
2025-02-06 18:05:35 +01:00
2025-03-04 04:23:12 +01:00
<link type="text/css" rel="stylesheet" href="https://rootsource.cc/style.css?h=fd31cab16611d9654aa0" />
<link type="text/css" rel="stylesheet" href="https://rootsource.cc/phosphor-bold.css?h=64fb8156a3a3f0de62c5" />
<script type="text/javascript" defer src="https://rootsource.cc/closable.js"></script>
<script type="text/javascript" defer src="https://rootsource.cc/search_index.en.js"></script>
<script type="text/javascript" defer src="https://rootsource.cc/elasticlunr.min.js"></script>
<script type="text/javascript" defer src="https://rootsource.cc/search.js"></script>
2025-02-06 18:05:35 +01:00
<meta property="og:site_name" content="RSCC" />
2025-02-12 02:31:01 +01:00
<meta property="og:title" content="TylkoLinux install guide (Delirium). - RSCC" />
2025-02-06 18:05:35 +01:00
<meta property="og:url" content="https://rootsource.cc/Articles/tylkolinux-installation/" />
<meta property="og:description" content="This article will go over the installation guide for the distro" />
<meta property="og:locale" content="en_US" />
2025-03-04 04:23:12 +01:00
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:title" content="TylkoLinux install guide (Delirium). - RSCC" />
<meta name="twitter:url" content="https://rootsource.cc/Articles/tylkolinux-installation/" />
<meta name="twitter:description" content="This article will go over the installation guide for the distro" />
2025-02-06 18:05:35 +01:00
</head>
2025-03-04 04:23:12 +01:00
<body >
2025-02-06 18:05:35 +01:00
2025-03-04 04:23:12 +01:00
<a id="skip-to-content" href="#main-content" tabindex="0">Skip to Main Content</a>
<div id="site-navbar" class="sidebar">
<a id="navbar-header" href="#top"><i class="ph-bold ph-arrow-line-up"></i><div>
<span>TylkoLinux install guide (Delirium).</span>
<span>Back to Top</span>
</div>
</a>
<nav class="overshoot">
<ul><li>
<a
href="https:&#x2F;&#x2F;rootsource.cc&#x2F;">
<i class="ph-bold ph-house"></i>RSCC</a>
2025-02-06 18:05:35 +01:00
</li>
2025-03-04 04:23:12 +01:00
<li>
<a href="https://rootsource.cc/Articles" class="
">
<i class="ph-bold ph-newspaper"></i>Articles</a>
</li>
<li>
<a href="https:&#x2F;&#x2F;git.rootsource.cc&#x2F;" rel="" class="external">
<i class="ph-bold ph-git-merge"></i>Alpsource</a>
</li>
<li>
<a href="https:&#x2F;&#x2F;haj.rootsource.cc&#x2F;" rel="" class="external">
<i class="ph-bold ph-fediverse-logo"></i>Hajiku&#x2F;Costkey</a>
</li>
<li>
<a href="https:&#x2F;&#x2F;bin.rootsource.cc&#x2F;" rel="" class="external">
<i class="ph-bold ph-lock-laminated"></i>Estellabin</a>
</li></ul>
</nav>
<div id="navbar-buttons">
<input class="visually-hidden" id="toggle-navbar" type="checkbox" name="toggle-navbar" autocomplete="off" />
<label for="toggle-navbar"><i class="ph-bold ph-sidebar"></i>Toggle Sidebar</label><button id="search">
<i class="ph-bold ph-magnifying-glass"></i>Search</button></div>
2025-02-06 18:05:35 +01:00
</div>
2025-03-04 04:23:12 +01:00
<main id="main-content" class="has-navbar"><div class="container">
<article>
<h1 id="heading">TylkoLinux install guide (Delirium).</h1><div class="article-details"><div class="item">
<i class="ph-bold ph-calendar"></i>
<time datetime="2025-01-30T00:00:00+00:00" pubdate>January 30, 2025</time>
</div>
</div>
<aside id="toc">
<strong class="title">Table of Contents</strong>
<div class="overshoot">
<ul><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#update-as-of-now-don-t-proceed-with-the-guide-yet-the-script-is-still-in-its-testing-phase-and-i-m-halfway-done-successfully-testing-it-p">Update as of now: DON&#x27;T PROCEED WITH THE GUIDE YET. The script is still in its testing phase, and I&#x27;m halfway done successfully testing it :p</a><ul><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s1-cloning-the-repository">S1: Cloning the repository</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s2-run-the-compatibility-checker">S2: Run the compatibility checker</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s3-partitioning-the-target-device">S3: Partitioning the target device</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s4-setting-the-lfs-variable">S4: Setting the $LFS variable</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s5-mounting-the-partitions">S5: Mounting the partitions</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s6-start-the-core-installation-tool">S6: Start the core installation tool</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s7-enter-lfs-user">S7: Enter lfs user</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s8-actually-building-the-system-itself">S8: Actually building the system itself</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s9-setting-up-the-system">S9: Setting up the system</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s10-making-it-boot">S10: Making it boot</a>
</li><li>
<a href="https://rootsource.cc/Articles/tylkolinux-installation/#s11-the-end-tm">S11: The End:tm:</a>
</li></ul></li></ul>
</div>
</aside><p>Requires the branch for <code>TylkoLinux 25.2 Delirium x86_64</code></p>
2025-02-06 18:05:35 +01:00
<p>As you may have read in the description, this article serves as a guide to install (build) TylkoLinux on your machine.
<blockquote class="important">
<p class="alert-title">
2025-03-04 04:23:12 +01:00
<i class="ph-bold ph-warning-diamond"></i>Important</p>
2025-02-06 18:05:35 +01:00
<p>Prerequisites:</p>
<ul>
<li>x86_64 machine</li>
<li>At least 32GB of storage</li>
<li>CPU with at least four cores</li>
<li>8GB RAM</li>
<li>A linux system running on the host system</li>
2025-02-12 02:30:43 +01:00
<li>INTERNET ACCESS!!! (also required for other install scripts in EIC)</li>
2025-02-06 18:05:35 +01:00
</ul>
</blockquote>
</p>
2025-02-12 02:30:43 +01:00
<h1 id="update-as-of-now-don-t-proceed-with-the-guide-yet-the-script-is-still-in-its-testing-phase-and-i-m-halfway-done-successfully-testing-it-p">Update as of now: DON'T PROCEED WITH THE GUIDE YET. The script is still in its testing phase, and I'm halfway done successfully testing it :p</h1>
2025-02-06 18:05:35 +01:00
<h2 id="s1-cloning-the-repository">S1: Cloning the repository</h2>
<p>The repository is available on GitHub. You can clone into it by running the following (if you have Git installed):</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">git</span><span> clone https://github.com/kevadesu/TylkoLinux
</span></code></pre>
<p>Proceed to change directory into it.</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#96b5b4;">cd</span><span> ./TylkoLinux/
</span></code></pre>
2025-02-12 02:31:01 +01:00
<p>And switch branch into the version.</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">git</span><span> checkout delirium
</span></code></pre>
2025-02-06 18:05:35 +01:00
<h2 id="s2-run-the-compatibility-checker">S2: Run the compatibility checker</h2>
<p>Run the compatibility check by running the script that is inside of the repository:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">chmod</span><span> +x ./version-check.sh &amp;&amp; </span><span style="color:#bf616a;">./version-check.sh
</span></code></pre>
<p>Make sure everything is successful. If not, update your packages.</p>
<h2 id="s3-partitioning-the-target-device">S3: Partitioning the target device</h2>
<p>Now that we have the installer ready, let's not run it just yet!
First, we need to <strong>partition the drive we want to install it to.</strong>
Now, of course, there are a lot of guides on how to do that online and depending on what setup you might want to achieve.</p>
<p>What IS clear though, is that you need a boot partition and a root partition, those are the bare minimum.</p>
<p>Obviously, I won't be able to write an ENTIRE guide on how to partiton your drive. If you don't know how to do that in the first place, then you shouldn't use TylkoLinux.</p>
<h2 id="s4-setting-the-lfs-variable">S4: Setting the $LFS variable</h2>
<p>Set the $LFS variable to point to /mnt/lfs. Of course, if you desire, you may also make it point to a different destination.</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#b48ead;">export </span><span style="color:#bf616a;">LFS</span><span>=</span><span style="color:#a3be8c;">/mnt/lfs
</span></code></pre>
<blockquote class="caution">
<p class="alert-title">
2025-03-04 04:23:12 +01:00
<i class="ph-bold ph-warning-octagon"></i>Caution</p>
2025-02-06 18:05:35 +01:00
<p>Make sure that the $LFS variable always points to the correct destination.
It is recommended to always mount the target root partition under /mnt/lfs and set your variable to that.
Failure to do so may lead you to absolutely fuck up your system.</p>
</blockquote>
<blockquote class="tip">
<p class="alert-title">
2025-03-04 04:23:12 +01:00
<i class="ph-bold ph-lightbulb"></i>Tip</p>
2025-02-06 18:05:35 +01:00
<p>From the LFS handbook:
One way to ensure that the LFS variable is always set is to edit the .bash_profile file in both your personal home directory and in /root/.bash_profile and enter the export command above. In addition, the shell specified in the /etc/passwd file for all users that need the LFS variable must be bash to ensure that the /root/.bash_profile file is incorporated as a part of the login process.</p>
<p>Another consideration is the method that is used to log into the host system. If logging in through a graphical display manager, the user's .bash_profile is not normally used when a virtual terminal is started. In this case, add the export command to the .bashrc file for the user and root. In addition, some distributions use an "if" test, and do not run the remaining .bashrc instructions for a non-interactive bash invocation. Be sure to place the export command ahead of the test for non-interactive use.</p>
</blockquote>
<h2 id="s5-mounting-the-partitions">S5: Mounting the partitions</h2>
<p>Create the mount point and mount the filesystem using the following commands:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">mkdir -pv </span><span>$</span><span style="color:#bf616a;">LFS
</span><span style="color:#bf616a;">mount -v -t</span><span> ext4 /dev/&lt;foo&gt; $</span><span style="color:#bf616a;">LFS
</span><span style="color:#65737e;"># Replace &lt;foo&gt; with the partition name.
</span></code></pre>
<p>If using multiple partitions for TylkoLinux (for example, one for the root and one for the home partition), mount them as followed:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">mkdir -pv </span><span>$</span><span style="color:#bf616a;">LFS
</span><span style="color:#bf616a;">mount -v -t</span><span> ext4 /dev/&lt;xxx&gt; $</span><span style="color:#bf616a;">LFS
</span><span style="color:#bf616a;">mkdir -v </span><span>$</span><span style="color:#bf616a;">LFS</span><span>/home
</span><span style="color:#bf616a;">mount -v -t</span><span> ext4 /dev/&lt;yyy&gt; $</span><span style="color:#bf616a;">LFS</span><span>/home
</span><span style="color:#65737e;"># Replace &lt;foo&gt; and &lt;bar&gt; with the appropriate partition names.
</span></code></pre>
<blockquote class="caution">
<p class="alert-title">
2025-03-04 04:23:12 +01:00
<i class="ph-bold ph-warning-octagon"></i>Caution</p>
2025-02-06 18:05:35 +01:00
<p>The instructions above assume that you are not rebooting your computer during the build. (imagine)
To automatically remount the partition on boot, modify /etc/fstab by adding this line:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">/dev/</span><span>&lt;foo&gt; /mnt/lfs ext4 defaults 1 1
</span></code></pre>
<p>If you use additional (optional) partitions, add them as well.</p>
</blockquote>
<p>If also using swap, mount with the swapon command:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">/sbin/swapon -v</span><span> /dev/&lt;owo&gt;
</span><span style="color:#65737e;"># Replace &lt;owo&gt; with the name of the swap partition.
</span></code></pre>
<h3 id="s5-1-move-bash-bashrc-out-of-the-way">S5.1: Move bash.bashrc out of the way</h3>
<p>Several commercial distributions add an undocumented instantiation of /etc/bash.bashrc to the initialization of bash. This file has the potential to modify the lfs user's environment in ways that can affect the building of critical TylkoLinux (LFS) packages. To make sure the lfs user's environment is clean, check for the presence of /etc/bash.bashrc and, if present, move it out of the way. As the root user, run:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#96b5b4;">[ </span><span>! </span><span style="color:#bf616a;">-e</span><span> /etc/bash.bashrc </span><span style="color:#96b5b4;">] </span><span>|| </span><span style="color:#bf616a;">mv -v</span><span> /etc/bash.bashrc /etc/bash.bashrc.NOUSE
</span></code></pre>
<h2 id="s6-start-the-core-installation-tool">S6: Start the core installation tool</h2>
<p>To start the installer, make sure you're in the same directory as the git repo we cloned, running as the <code>root</code> user, then type the following:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">./Einrichter-CLI.sh
</span></code></pre>
<p>If this command fails, make sure it has the permissions to be executed by running the following:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">chmod</span><span> +x ./*.sh
</span></code></pre>
<h3 id="s6-1-download-packages">S6.1: Download packages</h3>
<p>When in the script, you should see the following:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">[i]</span><span> The colour variables have been set.
</span><span style="color:#bf616a;">Einrichter</span><span> - TylkoLinux Installer Shell $</span><span style="color:#bf616a;">EINRICHTER_VER
</span><span style="color:#bf616a;">The</span><span> script is located at $</span><span style="color:#bf616a;">SCRIPT_DIR
</span><span style="color:#bf616a;">Run</span><span> einrichter.help for commands
</span><span style="color:#bf616a;">einrichter</span><span>&gt;
</span></code></pre>
<p>To download packages and patches to the directory, type in the following function:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter</span><span>&gt; einrichter.installer.pkgs
</span></code></pre>
2025-02-12 02:30:43 +01:00
<p>This action will proceed to download the packages and patches to $LFS/sources, and also the checksums.
Watch out, here's the next step:</p>
<p>Extract the packages and rename them to the appropriate directory names</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter</span><span>&gt; einrichter.xr
</span></code></pre>
2025-02-12 02:31:01 +01:00
<p>IMPORTANT!! Run this too, to prepare for the installation of Linux, and more.</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter</span><span>&gt; einrichter.add.fs
2025-02-12 02:30:43 +01:00
</span></code></pre>
2025-02-06 18:05:35 +01:00
<h3 id="s6-2-creating-a-limited-directory-layout">S6.2: Creating a limited directory layout</h3>
<p>Run the following command:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter</span><span>&gt; einrichter.installer.DirLayout
</span></code></pre>
<h2 id="s7-enter-lfs-user">S7: Enter lfs user</h2>
<p>Enter the LFS environment to build the cross toolchain and temporary tools by entering the following:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter</span><span>&gt; einrichter.installer.SafeUser
</span></code></pre>
<h3 id="s7-1-going-through-pending-steps">S7.1: Going through pending steps</h3>
<p>You are about to build a cross toolchain and temporary tools. You're going to see the following:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">Einrichter</span><span> is designed to work as an install script where you can resume where you left off. Do NOT skip anything if you have not ran the step yet.
</span><span style="color:#bf616a;">Pending</span><span> step: Setting up environment. Run, skip or quit?
</span></code></pre>
<p>Either type R to run, S to skip or Q to quit.
Do the same for the other remaining quesitons:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">Pending</span><span> step: Setting up toolchain. Run, skip or quit? R
</span><span style="color:#bf616a;">Pending</span><span> step: Installing cross toolchain and packages. Run, skip or quit? R
</span></code></pre>
<p>And eventually...</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">Done!
</span><span style="color:#bf616a;">[i]</span><span> Completed!
</span><span style="color:#bf616a;">[i]</span><span> Finished section installer.SafeUser
</span><span style="color:#bf616a;">einrichter</span><span>&gt;
</span></code></pre>
<p>Before you know it, you're done!
Now HERE begins the real work (insert lqtroll emoji)</p>
<h2 id="s8-actually-building-the-system-itself">S8: Actually building the system itself</h2>
<blockquote class="tip">
<p class="alert-title">
2025-03-04 04:23:12 +01:00
<i class="ph-bold ph-lightbulb"></i>Tip</p>
2025-02-06 18:05:35 +01:00
<p>Before proceeding with the build,
One way to ensure that the LFS variable is always set is to edit the .bash_profile file in both your personal home directory and in /root/.bash_profile and enter the export command above. In addition, the shell specified in the /etc/passwd file for all users that need the LFS variable must be bash to ensure that the /root/.bash_profile file is incorporated as a part of the login process.</p>
<p>Another consideration is the method that is used to log into the host system. If logging in through a graphical display manager, the user's .bash_profile is not normally used when a virtual terminal is started. In this case, add the export command to the .bashrc file for the user and root. In addition, some distributions use an "if" test, and do not run the remaining .bashrc instructions for a non-interactive bash invocation. Be sure to place the export command ahead of the test for non-interactive use.</p>
</blockquote>
<p>Now that you finished that section, enter the chroot environment like this:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter</span><span>&gt; einrichter.installer.chroot
</span></code></pre>
<p>This command changes ownership of the commands under $LFS from the user <code>lfs</code> to <code>root</code>
It also mounts the virtual kernel file systems.
Then, it chroots you into the bash shell. Continue the installer by running the following command inside of the chroot:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">$</span><span> /Einrichter-in-chroot.sh
</span></code></pre>
<p>This boots you into the eic shell.
Run the following commands:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.dirs.create </span><span style="color:#65737e;"># Creates necessary directories
</span><span>einrichter/eic&gt; eic.essentials.create </span><span style="color:#65737e;"># Creates necessary tools
</span><span>einrichter/eic&gt; eic.essentials.install </span><span style="color:#65737e;"># Installs the tools
2025-03-04 04:23:12 +01:00
</span><span>einrichter/eic&gt; eic.essentials.verify </span><span style="color:#65737e;"># Verifies that the packages are installed
2025-02-06 18:05:35 +01:00
</span><span>einrichter/eic&gt; eic.clean </span><span style="color:#65737e;"># Clean up the environment
</span></code></pre>
2025-03-04 04:23:12 +01:00
<p>If after running eic.essentials.verify, the packages have not been installed, try to troubleshoot the actual package that failed to install and try again.</p>
<p>Or...re-extract package and reinstall</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.bugfix.RrX
</span><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.essentials.install
</span></code></pre>
2025-02-12 02:30:43 +01:00
<p>BEFORE BUILDING THE ACTUAL SYSTEM!!!!
Run this command. It applies the RrX bugfix that removes and re-extracts affected packages.</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.bugfix.RrX
</span></code></pre>
2025-02-06 18:05:35 +01:00
<p>Build the system by running the following:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.system.build
</span></code></pre>
<p>GCC, due to its nature of taking so long to build, gets its own function:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.system.build.gcc
</span></code></pre>
<p>Continue building as if nothing happened</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.system.build.continue
</span></code></pre>
<h3 id="s8-1-strip-system-optional">S8.1: Strip system (optional)</h3>
<p>Done after so long? If you don't plan on doing any debugging on the system software/aren't that much of a programmer, you can remove debugging symbols and unnecessary symbol table entries from binaries and libraries.
This frees up about 2GB(?) on the system.
To do so, run the following:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.strip
</span></code></pre>
<h3 id="s8-2-cleaning-up">S8.2: Cleaning up</h3>
<p>Finally, after all of that, clean up extra leftovers and the tester account by running this command:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.system.build.clean
</span></code></pre>
<h2 id="s9-setting-up-the-system">S9: Setting up the system</h2>
<p>You are now in the stage where you set up your system and actually make an attempt at making your system bootable!</p>
<h3 id="s9-1-networking">S9.1: Networking</h3>
<p>(This section only applies if a network card is to be configured.)</p>
<h4 id="s9-1-1-network-device-naming">S9.1.1: Network Device Naming</h4>
<p><blockquote class="tip">
<p class="alert-title">
2025-03-04 04:23:12 +01:00
<i class="ph-bold ph-lightbulb"></i>Tip</p>
2025-02-06 18:05:35 +01:00
<p>Modified from the LFS handbook: The interface names depend on the implementation and configuration of the udev daemon running on the system. The udev daemon for TylkoLinux (well, LFS) (systemd-udevd) will not run unless the TylkoLinux/LFS system is booted. So it's unreliable to determine the interface names being used in the TylkoLinux system by running those commands on the host distro, even though you are in the chroot environment.</p>
</blockquote>
Udev normally assigns network card interface names based on physical system characteristics such as enp2s1. If you are not sure what your interface name is, you can always run <code>ip link</code> after you have booted your system.
For most systems, there is only one network interface for each type of connection. For example, the classic interface name for a wired connection is eth0. A wireless connection will usually have the name wifi0 or wlan0.</p>
<p>If you'd like to use classic/customised network names, run the following function and enter the demanded information:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.network.devicenaming
</span><span style="color:#bf616a;">[i]</span><span> Enter MAC address of desired device: SN:UG:N0:0K:FR
</span><span style="color:#bf616a;">[i]</span><span> Enter the desired name of your interface: nasaethernet1
</span><span style="color:#65737e;"># Those are examples, not things you should actually enter!! Replace those with the actual info
</span></code></pre>
<h4 id="s9-1-2-static-ip-configuration">S9.1.2: Static IP configuration</h4>
<p>This makes a basic config file for a Static IP setup</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.network.staticip
</span><span style="color:#bf616a;">[i]</span><span> Enter the name of the configured interface: nasaethernet1 </span><span style="color:#65737e;"># example
</span><span style="color:#bf616a;">[?]</span><span> Add DNS? If no, type N. If yes, type DNS address.
</span><span>&gt; Y </span><span style="color:#65737e;"># example
</span><span style="color:#b48ead;">[</span><span>?</span><span style="color:#b48ead;">] </span><span style="color:#bf616a;">Add</span><span> domain? If no, type N. If yes, type domain name.
</span><span>&gt; N </span><span style="color:#65737e;"># example
</span><span style="color:#b48ead;">[</span><span>i</span><span style="color:#b48ead;">] </span><span style="color:#bf616a;">Skipped</span><span> domain addition. </span><span style="color:#65737e;"># example
</span></code></pre>
<h4 id="s9-1-3-dhcp-configuration">S9.1.3: DHCP configuration</h4>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.network.dhcp
</span><span style="color:#bf616a;">[i]</span><span> Enter the name of the configured interface: itsthesamethingagain0 </span><span style="color:#65737e;"># example
</span></code></pre>
<h4 id="s9-1-4-etc-resolv-conf">S9.1.4: /etc/resolv.conf</h4>
<blockquote class="tip">
<p class="alert-title">
2025-03-04 04:23:12 +01:00
<i class="ph-bold ph-lightbulb"></i>Tip</p>
2025-02-06 18:05:35 +01:00
<p>From the LFS handbook: If using methods incompatible with systemd-resolved to configure your network interfaces (ex: ppp, etc.), or if using any type of local resolver (ex: bind, dnsmasq, unbound, etc.), or any other software that generates an /etc/resolv.conf (ex: a resolvconf program other than the one provided by systemd), the systemd-resolved service should not be used.</p>
<p>To switch settings about whether this should be allowed or not, run the command below ↓</p>
</blockquote>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.network.systemd.resolve &lt;on/off&gt;
</span><span style="color:#bf616a;">[i]</span><span> Disabling/Enabling systemd-resolved...
</span></code></pre>
<h5 id="s9-1-4-1-static-resolv-conf">S9.1.4.1: Static resolv.conf</h5>
<p>Want to create a static file? Here:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.network.staticresolver
</span><span style="color:#bf616a;">[?]</span><span> Add domain? If no, type N. If yes, type domain name.
</span><span>&gt; N </span><span style="color:#65737e;"># example
</span><span style="color:#b48ead;">[</span><span>?</span><span style="color:#b48ead;">] </span><span style="color:#bf616a;">Add</span><span> primary nameserver? If no, type N. If yes, type nameserver name.
</span><span>&gt; N
</span><span style="color:#bf616a;">[i]</span><span> Skipped primary nameserver addition.
</span><span style="color:#bf616a;">[?]</span><span> Add secondary nameserver? If no, type N. If yes, type nameserver name.
</span><span>&gt; </span><span style="color:#d08770;">1</span><span style="color:#bf616a;">.2.3.4 </span><span style="color:#65737e;"># example
</span></code></pre>
<h4 id="s9-1-5-hostname">S9.1.5: Hostname</h4>
<p>To configure the hostname, enter the following command:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.network.hostname &lt;hostname&gt;
</span><span style="color:#65737e;"># Replace &lt;hostname&gt; with the desired hostname
</span></code></pre>
<h4 id="s9-1-6-customising-the-etc-hosts-file">S9.1.6: Customising the /etc/hosts file</h4>
2025-02-12 02:30:43 +01:00
<p><del>Remind me to work on this section.</del> Call me lazy (please don't), but to get over this guide a tiny tiny bit faster, I recommend you to google (or otherwise look up) "how to set up etc hosts". Usually it's managed by systemd I think? (obv unless you disabled it)</p>
<h3 id="s9-2-system-time">S9.2: System time</h3>
<p>You can tell the system whether your hardware clock is set to local time or UTC.</p>
<p>Either run:</p>
<p>// When in chroot,</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.time.createAdj
</span></code></pre>
<p>// When in a booted system,</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.time.clarifyUTC
</span></code></pre>
<p>Either can be set back to nothing by either deleting /etc/adjtime</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; rm /etc/adjtime
</span></code></pre>
<p>or by using timedatectl</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">timedatectl</span><span> set-local-rtc 0
</span></code></pre>
<p>To interactively change the system time (when in a booted system ofc)
do:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.time.set
</span></code></pre>
<p>then respond to the questions.</p>
<p>To set the timezone on a running system, run the following:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.time.tz &lt;TZ&gt;
</span><span style="color:#65737e;"># replace &lt;TZ&gt; with the timezone
</span></code></pre>
<p>To get the list of timezones in the first place, do:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">timedatectl</span><span> list-timezones
</span></code></pre>
<p>In systemd 216 and up, the network time synchronisation service is enabled by default. <strong>If you want, disable/enable it like this:</strong></p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#65737e;"># In shell and EIC
</span><span style="color:#bf616a;">systemctl</span><span> disable systemd-timesyncd
</span><span style="color:#bf616a;">systemctl</span><span> enable systemd-timesyncd
</span><span style="color:#65737e;"># In EIC exclusively
</span><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.time.nts on
</span><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.time.nts off
</span></code></pre>
<h3 id="s9-3-configuring-the-linux-console">S9.3: Configuring the Linux console</h3>
<p>Write defaults:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.console.preset
</span></code></pre>
<p>Set keymap:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.console.keymap &lt;keymap&gt;
</span><span style="color:#65737e;"># Replace &lt;keymap&gt; with keymap code, e.g. de-latin1
</span></code></pre>
<h3 id="s9-4-localisation">S9.4: Localisation</h3>
<p>Run this and answer questions:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.locale.set
</span></code></pre>
<h3 id="s9-5-creating-files-under-etc">S9.5: Creating files under /etc/</h3>
<p>Run these to create the /etc/inputrc and /etc/shells files</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.create.inputrc
</span><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.create.shells
</span></code></pre>
<h3 id="s9-6-more-config">S9.6: More config...</h3>
<p>Disable screen clearing:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.systemd.disableScreenClearing &lt;yes/no&gt;
</span></code></pre>
<p>Limit core dump size to something (in the format of 5M, 5G etc):</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.config.systemd.limitCoreDumpSize &lt;(</span><span style="color:#bf616a;">Size</span><span>)(G/M/K)&gt;
</span></code></pre>
<p>To remove the limit:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">rm</span><span> /etc/systemd/coredump.conf.d/maxuse.conf
</span></code></pre>
<h2 id="s10-making-it-boot">S10: Making it boot</h2>
<h3 id="s10-1-making-an-etc-fstab">S10.1: Making an /etc/fstab</h3>
<p>Make a filesystem table like this:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">cat </span><span>&gt; /etc/fstab &lt;&lt; &quot;</span><span style="color:#b48ead;">EOF</span><span>&quot;
</span><span style="color:#a3be8c;"># Begin /etc/fstab
</span><span style="color:#a3be8c;">
</span><span style="color:#a3be8c;"># file system mount-point type options dump fsck
</span><span style="color:#a3be8c;"># order
</span><span style="color:#a3be8c;">
</span><span style="color:#a3be8c;">/dev/&lt;foo&gt; / &lt;owo&gt; defaults 1 1
</span><span style="color:#a3be8c;">/dev/&lt;bar&gt; swap swap pri=1 0 0
</span><span style="color:#a3be8c;">
</span><span style="color:#a3be8c;"># End /etc/fstab
</span><span style="color:#b48ead;">EOF
</span></code></pre>
<p>Replace <foo> and <bar> with the appropriate values, don't add the swap line if you didn't make a swap partition.</p>
<p>Replace <owo> with the filesystem type</p>
<p>For any additional configuration, check this page: https://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter10/fstab.html</p>
<h3 id="s10-2-booting-linux">S10.2: BOOTING LINUX!!!!</h3>
<p>Don't get excited too yet, we need to verify something.</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#96b5b4;">cd</span><span> /sources/linux/
</span><span style="color:#bf616a;">ls -a </span><span>| </span><span style="color:#bf616a;">grep</span><span> .config
</span></code></pre>
<p>If you see the .config file, we can continue. If not, don't run this step, exit out of the Einrichter-in-chroot.sh script to go back to the Einrichter-CLI.sh script. After that, run:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter</span><span>&gt; einrichter.add.linuxConfig
</span></code></pre>
<p>Alright, we can continue. RUN THE FOLLOWING:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.linux.install
</span></code></pre>
<p>Later it will ask you this:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">[i]</span><span> Mount boot partition? &lt;Y/N&gt;:
</span></code></pre>
<p>Say yes if you want the kernel to be in the boot partition instead of the root one. Otherwise, <strong>no.</strong></p>
<h3 id="s10-3-bootloader-configuration">S10.3: Bootloader configuration</h3>
<p>Using UEFI bootloader? Check this:
https://www.linuxfromscratch.org/blfs/view/stable-systemd/postlfs/grub-setup.html#uefi-kernel
<a href="https://www.linuxfromscratch.org/lfs/view/stable-systemd/chapter10/grub.html">This page shows instructions on installing GRUB.</a>
Not needed of course, if you want to tweak your current GRUB to also detect other OSes, add this to your /etc/default/grub (on the host machine)
<code>GRUB_DISABLE_OS_PROBER=false</code>
Update the GRUB config with the respective command.</p>
2025-02-12 02:31:01 +01:00
<h3 id="s10-4-package-management">S10.4: Package management</h3>
<p>Need a package manager? Install RPM:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.rpm.install
</span></code></pre>
<p>To install tdnf, vmware's implementation of DNF, do:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.tdnf.install
</span></code></pre>
<p>If you want to add more packages to your system, including NetworkManager, run:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.plus
</span></code></pre>
2025-02-12 02:30:43 +01:00
<h2 id="s11-the-end-tm">S11: The End:tm:</h2>
<p>Well, you made it! Congrats on installing the basics of TylkoLinux... If you want, you can also mark your installation as a TylkoLinux one by running this:</p>
<pre data-lang="bash" style="background-color:#2b303b;color:#c0c5ce;" class="language-bash "><code class="language-bash" data-lang="bash"><span style="color:#bf616a;">einrichter/eic</span><span>&gt; eic.signoff
</span></code></pre>
<p>Hope you had as much fun following the guide as I did writing it!</p>
2025-02-06 18:05:35 +01:00
2025-03-04 04:23:12 +01:00
</article><hr />
<nav id="post-nav"><a class="post-nav-item post-nav-next" href="https:&#x2F;&#x2F;rootsource.cc&#x2F;Articles&#x2F;set-up-costmiku-ffsync&#x2F;">
<div class="nav-arrow">Next</div>
<span class="post-title">Set up costmiku ffsync on Firefox</span>
</a></nav>
</div>
2025-02-06 18:05:35 +01:00
</main>
<footer id="site-footer">
2025-03-04 04:23:12 +01:00
<div class="container">
<div><p id="site-footer-copyright">raiz1.noho.st owns this website
</p>
<p>Powered by <a class="link external" href="https://www.getzola.org" rel="">Zola</a> and <a class="link external" href="https://ametrine.daudix.one" rel="">Ametrine</a>
</p>
</div></div>
2025-02-06 18:05:35 +01:00
</footer>
2025-03-04 04:23:12 +01:00
<div id="search-modal">
<div id="search-modal-content">
<label for="search-input" class="visually-hidden">Search</label>
<div>
<input id="search-input" placeholder="Search for…" autocomplete="off" type="search">
<i class="ph-bold ph-keyboard" title="Press “&#x2F;” to Open Search Bar"></i>
</div>
<div id="search-results" class="overshoot"></div>
</div>
</div>
2025-02-06 18:05:35 +01:00
</body>
</html>