Skip to content

Instantly share code, notes, and snippets.

@HauptJ
Last active November 5, 2017 11:44
Show Gist options
  • Save HauptJ/5bbcfacb4b8e73cf3e85448733b208c0 to your computer and use it in GitHub Desktop.
Save HauptJ/5bbcfacb4b8e73cf3e85448733b208c0 to your computer and use it in GitHub Desktop.
Simple shell script to install Vagrant with Virtualbox development environment on Fedora 26
#!/bin/bash
# Simple shell script to install Vagrant with Virtualbox development environment on Fedora 26
set -e
# Any subsequent(*) commands which fail will cause the shell script to exit immediately
# Initial update
sudo dnf update -y
### Begin optional packages ###
# Install an easy to use text editor
sudo dnf install geany -y
# Install HexChat IRC client
sudo dnf install hexchat -y
# Install browsers
sudo dnf install chromium -y
sudo dnf install https://dl.google.com/linux/direct/google-chrome-stable_current_x86_64.rpm -y
# Install Simple Screen Recorder
# Add RPM Fusion repository
sudo rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
# Update to be safe
sudo dnf update -y
sudo dnf install simplescreenrecorder -y
# Install Synergy virtual KVM
# NOTE: This link will need to be manually updated for new releases
sudo dnf install https://binaries.symless.com/v1.8.8/synergy-v1.8.8-stable-25a8cb2-Linux-x86_64.rpm -y
### End optional packages ###
# Install git
sudo dnf install git -y
# Install Kernel Devel dependency to build kernel extensions for VirtualBox
# https://ask.fedoraproject.org/en/question/99415/i-cant-run-virtualbox-on-my-system-fedora-25/
sudo dnf install kernel-devel-$(uname -r) kernel-core-$(uname -r) -y
# Install Virtualbox 5.2
sudo dnf install http://download.virtualbox.org/virtualbox/5.2.0/VirtualBox-5.2-5.2.0_118431_fedora26-1.x86_64.rpm -y
sudo dnf update -y
# Rebuild Virtualbox Config
VBoxManage --version
sudo /sbin/vboxconfig
# Install Vagrant 2.0.1
sudo dnf install https://releases.hashicorp.com/vagrant/2.0.1/vagrant_2.0.1_x86_64.rpm -y
sudo dnf update -y
# Install Ansible
sudo dnf install ansible -y
# Create and move to DEV folder
mkdir vagrantDEV
cd vagrantDEV
# Clone project into DEV folder
git clone https://github.com/SIUE-DevOps/Vagrant_Docker_Cli.git
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment