Code Monkey home page Code Monkey logo

vagrant's Introduction

Vagrant

Reproducible and portable development environment

Vagrant configuration for a Ubuntu virtual machine with a bunch of basic, necessary and useful development related packages preinstalled mostly for C.

Prerequisites

Download and install Vagrant and VirtualBox

Provisioning

The packages that Vagrant installs in the VM on the first startup (and on each provisioning) can be browsed in / commented out from / added to instpkgs.sh.

The setlimits.sh shell script is also executed by vagrant on provisioning (like 1st startup) in order to have some system wide settings done regarding the core file generating and message queue limits. Feel free to comment them out or modify as needed.

Run

Once Vagrant and VirtualBox are installed, and optionally the modifications in the configuration file and/or in the provisioning scripts are done, the Virtual Machine can be booted up from its directory.

git clone https://github.com/xsnpdngv/vagrant.git
cd vagrant
vagrant up

After the VM is booted up, it can be reached through either the builtin ssh command: vagrant ssh, or with the standard ssh program.

ssh -p 2222 ubuntu@localhost

X11 forward

In order to have X11 forwarded to the host machine from the guest OS, the host OS first has to run an X server. For Windows MobaXterm might be a good and lightweight choice as such; for MacOS XQuartz is the standard way; while on Linux having an X server is not a question.

After having the X server run on the host, the VM has to be ssh'd with X11 forwarding option enabled (the Vagrant configuration enables this kind of access), and a program with GUI can be simply run and displayed...

ssh -X -p 2222 ubuntu@localhost
xterm &

vagrant's People

Contributors

xsnpdngv avatar

Watchers

 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.