6/10/2017 - 7:06 PM

Setting up a Vagrant VM for CentOS 7

Setting up a Vagrant VM for CentOS 7

#!/bin/env bash

echo 'source /opt/rh/devtoolset-6/enable' >> ~/.profile
echo 'source /opt/rh/python33/enable' >> ~/.profile

# rust

curl -sSf | sh -s -- -y
source ~/.profile

# LLVM has to be built from source?

# And set up YouCompleteMe

git clone $HOME/YouCompleteMe
cd $HOME/YouCompleteMe
git submodule update --init --recursive
./ --all
#!/bin/env bash

yum update -y

# Install the Parallels tools

mkdir /media/cdrom
mount /dev/cdrom /media/cdrom

# To get the version

yum install -y redhat-lsb

# Standard dev tools

yum groupinstall -y "Development tools"

# Install devtoolset-6

yum install -y centos-release-scl
yum install -y devtoolset-6

# Activate it

source /opt/rh/devtoolset-6/enable

# YCM Dependencies: cmake, python

yum install -y cmake
yum install -y python33 python33-devel
source /opt/rh/python33/enable

# golang, node, typescript

yum install -y epel-release
yum install -y golang

curl --silent --location | bash -
yum install -y nodejs

npm install -g typescript

# mono
yum install -y yum-utils
rpm --import ""
yum-config-manager --add-repo
yum install -y mono-devel

# rust, llvm not done as root
# -*- mode: ruby -*-
# vi: set ft=ruby :

Vagrant.configure(2) do |config| = "parallels/centos-7.3" "forwarded_port", guest: 80, host: 8080 "public_network"

  config.vm.provider "parallels" do |v|
    v.memory = 1024 * 8
    v.cpus = 6

    v.linked_clone = true

  config.vm.provision "shell", path: ""
  config.vm.provision "shell", path: "", privileged: false