VirtualBox

Changes between Version 2 and Version 3 of Ticket #18766, comment 31


Ignore:
Timestamp:
Jul 29, 2019 9:03:47 PM (5 years ago)
Author:
maravento

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #18766, comment 31

    v2 v3  
    88
    99PD: For Ubuntu/Mint and derivatives i recommend using the script described in this post (backup your configurations and VMs before running it): [https://askubuntu.com/questions/1029198/skipping-acquire-of-configured-file-contrib-binary-i386-packages-as-repository/1029865#1029865]
     10
     11{{{
     12sudo chmod +x VboxInstall.sh && sudo ./VboxInstall.sh
     13}}}
     14
     15Bash Content:
     16{{{
     17#!/bin/bash
     18while true; do
     19read -p "Do you want to install Virtualbox? (y/n)" answer
     20case $answer in
     21  [Yy]* )
     22# execute command yes
     23echo "Virtualbox Pack setup..."
     24echo "deb http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | tee /etc/apt/sources.list.d/virtualbox.list
     25wget -q https://www.virtualbox.org/download/oracle_vbox_2016.asc -O- | apt-key add -
     26vboxmanage list runningvms | sed -r 's/.*\{(.*)\}/\1/' | xargs -L1 -I {} VBoxManage controlvm {} savestate
     27killall vboxwebsrv && pkill virtualbox
     28systemctl stop vboxweb-service.service
     29export VBOX_VER=`VBoxManage --version|awk -Fr '{print $1}'`
     30VBoxManage extpack uninstall "Oracle VM VirtualBox Extension Pack"
     31apt -y autoremove --purge virtualbox*
     32rm -rf /etc/vbox /opt/VirtualBox /usr/lib/virtualbox ~/.config/VirtualBox
     33apt update && apt autoclean && apt clean && apt autoremove && apt-get -y dist-upgrade && apt -y --fix-broken install
     34apt -y install virtualbox-6.0 bridge-utils
     35dpkg --configure -a && apt-get -f -y install
     36wget -c http://download.virtualbox.org/virtualbox/$VBOX_VER/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VER.vbox-extpack
     37VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VER.vbox-extpack
     38usermod -a -G vboxusers $USER
     39systemctl enable vboxweb-service && systemctl start vboxweb-service
     40update-grub
     41vboxconfig
     42echo "Done"
     43    break;;
     44        [Nn]* )
     45    # execute command no
     46        break;;
     47    * ) echo; echo "Select: YES (y) or NO (n)";;
     48 esac
     49done
     50}}}
     51

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette