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

Has anyone considered using linux terminal from microsoft online store, on windows systems? #851

Closed
davekk opened this issue Oct 9, 2018 · 9 comments
Labels
status:need more info More information needed

Comments

@davekk
Copy link

davekk commented Oct 9, 2018

https://www.microsoft.com/en-us/p/ubuntu/9nblggh4msv6?activetab=pivot:overviewtab

@gdevenyi
Copy link
Contributor

gdevenyi commented Oct 9, 2018

Happy to receive a report on if the lesson can be successfully followed in such a environment.

@gdevenyi gdevenyi added the status:need more info More information needed label Oct 9, 2018
@vwkoppejan
Copy link

Does this relate to the windows subsystem for linux? I use this a lot, also for swc.

I think most of the unix shell lessons can be done, git will be challenging due to the file mounting system windows using. I'm currently (as in right now) taking the instructor training. Could this be something I can elaborate upon and use for my checkout?

@rgaiacs
Copy link
Contributor

rgaiacs commented Jan 23, 2019

As far as I know, it only works in Windows 10 and many people are still using Windows 8 (need reference).

@vwkoppejan
Copy link

That's correct, wsl has been introduced as part of the windows 10, see below:

https://blogs.windows.com/buildingapps/2016/03/30/run-bash-on-ubuntu-on-windows/

@gdevenyi
Copy link
Contributor

So, I'll rephrase the question slightly. Does the Windows 10 subsystem for linux have a low enough barrier to install, and have all the tools to go through a workshop? If it does, we can add it as an option for people to use.

I'm window-less since Steam released Proton so I can't test.

@vwkoppejan
Copy link

vwkoppejan commented Jan 23, 2019

From the top of my head (needs references):

  • You need admin rights to enable developer/wsl options in the windows settings
  • You need the app store enabled (often not the case if the device is managed by an ict department). If not you can use power-shell
  • Installing a linux distribution like ubuntu, suse or debian is pretty easy if you install it as an app.
  • X support can be done using mobaxterm or paid software like x410.

It might not be something you want to handle on the morning of a workshop. Also, as I said earlier, the use of git in wsl has some very rough edges.

I'd be happy to write a short report to see if this can be included as an option in alpha/beta stage.

@trapido
Copy link

trapido commented Jan 23, 2019

Here is my experience with Linux subsystem on Windows 10:

  • Installation:
    I followed the instructions from one of the referenced sources. The first part worked, but running bash.exe produced the following error: “Windows subsystem for Linux has no installed distributions”, so I had to install Ubuntu from the Microsoft Store.

  • Exercises:
    I think one of the biggest challenges for a novice shell user will be to figure out how to move between Linux and Windows file systems (this is explained in "Install and Use the Linux Bash Shell on Windows 10" and "Using the Windows 10 Bash Shell" references, but both assume prior knowledge of Unix shell and seem too detailed). I ended up copying the “data-shell” directory from Windows Desktop to my Linux home directory, which I think might be the easiest option. I did all the exercises and did not encounter any other issues.

  • Conclusion:

Linux on Windows10 is a valid option and helps avoid some of the quirks of Git Bash on Windows. However, installation is complicated and the instructions are interspersed between several documents. I provided my steps below, if you think that might be helpful to share:

  1. Follow the steps in this document (Note: you should have the administrator rights).
  2. If you get an error when running bash.exe, go to Microsoft App Store and install Ubuntu from Canonical.
  3. Once the installation is complete, create a default UNIX user account (i.e., enter the user name you would like to use).
  4. Enter the following commands:
    $cd
    $cp -r /mnt/c/Users/<your_username>/Desktop/data-shell .

To open a terminal, run Ubuntu from the Windows start menu.

@vwkoppejan
Copy link

I still think there will be some challenges for the git lessons.

git on wsl does not deal well with mounted file systems., see wsl issues 184 and 2900

This is not a problem if wsl users clone a repo in their linux homes folder (or a path relative to it) but it might be if they copy a downloaded repo from another drive on their computer.

There are of course ways to fix the issues if they pop up but I think the offered solutions distract the users from the learning objectives of the lesson and might give them the wrong idea about git being very technical etc.

@gdevenyi
Copy link
Contributor

Thanks @vwkoppejan and @trapido for the feedback. I think at this point WSL isn't ready for use in SWC. We will close this for now. Feel free to reopen if there is major movement on this front.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status:need more info More information needed
Projects
None yet
Development

No branches or pull requests

5 participants