<?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=4919&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=4919</link>
		<description><![CDATA[The most recent posts in Devuan GNU+Linux Command-line Installation Guide (In progress).]]></description>
		<lastBuildDate>Sun, 06 Mar 2022 08:25:50 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35037#p35037</link>
			<description><![CDATA[<p>It all depends on what you include in your <span class="bbc">sysvinit</span> concept.</p><p>The core level for <span class="bbc">sysvinit</span> is the configuration expressed in <span class="bbc">/etc/inittab</span>, which declares a range of different configuration of &quot;managed services&quot; depending on the runlevel.</p><p>The operational runlevels typically include running <span class="bbc">/etc/rc</span> which technicaly is a core level one-shot service for starting other self-managed services via their control programs or scripts typically residing in <span class="bbc">/etc/init.d</span>. Those control programs or scripts are expected to implement some few command line commands such as &quot;start&quot;, &quot;status&quot; and &quot;stop&quot;.</p><p>If you have sysvinit installed, this is well documented in e.g. <span class="bbc">man init</span>, <span class="bbc">man runlevel</span> and <span class="bbc">man insserv</span> and their related <span class="bbc">man</span> pages.</p><p>It may be worth to point out that the service control at runlevel transitions nowadays uses dependency driven parallelism, and the sequential boot of early millenium is abandoned. See e.g. <span class="bbc">man startpar</span> for details.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sun, 06 Mar 2022 08:25:50 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35037#p35037</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35031#p35031</link>
			<description><![CDATA[<div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>Great, I will research more about runit. Could also explain how sysvinit service management works?</p></div></blockquote></div><p>No, I can&#039;t, and in my limited understanding, I thought sysvinit did not do service management, and that&#039;s why distros switched to a different init system. </p><p>I know this much:</p><div class="codebox"><pre><code>service &lt;service-name&gt; start|stop|restart
or
/etc/init.d/&lt;service-name&gt; start|stop|restart</code></pre></div>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 05 Mar 2022 14:36:09 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35031#p35031</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35027#p35027</link>
			<description><![CDATA[<div class="quotebox"><cite>fsmithred wrote:</cite><blockquote><div><p>If you install runit, you only get run scripts for the gettys, and also for openssh-server if you install that. No setup or linking is needed.</p><p>There are run scripts available from a couple of locations outside the repository. They can be added after the install. Basic procedure is to copy the script dir for a service to /etc/sv/, stop the init script, and then run </p><div class="codebox"><pre><code>update-service --add /etc/sv/&lt;service&gt;</code></pre></div><p> Where &lt;service&gt; is the name of the run script directory and is the same name as the init script.</p></div></blockquote></div><p>Great, I will research more about runit. Could also explain how sysvinit service management works?</p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Sat, 05 Mar 2022 00:46:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35027#p35027</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35026#p35026</link>
			<description><![CDATA[<div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><p>Both <span class="bbc">dd</span> and <span class="bbc">cp</span> use the same system call to burn the image.</p><p>Another option:</p><div class="codebox"><pre><code>cat devuan.iso &gt; /dev/sdX ; sync</code></pre></div><p>See also <a href="https://www.vidarholen.net/contents/blog/?p=479" rel="nofollow">https://www.vidarholen.net/contents/blog/?p=479</a></p></div></blockquote></div><p>Thanks for sharing me this site, it will be very useful.</p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Sat, 05 Mar 2022 00:28:16 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35026#p35026</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35025#p35025</link>
			<description><![CDATA[<div class="quotebox"><cite>golinux wrote:</cite><blockquote><div><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><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></div></blockquote></div><p>Debian do not recommend those tools and I have seen quite a few problem threads over at <a href="http://forums.debian.net" rel="nofollow">forums.debian.net</a> caused by Rufus not burning images correctly.</p><p>The recommended technique is</p><div class="codebox"><pre><code>cp devuan.iso /dev/sdX ; sync</code></pre></div><p>Reference: <a href="https://www.debian.org/CD/faq/index.en.html#write-usb" rel="nofollow">https://www.debian.org/CD/faq/index.en.html#write-usb</a></p></div></blockquote></div><p>I have never seen that command recommended at Devuan and have always used the dd command. <span class="bbu"><a href="https://devuan.org/os/documentation/install-guides/chimaera/install-devuan" rel="nofollow">These are the methods recommended on the Devuan website</a></span>:</p><div class="quotebox"><blockquote><div><p><strong>Writing an image to a CD/DVD or USB drive</strong></p><p>Images can be written to a CD or DVD using wodim.</p><p>user@hostname:~$ wodim dev=/dev/sr0 -eject filename.iso</p><p>All Devuan ISO images are hybrid ISOs and may be written to a USB drive using dd.</p><p>root@hostname:~# dd if=filename.iso of=/dev/sdX bs=1M &amp;&amp; sync</p></div></blockquote></div></div></blockquote></div><p>Well, then I will adopt the method advised by Devuan. <img src="https://dev1galaxy.org/img/smilies/wink.png" width="15" height="15" alt="wink" /></p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Sat, 05 Mar 2022 00:23:55 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35025#p35025</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35023#p35023</link>
			<description><![CDATA[<p>If you install runit, you only get run scripts for the gettys, and also for openssh-server if you install that. No setup or linking is needed.</p><p>There are run scripts available from a couple of locations outside the repository. They can be added after the install. Basic procedure is to copy the script dir for a service to /etc/sv/, stop the init script, and then run </p><div class="codebox"><pre><code>update-service --add /etc/sv/&lt;service&gt;</code></pre></div><p> Where &lt;service&gt; is the name of the run script directory and is the same name as the init script.</p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Fri, 04 Mar 2022 23:20:12 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35023#p35023</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35022#p35022</link>
			<description><![CDATA[<p>Both <span class="bbc">dd</span> and <span class="bbc">cp</span> use the same system call to burn the image.</p><p>Another option:</p><div class="codebox"><pre><code>cat devuan.iso &gt; /dev/sdX ; sync</code></pre></div><p>See also <a href="https://www.vidarholen.net/contents/blog/?p=479" rel="nofollow">https://www.vidarholen.net/contents/blog/?p=479</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 04 Mar 2022 23:18:07 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35022#p35022</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35021#p35021</link>
			<description><![CDATA[<div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><div class="quotebox"><cite>Head_on_a_Stick wrote:</cite><blockquote><div><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></div></blockquote></div><p>Debian do not recommend those tools and I have seen quite a few problem threads over at <a href="http://forums.debian.net" rel="nofollow">forums.debian.net</a> caused by Rufus not burning images correctly.</p><p>The recommended technique is</p><div class="codebox"><pre><code>cp devuan.iso /dev/sdX ; sync</code></pre></div><p>Reference: <a href="https://www.debian.org/CD/faq/index.en.html#write-usb" rel="nofollow">https://www.debian.org/CD/faq/index.en.html#write-usb</a></p></div></blockquote></div><p>I have never seen that command recommended at Devuan and have always used the dd command. <span class="bbu"><a href="https://devuan.org/os/documentation/install-guides/chimaera/install-devuan" rel="nofollow">These are the methods recommended on the Devuan website</a></span>:</p><div class="quotebox"><blockquote><div><p><strong>Writing an image to a CD/DVD or USB drive</strong></p><p>Images can be written to a CD or DVD using wodim.</p><p>user@hostname:~$ wodim dev=/dev/sr0 -eject filename.iso</p><p>All Devuan ISO images are hybrid ISOs and may be written to a USB drive using dd.</p><p>root@hostname:~# dd if=filename.iso of=/dev/sdX bs=1M &amp;&amp; sync</p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (golinux)]]></author>
			<pubDate>Fri, 04 Mar 2022 22:58:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35021#p35021</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35019#p35019</link>
			<description><![CDATA[<div class="quotebox"><cite>Camtaf wrote:</cite><blockquote><div><div class="quotebox"><blockquote><div><p>Go on the Devuan GNU+Linux download page and download the stable minimal-live ISO file devuan_{codename}_{version}_{architecture}_minimal-live.iso.</p></div></blockquote></div><p>Wouldn&#039;t it just be easier to use refracta installer which, I believe, is included in the &#039;live&#039; image - you seem to be creating your installation as if from a &#039;net install&#039; image, to my mind(?).</p></div></blockquote></div><p>Yep, I know that use refracta installer is an easy way, but I chose to create and follow a path close to Arch, Gentoo and others.</p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Fri, 04 Mar 2022 21:58:44 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35019#p35019</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35018#p35018</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>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></div></blockquote></div><p>Debian do not recommend those tools and I have seen quite a few problem threads over at <a href="http://forums.debian.net" rel="nofollow">forums.debian.net</a> caused by Rufus not burning images correctly.</p><p>The recommended technique is</p><div class="codebox"><pre><code>cp devuan.iso /dev/sdX ; sync</code></pre></div><p>Reference: <a href="https://www.debian.org/CD/faq/index.en.html#write-usb" rel="nofollow">https://www.debian.org/CD/faq/index.en.html#write-usb</a></p><p><strong>Fixed</strong></p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>If you are booting from a legacy BIOS and have chosen a GPT partition table, the first partition must be of type <strong>BIOS boot</strong> and of size <strong>1 MB</strong> [...]</p><div class="codebox"><pre><code> - /dev/sda1 -&gt; BIOS boot partition -&gt; 256 MB</code></pre></div></div></blockquote></div><p>Why have you recommended two different sizes for the BIOS boot partition? I use sectors 34-2047 because they should be free in any correctly-aligned disk. Note that the BIOS boot partition should *not* have a filesystem applied.</p><p><strong>Fixed</strong></p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p><strong>Configure fstab</strong></p></div></blockquote></div><p>What about the swap line? You seem to have missed that.</p><p><strong>Fixed</strong></p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>The <strong>fstab</strong> file can be automatically generated from currently mounted filesystems by copying the file <em>/proc/mounts</em></p></div></blockquote></div><p>Simpler version:</p><div class="codebox"><pre><code>grep &#039;^/dev&#039; /proc/self/mounts &gt; /etc/fstab</code></pre></div><p>^ That will only copy lines starting with <strong>/dev</strong> to /etc/fstab. Note that <em>/proc/mounts</em> is a symlink to <em>/proc/self/mounts</em> so it&#039;s probably best to use the latter.</p><p>And I still think you should at least mention the existence of <a href="https://manpages.debian.org/bullseye/arch-install-scripts/genfstab.8.en.html" rel="nofollow">genfstab(8)</a> for people who are used to installing Arch and don&#039;t want to manually edit fstab. The same goes for <a href="https://manpages.debian.org/bullseye/arch-install-scripts/arch-chroot.8.en.html" rel="nofollow">arch-chroot(8)</a> as an alternative to manual mounting &amp; chrooting.</p><p><strong>In progress</strong></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>As I mentioned in your last thread security updates should not be considered optional. They are absolutely essential for users of the stable release.</p><p><strong>Fixed</strong></p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><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></div></blockquote></div><p>Windows should *always* be set to UTC. There is no reason whatsoever to force Devuan to use localtime. See my ArchWiki link in your last thread for the Registry hack needed to correct Windows&#039; time standard.</p><p><strong>Fixed</strong></p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><ul><li><p>If you&#039;re on UEFI/GPT:</p></li></ul><div class="codebox"><pre><code> grub-install --target=x86_64-efi --efi-directory=/boot/efi --bootloader-id=grub</code></pre></div></div></blockquote></div><p>The --target option is irrelevant in Devuan because it supplies separate GRUB packages for UEFI &amp; non-UEFI systems. The UEFI version of GRUB presumes that the EFI system partition is mounted under /boot/efi and the ID defaults to &quot;Devuan&quot; for SecureBoot to work.</p><p>And anyway it&#039;s better to use dpkg to set the bootloader options so that they are saved in the debconf database and re-applied after the bootloader package is updated.</p><p>So for non-UEFI systems use</p><div class="codebox"><pre><code>apt install grub-pc
dpkg-reconfigure grub-pc</code></pre></div><p>And for UEFI systems use</p><div class="codebox"><pre><code>apt install grub-efi-amd64
dpkg-reconfigure grub-efi-amd64</code></pre></div><p>There is also a grub-efi-ia32 package for machines with 32-bit UEFI firmware.</p><p><strong>Fixed</strong></p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>If you are going to use a wireless network card, you will also need <em>wpasupplicant</em>:</p><div class="codebox"><pre><code> apt install wpasupplicant</code></pre></div></div></blockquote></div><p>iwd is better than wpasupplicant but it does need the init script supplied by the orphan-sysvinit-scripts package.</p><p><strong>Fixed</strong></p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>Other useful groups are <strong>disk</strong>, <strong>games</strong>, <strong>input</strong>, <strong>lp</strong>, <strong>optical</strong>, <strong>rfkill</strong> and <strong>storage</strong>. The <strong>audio</strong> and <strong>video</strong> groups are useful to communicate to audio and video related hardware.</p></div></blockquote></div><p>elogind should handle all permissions for access to input, audio and video hardware. Adding users to those groups should be considered a security risk and so is probably not advisable. </p><p>The disk group membership is root-equivalent, please do not recommend that. </p><p>The games group is for games to record high scores, users are not supposed to be added to that group at all.</p><p><strong>Fixed</strong></p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>Configure <strong>sudo</strong> so that it grants users of the <strong>wheel</strong> group the ability to run commands as root</p></div></blockquote></div><p>Devuan&#039;s sudo is already configured to grant access to users in the sudo group so why not just use that instead?</p><p>And finally can you please use code tags to display commands rather than italics? It would make the guide easier to follow. The board also offers list tags that you can use instead of copy &amp; pasting bullet points manually.</p><p><strong>Fixed</strong></p></div></blockquote></div>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Fri, 04 Mar 2022 21:53:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35018#p35018</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35017#p35017</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>Go on the Devuan GNU+Linux download page and download the stable minimal-live ISO file devuan_{codename}_{version}_{architecture}_minimal-live.iso.</p></div></blockquote></div><p>Wouldn&#039;t it just be easier to use refracta installer which, I believe, is included in the &#039;live&#039; image - you seem to be creating your installation as if from a &#039;net install&#039; image, to my mind(?).</p>]]></description>
			<author><![CDATA[dummy@example.com (Camtaf)]]></author>
			<pubDate>Fri, 04 Mar 2022 18:27:52 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35017#p35017</guid>
		</item>
		<item>
			<title><![CDATA[Re: Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35016#p35016</link>
			<description><![CDATA[<div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><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></div></blockquote></div><p>Debian do not recommend those tools and I have seen quite a few problem threads over at forums.debian.net caused by Rufus not burning images correctly.</p><p>The recommended technique is</p><div class="codebox"><pre><code>cp devuan.iso /dev/sdX ; sync</code></pre></div><p>Reference: <a href="https://www.debian.org/CD/faq/index.en.html#write-usb" rel="nofollow">https://www.debian.org/CD/faq/index.en.html#write-usb</a></p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><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> [...]<br /><em> - /dev/sda1 -&gt; BIOS boot partition -&gt; 256 MB</em></p></div></blockquote></div><p>Why have you recommended two different sizes for the BIOS boot partition? I use sectors 34-2047 because they should be free in any correctly-aligned disk. Note that the BIOS boot partition should *not* have a filesystem applied.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p><strong>Configure fstab</strong></p></div></blockquote></div><p>What about the swap line? You seem to have missed that.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>The <strong>fstab</strong> file can be automatically generated from currently mounted filesystems by copying the file <em>/proc/mounts</em></p></div></blockquote></div><p>Simpler version:</p><div class="codebox"><pre><code>grep &#039;^/dev&#039; /proc/self/mounts &gt; /etc/fstab</code></pre></div><p>^ That will only copy lines starting with <span class="bbc">/dev</span> to /etc/fstab. Note that /proc/mounts is a symlink to /proc/self/mounts so it&#039;s probably best to use the latter.</p><p>And I still think you should at least mention the existence of <a href="https://manpages.debian.org/bullseye/arch-install-scripts/genfstab.8.en.html" rel="nofollow">genfstab(8)</a> for people who are used to installing Arch and don&#039;t want to manually edit fstab. The same goes for <a href="https://manpages.debian.org/bullseye/arch-install-scripts/arch-chroot.8.en.html" rel="nofollow">arch-chroot(8)</a> as an alternative to manual mounting &amp; chrooting.</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>As I mentioned in your last thread security updates should not be considered optional. They are absolutely essential for users of the stable release.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><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></div></blockquote></div><p>Windows should *always* be set to UTC. There is no reason whatsoever to force Devuan to use localtime. See my ArchWiki link in your last thread for the Registry hack needed to correct Windows&#039; time standard.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><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></div></blockquote></div><p>The --target option is irrelevant in Devuan because it supplies separate GRUB packages for UEFI &amp; non-UEFI systems. The UEFI version of GRUB presumes that the EFI system partition is mounted under /boot/efi and the ID defaults to &quot;Devuan&quot; for SecureBoot to work.</p><p>And anyway it&#039;s better to use dpkg to set the bootloader options so that they are saved in the debconf database and re-applied after the bootloader package is updated.</p><p>So for non-UEFI systems use</p><div class="codebox"><pre><code>apt install grub-pc
dpkg-reconfigure grub-pc</code></pre></div><p>And for UEFI systems use</p><div class="codebox"><pre><code>apt install grub-efi-amd64
dpkg-reconfigure grub-efi-amd64</code></pre></div><p>There is also a grub-efi-ia32 package for machines with 32-bit UEFI firmware.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><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></div></blockquote></div><p>iwd is better than wpasupplicant but it does need the init script supplied by the orphan-sysvinit-scripts package.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><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></div></blockquote></div><p>elogind should handle all permissions for access to input, audio and video hardware. Adding users to those groups should be considered a security risk and so is probably not advisable. </p><p>The disk group membership is root-equivalent, please do not recommend that. </p><p>The games group is for games to record high scores, users are not supposed to be added to that group at all.</p><div class="quotebox"><cite>k3yw0ow wrote:</cite><blockquote><div><p>Configure <em>sudo</em> so that it grants users of the <em>wheel</em> group the ability to run commands as root</p></div></blockquote></div><p>Devuan&#039;s sudo is already configured to grant access to users in the sudo group so why not just use that instead?</p><p>And finally can you please use code tags to display commands rather than italics? It would make the guide easier to follow. The board also offers list tags that you can use instead of copy &amp; pasting bullet points manually.</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 04 Mar 2022 17:16:40 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35016#p35016</guid>
		</item>
		<item>
			<title><![CDATA[Devuan GNU+Linux Command-line Installation Guide (In progress)]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=35013#p35013</link>
			<description><![CDATA[<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">Devuan GNU+Linux download page</a> and download the stable minimal-live ISO file <strong>devuan_{codename}_{version}_{architecture}_minimal-live.iso</strong>.</p><p>If you&#039;re using a Linux machine, use the following technique to write the ISO on a storage media (CD/DVD or USB drive):</p><ul><li><p>In CD or DVD:</p></li></ul><div class="codebox"><pre><code> wodim dev=/dev/sr0 -eject devuan_{codename}_{version}_{architecture}_minimal-live.iso</code></pre></div><ul><li><p>In USB drive:</p></li></ul><div class="codebox"><pre><code> dd if=devuan_{codename}_{version}_{architecture}_minimal-live.iso of=/dev/sdX bs=1M &amp;&amp; sync</code></pre></div><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><ul><li><p>User <strong>devuan</strong>, password <strong>devuan</strong> (all important commands must be prefixed with <strong>sudo</strong>).</p></li></ul><ul><li><p>User <strong>root</strong>, password <strong>toor</strong>.</p></li></ul><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><div class="codebox"><pre><code> ls -R /usr/share/keymaps/i386/</code></pre></div><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><div class="codebox"><pre><code> loadkeys de-latin1</code></pre></div><p><strong>Console fonts</strong> are located in <em>/usr/share/consolefonts/</em> and can likewise be set with <strong>setfont</strong>.</p><p><strong>Connecting to the Internet</strong></p><p>Configure your network interfaces with &quot;<strong>setnet.sh</strong>&quot;:</p><div class="codebox"><pre><code> setnet.sh</code></pre></div><p><strong>Partition the disks</strong></p><p>You need to figure out which disk you want to install Devuan. <strong>lsblk</strong> 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 <strong>cfdisk</strong> (this guide will assume the disk is <em>/dev/sdx</em>), the partition numbers and order are at your discretion:</p><ul><li><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></li></ul><div class="codebox"><pre><code> cfdisk /dev/sdx</code></pre></div><ul><li><p>If, on the other hand, you need to reinitialize the disk in question (no partition table), the command to issue is:</p></li></ul><div class="codebox"><pre><code> cfdisk -z /dev/sdx</code></pre></div><p>The <strong>cfdisk</strong> 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 <strong>gpt</strong>; otherwise choose <strong>msdos</strong>.</p><p>Create the following partitions:</p><ul><li><p>If you are booting from a legacy BIOS and have chosen a GPT partition table, the first partition must be of type <strong>BIOS boot</strong> and of size <strong>200 MB</strong>; In case you are booting from a legacy BIOS which only boots from MBR (<strong>msdos</strong>) partition tables, then there is no need to create this partition.</p></li></ul><ul><li><p>If you don&#039;t already have it, add the boot partition; it must be about <strong>512 MB</strong> and preferably of <strong>EFI System</strong> type.</p></li></ul><ul><li><p>Add a partition for the root file system (and leave it flagged as <strong>Linux filesystem</strong>).</p></li></ul><ul><li><p>If you want, you can add a swap partition by creating it and flagging it as <strong>Linux swap</strong>.</p></li></ul><ul><li><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></li></ul><p>Confirm the changes by issuing the <strong>Write</strong> command; confirm by typing <strong>yes</strong> and then quit the partition manager by issuing the command <strong>Quit</strong>.</p><p>For ease of reference:</p><div class="codebox"><pre><code> /dev/sdx
 - /dev/sdx1 -&gt; EFI System
 - /dev/sdx2 -&gt; Linux filesystem
 - /dev/sdx3 -&gt; Linux swap -&gt; Optional</code></pre></div><p><strong>Format the partitions</strong></p><p>The boot partition will be <em>/dev/sdx1</em> so do (only on EFI System):</p><div class="codebox"><pre><code> mkfs.fat -F 32 /dev/sdx1</code></pre></div><p>The Linux root partition will be <em>/dev/sdx2</em> so do:</p><div class="codebox"><pre><code> mkfs.ext4 -L ROOT /dev/sdx2</code></pre></div><p>The swap partition will be on <em>/dev/sdx3</em>, so do (If created):</p><div class="codebox"><pre><code> mkswap -L SWAP /dev/sdx3</code></pre></div><p>The <strong>-L</strong> 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><div class="codebox"><pre><code> swapon /dev/disk/by-label/SWAP</code></pre></div><p>Mount the root filesystem on <em>/mnt</em>:</p><div class="codebox"><pre><code> mount /dev/disk/by-label/ROOT /mnt</code></pre></div><p>Create the directory where you can mount the boot partition filesystem:</p><div class="codebox"><pre><code> mkdir -p /mnt/boot/efi</code></pre></div><p>Mount the boot partition file system:</p><div class="codebox"><pre><code> mount /dev/disk/by-label/BOOT /mnt/boot/efi</code></pre></div><p><strong>Installation</strong></p><p>Install a base system with <strong>debootstrap</strong>:</p><div class="codebox"><pre><code> debootstrap --arch=amd64 &lt;codename&gt; /mnt http://deb.devuan.org/merged</code></pre></div><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><div class="codebox"><pre><code> for i in proc sys dev{,/pts} ; do mount --bind /$i /mnt/$i ; done</code></pre></div><p>Copy the DNS configuration into the new root so that we can download new packages inside the chroot:</p><div class="codebox"><pre><code> cp /etc/resolv.conf /mnt/etc/</code></pre></div><p>Change root into the new system:</p><div class="codebox"><pre><code> chroot /mnt /bin/su -</code></pre></div><p><strong>Swap file creation (alternative)</strong></p><p>As an alternative to creating an entire partition, a swap file offers the ability to vary its size on-the-fly, and is more easily removed altogether.</p><p>Use <strong>dd</strong> to create a swap file the size of your choosing. For example, creating a <strong>4 GB</strong> swap file:</p><div class="codebox"><pre><code> dd if=/dev/zero of=/swapfile bs=1M count=4096 status=progress</code></pre></div><p>Set the right permissions:</p><div class="codebox"><pre><code> chmod 600 /swapfile</code></pre></div><p>After creating the correctly sized file, format it to swap:</p><div class="codebox"><pre><code> mkswap /swapfile</code></pre></div><p>Activate the swap file:</p><div class="codebox"><pre><code> swapon /swapfile</code></pre></div><p><strong>Configure fstab</strong></p><p>The <strong>fstab</strong> file can be automatically generated from currently mounted filesystems by printing the file <em>/proc/self/mounts</em>:</p><div class="codebox"><pre><code> grep &#039;^/dev&#039; /proc/self/mounts &gt; /etc/fstab</code></pre></div><p>Remove lines in <em>/etc/fstab</em> that refer to <strong>dev</strong>, <strong>proc</strong>, <strong>pts</strong> and <strong>sys</strong>.</p><p>Replace references to <em>/dev/sdx</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>The information from <strong>blkid</strong> results in the following <em>/etc/fstab</em>:</p><div class="codebox"><pre><code> # &lt;device&gt;                             &lt;dir&gt;       &lt;type&gt; &lt;options&gt;               &lt;dump&gt; &lt;fsck&gt;
 UUID=xxxx[...]                         /boot/efi   fat    defaults                0      2
 UUID=xxxx[...]                         /           ext4   defaults                0      1</code></pre></div><p>Add an entry for the swap file (If you&#039;re set it):</p><div class="codebox"><pre><code> # &lt;device&gt;  &lt;dir&gt; &lt;type&gt; &lt;options&gt;                &lt;dump&gt; &lt;fsck&gt;
 /swapfile   none  swap   defaults                 0      0</code></pre></div><p>Also add an entry to mount <em>/tmp</em> in RAM:</p><div class="codebox"><pre><code> # &lt;device&gt;  &lt;dir&gt; &lt;type&gt; &lt;options&gt;                &lt;dump&gt; &lt;fsck&gt;
 tmpfs       /tmp  tmpfs  defaults,nosuid,nodev    0      0</code></pre></div><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 <strong>contrib</strong> and <strong>non-free</strong> components, add <strong>contrib non-free</strong> after <strong>main</strong>. You may also want to add some additional sources, for example source packages and <strong>security updates</strong> (the latter only in stable releases):</p><div class="codebox"><pre><code> deb http://deb.devuan.org/merged &lt;codename&gt; main contrib non-free
 deb-src [url]http://deb.devuan.org/merged &lt;codename&gt; main contrib non-free

 deb [url]http://deb.devuan.org/merged &lt;codename&gt;-security main contrib non-free
 deb-src http://deb.devuan.org/merged &lt;codename&gt;-security main contrib non-free

 deb http://deb.devuan.org/merged &lt;codename&gt;-updates main contrib non-free
 deb-src http://deb.devuan.org/merged &lt;codename&gt;-updates main contrib non-free</code></pre></div><p>Make sure to run <strong>apt update</strong> 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><div class="codebox"><pre><code> apt install amd64-microcode        &lt;-- AMD CPUs
 apt install intel-microcode        &lt;-- Intel CPUs</code></pre></div><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><div class="codebox"><pre><code> apt install linux-headers-amd64 linux-image-amd64</code></pre></div><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 <strong>firmware-linux</strong> package:</p><div class="codebox"><pre><code> apt install firmware-linux</code></pre></div><p><strong>Install a init system</strong></p><p>Install the init system of your choice:</p><ul><li><p>OpenRC:</p></li></ul><div class="codebox"><pre><code> apt install elogind libpam-elogind openrc orphan-sysvinit-scripts</code></pre></div><ul><li><p>runit:</p></li></ul><div class="codebox"><pre><code> apt install elogind libpam-elogind orphan-sysvinit-scripts runit runit-run</code></pre></div><ul><li><p>sysvinit:</p></li></ul><div class="codebox"><pre><code> apt install libpam-elogind orphan-sysvinit-scripts sysvinit-core</code></pre></div><p><strong>Time zone</strong></p><p>Install the time synchronization service and add it to the list of startup services:</p><div class="codebox"><pre><code> apt install chrony</code></pre></div><ul><li><p>OpenRC:</p></li></ul><div class="codebox"><pre><code> rc-update add chronyd default</code></pre></div><ul><li><p>runit:</p></li></ul><div class="codebox"><pre><code> ln -s /etc/service/chronyd /etc/runit/runsvdir/default</code></pre></div><ul><li><p>sysvinit:</p></li></ul><div class="codebox"><pre><code> ?</code></pre></div><p>Set the time zone:</p><div class="codebox"><pre><code> dpkg-reconfigure tzdata</code></pre></div><p><strong>Localization</strong></p><p>To configure your locale settings to use a other language than English, install the <strong>locales</strong> support package and configure it:</p><div class="codebox"><pre><code> apt install locales
 dpkg-reconfigure locales</code></pre></div><p>To configure your keyboard, install the <strong>console-setup</strong> support package and configure it:</p><div class="codebox"><pre><code> apt install console-setup
 dpkg-reconfigure keyboard-configuration </code></pre></div><p>If you have chosen OpenRC as your init system, edit the <em>/etc/conf.d/keymaps</em> file:</p><div class="codebox"><pre><code> keymap=&quot;en&quot;         &lt;-- Your keyboard layout
 windowkeys=&quot;YES&quot;    &lt;-- Type YES if you are using a common Windows keyboard</code></pre></div><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><div class="codebox"><pre><code> FONT=lat1-16
 FONT_MAP=8859-1_to_uni
 KEYMAP=de-latin1</code></pre></div><p><strong>Choose a hostname for your machine</strong></p><p>Edit <em>/etc/hostname</em>:</p><div class="codebox"><pre><code> myhostname</code></pre></div><p>Edit <em>/etc/hosts</em>:</p><div class="codebox"><pre><code> 127.0.0.1     localhost
 ::1           localhost
 127.0.1.1     myhostname</code></pre></div><p>If you have chosen OpenRC as your init system, edit <em>/etc/conf.d/hostname</em>:</p><div class="codebox"><pre><code> # Set to the hostname of this machine
 hostname=&quot;myhostname&quot;</code></pre></div><p><strong>Boot loader configuration</strong></p><p>Install the packages needed to install and configure GRUB:</p><div class="codebox"><pre><code> apt install grub-pc            &lt;-- If you&#039;re using BIOS
 apt install grub-efi-amd64     &lt;-- If you&#039;re using UEFI
 apt install ntfs-3g os-prober  &lt;-- If you&#039;re dual booting</code></pre></div><p>Install GRUB:</p><ul><li><p>If you&#039;re on BIOS:</p></li></ul><div class="codebox"><pre><code> dpkg-reconfigure grub-pc</code></pre></div><ul><li><p>If you&#039;re on UEFI:</p></li></ul><div class="codebox"><pre><code> dpkg-reconfigure grub-efi-amd64</code></pre></div><p>If you are dualbooting with Windows or any other operating system, you have to make sure GRUB will call <strong>os-prober</strong>; to do so, uncomment this line on the configuration file at <em>/etc/default/grub</em>:</p><div class="codebox"><pre><code> GRUB_DISABLE_OS_PROBER=false</code></pre></div><p>Generate the GRUB configuration file:</p><div class="codebox"><pre><code> update-grub</code></pre></div><p><strong>Install a network manager</strong></p><p>Install a DHCP client together with <strong>NetworkManager</strong> and add it to the list of startup services:</p><div class="codebox"><pre><code> apt install dhcpcd5 network-manager</code></pre></div><ul><li><p>OpenRC:</p></li></ul><div class="codebox"><pre><code> rc-update add NetworkManager default</code></pre></div><ul><li><p>runit:</p></li></ul><div class="codebox"><pre><code> ln -s /etc/service/NetworkManager /etc/runit/runsvdir/default</code></pre></div><ul><li><p>sysvinit:</p></li></ul><div class="codebox"><pre><code> ?</code></pre></div><p><strong>Installing a system logger</strong></p><p>Install <strong>syslog-ng</strong> and add it to the list of startup services:</p><div class="codebox"><pre><code> apt install syslog-ng</code></pre></div><ul><li><p>OpenRC:</p></li></ul><div class="codebox"><pre><code> rc-update add syslog-ng default</code></pre></div><ul><li><p>runit:</p></li></ul><div class="codebox"><pre><code> ln -s /etc/service/syslog-ng /etc/runit/runsvdir/default</code></pre></div><ul><li><p>sysvinit:</p></li></ul><div class="codebox"><pre><code> ?</code></pre></div><p><strong>User configuration</strong></p><p>Change the root password:</p><div class="codebox"><pre><code> passwd</code></pre></div><p>After that, create a user that you will use for your normal operations:</p><div class="codebox"><pre><code> adduser username</code></pre></div><p>Set a password for this new user:</p><div class="codebox"><pre><code> passwd username</code></pre></div><p><strong>Exiting the chroot</strong></p><p>You can exit the chroot simply by exiting the interactive shell, like so:</p><div class="codebox"><pre><code> exit</code></pre></div><p><strong>Unmounting the partitions</strong></p><p>You can unmount all the partitions you previously mounted by using <strong>umount -R /mnt</strong>.</p><p><strong>Reboot</strong></p><p>Issue the <strong>reboot</strong> command.</p><p>Remember to remove the installation medium.</p>]]></description>
			<author><![CDATA[dummy@example.com (k3yw0ow)]]></author>
			<pubDate>Fri, 04 Mar 2022 14:34:47 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=35013#p35013</guid>
		</item>
	</channel>
</rss>
