Changes

From Amahi Wiki
Jump to: navigation, search
2,877 bytes removed ,  03:26, 23 June 2020
no edit summary
{{NeedsUpdate [[Category:appsVirtualization]]
===[http://www.virtualbox.org VirtualBox] for Fedora 12 Host===
__NOTOC__
This is a step by step tutorial on how to get VirtualBox 3 up and running on Fedora 12. Specifically, this guide was written using the VirtualBox 3.2.12 version and an i386 CPU (32-bit), but should work with all versions. It can be adapted to upcoming versions and different CPUs (64-bit). The folks at VirtualBox have made it easy to install for Fedora users and I’m going to show you how in a few easy steps. Right, open a terminal window and let’s get to it.
There are two options for install: <br /># <u>'''VirtualBox repo:</u> ''' If you are selective or do not install Fedora updates, this is not the option for you. It will result in installation of ALL Fedora updates that your HDA requires.<br /># <u>'''VirtualBox RPM:</u> ''' This will only install the RPM and any required dependencies or dependency updates your HDA requires. It is much faster and will not force ALL Fedora updates like Option 1.
=== Install Option 1 (VirtualBox Repo) ===
* Enable the new repo:
yum clean all
yum update* Add dependencies: yum updateinstall dkms gcc* Install VirtualBox (along with a few other required packages). If you’re having issues here, try installing '''''kernel-PAE-devel''''' firstsee [[VirtualBox#Troubleshooting|Troubleshooting]] section below: yum install -y VirtualBox-3.2 dkms gcc
* Add yourself to the “vboxusers” group:
usermod -G vboxusers -a <yourusername>
* Download and import the GPG key:
wget <nowiki>http://download.virtualbox.org/virtualbox/debian/oracle_vbox.asc</nowiki>
rpm --import oracle_vbox.asc
* Add dependencies:
yum install dkms gcc
* Install VirtualBox. If you’re having issues here, see [[VirtualBox#Troubleshooting|Troubleshooting]] section below:
yum localinstall VirtualBox-3.2*
* Add yourself to the “vboxusers” group:
=== Update VirtualBox to Latest Version ===
To update VirtualBox to the next latest version, do you must stop the followingservice:
* Become privileged ('''root''' user):
su -
service vboxwebsrv stop
* Depending on the Install Option you used originally will determine how you update.
'''Option 1. (RPM): ''' Download RPM from [http://www.virtualbox.org VirtualBox.org] yum localinstall VirtualBox-3RPM-2-xxName'''Option 2. (Repo): ''' yum install VirtualBox-3-2-xx.update* Restart service: service vboxwebsrv start
=== Web Front End ([http://www.amahi.org/apps/phpvirtualbox phpVirtualBox](Web-Based Access) ===* The application It has been packaged for Amahi and is currently in ''ALPHA'' testing. You will find the manual install steps [[PhpVirtualBox|here]].
==== Manual Install =Portable VirtualBox for Windows XP/Vista/7 Host ==='''NOTE* Download latest version from [http://vbox.me here.]* You can install this on a hard drive or USB Flash Drive.* [http:''' This requires '''''Advanced Settings''''' //coffeeonthekeyboard.com/how-to-install-virtualbox-guest-additions-in-fedora-12-332/ How to Install VirtualBox Guest Additions in Fedora 12] has additional info that might be enabled on your HDA and can be done via the '''''Settings''''' tab in the Amahi Dashboardhelpful.
* Navigate to the Amahi '''''Applications tab''''', create a web app called '''phpvb'''. * Become '''root''' user: su -* Download and extract the source file: cd /var/hda/web-apps/phpvb wget <nowiki>http://code.google.com/p/phpvirtualbox/downloads/detail?name=phpvirtualbox-0.5.zip&can=2&q=</nowiki> unzip phpvirtualbox-0.5.zip mv phpvirtualbox-0.5/* html chown -R apache:users html* Edit '''''/var/hda/web-apps/phpvb/html/config.php''''' and change the values below to your user name and password (must be the same user name as added to the ''vboxusers'' group during VirtualBox install): var $username Troubleshooting == 'ian'; var $password = 'pass';* Start Web Service: /usr/bin/vboxwebsrv Applies to 32-b --logfile /dev/null >/dev/nullbit machines ONLY.* Enable Web Service start on boot:Exit '''root''' user and edit crontab for your user (''whoami'' will display Having issues with install, check to see if you have the current user name and must match the one in the previous step)PAE kernel: whoami crontab uname -eand add the following line. (to save, enter ''':''' followed by '''wq'''): @reboot /usr/bin/vboxwebsrv -b --logfile /dev/null >/dev/nullr* Create Web Service daemon (this will allow start/stop for updating VirutalBox versions):As If it returns something like '''root''' user, create the file '''''/etc/init2.d/vboxwebsrv''''' and add the following (ensure you replace ''username'' on line 6 with the same user name as added to the ''vboxusers'' group during VirtualBox install): #! /bin/sh PATH=/usr/sbin:/usr/bin:/sbin:/bin DESC="VirtualBox Web Service" NAME=vboxwebsrv SCRIPTNAME=/etc/init.d/$NAME USER=username [ -r /etc/default/$NAME ] && 31. /etc/default/$NAME [ 5-f /etc/default/rcS ] && 127. /etc/default/rcS fc12. /etc/rci686.d/init.d/functions VBPID=`ps -U ${USER} --no-heading -o pid,cmd | grep vboxwebsrv | grep -v ${SCRIPTNAME} | grep -v grep | tail -1 | awk PAE'{ print $1 }'`, do the following: do_start() { if [ "$VBPID" != "" ] && [ "$VBPID" yum install -gt 0 ]; then echo $NAME already running with PID $VBPID else su ${USER} y kernel-c 'vboxwebsrv PAE-b devel--logfile /dev/null >/dev/null' fi } do_stop() { if [ "$VBPID" != "" ] && [ "$VBPID" -gt 0 ]; then echo Stopping $NAME 2.6.31. kill $VBPID else echo $NAME not running fi } do_status() { if [ "$VBPID" != "" ] && [ "$VBPID" -gt 0 ]; then echo Running with pid $VBPID else echo $NAME not running fi } case "$1" in start) [ "$VERBOSE" != no ] && echo "Starting $DESC" "$NAME" do_start ;; stop) [ "$VERBOSE" != no ] && echo "Stopping $DESC" "$NAME" do_stop ;; restart|force5-reload) echo "Restarting $DESC" "$NAME" do_stop sleep 1 VBPID=0 echo Starting $NAME 127.fc12.. do_start ;; status) do_status ;; *) echo "Usage: $SCRIPTNAME {start|stop|restart|force-reload|status}" >&2 exit 3 ;; esacSet permissions:i686 chmod 755 /etc/init.d/vboxwebsrvvboxdrv setupTo use the service, do the following as '''root''' user (option: start, stop, restart, force-reload, status): service vboxwebsrv optionVirtualBox* That's it. You VirtualBox should now be able to access VirtualBox from your browser at <nowiki>http://phpvb</nowiki>. It will restart automatically on reboot as well. Be aware moving the mouse pointer in this app is quirky and often difficult to navigate.* Refer to [http://code.google.com/p/phpvirtualbox/wiki/Installation phpVirtualBox Installation] for additional guidancework.
'''NOTE:''' See [[Amahi_on_VirtualBox|Amahi on VirtualBox]] for detailed guidance on installing Amahi on a virtual machine (VM).
 
=== Portable VirtualBox for Windows XP/Vista/7 Host ===
* Download latest version from [http://vbox.me here.]
* You can install this on a hard drive or USB Flash Drive.
* [http://coffeeonthekeyboard.com/how-to-install-virtualbox-guest-additions-in-fedora-12-332/ How to Install VirtualBox Guest Additions in Fedora 12] has additional info that might be helpful.
12,424

edits