Linux allows you to build for all PX4 targets (NuttX based hardware, Qualcomm Snapdragon Flight hardware, Linux-based hardware, Simulation, ROS).
Ubuntu Linux LTS LTS 18.04 and 20.04 are supported. Other Linux environments and versions may be made to work, but are less well tested and documented.
The following instructions explain how to set up a development environment on various Linux platforms.
After setting up the build/simulation toolchain: