<?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=2971&amp;type=rss" rel="self" type="application/rss+xml" />
		<title><![CDATA[Dev1 Galaxy Forum / Serial console install]]></title>
		<link>https://dev1galaxy.org/viewtopic.php?id=2971</link>
		<description><![CDATA[The most recent posts in Serial console install.]]></description>
		<lastBuildDate>Tue, 23 Jul 2019 00:43:30 +0000</lastBuildDate>
		<generator>FluxBB</generator>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17220#p17220</link>
			<description><![CDATA[<p>If you&#039;re getting a grub prompt instead of a normal boot menu, the easiest thing to do is use that command line to boot the installed system. Then you can run <span class="bbc">update-grub</span> to generate a new boot menu.</p><p>grub prompt looks like this:</p><div class="codebox"><pre><code>grub&gt;</code></pre></div><p>If you iinstalled the system on /dev/sda1, you would use the following commands:</p><div class="codebox"><pre><code>set root=(hd0,msdos1)
linux /vmlinux ro root=/dev/sda1
initrd /initrd.img
boot</code></pre></div><p>Note: it&#039;s possible your computer will see the usb as the first drive. In that case, (hd0,msdos1) would need to be changed to (hd1,msdos1). You can use tab-completion to figure it out. Type <span class="bbc">set root=(hd0</span> and press TAB (maybe twice) and it will show you the partitions on that drive.</p><p>Once you&#039;ve booted the system run <span class="bbc">update-grub</span></p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Tue, 23 Jul 2019 00:43:30 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17220#p17220</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17214#p17214</link>
			<description><![CDATA[<p>Hi all,<br />&#160; &#160; &#160; &#160; &#160;With all your explanations I am able to boot with the minimal image and to<br />install the system in a very similar way as with the graphical install.</p><p>My last problem is that the grub entry is incorrectly generated.<br />Grub is starting now in text mode after I have corrected the file &quot;/etc/default/grub&quot; to allow serial<br />console for grub. Unfortunately I am not able to start the Linux<br />kernel in text mode.</p><p>Setting GRUB_CMDLINE_LINUX=&quot;console=ttyS0,115200n8&quot; is not enough to switch<br />the loading of the kernel in text mode.</p><p>I will do further research and keep you informed of the results. Anyway, if you<br />have some new ideas, I will be very happy. It&#039;s a little painful to start again and again<br />the system on the USB stick to correct the installed system.</p><p>best regards</p>]]></description>
			<author><![CDATA[dummy@example.com (nemo76)]]></author>
			<pubDate>Mon, 22 Jul 2019 18:58:17 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17214#p17214</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17209#p17209</link>
			<description><![CDATA[<div class="quotebox"><cite>ralph.ronnquist wrote:</cite><blockquote><div><p>Obviously you&#039;ll need to do all that every time you boot, until you get persistence set up.</p></div></blockquote></div><p>That&#039;s true only for booting from usb. The changes to inittab will be present in the running&#160; system. Since this is a live iso that uses refractainstaller, those changes will be copied to the hard drive (or SD card?) during installation and be persistent.</p><p>You might want to look at these before you run the installer. The install guide is for the graphical installer, but the cli installer is similar. Instead of getting lists of partitions to select from, you type in the partition (like /dev/sda1 or /dev/mmcblk0p1).</p><p><a href="https://devuan.org/os/documentation/install-guides/live-gui.html" rel="nofollow">https://devuan.org/os/documentation/ins … e-gui.html</a><br /><a href="https://refracta.org/docs/readme.refractainstaller.txt" rel="nofollow">https://refracta.org/docs/readme.refractainstaller.txt</a></p>]]></description>
			<author><![CDATA[dummy@example.com (fsmithred)]]></author>
			<pubDate>Sat, 20 Jul 2019 23:23:04 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17209#p17209</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17207#p17207</link>
			<description><![CDATA[<div class="quotebox"><blockquote><div><p>but the system does not boot.<br />Anyway, I think this is not very useful, since the file system on the USB stick is in format<br />squashfs (a read-only compressed file system). It is impossible to modify it without rebuilding it.</p></div></blockquote></div><p>Well, I think it boots the first stage, and enters a shell prompt <span class="bbu">instead</span> of booting the second stage, but after &quot;pivot_root&quot;, and having &quot;/&quot; overlayed by a tmpfs. Therefore <span class="bbc">/etc/inittab</span> is editable, although whatever you do to it is not persistent.</p><p>In other words, the steps are as follows. First use the advice by @Head_on_a_Stick to get serial boot console, plus the <span class="bbc">init=/bin/sh</span> parameter to get a shell after first stage boot:</p><div class="codebox"><pre><code>console=ttyS0 init=/bin/sh</code></pre></div><p>Then modify <span class="bbc">/etc/inittab</span> (non-persistently) for an autologin on the serial line:</p><div class="codebox"><pre><code># echo &quot;T0:23:respawn:/sbin/getty -a root ttyS0 vt100&quot; &gt;&gt; /etc/inittab</code></pre></div><p>And then, enter second stage init:</p><div class="codebox"><pre><code># exec /sbin/init</code></pre></div><p>Obviously you&#039;ll need to do all that every time you boot, until you get persistence set up.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 20 Jul 2019 22:07:38 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17207#p17207</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17205#p17205</link>
			<description><![CDATA[<div class="quotebox"><cite>nemo76 wrote:</cite><blockquote><div><p>After editing the grub entry to add &quot;console=ttyS0,115200n8&quot; the system start booting but<br />after the start of the openssh server&#160; just hangs.</p></div></blockquote></div><p>Try not specifying the baud rate, let it auto-select.</p><div class="quotebox"><cite>nemo76 wrote:</cite><blockquote><div><p>Contrary to what is suggested in a previous post, the Debian installation manual<br />is not very helpful. It states explicitely that it is impossible to have<br />&quot;/boot&quot; and the rest of the system on a single encrypted partition.</p></div></blockquote></div><p>Still having trouble using a search engine, eh?</p><p>Here, let me get my feeding spoon out:</p><p><a href="https://libreboot.org/docs/gnulinux/encrypted_debian.html" rel="nofollow">https://libreboot.org/docs/gnulinux/enc … ebian.html</a></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 20 Jul 2019 18:14:26 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17205#p17205</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17202#p17202</link>
			<description><![CDATA[<p>I have tried the instruction </p><div class="codebox"><pre><code>init=/bin/sh</code></pre></div><p> but the system does not boot.<br />Anyway, I think this is not very useful, since the file system on the USB stick is in format <br />squashfs (a read-only compressed file system). It is impossible to modify it without rebuilding it. </p><p>I think the only one solution is &quot;netinst&quot; image. It would be interesting however<br />if the &quot;minimal-live&quot; image had the possibility to boot over serial line.</p><p>In order to have only one encrypted partition, one has to work with the &quot;netinst&quot; image<br />and do the job manually. It is doubtful if this is really interesting since typing<br />the passphrase at each boot is certainly not usable. Perhaps by using<br />a special GPG key to unlock the partition, full disk encryption is practical.</p><p>The interest to have a such solution is that, if the disk is broken, it can be replaced<br />without worrying about to erase it (which is often impossible if the disk is broken).</p><p>Contrary to what is suggested in a previous post, the Debian installation manual<br />is not very helpful. It states explicitely that it is impossible to have<br />&quot;/boot&quot; and the rest of the system on a single encrypted partition.</p>]]></description>
			<author><![CDATA[dummy@example.com (nemo76)]]></author>
			<pubDate>Sat, 20 Jul 2019 16:11:03 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17202#p17202</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17195#p17195</link>
			<description><![CDATA[<p>Have you tried with <span class="bbc">init=/bin/sh</span> as boot parameter? That parameter might give you a shell prompt instead of the normal boot process, but subsequent to the initrd set up. And it might not. I&#039;m afraid it&#039;s some few decades since I toyed at that level, so don&#039;t expect miracles.</p><p>If it brings you that far, you should enable <span class="bbc">getty</span> on the serial console by appending the line</p><div class="codebox"><pre><code>T0:23:respawn:/sbin/getty -L ttyS0 115200 vt100</code></pre></div><p> to <span class="bbc">/etc/inittab</span> in the root file system (not the initrd file system), which you need to mount first. Then reboot without the <span class="bbc">init=..</span>.</p>]]></description>
			<author><![CDATA[dummy@example.com (ralph.ronnquist)]]></author>
			<pubDate>Sat, 20 Jul 2019 12:02:29 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17195#p17195</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17193#p17193</link>
			<description><![CDATA[<p>I have made some progress by trying the image &quot;minimal-live&quot;. Without too much success.</p><p>After editing the grub entry to add &quot;console=ttyS0,115200n8&quot; the system start booting but<br />after the start of the openssh server&#160; just hangs.</p><p>Before hanging, 3 strange sounds are emited by the APU (which has no speaker!).</p><p>I have tried the grub entry &quot;std&quot; and &quot;access to ram&quot; with the same effect and<br />the entry which disable the different probes. With these latter the system hangs but elsewhere in the boot process.</p>]]></description>
			<author><![CDATA[dummy@example.com (nemo76)]]></author>
			<pubDate>Sat, 20 Jul 2019 11:01:22 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17193#p17193</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17191#p17191</link>
			<description><![CDATA[<div class="quotebox"><cite>nemo76 wrote:</cite><blockquote><div><p>Unfortunately, by using the netinst image it is not possible to have the<br />directory &quot;/boot&quot; and the rest of the system on the same encrypted partition.<br />At least not automatically.</p><p>I would appreciate some pointers on how to do that manually (the installer provided<br />with the &quot;desktop-live&quot; image permit to have only one encrypted partition<br />but without giving indications on how this is achieved).</p></div></blockquote></div><p>Section 6.3.4.6 of the official Debian installation guide might help. Devuan uses the same installer so the information should apply.</p><p>EDIT: s/6.3.3.6/6.3.4.6/</p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Sat, 20 Jul 2019 09:31:56 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17191#p17191</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17178#p17178</link>
			<description><![CDATA[<p>Hello,</p><p>Thanks for the tip. I have googled but with &quot;Devuan&quot; instead of &quot;Debian&quot;. Soon<br />after my post, I have found this page <a href="https://teklager.se/en/knowledge-base/installing-debian-over-serial-console-apu-board/" rel="nofollow">https://teklager.se/en/knowledge-base/i … apu-board/</a><br />which was helpful. I have forgotten how Devuan is near (at least on some features)<br />of the Debian distribution.</p><p>Unfortunately, by using the netinst image it is not possible to have the<br />directory &quot;/boot&quot; and the rest of the system on the same encrypted partition.<br />At least not automatically.</p><p>I would appreciate some pointers on how to do that manually (the installer provided<br />with the &quot;desktop-live&quot; image permit to have only one encrypted partition<br />but without giving indications on how this is achieved). </p><p>Is it possible to have only one encrypted partition with the image &quot;minimal-live&quot;?<br />I haven&#039;t yet tried it and I don&#039;t know if it is possible to add the required instructions<br />to the grub entry and if it allows only one encrypted partition.</p><p>Thanks for your help,</p><p>Best regards,</p><p>Nemo76</p>]]></description>
			<author><![CDATA[dummy@example.com (nemo76)]]></author>
			<pubDate>Fri, 19 Jul 2019 19:06:18 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17178#p17178</guid>
		</item>
		<item>
			<title><![CDATA[Re: Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17172#p17172</link>
			<description><![CDATA[<p><a href="https://a.custura.eu/post/debian-via-serial-console/" rel="nofollow">https://a.custura.eu/post/debian-via-serial-console/</a></p><p>Next time ask a search engine, it will be quicker <img src="https://dev1galaxy.org/img/smilies/smile.png" width="15" height="15" alt="smile" /></p>]]></description>
			<author><![CDATA[dummy@example.com (Head_on_a_Stick)]]></author>
			<pubDate>Fri, 19 Jul 2019 17:34:37 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17172#p17172</guid>
		</item>
		<item>
			<title><![CDATA[Serial console install]]></title>
			<link>https://dev1galaxy.org/viewtopic.php?pid=17170#p17170</link>
			<description><![CDATA[<p>Hi All,<br />&#160; &#160; &#160; &#160; I plan to install Devuan on an APU machine from PC Engines<br />(<a href="https://www.pcengines.ch" rel="nofollow">https://www.pcengines.ch</a>). This is a quite classical PC except<br />that it has no graphic card and no keyboard. It works only with a serial console.</p><p>A lot of linux run on it, but I have no idea how I can install<br />devuan by using a serial console. I have looked on most CD (live ISO, netinst&#160; and minimal)<br />without finding a grub menu entry for booting with a serial console.</p><p>I suppose I should pass the commands manually at the grub prompt.</p><p>If anyone could give me some hints, this will be very helpful for me.</p><p>Thanks,</p><p>nemo76</p>]]></description>
			<author><![CDATA[dummy@example.com (nemo76)]]></author>
			<pubDate>Fri, 19 Jul 2019 15:56:48 +0000</pubDate>
			<guid>https://dev1galaxy.org/viewtopic.php?pid=17170#p17170</guid>
		</item>
	</channel>
</rss>
