Search
 
SCRIPT & CODE EXAMPLE
 

SHELL

install virtualbox

sudo nano /etc/apt/sources.list.d/virtualbox.list
and change:

this:
deb https://download.virtualbox.org/virtualbox/debian bionic contrib
to:
deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian bionic contrib

#Or open terminal an execute the following command:
echo "deb [arch=amd64] https://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib" | sudo tee /etc/apt/sources.list.d/virtualbox.list


#Or run this bash script to install virtualbox and its dependencies from Oracle repository (tested in Ubuntu 18.04/20.04/22.04-unconfirmed):
sudo chmod +x VboxInstall.sh && sudo ./VboxInstall.sh

#!/bin/bash
# Oracle Repository
# Download and install .asc
wget -O- https://www.virtualbox.org/download/oracle_vbox_2016.asc | gpg --dearmor | tee /usr/share/keyrings/virtualbox.gpg &> /dev/null
# add repo
echo deb [arch=amd64 signed-by=/usr/share/keyrings/virtualbox.gpg] http://download.virtualbox.org/virtualbox/debian $(lsb_release -sc) contrib | tee /etc/apt/sources.list.d/virtualbox.list/virtualbox.list
apt update
# install vbox
apt -y install linux-headers-$(uname -r) build-essential gcc make perl dkms bridge-utils
apt -y install virtualbox-6.1
dpkg --configure -a && apt-get -f -y install
# install Extension Pack
export VBOX_VER=`VBoxManage --version | awk -Fr '{print $1}'`
wget -c http://download.virtualbox.org/virtualbox/$VBOX_VER/Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VER.vbox-extpack
VBoxManage extpack install Oracle_VM_VirtualBox_Extension_Pack-$VBOX_VER.vbox-extpack
# configure
usermod -a -G vboxusers $USER
update-grub
/sbin/vboxconfig
echo "Done. Reboot"
# check service after reboot
systemctl status vboxdrv
Comment

install virtualbox

sudo dnf -y install @development-tools
sudo dnf -y install kernel-headers kernel-devel dkms elfutils-libelf-devel qt5-qtx11extras
Comment

PREVIOUS NEXT
Code Example
Shell :: shell search history 
Shell :: execute script in linux 
Shell :: how to remove package files in linux 
Shell :: gitlab ci echo variable 
Shell :: bash compare two strings 
Shell :: apache airflow docker 
Shell :: jq filter by key 
Shell :: bash commands guide 
Shell :: enable ssh on ubuntu 20.04 
Shell :: install pydotplus - tox by pip ubuntu 
Shell :: How to connect to remote computer with public and local ip 
Shell :: sudo -s su root in one line 
Shell :: get total hdd space linux 
Shell :: LF will be replaced by CLRF 
Shell :: hsp hFP ubuntu "solved" 
Shell :: reload swi prolog 
Shell :: Installing gitflow locally 
Shell :: bash leerzeichen entfernen 
Shell :: supprimer fichier selon nom linux 
Shell :: agregar sudoers a user centos 7 
Shell :: get last line from string powershell 
Shell :: Set email address for LFD alerts 
Shell :: how to install Klavaro 
Shell :: jbl bt wireless headphones not working in fedora linux 
Shell :: woeusb open command 
Shell :: def_daemon[19685]: segfault at 7f4d6811b7f0 ip 00007f4d6811b7f0 sp 00007f4d65bcc808 error 15 
Shell :: programming scares me 
Shell :: sed match number of unknow digits 
Shell :: launch tensorboard remotely 
Shell :: powershell iif 
ADD CONTENT
Topic
Content
Source link
Name
7+6 =