323 lines
26 KiB
HTML
323 lines
26 KiB
HTML
<!DOCTYPE html>
|
|
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" >
|
|
<head>
|
|
<!-- 2025-02-01 Sat 04:04 -->
|
|
<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" />
|
|
<meta name="theme-color" content="#9a9996" />
|
|
<title>TylkoLinux is done, here's how to install it. - RSCC</title>
|
|
<link rel="canonical" href="https://rootsource.cc/Articles/tylkolinux-installation/" /><link rel="icon" type="image/png" href="https://rootsource.cc/favicon.png" />
|
|
|
|
<link rel="apple-touch-icon" type="image/png" sizes="180x180" href="https://rootsource.cc/apple-touch-icon.png" />
|
|
<style type="text/css">
|
|
:root {--accent-color: #6f8396;--contrast-color: #fff;}</style>
|
|
|
|
<link type="text/css" rel="stylesheet" href="https://rootsource.cc/style.css" />
|
|
<script type="text/javascript" defer src="https://rootsource.cc/closable.js"></script>
|
|
|
|
<meta property="og:site_name" content="RSCC" />
|
|
<meta property="og:title" content="TylkoLinux is done, here's how to install it. - RSCC" />
|
|
<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:image" content="https://rootsource.cc/card.png" />
|
|
<meta property="og:locale" content="en_US" />
|
|
</head>
|
|
|
|
<body>
|
|
|
|
|
|
<header id="site-nav">
|
|
<nav>
|
|
<a href="#main-content" tabindex="0">
|
|
Skip to Main Content
|
|
</a>
|
|
<ul>
|
|
<li id="home">
|
|
<a href="https://rootsource.cc">
|
|
<i class="icon"></i>RSCC</a>
|
|
</li>
|
|
<li class="divider"></li>
|
|
<li>
|
|
<a href="https://rootsource.cc/Articles">Articles</a>
|
|
</li>
|
|
<li id="search">
|
|
<button id="search-toggle" class="circle" title="Search">
|
|
<i class="icon"></i>
|
|
</button>
|
|
</li>
|
|
</ul>
|
|
</nav>
|
|
<div id="search-container">
|
|
<label for="search-bar" class="visually-hidden">Search</label>
|
|
<input id="search-bar" placeholder="Search for…" autocomplete="off" type="search" disabled>
|
|
<div id="search-results-container">
|
|
<div id="search-results"></div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<main id="main-content">
|
|
|
|
<article><div id="heading"><p>
|
|
<small>
|
|
<time datetime=" 2025-01-30T00:00:00+00:00">Published on
|
|
January 30, 2025</time></small>
|
|
</p><h1>TylkoLinux is done, here's how to install it.</h1>
|
|
</div>
|
|
|
|
<div id="buttons-container"><a id="go-to-top" href="#top" title="Go to Top"><i class="icon"></i></a></div><p><code>TylkoLinux 25.1/.2 Snyx x86_64</code></p>
|
|
<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">
|
|
<i class="icon"></i>Important</p>
|
|
<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>
|
|
</ul>
|
|
|
|
</blockquote>
|
|
</p>
|
|
<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>
|
|
<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 && </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">
|
|
<i class="icon"></i>Caution</p>
|
|
<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">
|
|
<i class="icon"></i>Tip</p>
|
|
<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/<foo> $</span><span style="color:#bf616a;">LFS
|
|
</span><span style="color:#65737e;"># Replace <foo> 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/<xxx> $</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/<yyy> $</span><span style="color:#bf616a;">LFS</span><span>/home
|
|
</span><span style="color:#65737e;"># Replace <foo> and <bar> with the appropriate partition names.
|
|
</span></code></pre>
|
|
<blockquote class="caution">
|
|
<p class="alert-title">
|
|
<i class="icon"></i>Caution</p>
|
|
<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><foo> /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/<owo>
|
|
</span><span style="color:#65737e;"># Replace <owo> 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>>
|
|
</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>> einrichter.installer.pkgs
|
|
</span></code></pre>
|
|
<p>This action will proceed to download the packages and patches to $LFS/sources, and also the checksums.</p>
|
|
<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>> 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>> 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>>
|
|
</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">
|
|
<i class="icon"></i>Tip</p>
|
|
<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>> 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>> eic.dirs.create </span><span style="color:#65737e;"># Creates necessary directories
|
|
</span><span>einrichter/eic> eic.essentials.create </span><span style="color:#65737e;"># Creates necessary tools
|
|
</span><span>einrichter/eic> eic.essentials.install </span><span style="color:#65737e;"># Installs the tools
|
|
</span><span>einrichter/eic> eic.clean </span><span style="color:#65737e;"># Clean up the environment
|
|
</span></code></pre>
|
|
<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>> 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>> 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>> 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>> 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>> 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">
|
|
<i class="icon"></i>Tip</p>
|
|
<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>> 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>> 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>> 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>> 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>> 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">
|
|
<i class="icon"></i>Tip</p>
|
|
<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>> eic.config.network.systemd.resolve <on/off>
|
|
</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>> eic.config.network.staticresolver
|
|
</span><span style="color:#bf616a;">[?]</span><span> Add domain? If no, type N. If yes, type domain name.
|
|
</span><span>> 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>> 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>> </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>> eic.config.network.hostname <hostname>
|
|
</span><span style="color:#65737e;"># Replace <hostname> 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>
|
|
<p>Remind me to work on this section.</p>
|
|
<h1 id="under-construction">under construction!!!</h1>
|
|
|
|
</article>
|
|
|
|
<span id="search-index" class="hidden">https://rootsource.cc/search_index.en.json</span>
|
|
<span id="more-matches-text" class="hidden">$MATCHES more matches</span>
|
|
|
|
</main>
|
|
<footer id="site-footer">
|
|
<p>raíz1.noho.st owns this website</p>
|
|
|
|
<p>
|
|
<small>Powered by <a class="link external" href="https://www.getzola.org" rel="">Zola</a> and <a class="link external" href="https://duckquill.daudix.one" rel="">Duckquill</a>
|
|
</small>
|
|
</p>
|
|
</footer>
|
|
|
|
|
|
</body>
|
|
</html>
|