<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
	<channel>
		<atom:link href="https://dev1galaxy.org/extern.php?action=feed&amp;tid=4868&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / [SOLVED] Installing Devuan via command line]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4868</link>
		<description><![CDATA[The most recent posts in [SOLVED] Installing Devuan via command line.]]></description>
		<lastBuildDate>Mon, 06 Jun 2022 15:25:25 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=36167#p36167</link>
			<description><![CDATA[<div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>Hello, I&#039;m here again!</p><p>other useful groups are <em>disk</em></p></div></blockquote></div><p>This is raw access to disks. Mostly equivalent to root access. The group </p><div class="codebox"><pre><code>disk</code></pre></div><p> can be very dangerous, since hard drives in /dev/sd* and /dev/hd* can be read and written bypassing any file system and any partition, allowing a normal user to disclose, alter and destroy both the partitions and the data of such drives without root privileges. Users should never belong to this group. </p><div class="quotebox"><blockquote><div><p>storage</p></div></blockquote></div><p>The group plugdev may be more practical.</p>]]></description>
			<author><![CDATA[dummy@example.com (Ogis1975)]]></author>
			<pubDate>Mon, 06 Jun 2022 15:25:25 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=36167#p36167</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34903#p34903</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p><strong>Mount the file systems</strong></p><p>Create the directory where you can mount the home partition filesystem:</p><p><em> mkdir /mnt/home</em></p><p>Mount the home partition file system:</p><p><em> mount /dev/disk/by-label/HOME /mnt/home</em></p><p>Mount the root filesystem on <em>/mnt</em>:</p><p><em> mount /dev/disk/by-label/ROOT /mnt</em></p></div></blockquote></div><p>You have that backwards. If you create /mnt/home/ before mounting the root partition then the root partition will cover it up when it is mounted:</p><div class="codebox"><pre><code># mkdir /mnt/home
# mount -o subvol=HOME /dev/nvme0n1p2 /mnt/home/
# mount -o subvol=ROOT /dev/nvme0n1p2 /mnt
# ls /mnt
# umount /mnt
# ls /mnt     
home
#</code></pre></div><p>The process should be</p><div class="codebox"><pre><code># mount /dev/disk/by-label/ROOT /mnt
# mkdir /mnt/home
# mount /dev/disk/by-label/HOME /mnt/home</code></pre></div><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>Mount the pseudo-filesystems needed for a chroot:</p><p><em> mount --rbind /dev /mnt/dev &amp;&amp; mount --make-rslave /mnt/dev<br /> mount --rbind /dev/pts /mnt/dev/pts &amp;&amp; mount --make-rslave /mnt/dev/pts<br /> mount --rbind /proc /mnt/proc &amp;&amp; mount --make-rslave /mnt/proc<br /> mount --rbind /sys /mnt/sys &amp;&amp; mount --make-rslave /mnt/sys</em></p><p>Copy the DNS configuration into the new root so that we can download new packages inside the chroot:</p><p><em> cp /etc/resolv.conf /mnt/etc/</em></p><p>Change root into the new system:</p><p><em> chroot /mnt /bin/bash</em></p></div></blockquote></div><p>Those steps can be replaced with two commands:</p><div class="codebox"><pre><code># apt install arch-install-scripts
# arch-chroot /mnt</code></pre></div><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p><strong>Configure fstab</strong></p></div></blockquote></div><p>Simpler method (run before entering the chroot):</p><div class="codebox"><pre><code># genfstab -U /mnt &gt; /mnt/etc/fstab</code></pre></div><p>The <span class="bbc">genfstab</span> command is also supplied by the arch-install-scripts package.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>You may also want to add some additional sources, for example <strong>source packages</strong> and <strong>security updates</strong></p></div></blockquote></div><p>The security repositories are absolutely essential, omitting them is a very bad idea. The source repositories are entirely optional and are only needed for patching packages.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p><strong>Install the Intel Microcode</strong></p></div></blockquote></div><p>There is also an amd-microcode package, which should be considered essential for AMD systems (just as the Intel version is).</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>To install the latest Linux kernel, run this command:</p><p><em> apt install linux-headers-amd64 linux-image-amd64</em></p></div></blockquote></div><p>The headers are only needed for building kernel modules such as the proprietary NVIDIA drivers.</p><p>For such cases it is best to use</p><div class="codebox"><pre><code># apt install module-assistant
# m-a prepare</code></pre></div><p>^ That will install the headers and any other packages needed to build the modules.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>After that, create a user that you will use for your normal operations:</p><p><em> useradd -m username</em></p></div></blockquote></div><p>It&#039;s probably best to use the provided Debian abstraction instead:</p><div class="codebox"><pre><code># adduser</code></pre></div><p>Note that your guide only covers non-UEFI systems, which aren&#039;t very common these days.</p></div></blockquote></div><p>The guide has been updated. I decided to do an installation without the arch-install-scripts package.</p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Fri, 25 Feb 2022 00:51:43 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34903#p34903</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34870#p34870</link>
			<description><![CDATA[<div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p><strong>Mount the file systems</strong></p><p>Create the directory where you can mount the home partition filesystem:</p><p><em> mkdir /mnt/home</em></p><p>Mount the home partition file system:</p><p><em> mount /dev/disk/by-label/HOME /mnt/home</em></p><p>Mount the root filesystem on <em>/mnt</em>:</p><p><em> mount /dev/disk/by-label/ROOT /mnt</em></p></div></blockquote></div><p>You have that backwards. If you create /mnt/home/ before mounting the root partition then the root partition will cover it up when it is mounted:</p><div class="codebox"><pre><code># mkdir /mnt/home
# mount -o subvol=HOME /dev/nvme0n1p2 /mnt/home/
# mount -o subvol=ROOT /dev/nvme0n1p2 /mnt
# ls /mnt
# umount /mnt
# ls /mnt     
home
#</code></pre></div><p>The process should be</p><div class="codebox"><pre><code># mount /dev/disk/by-label/ROOT /mnt
# mkdir /mnt/home
# mount /dev/disk/by-label/HOME /mnt/home</code></pre></div><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>Mount the pseudo-filesystems needed for a chroot:</p><p><em> mount --rbind /dev /mnt/dev &amp;&amp; mount --make-rslave /mnt/dev<br /> mount --rbind /dev/pts /mnt/dev/pts &amp;&amp; mount --make-rslave /mnt/dev/pts<br /> mount --rbind /proc /mnt/proc &amp;&amp; mount --make-rslave /mnt/proc<br /> mount --rbind /sys /mnt/sys &amp;&amp; mount --make-rslave /mnt/sys</em></p><p>Copy the DNS configuration into the new root so that we can download new packages inside the chroot:</p><p><em> cp /etc/resolv.conf /mnt/etc/</em></p><p>Change root into the new system:</p><p><em> chroot /mnt /bin/bash</em></p></div></blockquote></div><p>Those steps can be replaced with two commands:</p><div class="codebox"><pre><code># apt install arch-install-scripts
# arch-chroot /mnt</code></pre></div><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p><strong>Configure fstab</strong></p></div></blockquote></div><p>Simpler method (run before entering the chroot):</p><div class="codebox"><pre><code># genfstab -U /mnt &gt; /mnt/etc/fstab</code></pre></div><p>The <span class="bbc">genfstab</span> command is also supplied by the arch-install-scripts package.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>You may also want to add some additional sources, for example <strong>source packages</strong> and <strong>security updates</strong></p></div></blockquote></div><p>The security repositories are absolutely essential, omitting them is a very bad idea. The source repositories are entirely optional and are only needed for patching packages.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p><strong>Install the Intel Microcode</strong></p></div></blockquote></div><p>There is also an amd-microcode package, which should be considered essential for AMD systems (just as the Intel version is).</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>To install the latest Linux kernel, run this command:</p><p><em> apt install linux-headers-amd64 linux-image-amd64</em></p></div></blockquote></div><p>The headers are only needed for building kernel modules such as the proprietary NVIDIA drivers.</p><p>For such cases it is best to use</p><div class="codebox"><pre><code># apt install module-assistant
# m-a prepare</code></pre></div><p>^ That will install the headers and any other packages needed to build the modules.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>After that, create a user that you will use for your normal operations:</p><p><em> useradd -m username</em></p></div></blockquote></div><p>It&#039;s probably best to use the provided Debian abstraction instead:</p><div class="codebox"><pre><code># adduser</code></pre></div><p>Note that your guide only covers non-UEFI systems, which aren&#039;t very common these days.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 23 Feb 2022 17:36:01 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34870#p34870</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34863#p34863</link>
			<description><![CDATA[<p>Hello, I&#039;m here again!</p><p>I finished writing an installation guide for my system, the contents of other distro&#039;s guides are merged but the result was as expected. If there are any mistakes that I can fix, please let me know.</p><p>Here is:</p><p><strong>Installation</strong></p><p><strong>Pre-installation</strong></p><p><strong>Live ISO download and storage media preparation</strong></p><p>Go on <a href="https://files.devuan.org/" rel="nofollow">the Devuan GNU+Linux download page</a> and download the stable minimal-live ISO file <em>devuan_{codename}_{version}_{architecture}_minimal-live.iso</em>.</p><p>This guide recommends you the use of <a href="https://www.balena.io/etcher/" rel="nofollow">balenaEtcher</a> or <a href="https://rufus.ie/" rel="nofollow">Rufus</a> to write the ISO on a storage media (CD/DVD/USB).</p><p><strong>Booting into the live ISO</strong></p><p>Remember to disable Secure Boot from the UEFI Settings to install and use the distro.</p><p>If you are unable to boot after disabling Secure Boot, make sure that your storage configuration is set to AHCI.</p><p><strong>Login</strong></p><p>On the live ISO you have two possibilities regarding login:</p><p> ● User <em>devuan</em>, password <em>devuan</em> (all important commands must be prefixed with <em>sudo</em>).<br /> ● User <em>root</em>, password <em>toor</em>.</p><p><strong>Set the console keyboard layout</strong></p><p>The default <strong>console keymap</strong> is <strong>US</strong>. Available layouts can be listed with:</p><p><em> ls -R /usr/share/keymaps/i386/</em></p><p>To modify the layout, append a corresponding file name to loadkeys, omitting path and file extension. For example, to set a <strong>German</strong> keyboard layout:</p><p><em> loadkeys de-latin1</em></p><p><strong>Console fonts</strong> are located in <em>/usr/share/consolefonts/</em> and can likewise be set with <em>setfont</em>.</p><p><strong>Connecting to the Internet</strong></p><p>Configure your network interfaces with &quot;<strong>setnet.sh</strong>&quot;:</p><p><em> setnet.sh</em></p><p><strong>Partition the disks</strong></p><p>You need to figure out which disk you want to install Devuan. <em>lsblk</em> is a command that lists the available disks, and usually one invocation of it is enough to figure out which disk you have to work on.</p><p>Partition your storage devices with <em>cfdisk</em> (this guide will assume the disk is <em>/dev/sda</em>), the partition numbers and order are at your discretion:</p><p> ● If you only need to modify the partition table of an existing disk (e.g. dual booting), the command to be issued is:</p><p><em> cfdisk /dev/sda</em></p><p> ● If, on the other hand, you need to reinitialize the disk in question (no partition table), the command to issue is:</p><p><em> cfdisk -z /dev/sda</em></p><p>The <em>cfdisk</em> partition manager will open. If you are creating the partition table now and are on UEFI or a Legacy BIOS that supports booting from GPT disks, choose <em>gpt</em>; otherwise choose <em>msdos</em>.</p><p>Create the following partitions:</p><p> ● If you are booting from a legacy BIOS and have chosen a GPT partition table, the first partition must be of type <em>BIOS boot</em> and of size <em>1 MB</em>; In case you are booting from a legacy BIOS which only boots from MBR (<em>msdos</em>) partition tables, then there is no need to create this partition.</p><p> ● If you don&#039;t already have it, add the boot partition; it must be about 500 MB and preferably of <em>EFI System</em> type.</p><p> ● Add a partition for the root file system (and leave it flagged as <em>Linux filesystem</em>).</p><p> ● If you want, you can add a swap partition by creating it and flagging it as <em>Linux swap</em>.</p><p> ● In a GPT partition table, pre-flagging the boot partition as ESP even if you are on Legacy BIOS is useful to make a possible conversion from Legacy BIOS to UEFI easier.</p><p>Confirm the changes by issuing the <em>Write</em> command; confirm by typing <em>yes</em> and then quit the partition manager by issuing the command <em>Quit</em>.</p><p>For ease of reference, the disk used in this guide will be /dev/sda and it will be partitioned as follows:</p><p> ● BIOS/MBR</p><p><em> /dev/sda<br /> - /dev/sda1 -&gt;&#160; Linux filesystem (root) -&gt; Remainder of the device<br /> - /dev/sda2 -&gt; Linux swap (optional)</em> -&gt; 2GB±</p><p> ● BIOS/GPT</p><p><em> /dev/sda<br /> - /dev/sda1 -&gt; BIOS boot partition -&gt; 256 MB<br /> - /dev/sda2 -&gt; Linux filesystem (root) -&gt; Remainder of the device<br /> - /dev/sda2 -&gt; Linux swap (optional)</em> -&gt; 2GB±</p><p> ● UEFI/GPT</p><p><em> /dev/sda<br /> - /dev/sda1 -&gt; EFI System -&gt; 512 MB<br /> - /dev/sda2 -&gt; Linux filesystem (root) -&gt; Remainder of the device<br /> - /dev/sda3 -&gt; Linux swap (optional)</em> -&gt; 2GB±</p><p><strong>Format the partitions</strong></p><p>The boot partition will be /dev/sda1 so do (only on legacy BIOS):</p><p> mkfs.ext4 -L BOOT /dev/sda1</p><p>The boot partition will be /dev/sda1 so do (only on EFI System):</p><p> mkfs.fat -F 32 /dev/sda1</p><p>The Linux root partition will be /dev/sda2 so do:</p><p><em> mkfs.ext4 -L ROOT /dev/sda2</em></p><p>The swap partition will be on <em>/dev/sda3</em>, so do:</p><p><em> mkswap -L SWAP /dev/sda3</em></p><p>The <em>-L</em> switch assigns labels to the partitions, which helps referring to them later through <em>/dev/disk/by-label</em> without having to remember their numbers.</p><p><strong>Mount the file systems</strong></p><p>If you have created a swap partition, activate it with the command:</p><p><em> swapon /dev/disk/by-label/SWAP</em></p><p>Mount the root filesystem on <em>/mnt</em>:</p><p><em> mount /dev/disk/by-label/ROOT /mnt</em></p><p>If you&#039;re using legacy BIOS, create the directory where you can mount the boot partition filesystem:</p><p><em> mkdir -p /mnt/boot</em></p><p>Mount the boot partition file system (legacy BIOS):</p><p><em> mount /dev/disk/by-label/BOOT /mnt/boot</em></p><p>If you&#039;re using UEFI, create the directory where you can mount the boot partition filesystem:</p><p><em> mkdir -p /mnt/boot/efi</em></p><p>Mount the boot partition file system (UEFI):</p><p><em> mount /dev/disk/by-label/BOOT /mnt/boot/efi</em></p><p><strong>Installation</strong></p><p>Install a base system with <strong>debootstrap</strong>:</p><p><em> debootstrap --arch=amd64 &lt;<strong>codename</strong>&gt; /mnt <a href="http://deb.devuan.org/merged" rel="nofollow">http://deb.devuan.org/merged</a></em></p><p><strong>Note:</strong> Choose a <strong>codename</strong> available in <em>/usr/share/debootstrap/scripts/</em>.</p><p><strong>Configure the system</strong></p><p>Mount the pseudo-filesystems needed for a chroot:</p><p><em> mount --rbind /dev /mnt/dev &amp;&amp; mount --make-rslave /mnt/dev<br /> mount --rbind /dev/pts /mnt/dev/pts &amp;&amp; mount --make-rslave /mnt/dev/pts<br /> mount --rbind /proc /mnt/proc &amp;&amp; mount --make-rslave /mnt/proc<br /> mount --rbind /sys /mnt/sys &amp;&amp; mount --make-rslave /mnt/sys</em></p><p>Copy the DNS configuration into the new root so that we can download new packages inside the chroot:</p><p><em> cp /etc/resolv.conf /mnt/etc/</em></p><p>Change root into the new system:</p><p><em> chroot /mnt /bin/bash</em></p><p><strong>Configure fstab</strong></p><p>The <strong>fstab</strong> file can be automatically generated from currently mounted filesystems by copying the file <em>/proc/mounts</em>:</p><p><em> cp /proc/mounts /etc/fstab</em></p><p>Remove lines in <em>/etc/fstab</em> that refer to <em>dev</em>, <em>proc</em>, <em>pts</em> and <em>sys</em>.</p><p>Replace references to <em>/dev/sda</em> with their respective UUID, which can be found by running <strong>blkid</strong>. Referring to filesystems by their UUID guarantees they will be found even if they are assigned a different name at a later time. In some situations, such as booting from USB, this is absolutely essential. In other situations, disks will always have the same name unless drives are physically added or removed. Therefore, this step may not be strictly necessary, but is almost always recommended.</p><p>Change the last zero of every other line to <em>2</em> and the last zero of the entry for <em>/</em> to <em>1</em>. These values configure the behaviour of <em>fsck</em>. For example, the partition scheme used throughout previous examples yields the following <em>fstab</em>:</p><p><em> # &lt;device&gt;&#160; &#160; &#160; &lt;dir&gt;&#160; &#160; &#160; &#160; &lt;type&gt;&#160; &#160; &#160; &#160; &lt;options&gt;&#160; &#160; &#160; &#160; &lt;dump&gt; &lt;fsck&gt;<br /> /dev/sdax&#160; &#160; &#160; &#160; /boot/efi&#160; &#160; &#160; fat&#160; &#160; &#160; &#160; &#160; &#160; defaults&#160; &#160; &#160; &#160; &#160; &#160;0&#160; &#160; &#160; &#160; &#160; 0<br /> /dev/sdax&#160; &#160; &#160; &#160; /&#160; &#160; &#160; &#160; &#160; &#160; &#160;ext4&#160; &#160; &#160; &#160; &#160; &#160; defaults&#160; &#160; &#160; &#160; &#160; &#160;0&#160; &#160; &#160; &#160; &#160; 0</em></p><p>The information from <em>blkid</em> results in the following <em>/etc/fstab</em>:</p><p><em> # &lt;device&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;dir&gt;&#160; &#160;&lt;type&gt; &lt;options&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;&lt;dump&gt; &lt;fsck&gt;<br /> UUID=xxxx[...]&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;/boot/efi fat&#160; &#160; &#160;defaults&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 0&#160; &#160; &#160; &#160; &#160; 2<br /> UUID=xxxx[...]&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;/&#160; &#160; &#160; &#160; ext4&#160; &#160; &#160;defaults&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; 0&#160; &#160; &#160; &#160; &#160; 1<br /> UUID=xxxx[...]&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; none&#160; &#160;swap&#160; &#160; sw&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160;0&#160; &#160; &#160; &#160; &#160; 0</em></p><p>Also add an entry to mount <em>/tmp</em> in RAM:</p><p><em> # &lt;device&gt;&#160; &lt;dir&gt; &lt;type&gt; &lt;options&gt;&#160; &#160; &#160; &#160; &#160; &#160; &#160; &#160; &lt;dump&gt; &lt;fsck&gt;<br /> tmpfs&#160; &#160; &#160; &#160; &#160;/tmp tmpfs&#160; defaults,nosuid,nodev 0&#160; &#160; &#160; &#160; &#160; 0</em></p><p><strong>Note:</strong> The output of <em>/proc/mounts</em> will have a single space between each field. The columns are aligned here for readability.</p><p><strong>Editing the software repositories</strong></p><p>The <em>/etc/apt/sources.list</em> is the main sources configuration file. If you need the <em>contrib</em> and <em>non-free</em> components, add <em>contrib non-free</em> after <em>main</em>. You may also want to add some additional sources, for example <strong>source packages</strong> and <strong>security updates</strong>:</p><p><em> deb <a href="http://deb.devuan.org/merged" rel="nofollow">http://deb.devuan.org/merged</a> &lt;<strong>codename</strong>&gt; main contrib non-free<br /> deb-src <a href="http://deb.devuan.org/merged" rel="nofollow">http://deb.devuan.org/merged</a> &lt;<strong>codename</strong>&gt; main contrib non-free</em></p><p><em> deb <a href="http://deb.devuan.org/merged" rel="nofollow">http://deb.devuan.org/merged</a> &lt;<strong>codename</strong>&gt;-security main contrib non-free<br /> deb-src <a href="http://deb.devuan.org/merged" rel="nofollow">http://deb.devuan.org/merged</a> &lt;<strong>codename</strong>&gt;-security main contrib non-free</em></p><p><em> deb <a href="http://deb.devuan.org/merged" rel="nofollow">http://deb.devuan.org/merged</a> &lt;<strong>codename</strong>&gt;-updates main contrib non-free<br /> deb-src <a href="http://deb.devuan.org/merged" rel="nofollow">http://deb.devuan.org/merged</a> &lt;<strong>codename</strong>&gt;-updates main contrib non-free</em></p><p>Make sure to run <em>apt update</em> after you have made changes to the sources list.</p><p><strong>Microcode package installation for AMD and Intel CPUs</strong></p><p>To install the latest microcode package:</p><p><em> apt install amd64-microcode&#160; &#160; &#160; &#160; &lt;-- AMD CPUs<br /> apt install intel-microcode&#160; &#160; &#160; &#160; &#160; &#160; &lt;-- Intel CPUs</em></p><p>The boot loader is responsible for loading the updated microcode.</p><p><strong>Install the Linux Kernel</strong></p><p>To install the latest Linux kernel, run this command:</p><p><em> apt install linux-headers-amd64 linux-image-amd64</em></p><p>If your system needs firmware blobs that are not present in the Linux kernel (for example, to get network cards to work properly), you can install the <em>firmware-linux</em> package:</p><p><em> apt install firmware-linux</em></p><p><strong>Install a init system</strong></p><p>Install the init system of your choice:</p><p> ● OpenRC:</p><p><em> apt install elogind libpam-elogind openrc orphan-sysvinit-scripts</em></p><p> ● runit:</p><p><em> apt install elogind libpam-elogind orphan-sysvinit-scripts runit runit-run</em></p><p> ● sysvinit:</p><p><em> apt install libpam-elogind orphan-sysvinit-scripts sysvinit-core</em></p><p><strong>Time zone</strong></p><p>Install the time synchronization service and add it to the list of startup services:</p><p><em> apt install chrony</em></p><p> ● OpenRC:</p><p><em> rc-update add chronyd default</em></p><p> ● runit:</p><p><em> ln -s /etc/service/chronyd /etc/runit/runsvdir/default</em></p><p> ● sysvinit:</p><p><em> ?</em></p><p>Set the time zone:</p><p><em> dpkg-reconfigure tzdata</em></p><p>If you are dual booting with Windows, edit the third line of the <em>/etc/adjtime</em> file to <strong>UTC</strong> or <strong>LOCAL</strong> to determines whether the system will interpret the hardware clock as being set UTC format to respective local time.</p><p><strong>Localization</strong></p><p>To configure your locale settings to use a other language than English, install the <em>locales</em> support package and configure it:</p><p><em> apt install locales<br /> dpkg-reconfigure locales</em></p><p>To configure your keyboard, install the <em>console-setup</em> support package and configure it:</p><p><em> apt install console-setup<br /> dpkg-reconfigure keyboard-configuration </em></p><p>If you have chosen OpenRC as your init system, edit the <em>/etc/conf.d/keymaps</em> file:</p><p><em> keymap=&quot;en&quot;&#160; &#160; &#160; &#160; &#160;&lt;-- your keyboard layout<br /> windowkeys=&quot;YES&quot;&#160; &lt;-- type YES if you are using a common Windows keyboard</em></p><p>If, on the other hand, you have chosen runit as your init system, add permanently the console font and keymap preferences in <em>/etc/vconsole.conf</em>:</p><p><em> FONT=lat1-16<br /> FONT_MAP=8859-1_to_uni<br /> KEYMAP=de-latin1</em></p><p><strong>Choose a hostname for your machine</strong></p><p>Edit <em>/etc/hostname</em>:</p><p><em> myhostname</em></p><p>Edit <em>/etc/hosts</em>:</p><p><em> 127.0.0.1&#160; &#160;&#160; localhost<br /> ::1&#160; &#160; &#160; &#160; &#160;&#160; &#160; localhost<br /> 127.0.1.1&#160; &#160; myhostname</em></p><p>If you have chosen OpenRC as your init system, edit <em>/etc/conf.d/hostname</em>:</p><p><em> # Set to the hostname of this machine<br /> hostname=&quot;myhostname&quot;</em></p><p><strong>Boot loader configuration</strong></p><p>Install the packages needed to install and configure GRUB:</p><p><em> apt install grub2 ntfs-3g os-prober&#160; &lt;-- If you&#039;re dual booting</em></p><p>Install GRUB:</p><p> ● If you&#039;re on BIOS/GPT or BIOS/MBR:</p><p><em> grub-install /dev/sda</em></p><p> ● If you&#039;re on UEFI/GPT:</p><p><em> grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub</em></p><p>If you are dualbooting with Windows or any other operating system, you have to make sure GRUB will call <em>os-prober</em>; to do so, uncomment this line on the configuration file at <em>/etc/default/grub</em>:</p><p><em> GRUB_DISABLE_OS_PROBER=false</em></p><p>Generate the GRUB configuration file:</p><p><em> update-grub</em></p><p><strong>Install a network manager</strong></p><p>Install a DHCP client together with <em>NetworkManager</em> and add it to the list of startup services:</p><p><em> apt install dhcpcd5 network-manager</em></p><p> ● OpenRC:</p><p><em> rc-update add NetworkManager default</em></p><p> ● runit:</p><p><em> ln -s /etc/service/NetworkManager /etc/runit/runsvdir/default</em></p><p> ● sysvinit:</p><p><em> ?</em></p><p>If you are going to use a wireless network card, you will also need <em>wpasupplicant</em>:</p><p><em> apt install wpasupplicant</em></p><p><strong>Installing a system logger</strong></p><p>Install <em>syslog-ng</em> and add it to the list of startup services:</p><p><em> apt install syslog-ng</em></p><p> ● OpenRC:</p><p><em> rc-update add syslog-ng default</em></p><p> ● runit:</p><p><em> ln -s /etc/service/syslog-ng /etc/runit/runsvdir/default</em></p><p> ● sysvinit:</p><p><em> ?</em></p><p><strong>User configuration</strong></p><p>Change the root password:</p><p><em> passwd</em></p><p>After that, create a user that you will use for your normal operations:</p><p><em> adduser username</em></p><p>Set a password for this new user:</p><p><em> passwd username</em></p><p>Add this user to the <em>wheel</em> group (so it can operate as an administrator):</p><p><em> adduser username wheel</em></p><p>Other useful groups are <em>disk</em>, <em>games</em>, <em>input</em>, <em>lp</em>, <em>optical</em>, <em>rfkill</em> and <em>storage</em>. The <em>audio</em> and <em>video</em> groups are useful to communicate to audio and video related hardware.</p><p><strong>Sudo</strong></p><p>Configure <em>sudo</em> so that it grants users of the <em>wheel</em> group the ability to run commands as root:</p><p><em> EDITOR=nano visudo</em></p><p>At around three quarters of the file, you will find this line; uncomment it:</p><p><em> %wheel ALL=(ALL) ALL &lt;-- uncomment this line</em></p><p><strong>Exiting the chroot</strong></p><p>You can exit the chroot simply by exiting the interactive shell, like so:</p><p><em> exit</em></p><p><strong>Unmounting the partitions</strong></p><p>You can unmount all the partitions you previously mounted by using <em>umount</em> and the <em>-R</em> (recursive) option:</p><p><em> umount -R /mnt</em></p><p><strong>Reboot</strong></p><p>Issue the <em>reboot</em> command.</p><p>Remember to remove the installation medium.</p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Wed, 23 Feb 2022 15:51:58 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34863#p34863</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34840#p34840</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Follow the linked guide.</p><p>I did a brief test yesterday from my Arch box using <a href="https://archlinux.org/packages/community/any/debootstrap/" rel="nofollow">debootstrap</a> and I was able to install grub-pc with no problems.</p><p>If you do encounter any issues be sure to post the complete list of commands that were used along with the full error message(s).</p></div></blockquote></div><p>Hello again!</p><p>I followed step-by-step the <em>Arch</em>, <em>Debian</em> and <em>Void Linux</em> guides, however I still have problems when installing certain packages, the <strong>grub-pc</strong> package installing error was just one among several others.<br />Soon, I will send a <span class="bbu">guide</span> that I am developing so that we can analyze my mistakes.</p><p>● <a href="https://www.debian.org/releases/stable/amd64/apds03.en.html" rel="nofollow">https://www.debian.org/releases/stable/ … 03.en.html</a></p><p>● <a href="https://docs.voidlinux.org/installation/guides/chroot.html" rel="nofollow">https://docs.voidlinux.org/installation … hroot.html</a></p><p>● <a href="https://wiki.archlinux.org/title/Chroot" rel="nofollow">https://wiki.archlinux.org/title/Chroot</a></p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Tue, 22 Feb 2022 21:32:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34840#p34840</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34774#p34774</link>
			<description><![CDATA[<p>Follow the linked guide.</p><p>I did a brief test yesterday from my Arch box using <a href="https://archlinux.org/packages/community/any/debootstrap/" rel="nofollow">debootstrap</a> and I was able to install grub-pc with no problems.</p><p>If you do encounter any issues be sure to post the complete list of commands that were used along with the full error message(s).</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sun, 20 Feb 2022 15:28:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34774#p34774</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34771#p34771</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>^ /dev/pts will have been mounted under /dev/ by the <span class="bbc">--rbind</span> option.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>Yes, I copied the static information about the file systems to the new system:</p><div class="codebox"><pre><code>cp /etc/mtab /mnt/etc/mtab</code></pre></div></div></blockquote></div><p>/etc/mtab should be a symlink to /proc/self/mounts in the running system. It is not necessary to populate it while installing but you can create the symlink once the system is independently booted. Just creating /etc/mtab will not cause the listed partitions to be mounted.</p><p>If you have /var/ on a separate partition it needs to be explicitly mounted before using <span class="bbc">chroot</span>.</p><p>So if the root filesystem is on /dev/sdX1 with /var/ on /dev/sdX2 you should use</p><div class="codebox"><pre><code># mount /dev/sdX1 /mnt
# mkdir -p /mnt/var
# mount /dev/sdX2 /mnt/var</code></pre></div><p>Also mount any other required partitions using the same method.</p><p>If you&#039;re doing this from a Devuan or Debian live system you can use the Arch Way to proceed:</p><div class="codebox"><pre><code># apt install arch-install-scripts
# genfstab -U /mnt &gt; /mnt/etc/fstab
# arch-chroot /mnt</code></pre></div><p>The <span class="bbc">arch-chroot</span> command mounts the API filesystems and copies over /etc/resolv.conf automagically. But you probably alread know that :-)</p><p>You can also use the Arch Way to generate /etc/adjtime instead of creating it manually as the Debian guide suggests:</p><div class="codebox"><pre><code># hwclock --systohc</code></pre></div><p>^ That presumes the hardware clock is using UTC, which it should be even if you&#039;re multi-booting with Windows[0]. Make sure the system clock is correct before running that.</p><p>[0] <a href="https://wiki.archlinux.org/title/System_time#UTC_in_Microsoft_Windows" rel="nofollow">https://wiki.archlinux.org/title/System … ft_Windows</a></p></div></blockquote></div><p>Ok, I reworked my steps adding these last two lines after the <em>debootstrap</em> command:</p><div class="codebox"><pre><code> genfstab -U /mnt &gt;&gt; /mnt/etc/fstab
 arch-chroot /mnt</code></pre></div><p><strong>What should I do next?</strong></p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Sun, 20 Feb 2022 13:18:13 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34771#p34771</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34722#p34722</link>
			<description><![CDATA[<p>^ /dev/pts will have been mounted under /dev/ by the <span class="bbc">--rbind</span> option.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>Yes, I copied the static information about the file systems to the new system:</p><div class="codebox"><pre><code>cp /etc/mtab /mnt/etc/mtab</code></pre></div></div></blockquote></div><p>/etc/mtab should be a symlink to /proc/self/mounts in the running system. It is not necessary to populate it while installing but you can create the symlink once the system is independently booted. Just creating /etc/mtab will not cause the listed partitions to be mounted.</p><p>If you have /var/ on a separate partition it needs to be explicitly mounted before using <span class="bbc">chroot</span>.</p><p>So if the root filesystem is on /dev/sdX1 with /var/ on /dev/sdX2 you should use</p><div class="codebox"><pre><code># mount /dev/sdX1 /mnt
# mkdir -p /mnt/var
# mount /dev/sdX2 /mnt/var</code></pre></div><p>Also mount any other required partitions using the same method.</p><p>If you&#039;re doing this from a Devuan or Debian live system you can use the Arch Way to proceed:</p><div class="codebox"><pre><code># apt install arch-install-scripts
# genfstab -U /mnt &gt; /mnt/etc/fstab
# arch-chroot /mnt</code></pre></div><p>The <span class="bbc">arch-chroot</span> command mounts the API filesystems and copies over /etc/resolv.conf automagically. But you probably already know that :-)</p><p>You can also use the Arch Way to generate /etc/adjtime instead of creating it manually as the Debian guide suggests:</p><div class="codebox"><pre><code># hwclock --systohc</code></pre></div><p>^ That presumes the hardware clock is using UTC, which it should be even if you&#039;re multi-booting with Windows[0]. Make sure the system clock is correct before running that.</p><p>[0] <a href="https://wiki.archlinux.org/title/System_time#UTC_in_Microsoft_Windows" rel="nofollow">https://wiki.archlinux.org/title/System … ft_Windows</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 19 Feb 2022 08:29:54 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34722#p34722</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34720#p34720</link>
			<description><![CDATA[<p><span class="bbc">devpts</span> ?</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 19 Feb 2022 03:11:59 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34720#p34720</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34717#p34717</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>What was the exact command you ran to produce that error message?</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>I go into chroot</p></div></blockquote></div><p>How did you do that, exactly? Is /var/ on a separate partition and was that partition mounted correctly under the root partition before you chrooted in?</p></div></blockquote></div><p>I typed:</p><div class="codebox"><pre><code> apt install grub-pc</code></pre></div><p>Yes, I copied the static information about the file systems to the new system:</p><div class="codebox"><pre><code> cp /etc/mtab /mnt/etc/mtab</code></pre></div><p>And I mounted the filesystems on the mount points:</p><div class="codebox"><pre><code> mount --make-rslave --rbind /dev /mnt/dev
 mount --make-rslave --rbind /proc /mnt/proc
 mount --make-rslave --rbind /run /mnt/run
 mount --make-rslave --rbind /sys /mnt/sys</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Sat, 19 Feb 2022 00:51:36 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34717#p34717</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34714#p34714</link>
			<description><![CDATA[<p>It&#039;s not unusal to get all sort of such problem if you happen to omit or forget to set up the virtual filesystems (esp. <span class="bbc">proc</span>, <span class="bbc">sysfs</span> and <span class="bbc">devpts</span>) and device nodes in the chroot.</p><p><span class="bbc">grub</span>, for instance, will want to access both the disk device as a whole as well as the boot partition on that device, and it also wants that boot directory to be present on that disk device.</p><p>But you probably don&#039;t want that installation to mess with your &quot;outside&quot; boot so you should refrain from bind-mounting <span class="bbc">/dev</span>. Rather you set up the appropriate device node for the target disk image under an alias name within the chroot; i.e., for example, use <span class="bbc">mknod</span> naming it &quot;sda&quot; but with major/minor identifying the actual device (perhaps &quot;sdf&quot; for a removable, or &quot;loop0&quot; for a&#160; duly set up disk image file).</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Fri, 18 Feb 2022 23:12:11 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34714#p34714</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34710#p34710</link>
			<description><![CDATA[<p>What was the exact command you ran to produce that error message?</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>I go into chroot</p></div></blockquote></div><p>How did you do that, exactly? Is /var/ on a separate partition and was that partition mounted correctly under the root partition before you chrooted in?</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 18 Feb 2022 21:56:28 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34710#p34710</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34707#p34707</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Use the <span class="bbc">--exclude=</span> option for <a href="https://manpages.debian.org/bullseye/debootstrap/debootstrap.8.en.html" rel="nofollow">debootstrap(8)</a>.</p></div></blockquote></div><p>Forgive me for delay.</p><p>I have already installed the base system, however when I go into chroot and try to install GRUB it gives an error.</p><p>Here is the problem:</p><div class="codebox"><pre><code>dpkg (subprocess): unable to execute installed grub-pc package post-installation script (/var/lib/dpkg/info/grub-pc.postinst): No such file or directory
dpkg: error processing package grub-pc (--configure):
 installed grub-pc package post-installation script subprocess returned error exit status 2
Processing triggers for initramfs-tools (0.140) ...
update-initramfs: Generating /boot/initrd.img-5.10.0-11-amd64
Processing triggers for libc-bin (2.31-13+deb11u2) ...
Errors were encountered while processing:
 grub-pc
E: Sub-process /usr/bin/dpkg returned an error code (1)</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Fri, 18 Feb 2022 20:28:21 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34707#p34707</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34510#p34510</link>
			<description><![CDATA[<p>Use the <span class="bbc">--exclude=</span> option for <a href="https://manpages.debian.org/bullseye/debootstrap/debootstrap.8.en.html" rel="nofollow">debootstrap(8)</a>.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Wed, 09 Feb 2022 06:30:57 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34510#p34510</guid>
		</item>
		<item>
			<title><![CDATA[Re: [SOLVED] Installing Devuan via command line]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=34501#p34501</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>See <a href="https://www.debian.org/releases/stable/amd64/apds03.en.html" rel="nofollow">https://www.debian.org/releases/stable/ … 03.en.html</a> but note that the linked Debian debootstrap packages only support ASCII &amp; beowulf so use <a href="https://pkgmaster.devuan.org/devuan/pool/main/d/debootstrap/" rel="nofollow">https://pkgmaster.devuan.org/devuan/poo … bootstrap/</a> if you need chimaera or later.</p></div></blockquote></div><p>Ok, now I see that using debootstrap also installs several <span class="bbu">useless programs</span>. How can I delete these programs? Editing the debootstrap files or similar like this <a href="https://github.com/archlinux/svntogit-packages/blob/packages/base/trunk/PKGBUILD" rel="nofollow">https://github.com/archlinux/svntogit-p … k/PKGBUILD</a>, or do I use the <strong>--exclude</strong> command (<em>I think adding the uselessness to this last utility takes longer</em>)?</p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Wed, 09 Feb 2022 01:16:49 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=34501#p34501</guid>
		</item>
	</channel>
</rss>
