2021-04-21 11:07:38 +02:00
|
|
|
---
|
|
|
|
title: Install OpenBSD from linux
|
|
|
|
description: How to install OpenBSD at hosting providers that do not support it
|
2021-09-13 00:48:07 +02:00
|
|
|
tags:
|
|
|
|
- OpenBSD
|
2024-02-25 23:25:40 +01:00
|
|
|
- UpdateNeeded
|
2021-04-21 11:07:38 +02:00
|
|
|
---
|
|
|
|
|
|
|
|
## Introduction
|
|
|
|
|
|
|
|
This article explains a simple method to install OpenBSD when all you have is a linux and a remote console.
|
|
|
|
|
|
|
|
## How to
|
|
|
|
|
|
|
|
First login as root on the linux you want to reinstall as Openbsd then fetch the installer :
|
2023-04-23 22:33:49 +02:00
|
|
|
```sh
|
2021-04-21 11:07:38 +02:00
|
|
|
curl https://cdn.openbsd.org/pub/OpenBSD/6.8/amd64/bsd.rd -o /bsd.rd
|
2023-04-23 22:33:49 +02:00
|
|
|
```
|
2021-04-21 11:07:38 +02:00
|
|
|
|
|
|
|
Then edit the loader configuration, in this example grub2 :
|
2023-04-23 22:33:49 +02:00
|
|
|
```sh
|
2021-04-21 11:07:38 +02:00
|
|
|
echo '
|
|
|
|
menuentry "OpenBSD" {
|
|
|
|
set root=(hd0,msdos1)
|
|
|
|
kopenbsd /bsd.rd
|
|
|
|
}' >> /etc/grub.d/40_custom
|
|
|
|
echo 'GRUB_TIMEOUT=60' >> /etc/default/grub
|
|
|
|
grub2-mkconfig > /boot/grub2/grub.cfg
|
2023-04-23 22:33:49 +02:00
|
|
|
```
|
2021-04-21 11:07:38 +02:00
|
|
|
|
|
|
|
If you reboot now and connect your remote console you should be able to boot the OpenBSD installer.
|