blob: 88526916bb2d7adc4c3591c7634add1db9e4360c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
<!doctype html>
<html lang="EN">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="/style.css">
<title>Headless Arch Install</title>
</head>
<body>
<header>
<h1>Bloggings</h1>
<a href="/index.php">Back</a>
</header>
<main>
<article>
<h2>Headless Arch Install</h2>
<h3>2025-03-21</h3>
<h4>I have a micro pc I'd like to use as a web server</h4>
<p>It doesn't have a screen so I'll need to do a headless installation</p>
<p>I found some simple instructions here: <a href="https://tarneo.fr/posts/arch_headless/">https://tarneo.fr/posts/arch_headless/</a></p>
<br>
<code>sudo pacman -S archiso
mkdir arch-headless && cd arch-headless
cp -r /usr/share/archiso/configs/releng/ .
mkdir releng/airootfs/root/.ssh/
cp ~/.ssh/id_rsa.pub releng/airootfs/root/.ssh/authorized_keys
sudo mkarchiso -v -o ./out ./releng
</code>
Insert a usb key, mine is in /dev/sdc, and create a bootable usb drive
<code>dd if=./out/archlinux-2025.03.21-x86_64.iso of=/dev/sdc bs=4M; sync</code>
<br>
<p>Find the IP address of the machine, and ssh to it. You can then run
archinstall for example.</p>
</article>
</main>
<footer>
<p> </p><p>§</p></footer>
</body></html>
|