Add swap in the instruction

This commit is contained in:
Augustin FL 2021-04-03 19:02:31 +02:00 committed by GitHub
parent 8347996f99
commit 7cd20d0a8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -89,6 +89,12 @@ pkg install -y htop screen wget mmv
# Only install this if your FreeBSD is a virtual machine
pkg install -y open-vm-tools
# Create an 8G swap device (Not required but can be usefull if you don't have enough memory)
dd if=/dev/zero of=/root/swap.bin bs=1M count=8192
chmod 0600 /root/swap.bin
mdconfig -a -t vnode -f /root/swap.bin -u 0
echo 'swapfile="/root/swap.bin"' >> /etc/rc.conf
```