Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding sugestions to install WSL2 and it packages in environment-setup.md #2400

Merged
merged 1 commit into from
Oct 31, 2021

Conversation

tpmai22
Copy link
Contributor

@tpmai22 tpmai22 commented Oct 26, 2021

Issue This PR Addresses

Type of Change

  • Bugfix: Change which fixes an issue
  • New Feature: Change which adds functionality
  • Documentation Update: Change which improves documentation
  • UI: Change which improves UI

Description

When I try to install redis using my newly installed WSL2, the installation was not succedded since my WSL2 have not updated yet. Running sudo apt update will get your WSL2 update so I think adding it in the doc might help other newly contributors as well.

Checklist

  • Quality: This PR builds and passes our npm test and works locally
  • Tests: This PR includes thorough tests or an explanation of why it does not
  • Screenshots: This PR includes screenshots or GIFs of the changes made or an explanation of why it does not (if applicable)
  • Documentation: This PR includes updated/added documentation to user exposed functionality or configuration variables are added/changed or an explanation of why it does not(if applicable)

@@ -35,8 +35,9 @@ There are two methods to install Redis on Windows. We strongly recommend the fir
##### Option 1: Using [WSL2 (Windows Subsystem Linux)](https://docs.microsoft.com/en-us/windows/wsl/about)

1. Follow Microsoft WSL2 [installation guide](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to complete the installation
2. Depending on the distribution you chose for WSL2, install redis using that distro's package manager. For example, if using Ubuntu, run `sudo apt-get install redis`
2. Depending on the distribution you chose for WSL2, install redis using that distro's package manager. For example, if using Ubuntu, run `sudo apt-get install redis` . Note: make sure to run `sudo apt update` after WSL2 has been installed.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I would move this note to the end of the first step vs. here. You might also mention upgrading:

# fetch updated package lists
sudo apt update
# upgrade installed/outdated packages
sudo apt upgrade

3. Suggest to install [Windows Terminal](https://docs.microsoft.com/en-us/windows/wsl/install-win10#install-windows-terminal-optional), it facilitates you to switch directories between WSL2 Ubuntu bash and Windows drive
4. Suggest to install [Node for WSL2](https://docs.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-wsl), so you can type node cml using WSL2 terminal
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is cml?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I mean command line but you're right it did not useful for the reader. I just upload another attempt on this if you have some time to take a look

@tpmai22 tpmai22 changed the title Adding sugestions in environment-setup.md Adding sugestions to install WSL2 and it packages in environment-setup.md Oct 27, 2021
@@ -34,9 +34,18 @@ There are two methods to install Redis on Windows. We strongly recommend the fir

##### Option 1: Using [WSL2 (Windows Subsystem Linux)](https://docs.microsoft.com/en-us/windows/wsl/about)

1. Follow Microsoft WSL2 [installation guide](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to complete the installation
2. Depending on the distribution you chose for WSL2, install redis using that distro's package manager. For example, if using Ubuntu, run `sudo apt-get install redis`
1. Follow Microsoft WSL2 [installation guide](https://docs.microsoft.com/en-us/windows/wsl/install-win10) to complete the installation.Suggest to run the following
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nit: Let us add a space between installation.Suggest

docs/environment-setup.md Show resolved Hide resolved
sudo apt upgrade
```

2. Depending on the distribution you chose for WSL2, install redis using that distro's package manager. For example, if using Ubuntu, run `sudo apt-get install redis` .
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we include a list of the different Redis installs based on the different distros? Or at least a link where someone can quickly find which one they need.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Grommers00 I just made an attempt base on your comment. Would you mind to check and see if it will beneficial for new contributors to set up the environment ?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good :D, I think just periods need to be added.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Grommers00 @cindyledev if you guys feel like having more details for the newbies, kindly let me know

docs/environment-setup.md Outdated Show resolved Hide resolved
@@ -123,7 +142,7 @@ _NOTE: This will not work on WSL (Windows Subsystem for Linux). Use the approach
1. Get [Docker for Desktop For Windows](https://hub.docker.com/editions/community/docker-ce-desktop-windows)
1. Docker for Desktop comes with docker-compose installed.

#### Windows 10 Home, Pro, Enterprise, or Education (Insiders / WSL 2 / Docker)
#### Windows 10 Home, Pro, Enterprise, or Education or Windows 11 (Insiders / WSL 2 / Docker)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Probably want to add a comma after, "Education", here

@tpmai22
Copy link
Contributor Author

tpmai22 commented Oct 28, 2021

@cindyledev Prefer #2375, would you mind to review if my PR is still needed or anything you want me to change so it can be clear to the other contributors

docs/environment-setup.md Outdated Show resolved Hide resolved
@humphd humphd requested a review from cindyorangis October 29, 2021 16:02
Grommers00
Grommers00 previously approved these changes Oct 29, 2021
Copy link
Contributor

@Grommers00 Grommers00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good!

Copy link
Contributor

@humphd humphd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One change (remove 2. and the code example). Rest looks good.

sudo apt upgrade
```

2. Depending on the distribution you chose for WSL2, install redis using that distro's package manager. You can check your distro's package manager [here](https://www.tecmint.com/linux-distro-for-power-users/). The two most common package manager are APT and DNF.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should suggest this. Since we run it all in Docker now, confusing people by having different ways of dealing with Redis seems like a bad idea. If someone understands how to do this, let them do it; but let's not guide new devs to do this.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got it !

humphd
humphd previously approved these changes Oct 31, 2021
@humphd humphd requested a review from Grommers00 October 31, 2021 13:34
Grommers00
Grommers00 previously approved these changes Oct 31, 2021
@Grommers00
Copy link
Contributor

Just gotta rebase it and we can merge :D

@tpmai22
Copy link
Contributor Author

tpmai22 commented Oct 31, 2021

@Grommers00 I just rebase my commit with the lastest commit on the master

@Grommers00 Grommers00 self-requested a review October 31, 2021 17:04
@humphd humphd merged commit 74e4787 into Seneca-CDOT:master Oct 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
hacktoberfest-accepted type: documentation (docs) Improvements or additions to documentation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants