Skip to content

Commit

Permalink
Add WSL2 Installation Instructions to the README file (publiclab#9547)
Browse files Browse the repository at this point in the history
* Add WSL2 Installation Instructions to the README file

* Correct WSL 2 Installation Instructions

Co-authored-by: Jeffrey Warren <[email protected]>

Co-authored-by: Jeffrey Warren <[email protected]>
  • Loading branch information
sobekcore and jywarren authored Apr 27, 2021
1 parent fb890a7 commit 461d48c
Showing 1 changed file with 21 additions and 0 deletions.
21 changes: 21 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ A full description of the features, audiences, inter-relationships, and goals of
5. [Installation](#installation)
- [Standard Installation](#standard-installation)
- [Windows Installation](#windows-installation)
- [Windows Subsystem for Linux 2 Installation](#windows-subsystem-for-linux-2-installation)
6. [SSL in Development](#ssl-in-development)
7. [Login](#login)
8. [Testing](#testing)
Expand Down Expand Up @@ -121,6 +122,26 @@ We recommend you either work in a virtual environment, or on a dual booted syste
2. [Dual Booting](https://www.tecmint.com/install-ubuntu-alongside-with-windows-dual-boot/amp/), [option2](https://askubuntu.com/questions/1031993/how-to-install-ubuntu-18-04-alongside-windows-10), [video guide](https://www.youtube.com/watch?v=qNeJvujdB-0&fbclid=IwAR0APhs89jlNR_ENKbSwrp6TI6P-wxlx-a0My9XBvPNAfwtADZaAXqcKtP4)
3. [Setting up a Linux virtual env](https://itsfoss.com/install-linux-in-virtualbox/)

## Windows Subsystem for Linux 2 Installation

Before continuing with the installation steps in this README, users of Windows Subsystem for Linux 2 (WSL 2) should open the WSL 2 Terminal and type out the commands below.

1. Install Dependencies required from Ruby Source with the following commands:
* `sudo apt update`
* `sudo apt install curl g++ gcc autoconf automake bison libc6-dev`
* `sudo apt install libffi-dev libgdbm-dev libncurses5-dev libsqlite3-dev libtool`
* `sudo apt install libyaml-dev make pkg-config sqlite3 zlib1g-dev libgmp-dev`
* `sudo apt install libreadline-dev libssl-dev`
2. Add GPG Key & Install RVM:
* `gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E37D2BAF1CF37B13E2069D6956105BD0E739499BDB`
* `curl -sSL https://get.rvm.io | bash -s stable`
3. Load the Script environment variables using source command:
* `source ~/.rvm/scripts/rvm`
4. Install and use specific Ruby version:
* `rvm install ruby-x.x.x (this projects Ruby version)`
* `rvm --default use ruby-x.x.x (replace x.x.x with this project's Ruby version)`
5. For further reference, [read here](https://linuxize.com/post/how-to-install-ruby-on-ubuntu-20-04/)

## Redis Installation

Public Lab uses Redis and may be required for some functionality when running the application locally.
Expand Down

0 comments on commit 461d48c

Please sign in to comment.