-
Notifications
You must be signed in to change notification settings - Fork 189
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
Conversation
docs/environment-setup.md
Outdated
@@ -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. |
There was a problem hiding this comment.
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
docs/environment-setup.md
Outdated
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 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What is cml
?
There was a problem hiding this comment.
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
0afef6a
to
ea0f090
Compare
ea0f090
to
2a25369
Compare
docs/environment-setup.md
Outdated
@@ -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 |
There was a problem hiding this comment.
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
Outdated
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` . |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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 ?
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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
2a25369
to
77d1d0e
Compare
77d1d0e
to
d9ef384
Compare
d9ef384
to
8c36004
Compare
docs/environment-setup.md
Outdated
@@ -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) |
There was a problem hiding this comment.
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
8c36004
to
8c49c90
Compare
@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 |
8c49c90
to
4ad9795
Compare
4ad9795
to
f1912a0
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good!
There was a problem hiding this 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.
docs/environment-setup.md
Outdated
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. |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Got it !
f1912a0
to
e410e34
Compare
Just gotta rebase it and we can merge :D |
e410e34
to
0bb62e4
Compare
@Grommers00 I just rebase my commit with the lastest commit on the master |
Issue This PR Addresses
Type of Change
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