aboutsummaryrefslogtreecommitdiffhomepage
path: root/public/index.html
diff options
context:
space:
mode:
Diffstat (limited to 'public/index.html')
-rw-r--r--public/index.html133
1 files changed, 129 insertions, 4 deletions
diff --git a/public/index.html b/public/index.html
index 3296cb9..89335cd 100644
--- a/public/index.html
+++ b/public/index.html
@@ -11,21 +11,146 @@
<body>
<h1><a href="/"><span class="title"><i>Open</i><b>BASED</b></span></a></h1>
<hr>
- <p>Setup OpenBSD as a daily driver using only the included, base programs.</p>
+ <p>Setup OpenBSD as a daily driver using only the included, core programs. Based on OpenBSD 7.6.</p>
<hr />
<div class="TOC">
<ul>
-<li><a href="#gettingstarted">Getting Started</a></li>
+<li><a href="#requirements">Requirements</a></li>
+<li><a href="#installation">Installation</a></li>
+<li><a href="#firstboottweaks">First Boot Tweaks</a>
+<ul>
+<li><a href="#userpermissions">User Permissions</a></li>
+<li><a href="#firmware">Firmware</a></li>
+<li><a href="#wifi">WiFi</a></li>
+<li><a href="#performanceboost">Performance Boost</a></li>
+</ul>
+</li>
+<li><a href="#loginmanager">Login Manager</a></li>
+<li><a href="#thefirstreallogin">The First <em>Real</em> Login</a></li>
+<li><a href="#configs">Configs</a></li>
<li><a href="#contribute">Contribute</a></li>
</ul>
</div>
-<h2 id="gettingstarted">Getting Started</h2>
+<h2 id="requirements">Requirements</h2>
+
+<ul>
+<li>USB device</li>
+<li>Ethernet connection (with active internet)</li>
+<li>A cup of coffee</li>
+</ul>
+
+<p>The real requirements are having patience and a passion for keeping things minimal. It&#8217;s important to remeber that this setup isn&#8217;t the most user-friendly. There will be no config files to edit or download in this guide. We will be using the <code>xenodm</code> login manager paired with the default stacked window manager <code>fvwm</code>. And that&#8217;s it.</p>
+
+<p>You have been warned!</p>
+
+<h2 id="installation">Installation</h2>
+
+<p>Make sure you have the latest OpenBSD image formatted on a USB device (or burned to a CD if that&#8217;s your cup of tea!) and that your computer/laptop is set to boot from USB via the BIOS. Also make sure you are connected to the internet via ethernet cable (don&#8217;t worry, we&#8217;ll setup WiFi in a minute!)</p>
+
+<p>Boot into the device and input the following when guided through the installer:</p>
+
+<ol>
+<li>Boot from USB</li>
+<li>Choose <code>Install</code></li>
+<li>Keyboard layout: <code>us</code></li>
+<li>Hostname: <code>x220</code> (or whatever you choose)</li>
+<li>Network: <code>em0</code></li>
+<li>IPv4: <code>autoconf</code></li>
+<li>IPv6: <code>none</code></li>
+<li>Network interface: <code>done</code></li>
+<li>Password for root</li>
+<li>Start sshd by default? <code>yes</code></li>
+<li>X Window System start with xenodm? <code>no</code></li>
+<li>Setup user? <code>username</code> (follow setup user steps)</li>
+<li>Allow root ssh login? <code>no</code></li>
+<li>Timezone</li>
+<li>Which disk? Use internal (<code>sd0</code> etc.)</li>
+<li>Encrypt root disk? <code>no</code></li>
+<li>Use <code>WHOLE</code> disk</li>
+<li>Use <code>AUTO</code> layout</li>
+<li>Which disk to initialize: <code>done</code></li>
+<li>Location of sets: <code>http</code></li>
+<li>HTTP Proxy URL? <code>none</code></li>
+<li>HTTP Server? <code>1</code> (Toronto)</li>
+<li>Confirm again</li>
+<li>Server directory? <code>pub/OpenBSD/7.6/amd64</code></li>
+<li>Set names? <code>done</code></li>
+<li>Drink some coffee while it verifies (depends on network speed)</li>
+<li>Location of sets? <code>done</code></li>
+<li>Congrats!</li>
+<li>Reboot and remove USB device</li>
+</ol>
+
+<h2 id="firstboottweaks">First Boot Tweaks</h2>
+
+<h3 id="userpermissions">User Permissions</h3>
+
+<p>Before we do anything, we should give our main user full access via <code>doas</code>. Login as <code>root</code> and run the following:</p>
+
+<pre><code>su -
+echo &quot;permit nopass :wheel&quot; &gt;&gt; /etc/doas.conf
+</code></pre>
+
+<p>Now you can logout or reboot the machine.</p>
+
+<pre><code>doas reboot
+</code></pre>
+
+<p>Running any of the commands might present you with a permissions error. If that happens, simply add <code>doas</code> to the start of every command.</p>
+
+<h3 id="firmware">Firmware</h3>
+
+<p>Once your machine reboots, login as your created user. The next steps will help you ensure you have the latest firmware.</p>
+
+<p>Simply run the command: <code>fw_update</code></p>
+
+<h3 id="wifi">WiFi</h3>
+
+<p>To enable wifi on your device, run the following command (filling in the proper details where need be)</p>
+
+<pre><code>ifconfig iwn0 up
+ifconfig iwn0 scan
+echo &quot;join WIFI-NAME wpakey PASSPHRASE&quot; &gt;&gt; /etc/hostname.iwn0
+echo &quot;dhcp&quot; &gt;&gt; /etc/hostname.iwn0
+echo &quot;inet6 autoconf&quot; &gt;&gt; /etc/hostname.iwn0
+echo &quot;up powersave&quot; &gt;&gt; /etc/hostname.iwn0
+dhclient iwn0
+</code></pre>
+
+<p>Take note of the <code>iwn0</code>, as this might differ on your machine. (You can check this by running <code>ifconfig</code>)</p>
+
+<p>You might also need to run <code>doas sh /etc/netstart</code> after.</p>
+
+<h3 id="performanceboost">Performance Boost</h3>
+
+<p>This step is optional and targeted towards devices with batteries (laptops, IoT devices etc). Properly setup apmd:</p>
+
+<pre><code>rcctl enable apmd
+rcctl set apmd flags -A
+rcctl start apmd
+</code></pre>
+
+<h2 id="loginmanager">Login Manager</h2>
+
+<p>Remember when we chose <code>No</code> when the installer asked us &#8220;X Window System start with xenodm?&#8221;. Well, now we want to enable that before our next reboot:</p>
+
+<pre><code>doas rcctl enable xenodm
+</code></pre>
+
+<p>Now reboot your device again.</p>
+
+<pre><code>doas reboot
+</code></pre>
+
+<h2 id="thefirstreallogin">The First <em>Real</em> Login</h2>
+
+<h2 id="configs">Configs</h2>
-<p>Coming soon&#8230;</p>
+<p>Okay, I <em>know</em> I said there wouldn&#8217;t be any configs included in this guide. Frankly, you should be having zero problems working with all those defaults now that you&#8217;ve run through this guide! BUT - I wanted to include some <em>very minor</em> configuration tweaks that might make things a little more intuitive for newcomers. Feel free to ignore these entirely!</p>
<h2 id="contribute">Contribute</h2>