The introduction
Looking for a distribution small enough to be snappy, Docker turned to Fedora CoreOS. It works fine to use the docker above, but it was made for docker. Nearly mean, later found the BSD family’s three eldest brothers. Look at the size of the image file.
- OpenBSD
- FreeBSD
- NetBSD
OpenBSD
What appeals to me about OpenBSD is this statement, though I don’t know if it’s true until I’ve tested it. You can verify yourself and post your opinion in the comments section.
OpenBSD appeals to me as the most secure operating system in the world
But it is the most secure system, and installation stopped me. Who let me food (show hands
FreeBSD
FreeBSD images are large, which means they are rich in packages and functionality. It should also be the most active release of the BSD genre. A screenshot of a cloud OS list. But not very meet my needs did not choose.
NetBSD
This works for me, seeing some posts that netBSD is mostly used for embedded systems. NetBSD does have some advantages for embedded use, being small and robust enough to support multiple CPU architectures. It’s the perfect choice. Let’s talk about the pit of guess
The network configuration
NetBSD has a nice graphical installation interface that makes installation much easier. However, there should be a problem with his network configuration. If both network cards are DHCP, one of them cannot obtain the IP address. If you have this problem, consider annotating the DHCPCD_FLAGS configuration for your network card in Chapter 2
# DHCPCD =YES #dhcpcd_flags=" -qm wm0" # DHCPCD =YES #dhcpcd_flags=" -qm wM1" sshd=YES wscons=YESCopy the code
Software Package Mirroring
NetBSD’s mirror address is specified using an environment variable. However, the CDN of the official website is too slow, so the mirror station of Tsinghua University can be replaced in China.
PKG_PATH="https://mirror.tuna.tsinghua.edu.cn/pkgsrc/packages/NetBSD/$(uname -p)/$(uname -r | cut -d_ -f1)/All"
Copy the code
The website recommends using PKgin to install the software. It never occurred to me that pkgin’s mirror address used a configuration file,
Configuration file location: / usr/PKG/etc/pkgin/repositories. Reference the PKG_PATH conf https://mirror.tuna.tsinghua.edu.cn/pkgsrc/packages/NetBSD/$arch/9.0/All
However, the BSD series has higher requirements for administrators than ubuntu and other distributions. You need to configure it yourself, and the default configuration file does not match the actual operation. This is and I never expected.
End
Pit stepped on this, now ask a big guy’s program is running on BSD?