Skip to content

Instantly share code, notes, and snippets.

@oldsharp
Last active January 11, 2016 10:49
Show Gist options
  • Save oldsharp/1a0750a421e906cd8d4f to your computer and use it in GitHub Desktop.
Save oldsharp/1a0750a421e906cd8d4f to your computer and use it in GitHub Desktop.
#!/bin/sh
#
# VirtualBox installing script for Oracle Linux 7 ("OL7") | Red Hat
# Enterprise Linux 7 ("RHEL7") | CentOS 7.
#
# Author: Ray Chen <oldsharp@gmail.com>
# License: Public Domain
# Download the PRM package:
wget http://download.virtualbox.org/virtualbox/5.0.12/VirtualBox-5.0-5.0.12_104815_el7-1.x86_64.rpm
# NOTE: You may need to add an EPEL source before resolving dependency.
# To add the EPEL source from Ali-OSM, follow the instruction
# http://mirrors.aliyun.com/help/epel
#
# Dependency:
yum install gcc make patch dkms libgomp kernel-headers kernel-devel fontforge \
binutils glibc-headers glibc-devel SDL-devel qt-devel libvpx-devel
# NOTE: Make sure you are using correct source path based on your host.
#
# Set env var:
export KERN_DIR=/usr/src/kernels/3.10.0-327.3.1.el7.x86_64
# Install the RPM package:
rpm -i /path/to/VirtualBox-5.0-5.0.12_104815_el7-1.x86_64.rpm
#!/bin/sh
#
# VirtualBox installing script for Ubuntu 14.04 ("Trusty") | 14.10
# ("Utopic") | 15.04 ("Vivid").
#
# Author: Ray Chen <oldsharp@gmail.com>
# License: Public Domain
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment