It’s mostly for me.
- Download from Freebsd the relative
FreeBSD-<version>-RELEASE-i386-disc1.isofile. - Create a new vm from virtualbox, allocate 2048 (2gb) of ram and 14gb of space.
-
After created the vm, close every virtualbox window, and open the relative
%userprofile%\VirtualBox VMs\<machinename>\<machinename>.vboxthen replace
<NAT/>with<NAT> <Forwarding name="Rule 01" proto="1" hostport="13306" guestport="3306"/> <Forwarding name="Rule 02" proto="1" hostport="10022" guestport="22"/> <Forwarding name="Rule 03" proto="1" hostport="30000" guestport="30000"/> <Forwarding name="Rule 04" proto="1" hostport="30001" guestport="30001"/> <Forwarding name="Rule 05" proto="1" hostport="30002" guestport="30002"/> <Forwarding name="Rule 06" proto="1" hostport="30003" guestport="30003"/> <Forwarding name="Rule 07" proto="1" hostport="30004" guestport="30004"/> <Forwarding name="Rule 08" proto="1" hostport="30005" guestport="30005"/> <Forwarding name="Rule 09" proto="1" hostport="30006" guestport="30006"/> <Forwarding name="Rule 10" proto="1" hostport="30007" guestport="30007"/> </NAT>- After that, set the network card as NAT and start the vm.
- Choose the .iso for the installation: (if not mentioned, choose the default option)
- Choose
localhost.freebsd.orgas hostname - Choose only
docas system components (press space for toggling) - Choose
passwordas password - Choose every additional option (e.g. disable x y z)
- Don’t add other users
- Choose
- As additional command after the installation, enable ssh login via root:
ee /etc/ssh/sshd_config- write
PermitRootLogin yes - save with ctrl+c and write “exit”
shutdown -r now
- Unmount the iso disk, and reboot (press Reset)
- Login
- host: localhost
- port: 10022
- user: root
- password: password
- Install the missing packages:
pkg update -f pkg install mysql56-server git python gmake gcc9 /etc/rc.confshould look like this:clear_tmp_enable="YES" syslogd_flags="-ss" sendmail_enable="NONE" hostname="localhost.freebsd.org" ifconfig_em0="DHCP" sshd_enable="YES" dumpdev="AUTO" mysql_enable="NO"- Add this setting in order to cache the git credentials on freebsd (until reboot):
git config --global credential.helper "cache --timeout=9993600" - Create /home folder:
mkdir /home - Find and install the latest gdb version:
pkg search gdb pkg install gdb-9.2 - Close the VM with “send the shutdown signal” option.
- In Virtualbox window: File -> Export virtual application
- Format OVF 2.0
- File with “(clean)”
- In every Settings info -> My website url
Done.