КОИНС.Студия - Статьи - Инсталляция и настройка программ - Install Ubuntu on Windows 10/11

Install Ubuntu on Windows 10/11

To work with Windows Subsystem Linux(WSL), you must have Windows 10/11 installed with the Fall Creators Update.

System preparation

  • Request access to GitHub organization https://github.com/wellnessliving/

  • Request access to Install Team for get access to needed repositories. Link: https://github.com/orgs/wellnessliving/teams/install-team/members

  • Enable WSL:
    • Open PowerShell by administrator.

    • Run command:

    Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux
    •   Restart computer.

  • Press Win+R - Write cmd - Press Enter

  • Run command wsl --set-default-version 1

  • Installation and initial setup of Ubuntu:
    • Open the Microsoft Store.

    • Find Ubuntu 22.04 LTS and click Install.

    • After install, run Ubuntu.

    • Wait for the setup to complete.

    • Write login and password.

  • Preparing the installer for launch
    • Run command sudo su and write password.

    • Open repository https://github.com/wellnessliving/koins-install and download needed installer to computer.
      • install.sh - Installer for WSL

      • install_docker.sh - Installer for Mac(docker)

      • debian_install.sh- Installer for Debian

    • Copy installer to needed directory or run from current directory.

    • Generate install commnad on form https://output.jsbin.com/feguzef
      Explanation for the fields.
      • Bot login(It's your studio login):
      • Login for DB, Password for DB:
        • Login and password for local DB.

      • Login for PRG,:
        • Login for Programmer's page(PRG).

      • Checkout projects:
        • Yes - Checkout the project. No - don't checkout the project.

      • Path to workspace:
        • The path to the workspace. Because everything happens on Linux, and the project is downloaded to Windows, then the path should be specified in this format: /mnt/%LocalDisk%/ExampleFolder/SubFolder
          Path in Libux: /mnt/d/Workspace => Path in Windows: D:\Workspace

      • Hostname for trunk, Hostname for stable:
        • Hostname for trunk - local domain name for Trunk branch.

        • Hostname for stable - local domain name for Stable branch.

        • Hostname for production - local domain name for Production branch.

        • Hostname for studio - local domain name for local Studio.

    • Run command from form to Ubuntu console. Example command: bash install.sh --bot-login login --checkout yes --trunk wl.tr --stable wl.st

    • If you have entered everything correctly, the installation will begin.

    • Several points are important during installation:
      • There will be a request Would you like to continue [y/n] need answer y

      • Will ask for password twice Write one time password from studio: need copy password from studio(top menu icon )

        Note:

        • If you see this error it's mean that you do not have access to repository:

      • During the checkout of the project, there will be a request Are you sure you want to continue connecting (yes/no)? need answer yes

    • After the installation is completed, an informational message will be displayed.

After instalation available next commands:

  • sh ~/server.sh - To start MySQL, Memcached, Apache, DynamoDB.

  • bash ~/dump.sh - To dump database.

  • bash ~/restore.sh - To restore dump database.

  • service service_name operation - To start/restart/stop service.
    Available next services:
    • mysql

    • apache2

    • memcached

    • dynamodb

    Available next operation:

    • start

    • stop

    • restart

    Examples:

    • service apache2 stop - To stop Apache.

    • service apache2 restart - To restart Apache.

Последняя модификация: 31.03.25 08:02