Windows Subsystem for Linux


#1

I am working on the todo tutorial.

My environment:
Windows 10 with WSL (Ubuntu)

My problem:
meteor failed on start mongod for mongod does not support NTFS (I created the project on Desktop), so I had to create the project in Ubuntu, everything works fine. But there is another problem, since it is not recommended editing Linux files by Windows app, I cannot use my favorite text editor in Windows to code.

Is there any solution? I want to have meteor in Ubuntu and code with Windows text editor (VS code)


#2

If you’re just starting, forget running on a VirtualBox Ubuntu Server, and just get the Windows Meteor server up and running.

Meteor provides you with very simple methods to run Meteor, namely, Meteor Galaxy for hosting. Forget what you know, and embrace Meteor - if you’re going to use Meteor.

You can eventually come back to self hosting, but it’s super hard. Good luck with your Windows install, and welcome to Meteor!


#3

I did that and it works fine :

  1. install Meteor in the ubuntu subsystem
  2. from windows, checkout your code somewhere in the ntfs filesystem (let’s say c:\myMeteorProject)
  3. now go back to ubuntu and create a directory :
mkdir source
  1. then symlink your new directory to your host (windows) directory :
ln -s source /mnt/c/myMeteorProject
  1. Enjoy editing your code from your favorite editor in Windows while running Meteor from the ubuntu subsystem

PS : I had to use my own mongo server instead of the one embedded within Meteor but I don’t know if it is really necessary


#4

there’s nothing wrong with developing meteor purely in windows - also when deploying to a linux server, may it be self hosted or galaxy. i’ve been doing that for two years. so if you prefer windows for developing there’s no reason to use a virtual ubuntu at all.
If you prefer linux for developing there’s also no need to run windows just because of vs code :slight_smile: microsoft provides up-to-date versions for linux and even for mac.