# Basic OS Environment Setup - [Environment Requirements](#section466851916410) - [Hardware and Software Requirements](#section1595725202314) - [Development Tools for Windows](#section2833173411317) - [Build Tools for Linux](#section992619473117) - [Installing a Windows Development Environment](#section1995840162515) - [Using Docker to Install the Linux Environment](#section107932281315) - [Using an Installation Package to Install the Linux Environment](#section497484245614) - [Connecting to a Linux Server](#section723115618340) - [Installing and Configuring Python](#section11255767343) - [Installing gn](#section9262166183410) - [Installing ninja](#section02645617348) - [Installing LLVM](#section149564754) - [Installing hb](#section6201103143120) - [Obtaining OpenHarmony Source Code](#section1545225464016) - [FAQ](#section19253140111619) - [What should I do if garbled characters and segmentation faults occur during hb installation?](#section347685141717) - [What should I do if the message "cannot import 'sysconfig' from 'distutils'" is displayed during hb installation?](#section1996804118553) - [What should I do if the message "module 'platform' has no attribute 'linux\_distribution'" is displayed during hb Installation?](#section6992181918582) - [What should I do if the message "ImportError: No module named apt\_pkg" is displayed during the execution of an unidentifiable command?](#section7854153010120) Before setting up the environment for a development board, you must set up the basic OS environment for OpenHarmony first. The basic OS environment refers to the building environment and development environment of OpenHarmony. You can choose one of the following methods to set up the basic OS environment based on your preference and the hardware and software used. - **Method 1** Install a Windows development environment and use docker to install the Linux environment. For details, see the following sections: 1. [Environment Requirements](#section466851916410) 2. [Installing a Windows Development Environment](#section1995840162515) 3. [Using Docker to Install the Linux Environment](#section107932281315) - **Method 2** Install a Windows development environment and use an installation package to install the Linux environment. For details, see the following sections: 1. [Environment Requirements](#section466851916410) 2. [Installing a Windows Development Environment](#section1995840162515) 3. [Using an Installation Package to Install the Linux Environment](#section497484245614) - **Method 3** Install the Linux development and building environment. For details, see [Linux Development Environment](https://device.harmonyos.com/en/docs/ide/user-guides/install_ubuntu-0000001072959308) in _HUAWEI DevEco Studio User Guide_. ## Environment Requirements ### Hardware and Software Requirements **Table 1** Development platform requirements
You can develop programs on the Windows workstation or Linux server via a remote login. |
|||
Ubuntu 16.04 64-bit or later is used for the Linux OS, and bash is used as the shell. |
Remotely connects to a Linux compile server or a serial port. |
Internet (for example, https://www.putty.org/) |