1.4 KiB
1.4 KiB
title | description | tags | |
---|---|---|---|
Install FreeBSD from linux | 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 :
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 :
- run
freebsd-update fetch install
then reboot - set a root password with
passwd
- add a user account with
adduser
, put it in thewheel
group - add a ssh authorized_keys for your new user
- change your hostname in
/etc/rc.conf
- 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 python3 for your first ansible run