aboutsummaryrefslogtreecommitdiff
path: root/content/docs
diff options
context:
space:
mode:
authorJulien Dessaux2021-05-11 17:34:11 +0200
committerJulien Dessaux2021-05-11 17:34:11 +0200
commit2f242370dc095a1a44563d9a3d88853654626b55 (patch)
treef6e1998f87691f74edea4b0301b0d83f4fd4208e /content/docs
parentAdded another book article (diff)
downloadwww-2f242370dc095a1a44563d9a3d88853654626b55.tar.gz
www-2f242370dc095a1a44563d9a3d88853654626b55.tar.bz2
www-2f242370dc095a1a44563d9a3d88853654626b55.zip
Added freebsd article
Diffstat (limited to '')
-rw-r--r--content/docs/freebsd/_index.md6
-rw-r--r--content/docs/freebsd/remote_install.md24
-rw-r--r--content/docs/openbsd/_index.md2
3 files changed, 31 insertions, 1 deletions
diff --git a/content/docs/freebsd/_index.md b/content/docs/freebsd/_index.md
new file mode 100644
index 0000000..4604f47
--- /dev/null
+++ b/content/docs/freebsd/_index.md
@@ -0,0 +1,6 @@
+---
+title: "FreeBSD"
+description: FreeBSD related articles
+---
+
+I am a long time FreeBSD user, my first installation dating back to 2005.
diff --git a/content/docs/freebsd/remote_install.md b/content/docs/freebsd/remote_install.md
new file mode 100644
index 0000000..27f7757
--- /dev/null
+++ b/content/docs/freebsd/remote_install.md
@@ -0,0 +1,24 @@
+---
+title: Install FreeBSD from linux
+description: How to install FreeBSD at hosting providers that do not support it
+---
+
+## Introduction
+
+This article explains a simple method to install FreeBSD 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 Freebsd. Identify the disk device you want to install on, update the url below to the latest release you want and run :
+```sh
+wget https://download.freebsd.org/ftp/releases/VM-IMAGES/13.0-RELEASE/amd64/Latest/FreeBSD-13.0-RELEASE-amd64.raw.xz -O - | xz -dc | dd of=/dev/vda bs=1M conv=fdatasync
+```
+
+When all is done, force a reboot of your machine and connect to the remote console. Your FreeBSD system should boot and leave you with an authentication prompt. Just type in root (it will not ask for a password) and go through this post installation checklist :
+- set a root password with `passwd`
+- add a user account with `adduser`, put it in the `wheel` group
+- activate openssh with `service sshd enable && service sshd start`
+- if dhcp is not sufficient configure your network with `ifconfig`, `pkill dhclient` if necessary and check the default route(s)
+- don't forget to configure ipv6 too
+- configure your `resolv.conf`
+- install python for your first ansible run
diff --git a/content/docs/openbsd/_index.md b/content/docs/openbsd/_index.md
index c79bf9b..03c9366 100644
--- a/content/docs/openbsd/_index.md
+++ b/content/docs/openbsd/_index.md
@@ -3,4 +3,4 @@ title: "OpenBSD"
description: OpenBSD related articles
---
-I am a long time openbsd user, my first installation dating back to 2008.
+I am a long time OpenBSD user, my first installation dating back to 2008.