mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
2.5 KiB
2.5 KiB
Windows Environment Setup
Prerequisites
- Have a computer with Windows 10 or later.
- Install WSL and Ubuntu on Windows.
- Enter Ubuntu terminal.
Setup Environment (In Ubuntu terminal)
-
Update and upgrade
$ sudo apt-get update $ sudo apt-get upgrade -
Install Git
$ sudo apt-get install git -
Install Node.js (Version 20.x)
$ curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash - $ sudo apt-get install nodejs
Run the Project (In Ubuntu terminal)
-
Installation
$ git clone https://github.com/lancatlin/linux-odyssey.git $ cd linux-odyssey $ yarn install -
Docker setup
$ docker compose pull $ docker compose build $ docker-compose up -d -
Run the project
$ yarn build $ yarn dev
References
Install Docker
(Refer to get.docker.com)
To install the latest stable versions of Docker CLI, Docker Engine, and their dependencies:
-
Download the script
$ curl -fsSL https://get.docker.com -o install-docker.sh -
verify the script's content
$ cat install-docker.sh -
run the script with --dry-run to verify the steps it executes
$ sh install-docker.sh --dry-run -
run the script either as root, or using sudo to perform the installation.
$ sudo sh install-docker.sh -
Verify the installation
$ docker --version
Install Python 2.7
-
Install required packages
$ sudo apt install -y make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev wget curl llvm libncurses-dev xz-utils tk-dev libffi-dev liblzma-dev python3-openssl git -
Install pyenv
$ curl https://pyenv.run | bash -
Add following lines to bash configuration file (e.g.
~/.bashrc,~/.bash_profile,~/.zshrc)export PATH="$HOME/.pyenv/bin:$PATH" eval "$(pyenv init --path)" eval "$(pyenv init -)" eval "$(pyenv virtualenv-init -)" -
Restart the shell
-
Install Python 2.7.18 using pyenv
$ pyenv install 2.7.18 -
Set Python 2.7.18 as the global version
$ pyenv global 2.7.18 -
Verify the installation
$ python --version