Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora Resources > Guides & Solutions (Not For Questions)
FedoraForum Search

Forgot Password? Join Us!

Guides & Solutions (Not For Questions) Post your guides here (No links to Blogs accepted). You can also append your comments/questions to a guide, but don't start a new thread to ask a question. Use another forum for that.

Reply
 
Thread Tools Search this Thread Display Modes
  #76  
Old 19th January 2016, 09:59 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: In your closet
Posts: 15,500
linuxfedorafirefox
Re: Oracle VirtualBox installation script

Quote:
Originally Posted by roundboy View Post
Hi Glenn,

I had 2 problems with the script, both easy to fix:

1) Cut and past of the script into a 22_oracle_virtualbox.sh file using gedit. The copy included a space at the end of each line. For some reason COMMENT didn't like this. I do not know why. All I did was remove the spaces at the end of lines 11 thru 21.

2) The following invocation of curl on line 33 is causing the problem.
curl -Os http://download.virtualbox.org/virtualbox/LATEST.TXT

I took out the "" and "" references and the script worked for me.

I had fun debugging this script. I haven't done this in at least 10 years and I now know how the rust builds up in the brain.

Great script. Works great. Thanks.

Dave
Maybe copy/paste isn't the best method for passing a script to one another? File uploads are broken within the forum else I'd upload a .tar.gz file of same.
__________________
Glenn
The Bassinator
© ®
Reply With Quote
  #77  
Old 2nd July 2016, 11:05 PM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: In your closet
Posts: 15,500
linuxfedorafirefox
Re: Oracle VirtualBox installation script

Hey today! I maintain this script for my own amusement. Here's the latest update. The script worked well, minutes ago, for Fedora 24 Mate (x86_64).

PHP Code:
#!/bin/bash
# 22_oracle_virtualbox.sh

# Glenn A. Johnson
# Started January 18, 2015
# Updated July 2, 2016

# A tip of the fedora to Fedora Forum members Sea, Skull One, marko, Dangermouse
# for help with code

<< COMMENT
 
Install and configure the Oracle version of VirtualBox for Fedora 22 or later.
 * 
Install the Oracle VirtualBox Extension Pack.
 * 
Handle all platformsi686PAE and x86_64 .
 * 
Clean up when finished.
 * 
Remove previously installed VirtualBox.
 * 
Support color no color (sudo NOCOLOR=1 22_oracle_virtualbox.sh)
COMMENT

# 07.02.16 - Just checking
# 05.04.16 - Never ending version updates.
# 01.30.16 - Never ending version updates.
# 01.24.16 - Never ending version updates.
# 01.05.16 - Checking in.
# 12.27.15 - VirtualBox version update
# 12.15.15 - VirtualBox version update
# 11.13.15 - Constantly updating the current VirtualBox versioning numbers.
# 10.21.15 - Constantly updating the current VirtualBox versioning numbers.
# 10.04.15 - Constantly updating the current VirtualBox versioning numbers.
# 09.13.15 - Adding Fedora 23 to the mix, I think...
# 09.12.15 - Constantly changing VirtualBox versions
# 07.22.15 - Decided to support only the current release of Fedora
# 07.19.15 - No longer need YUM since we're Fedora 21 and later.
# 07.19.15 - Got me a couple errors to deal with ...
# 07.09.15 - Fedora 21 and 22 only. No more Fedora 20.
# 07.09.15 - Version 5.0 ??
# 06.08.18 - Working with the Fedora 22 rpm
# 06.07.17 - Huh?
# 05.14.15 - Add feature to import and install the Oracle public key
# 05.14.15 - Update VirtualBox version to 4.3.28
# 05.12.15 - Test run under Fedora 22 Beta. 
# 04.26.15 - Can I add an uninstall (safely) feature?
# 04.26.15 - Testing... 1,2,3
# 03.26.15 - Cosmetic changes and version update
# 03.15.15 - Tested under Fedora 22 Workstation Alpha (x86_64).
# 03.14.15 - New VirtualBox version
# 02.25.15 - Betterer code to discover kernel arch.
# 02.23.15 - New code to discover kernel arch
# 02.22.15 - Seems that kernel arch discovery is not working.
# 02.21.15 - New version of VirtualBox

<< COMMENT
Additional packages needed 
for a successful install of VirtualBox over the different platformsx86_64i686 and i686+PAE include
kernel-devel-$(uname -r), gccqtqt-x11libpng15libXmulibXtlibvpxcompat-libvpx1dkms, and SDL
COMMENT

# Determine OS platform and install correct packages.
# PAE or no?
GETVERS=$(uname -grep "PAE")
if [[ 
$GETVERS ]] ; then
    PACKFILES
="kernel-PAE-devel gcc qt qt-x11 libpng15 libXmu libXt libvpx compat-libvpx1 dkms SDL"
else
    
PACKFILES="kernel-devel-$(uname -r) gcc qt qt-x11 libpng15 libXmu libXt libvpx compat-libvpx1 dkms SDL"
fi

# Determine the current version of VirtualBox
curl -Os [url]http://download.virtualbox.org/virtualbox/LATEST.TXT[/url]
current_version=$(cat LATEST.TXT)
echo 
$current_version
rm LATEST
.TXT

# We can easily make changes to the source file versions by changing a few variables below.
# Most recent is [url]http://download.virtualbox.org/virtualbox/5.0.10/VirtualBox-5.0-5.0.10_108355_fedora22-1.x86_64.rpm[/url]
# [url]http://download.virtualbox.org/virtualbox/5.0.10/VirtualBox-5.0-5.0.10_108355_fedora22-1.x86_64.rpm[/url]
# [url]http://download.virtualbox.org/virtualbox/5.0.20/VirtualBox-5.0-5.0.20_108355_fedora22-1.x86_64.rpm[/url]

VB_REL_VER="5.0-"$current_version"_108355"
VB_EXT_VER="$current_version"-108355
VB_REL_DIST
="fedora24-1"
VBOX_SRC_FILE="VirtualBox-${VB_REL_VER}_${VB_REL_DIST}."`uname -m`".rpm" 
VBOX_EXT_SRC="Oracle_VM_VirtualBox_Extension_Pack-${VB_EXT_VER}.vbox-extpack"
SRC_PATH="http://download.virtualbox.org/virtualbox/$current_version"
PUB_KEY="oracle_vbox.asc"

# Color definitions; the variables are null if the option NOCOLOR is set.
# Thanks Skull One!

if [ -"$NOCOLOR]; then
    OKB
=$(tput bold;tput setaf 6)
    
OK=$(tput setaf 6)
    
ERRB=$(tput bold;tput setaf 1)
    
ERR=$(tput setaf 1)
    
RST=$(tput sgr0)
else
    
OKB=
    
OK=
    
ERRB=
    
ERR=
    
RST=
fi

# Need elevated permissions at some point, might as well do it now.
if [[ $EUID -ne 0 ]] ; then
    clear
       printf $OK
"You're going to need elevated permissions at some point. Let's get that out of the way now.\nUse \"sudo\" or \"su -c\"\n"$RST
       
exit 0
fi

# Release 22 or later
function get_release()
{
    
printf $OK"Checking Fedora release version... "$RST
    RELNUM
=$(rpm -qa --queryformat '%{version}\n' fedora-release)
    if [[ 
$RELNUM -lt "22" ]] ; then
        clear
        printf $ERR
"This script is for Fedora release 22 or later.\n"$RST
           
exit 0
    
else printf $OK"Fedora $RELNUM $OKB✓"$RST
fi
echo
}

# Clear screen and print a headline.
function headline()
{
    
clear
    printf $OK
"==>$OKB VirtualBox installation script for Fedora 22.\n"$RST
    printf $OK
"==>$OKB Oracle VirtualBox and Oracle VirtualBox Extension Pack will be installed.\n"$RST
    printf $OK
"==>$OKB VirtualBox release $VB_REL_VER\n"$RST
}

# Remove Oracle VirtualBox source files if they exist in the current working directory.
function remove_source()
{
    for 
i in $VBOX_SRC_FILE $VBOX_EXT_SRC $PUB_KEY; do
        
rm -f $i
    done
}

# Remove any installed version of VirtualBox.
function remove_fed_vbox()
{
VBOX_INSTALLED=$(rpm -qa grep VirtualBox)
if [[ 
$VBOX_INSTALLED ]] ; then
    printf $OK
"Removing previously installed instance of VirtualBox. Please wait..."$RST
    dnf 
--q erase $VBOX_INSTALLED 2>/dev/null
    printf $OKB
" ✓\n\n"$RST
fi
}

# Download and import the Oracle public key.
function get_public_key()
{
printf $OK"Installing the Oracle public key.\n"$RST
curl 
-Os https://www.virtualbox.org/download/$PUB_KEY
rpm --import $PUB_KEY
}

# Install Oracle VirtualBox from the downloaded source RPM.
function install_source()
{
    if [[ -
f $VBOX_SRC_FILE ]] ; then
        printf $OK
"Installing Oracle VirtualBox\n"$RST
        rpm 
-Uvh $VBOX_SRC_FILE
    
else
        
printf $ERR"The source file missing.\nThere was an error downloading the file.\n"$RST
        
exit 0
    fi
}

# Install the Oracle VirtualBox Extension Pack.
function install_extpack()
{
    if [[ -
f $VBOX_EXT_SRC ]] ; then
        
echo $OK"Installing Oracle VirtualBox extension pack."$RST
        VBoxManage extpack install 
--replace $VBOX_EXT_SRC
    
else
        
printf $ERR"Oracle VirtualBox extension pack source file missing!\n"$RST
    fi
}

# Get any Fedora packages typically needed to complete the VirtualBox installation without errors.
function get_packages()
{
printf $OK"Checking for necessary packages..."$RST
echo
NEWPKGS=""
for i in $PACKFILES ; do
    
printf $OK"==> $i: "
       
rpm -q $i > /dev/null
    
if [ $? -eq 0 ] ; then
        printf $OKB
"✓\n"$RST
    
else
        
printf $ERR"✗\n"$RST
        NEWPKGS
="${NEWPKGS} $i"
    
fi
done
if [ -"${NEWPKGS}]; then
    
echo --n $OK"==> Installing necessary packages$OKB "${NEWPKGS}"... "$RST
    dnf 
--q install ${NEWPKGS2>/dev/null
       
echo -e $OKB"\nDone installing packages.\n"$RST
else
       
printf $OK"==>$OKB Nothing new to install.\n"$RST
fi
}

# Test retrieval of any Fedora packages typically needed to complete the VirtualBox installation without errors.
function test_get_packages()
{
printf $OK"Checking for necessary packages..."$RST
echo
NEWPKGS=""
for i in $PACKFILES ; do
    
printf $OK"==> $i: "
       
rpm -q $i > /dev/null
    
if [ $? -eq 0 ] ; then
        printf $OKB
"✓\n"$RST
    
else
        
printf $ERR"✗\n"$RST
        NEWPKGS
="${NEWPKGS} $i"
    
fi
done
if [ -"${NEWPKGS}]; then
    
echo --n $OK"==> Packages that need to be installed are: $OKB "${NEWPKGS}"... "$RST
    
echo
else
       
printf $OK"==>$OKB Nothing new to install.\n"$RST
    
echo
fi
}

# Get the VirtualBox source files from Oracle
function get_source()
{
    
printf $OK"Getting the VirtualBox source RPM from the Oracle download site..."$RST
    remove_source
    curl 
-Os $SRC_PATH/$VBOX_SRC_FILE
    printf $OKB
" ✓\n"$RST
    printf $OK
"Getting the VirtualBox Extension Pack source file..."$RST
    curl 
-Os $SRC_PATH/$VBOX_EXT_SRC
    printf $OKB
" ✓\n"$RST
echo
}

# The script run has completed. Print a short message stating same.
function script_complete()
{
    
#remove_source
    
printf $OKB"Oracle VirtualBox is now installed.\n"
    
printf $OKB"Script run complete.\n"$RST
}

# The test script run has completed.
function script_test_complete()
{
    
remove_source
    printf $OKB
"This script test is now complete.\n"
    
#printf $OKB"All necessary Fedora packages are installed.\n"$RST
}

# Script execution has been cancelled by the user.
function script_cancel()
{
    
clear
    printf $OK
"Script execution cancelled.\n"$RST
}

# Testing only. Show value of all variables
function show_vars()
{
        echo
        
printf $OK"VB_REL_VER is $OKB$VB_REL_VER\n"$RST
        printf $OK
"VB_EXT_VER is $OKB$VB_EXT_VER\n"$RST
        printf $OK
"VB_REL_DIST is $OKB$VB_REL_DIST\n"$RST
        printf $OK
"VBOX_SRC_FILE is $OKB$VBOX_SRC_FILE\n"$RST
        printf $OK
"VBOX_EXT_SRC is $OKB$VBOX_EXT_SRC\n"$RST
        printf $OK
"SRC_PATH is $OKB$SRC_PATH\n"$RST
}

function 
testonly()
{
clear
printf $ERRB
"===== TEST ONLY. NO PACKAGES ARE BEING INSTALLED.=====\n"$RST
}

# Main script flow
function menu()
{
clear
headline
printf $OK
"\nFor this script to succeed you need to be running the newest available and installed kernel.\n\nIf you aren't running the newest available and installed kernel please exit this script\nand update your system. Then boot into the newest kernel and run this script again.\n"$RST
printf $OKB
"\nShall we continue? <y/n/t/v> "$RST
read yn
case $yn in
    y
)    get_release
        remove_fed_vbox
           get_packages
        get_public_key
           get_source
           install_source
           install_extpack
        remove_source
           script_complete
           
;;

    
n)    script_cancel
           
exit 0
           
;;
# Test menu entry used for development. End user should ignore this menu option.
# All this does is test for missing packages and test the download process for VirtualBox and GuestAdditions.
    
t)     testonly 
        get_release
           test_get_packages
           get_source
           script_test_complete
        
;;
# Test menu entry used for development. End user should ignore this menu option.
# All this does is show the current value of all of the variables.
    
v)  get_release
        show_vars
        
;;
    *)    
script_cancel
           
exit 0
           
;;
esac
}
menu    # Call the main menu. 


So, while I'm not the most elegant script writer, it works. There are a few tweaks that I'd like to make. Just can't figure out how. Maybe I'll request some help soon.
__________________
Glenn
The Bassinator
© ®
Reply With Quote
  #78  
Old 18th December 2016, 12:06 AM
glennzo Online
Un-Retired Administrator
 
Join Date: Mar 2004
Location: In your closet
Posts: 15,500
linuxfedorafirefox
Re: Oracle VirtualBox installation script

Latest working script. Fedora 25.

PHP Code:
#!/bin/bash
# 25_oracle_virtualbox.sh
# This script is for Fedora 25 only at this time

# Glenn A. Johnson
# Started January 18, 2015
# Updated December 11, 2016

<< COMMENT
 
Install and configure the Oracle version of VirtualBox for Fedora 22 or later.
 * 
Install the Oracle VirtualBox Extension Pack.
 * 
Handle all platformsi686PAE and x86_64 .
 * 
Clean up when finished.
 * 
Remove previously installed VirtualBox.
 * 
Support color no color (sudo NOCOLOR=1 22_oracle_virtualbox.sh)
COMMENT

<< COMMENT
Additional packages needed 
for a successful install of VirtualBox over the different platformsx86_64i686 and i686+PAE include
kernel-devel-$(uname -r), curl gccqtqt-x11libpng15libXmulibXtlibvpxcompat-libvpx1dkmsSDL and wget

qt5
-qtx11extras (this brings in other packages like qt5-qtbase qt5-qtbase-gui amongst others)
libpython2.7.so.1.0()(64bit) - WellFedora 24 ships with Python35
python
(abi) = 2.7 WellFedora 24 ships with Pythin35
COMMENT

# Determine OS platform and install correct packages.
# PAE or no?
GETVERS=$(uname -grep "PAE")
if [[ 
$GETVERS ]] ; then
    PACKFILES
="kernel-PAE-devel curl dkms gcc libpng15 libXmu libXt libvpx qt qt-x11 qt5-qtx11extras SDL wget"
else
    
PACKFILES="kernel-devel-$(uname -r) curl dkms gcc libpng15 libXmu libXt libvpx qt qt-x11 qt5-qtx11extras SDL wget"
fi

# Determine the current version of VirtualBox
curl_installed=$(rpm -qa grep curl)
if [[ ! 
$curl_installed ]] ; then
    printf 
"Installing package curl. Please wait ..."
    
dnf --q install curl
    
echo
fi
curl 
-Os [url]http://download.virtualbox.org/virtualbox/LATEST.TXT[/url]
current_version=$(cat LATEST.TXT)
echo 
$current_version
rm LATEST
.TXT

# We can easily make changes to the source file versions by changing a few variables below.
# Most recent is [url]http://download.virtualbox.org/virtualbox/5.1.10/VirtualBox-5.1-5.1.10_112026_fedora25-1.x86_64.rpm[/url]

VB_REL_VER="5.1-"$current_version"_112026"
VB_EXT_VER="$current_version"-112026
VB_REL_DIST
="fedora25-1"
VBOX_SRC_FILE="VirtualBox-${VB_REL_VER}_${VB_REL_DIST}."`uname -m`".rpm" 
VBOX_EXT_SRC="Oracle_VM_VirtualBox_Extension_Pack-${VB_EXT_VER}.vbox-extpack"
SRC_PATH="http://download.virtualbox.org/virtualbox/$current_version"
PUB_KEY="oracle_vbox.asc"

# Color definitions; the variables are null if the option NOCOLOR is set.
# Thanks Skull One!

if [ -"$NOCOLOR]; then
    OKB
=$(tput bold;tput setaf 6)
    
OK=$(tput setaf 6)
    
ERRB=$(tput bold;tput setaf 1)
    
ERR=$(tput setaf 1)
    
RST=$(tput sgr0)
else
    
OKB=
    
OK=
    
ERRB=
    
ERR=
    
RST=
fi

# Need elevated permissions at some point, might as well do it now.
if [[ $EUID -ne 0 ]] ; then
    clear
       printf $OK
"You're going to need elevated permissions at some point. Let's get that out of the way now.\nUse \"sudo\" or \"su -c\"\n"$RST
       
exit 0
fi

# Redhat derivatives and release 24 only
function get_release()
{
    if [[ ! -
/etc/redhat-release ]] ; then
    printf $ERRB
"This script is for Redhat derivatives only.\n"$RST
    
exit 0
else
    
printf $OK"Checking Fedora release version... "$RST
    RELNUM
=$(rpm -qa --queryformat '%{version}\n' fedora-release)
    if [[ 
$RELNUM -lt "25" ]] ; then #!= "24"
        
clear
        printf $ERR
"This script is for Fedora release 25 only.\n"$RST
           
exit 0
    
else printf $OK"Fedora $RELNUM $OKB✓"$RST
fi
fi
echo
}

# Clear screen and print a headline.
function headline()
{
    
clear
    printf $OK
"==>$OKB VirtualBox installation script for Fedora Linux.\n"$RST
    printf $OK
"==>$OKB Oracle VirtualBox and Oracle VirtualBox Extension Pack will be installed.\n"$RST
    printf $OK
"==>$OKB VirtualBox release $VB_REL_VER\n"$RST
}

# Remove Oracle VirtualBox source files if they exist in the current working directory.
function remove_source()
{
    for 
i in $VBOX_SRC_FILE $VBOX_EXT_SRC $PUB_KEY; do
        
rm -f $i
    done
}

# Remove any installed version of VirtualBox.
function remove_fed_vbox()
{
VBOX_INSTALLED=$(rpm -qa grep VirtualBox)
if [[ 
$VBOX_INSTALLED ]] ; then
    printf $OK
"Removing previously installed instance of VirtualBox. Please wait..."$RST
    dnf 
--q erase $VBOX_INSTALLED 2>/dev/null
    printf $OKB
" ✓\n\n"$RST
fi
}

# Download and import the Oracle public key.
function get_public_key()
{
curl_installed=$(rpm -qa grep curl )
if [[ ! 
$curl_installed ]] ; then
    printf $OK
"Installing package curl. Please wait ..."$RST
    dnf 
--q install curl
    
echo
fi
printf $OK
"Installing the Oracle public key ... ✓\n"$RST
curl 
-Os https://www.virtualbox.org/download/$PUB_KEY
rpm --import $PUB_KEY
}

# Install Oracle VirtualBox from the downloaded source RPM.
function install_source()
{
    if [[ -
f $VBOX_SRC_FILE ]] ; then
        printf $OK
"Installing Oracle VirtualBox\n"$RST
        rpm 
-Uvh $VBOX_SRC_FILE
    
else
        
printf $ERR"The source file missing.\nThere was an error downloading the file.\n"$RST
        
exit 0
    fi
}

# Install the Oracle VirtualBox Extension Pack.
function install_extpack()
{
    if [[ -
f $VBOX_EXT_SRC ]] ; then
        
echo $OK"Installing Oracle VirtualBox extension pack."$RST
        VBoxManage extpack install 
--replace $VBOX_EXT_SRC
    
else
        
printf $ERR"Oracle VirtualBox extension pack source file missing!\n"$RST
    fi
}

# Get any Fedora packages typically needed to complete the VirtualBox installation without errors.
function get_packages()
{
printf $OK"Checking for necessary packages..."$RST
echo
NEWPKGS=""
for i in $PACKFILES ; do
    
printf $OK"==> $i: "
       
rpm -q $i > /dev/null
    
if [ $? -eq 0 ] ; then
        printf $OKB
"✓\n"$RST
    
else
        
printf $ERR"✗\n"$RST
        NEWPKGS
="${NEWPKGS} $i"
    
fi
done
if [ -"${NEWPKGS}]; then
    
echo --n $OK"==> Installing necessary packages$OKB "${NEWPKGS}"... "$RST
    dnf 
--q install ${NEWPKGS2>/dev/null
       
echo -e $OKB"\nDone installing packages.\n"$RST
else
       
printf $OK"==>$OKB Nothing new to install.\n"$RST
fi
}

# Test retrieval of any Fedora packages typically needed to complete the VirtualBox installation without errors.
function test_get_packages()
{
printf $OK"Checking for necessary packages..."$RST
echo
NEWPKGS=""
for i in $PACKFILES ; do
    
printf $OK"==> $i: "
       
rpm -q $i > /dev/null
    
if [ $? -eq 0 ] ; then
        printf $OKB
"✓\n"$RST
    
else
        
printf $ERR"✗\n"$RST
        NEWPKGS
="${NEWPKGS} $i"
    
fi
done
if [ -"${NEWPKGS}]; then
    
echo --n $OK"==> Packages that need to be installed are: $OKB "${NEWPKGS}"... "$RST
    
echo
else
       
printf $OK"==>$OKB Nothing new to install.\n"$RST
    
echo
fi
}

# Get the VirtualBox source files from Oracle
function get_source()
{
    
printf $OK"Getting the VirtualBox source RPM from the Oracle download site..."$RST
    remove_source
    curl 
-Os $SRC_PATH/$VBOX_SRC_FILE
    printf $OKB
" ✓\n"$RST
    printf $OK
"Getting the VirtualBox Extension Pack source file..."$RST
    curl 
-Os $SRC_PATH/$VBOX_EXT_SRC
    printf $OKB
" ✓\n"$RST
echo
}

# The script run has completed. Print a short message stating same.
function script_complete()
{
    
#remove_source
    
printf $OKB"Oracle VirtualBox is now installed.\n"
    
printf $OKB"Script run complete.\n"$RST
}

# The test script run has completed.
function script_test_complete()
{
    
remove_source
    printf $OKB
"This script test is now complete.\n"
    
#printf $OKB"All necessary Fedora packages are installed.\n"$RST
}

# Script execution has been cancelled by the user.
function script_cancel()
{
    
clear
    printf $OK
"Script execution cancelled.\n"$RST
}

# Testing only. Show value of all variables
function show_vars()
{
        echo
        
printf $OK"VB_REL_VER is $OKB$VB_REL_VER\n"$RST
        printf $OK
"VB_EXT_VER is $OKB$VB_EXT_VER\n"$RST
        printf $OK
"VB_REL_DIST is $OKB$VB_REL_DIST\n"$RST
        printf $OK
"VBOX_SRC_FILE is $OKB$VBOX_SRC_FILE\n"$RST
        printf $OK
"VBOX_EXT_SRC is $OKB$VBOX_EXT_SRC\n"$RST
        printf $OK
"SRC_PATH is $OKB$SRC_PATH\n"$RST
}

function 
testonly()
{
clear
printf $ERRB
"===== TEST ONLY. NO PACKAGES ARE BEING INSTALLED.=====\n"$RST
}

# Main script flow
function menu()
{
clear
#get_release
headline
printf $OK
"\nFor this script to succeed you need to be running the newest available and installed kernel.\n\nIf you aren't running the newest available and installed kernel please exit this script\nand update your system. Then boot into the newest kernel and run this script again.\n"$RST
printf $OKB
"\nShall we continue? <y/n> "$RST
read yn
case $yn in
    y
)    remove_fed_vbox
           get_packages
        get_public_key
           get_source
           install_source
           install_extpack
        remove_source
           script_complete
           
;;

    
n)    script_cancel
           
exit 0
           
;;
# Test menu entry used for development. End user should ignore this menu option.
# All this does is test for missing packages and test the download process for VirtualBox and GuestAdditions.
    
t)     testonly 
        test_get_packages
           get_source
           script_test_complete
        
;;
# Test menu entry used for development. End user should ignore this menu option.
# All this does is show the current value of all of the variables.
    
v)      show_vars
        
;;
    *)    
script_cancel
           
exit 0
           
;;
esac
}
menu    # Call the main menu. 
__________________
Glenn
The Bassinator
© ®
Reply With Quote
Reply

Tags
installation, oracle, script, virtualbox

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
oracle virtualbox not working pythonkr11 Wibble 1 7th September 2012 07:48 PM
oracle virtualbox not working pythonkr11 Fedora Focus 1 7th September 2012 07:20 PM
Oracle Virtualbox clueless Using Fedora 5 17th May 2011 10:39 AM
[SOLVED] oracle vm virtualbox postmanpat Using Fedora 5 24th November 2010 12:51 PM
Update Oracle VM VirtualBox error JValeck Using Fedora 2 12th October 2010 05:42 AM


Current GMT-time: 12:38 (Monday, 27-03-2017)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat