Giter VIP home page Giter VIP logo

wsl-scripts's Introduction

vagrant-scripts repository

This is a scripts repository for setting up Linux OS. Scripts can be used for setting up bare-metal Linux OS, provisioning Linux VMs using Vagrant or setting up WSL distros.

Provisioning scripts are most of the time distro agnostic and work with the commonly used distros based on Fedora/RHEL, Debian/Ubuntu, Arch, OpenSUSE, Alpine with an emphasis on Fedora, Debian and Ubuntu which are the most extensively used distros by me.

Setup scenarios

Depending on the use case you can use scripts in the repository for different scenarios for setting up your Linux.

Windows Subsystem for Linux (WSL)

To set up the distro from scratch, run the .assets/scripts/wsl_setup.ps1 script, following the examples included in the script.
For more detailed instructions about setting up the WSL read the WSL Setup Guideline.
To learn about other WSL management scripts, please read the Other WSL scripts page.

VM provisioning with Vagrant

Set location to one of the Vagrantfiles depending on the used provider and target distro and run the command

PS C:\..\vagrant\hyperv\fedora> vagrant up

For more detailed instructions about provisioning VMs using Vagrant read the Vagrant Provisioning Guideline.

Already provisioned Linux OS

Run the .assets/scripts/linux_setup.sh script following the examples included in the script.
The script can be used to set up an already provisioned Linux OS, it may be a bare-metal OS, VM or WSL.

Repository directories structure

.
├── .assets         # all helper scripts and assets used for deployments
│   ├── config        # shell configuration assets
│   │   ├── bash_cfg    # bash aliases
│   │   ├── omp_cfg     # oh-my-posh themes
│   │   └── pwsh_cfg    # PowerShell profile and aliases functions
│   ├── config        # bash and PowerShell profiles along the themes, aliases, etc...
│   ├── playbooks     # ansible playbooks
│   ├── provision     # scripts used during vm provisioning for apps install, os setup, etc...
│   ├── scripts       # other scripts not used for setting up VMs or WSLs.
│   ├── tools         # tools scripts not related to Linux provisioning
│   └── trigger       # scripts used externally to setup the VM in hypervisor, etc...
├── docs            # repository documentation
└── vagrant         # Vagrant configuration files
    ├── hyperv        # Hyper-V provider VM deployments
    │   └── ...
    ├── libvirt       # Libvirt provider VM deployments
    │   └── ...
    └── virtualbox    # VirtualBox provider VM deployments
        └── ...

wsl-scripts's People

Contributors

szymonos avatar

Stargazers

Peter Abbasi avatar

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.