Coder Social home page Coder Social logo

gccpacman.github.io's People

Contributors

gccpacman avatar

Watchers

 avatar  avatar

gccpacman.github.io's Issues

WSL无缝使用windows的Vagrant

同时安装windows和wsl下的linux版本的vagrant,配置环境变量就可以使用。linux下vagrant的好处很多,首先文件的换行和权限的烦恼没有了,然后可以使用一些revision工具,例如ansible,在vagrantfile初始化的时候带来很多好处

下载地址:https://www.vagrantup.com/downloads.html

  1. Windows下安装就直接exe了

  2. Linux我的是Ubuntu,因此就下官网的deb包

    dpkg -i vagrant_amd64.deb

  3. 需要在Linux的Home目录下的.bashrc或者.zshrc添加以下行,这样可以把windows的路径转换成WSL里的Linux路径:

export VAGRANT_WSL_ENABLE_WINDOWS_ACCESS="1"

  1. 大功告成,在wsl输入vagrant,如果出现帮助信息就说明配置成功了

PS: 需要注意的是,wsl里的vagrant,不能读取Linux下的Vagrantfile,需要Vagrantfile存在于windows文件系统,因为本质上vagrant还是在windows上执行,调用Virtualbox等虚拟机的SDK,也就是说你的Vagrantfile,必须位于类似于\mnt\c\这样的windows挂载盘符目录下。

Also see:
https://www.vagrantup.com/docs/other/wsl.html

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.