Instantly share code, notes, and snippets.

Embed
What would you like to do?
VirtualBox 5.2 installation in Ubuntu Bionic
#!/bin/bash
# Agregar repositorio de VirtualBox
echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" >> /etc/apt/sources.list.d/virtualbox.list
# Agregar keys de los packages de Oracle
wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -
wget -q https://www.virtualbox.org/download/oracle_vbox.asc -O- | apt-key add –
# Actualizar lista de packages
apt-get update
# Instalar dependencias
apt-get -y install gcc make linux-headers-$(uname -r) dkms
# Instalar VirtualBox
apt-get -y install virtualbox-5.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment