-
Notifications
You must be signed in to change notification settings - Fork 8
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
Add guideline for setting up rails on windows through wsl2 #134
base: main
Are you sure you want to change the base?
Conversation
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
536796e
to
c0e470c
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.
This is good. It has some chances to get out of date, but even then, I think it should be easy enough to follow.
I'd love to see what @MikkelHansenAbtion thinks on this one
|
||
Open a new terminal window: | ||
|
||
1. Press the "⋁" button in the top of the terminal window. Then select "Ubuntu". |
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 this? :D
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.
Open a new terminal window: | ||
|
||
1. Press the "⋁" button in the top of the terminal window. Then select "Ubuntu". | ||
2. Press "0" to setup zsh with an empty `.zshrc`-file |
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.
Likely to change, but I guess that's fine. It'll be easy enough to follow
Then install asdf: | ||
|
||
```sh | ||
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0 |
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.
🤔 maybe a prior step to check what the latest tag is?
git clone https://github.com/asdf-vm/asdf.git ~/.asdf --branch v0.14.0 | |
You can check the latest version on Github and replace the version number. |
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 was myself not entirely happy about this, but it was what I could grab from the asdf docks.
1. Start VS Code | ||
2. Install the package "Remote Development", it will add a "Remote explorer" entry in the side bar | ||
3. In "Remote explorer", under "WSL Targets", open "Ubuntu" | ||
4. You will now be able to open any folder in the linux file system using "File" > "Open Folder". |
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.
Cool
@jeppester
I tried following this stackOverflow solution, with no change in output from the command. Then I tried uninstalling McAfee apps (firewall etc) after reading Why do I not have internet access from WSL? Then I exited WSL and entered
As Docker Desktop uses WSL to run, I have now turned it off to see if it interfered somehow, then started a new wsl shell and run step 2 again. Lets try reinstalling ubuntu:
Still the same stacktrace. Seems to me the issue on my machine has something to do with WSL settings / firewalls, and not the distro itself. Stacktrace:
|
Should this guide also propose a way to be able to run capybara browser non-headless, or is that already working somehow? |
I have not tested it, but according to the WSL docs, x-forwarding should work out of the box for WSL 2. |
No description provided.