Difference between revisions of "Oracle Linux"
Jump to navigation
Jump to search
(10 intermediate revisions by the same user not shown) | |||
Line 7: | Line 7: | ||
# wget http://public-yum.oracle.com/public-yum-ol6.repo | # wget http://public-yum.oracle.com/public-yum-ol6.repo | ||
+ | </pre> | ||
+ | |||
+ | * Configure to get through proxy | ||
+ | <pre> | ||
+ | export http_proxy=proxy:portnum | ||
+ | |||
+ | For example, | ||
+ | export http_proxy=http://wwwproxygate.com:8888 | ||
</pre> | </pre> | ||
Line 12: | Line 20: | ||
<pre> | <pre> | ||
# yum install gcc | # yum install gcc | ||
+ | </pre> | ||
+ | |||
+ | * Yum to download only | ||
+ | <pre> | ||
+ | * Install download-only plugin first. This will give additional options to yum command. | ||
+ | # yum install yum-downloadonly | ||
+ | |||
+ | * Download the package | ||
+ | # yum update gcc -y --downloadonly --downloaddir=/tmp | ||
+ | |||
</pre> | </pre> | ||
== Install Guest Addition == | == Install Guest Addition == | ||
+ | * Install all dependencies. You can find the dependencies easily by trying to install the Guest Addition. | ||
<pre> | <pre> | ||
− | # yum install kernel-uek-devel | + | # yum install kernel-uek-devel |
# cd /media/VBOXADDITIONS_4.1.14_77440 | # cd /media/VBOXADDITIONS_4.1.14_77440 | ||
# sh ./VBoxLinuxAdditions.run | # sh ./VBoxLinuxAdditions.run | ||
+ | </pre> | ||
+ | |||
+ | * Download directly. | ||
+ | Look for the version you're interested in http://download.virtualbox.org/virtualbox/ | ||
+ | <pre> | ||
+ | wget http://download.virtualbox.org/virtualbox/4.2.6/VBoxGuestAdditions_4.2.6.iso | ||
+ | mount VBoxGuestAdditions_4.2.6.iso -o loop /mnt | ||
+ | cd /mnt | ||
+ | ./VBoxLinuxAdditions.run | ||
+ | |||
</pre> | </pre> | ||
== Shared folder == | == Shared folder == | ||
− | * | + | * Create a shared folder from VBox first, for example, named "downloads". |
− | Create a shared folder first, for example, named "downloads". | ||
<pre> | <pre> | ||
# cd /media | # cd /media | ||
# mkdir downloads | # mkdir downloads | ||
# mount -t vboxsf downloads downloads | # mount -t vboxsf downloads downloads | ||
+ | or with options | ||
+ | # mount -t vboxsf -o umask=0022,gid=500,uid=500 downloads downloads | ||
+ | or | ||
+ | # mount.vboxsf downloads downloads | ||
+ | |||
</pre> | </pre> | ||
+ | * Reference http://www.oraclenerd.com/2011/03/virtualbox-and-shared-folders.html | ||
+ | |||
+ | [[Category: Linux]] |
Latest revision as of 16:05, 21 March 2013
Setup Yum repository
- Reference - http://public-yum.oracle.com/
Oracle Linux 6 # cd /etc/yum.repos.d # wget http://public-yum.oracle.com/public-yum-ol6.repo
- Configure to get through proxy
export http_proxy=proxy:portnum For example, export http_proxy=http://wwwproxygate.com:8888
- Install package, for example, gcc.
# yum install gcc
- Yum to download only
* Install download-only plugin first. This will give additional options to yum command. # yum install yum-downloadonly * Download the package # yum update gcc -y --downloadonly --downloaddir=/tmp
Install Guest Addition
- Install all dependencies. You can find the dependencies easily by trying to install the Guest Addition.
# yum install kernel-uek-devel # cd /media/VBOXADDITIONS_4.1.14_77440 # sh ./VBoxLinuxAdditions.run
- Download directly.
Look for the version you're interested in http://download.virtualbox.org/virtualbox/
wget http://download.virtualbox.org/virtualbox/4.2.6/VBoxGuestAdditions_4.2.6.iso mount VBoxGuestAdditions_4.2.6.iso -o loop /mnt cd /mnt ./VBoxLinuxAdditions.run
- Create a shared folder from VBox first, for example, named "downloads".
# cd /media # mkdir downloads # mount -t vboxsf downloads downloads or with options # mount -t vboxsf -o umask=0022,gid=500,uid=500 downloads downloads or # mount.vboxsf downloads downloads