[VirtualBox] - Install Oracle Linux 7 on Oracle VirtualBox
2014-10-14 00:40
316 查看
I'll start coding with JEE soon. Product environment adopts Oracle + WebLogic in Linux, technology adopts EJB3 and JPA. So I'm going to set a development environment in my own computer with them.
For iMac installing JDK, Eclipse or Maven will not be problem, but installing Oracle seems a impossible mission, now virtualbox become a very good choice.
1. Name your virtual machine, choose the OS you will install later and set the size of memory.
2. Set the size of virtual machine's "hard disk". Click OK the virtual machine will be created.
You still need change's several basic settings. Select the virtual machine you just created, click "Settings" button on the top of VirtualBox Manager.
1. Specify the installer ISO file which will be installed onto this virtual machine later.
Storage --> Click CD ROM icon on right (Storage Tree) --> Click CD ROM icon on left (Attributes) --> Choose a virtual CD/DVD disk file --> Select the Oracle Linux installer which you downloaded in advance.
2. Enable network connection. This virtual machine will be assigned a IP address you can access from you computer after OS has been installed. For example, you can ssh this virtual machine.
3. All done, click OK.
** Clicking "Left Command Button" can move your mouse cursor out of the installation screen.
2. Software Selection
3. Enable network connection
4. Reboot after complete installation, still need do some basic configurations.
Enable Kdump
Set up software update. I select "No, I prefer to register at a later time." because I don't purchase any oracle product...
OpenJDK is default JVM in Oracle Linux. I see quite a lot of posts say simply run command "yum remove java*", but I'm not sure if this way is secure because wildcard is used, so it seems not really. I'm going to use software GUI to remove it.
After you login Oracle Linux-->Start menu-->System tools-->Software, search openjdk then remove packages.
2. Extract it into /usr/lib
3. Add JAVA_HOME variable into /etc/profile. This jvm is enabled for all the users of this vm.
export JAVA_HOME=/usr/lib/jdk-1.8.0-xxx
export PATH=$PATH:$JAVA_HOME/bin
For iMac installing JDK, Eclipse or Maven will not be problem, but installing Oracle seems a impossible mission, now virtualbox become a very good choice.
Install VirtualBox
Download from https://www.virtualbox.org/, nothing special on installing. But it's really a magic tool.Create a new Virtual Machine for Oracle Linux
You'd better to download a Oracle Linux 7 installer ISO file before starting this step. https://edelivery.oracle.com/linux. You need specify a installer ISO file during the process of creating virtual machine.1. Name your virtual machine, choose the OS you will install later and set the size of memory.
2. Set the size of virtual machine's "hard disk". Click OK the virtual machine will be created.
You still need change's several basic settings. Select the virtual machine you just created, click "Settings" button on the top of VirtualBox Manager.
1. Specify the installer ISO file which will be installed onto this virtual machine later.
Storage --> Click CD ROM icon on right (Storage Tree) --> Click CD ROM icon on left (Attributes) --> Choose a virtual CD/DVD disk file --> Select the Oracle Linux installer which you downloaded in advance.
2. Enable network connection. This virtual machine will be assigned a IP address you can access from you computer after OS has been installed. For example, you can ssh this virtual machine.
3. All done, click OK.
Install Oracle Linux 7 in this Virtual Machine
1. Select VirtualBox you created former, click "Start" button on top** Clicking "Left Command Button" can move your mouse cursor out of the installation screen.
2. Software Selection
3. Enable network connection
4. Reboot after complete installation, still need do some basic configurations.
Enable Kdump
Set up software update. I select "No, I prefer to register at a later time." because I don't purchase any oracle product...
Rmove OpenJDK
OpenJDK is default JVM in Oracle Linux. I see quite a lot of posts say simply run command "yum remove java*", but I'm not sure if this way is secure because wildcard is used, so it seems not really. I'm going to use software GUI to remove it.
After you login Oracle Linux-->Start menu-->System tools-->Software, search openjdk then remove packages.
Install Oracle JDK
1. Download 64bit jdk archive file2. Extract it into /usr/lib
3. Add JAVA_HOME variable into /etc/profile. This jvm is enabled for all the users of this vm.
export JAVA_HOME=/usr/lib/jdk-1.8.0-xxx
export PATH=$PATH:$JAVA_HOME/bin
相关文章推荐
- [VirtualBox] - Install Oracle Linux 7 on Oracle VirtualBox
- [Oracle] - Install Oracle12cR1 on Oracle Linux 6.5 in VirtualBox
- How to Install Windows 7 on Oracle VirtualBox 4.2
- How to Install Oracle VirtualBox 5.1 on Ubuntu 16.04 & 15.10 and Debian 8/7
- [Oracle] - Install Oracle12cR1 on Oracle Linux 6.5 in VirtualBox
- howto install Oracle VirtualBox Guest Additions on Fedora, CentOS and Red Hat (RHEL).
- Linux 安装VirtualBox和Oracle VM VirtualBox Extension Pack
- Install Greenplum Hadoop on VirtualBox 4.2 + centos 6.2
- Oracle Database 11g Release 2 RAC On Oracle Linux 5.8 Using VirtualBox
- CentOS6 在VirtualBox中实现全屏和根据窗口大小自动调整分辨率 | Install Guest additions and run fullscreen mode on VirtualB
- Install VirtualBox 4.1.4 on Fedora 15/14, CentOS/Red Hat (RHEL) 5.6/6
- [Oracle] - Install Oracle12cR1 on Oracle Linux in VirtualBox
- How to install VirtualBox on Fedora 17 (64 bit)
- How to install VirtualBox Guest Additions in CentOS 6(在CentOS中安装VirtualBox增强功能)
- virtualbox装系统遇到的报错问题Unable to load R3 module D:\Program Files\Oracle\VirtualBox/VBoxDD.DLL (VBox
- (OK) install android-x86-5.1 on virtualbox
- Oracle Database 11g Release 2 RAC On Oracle Linux 5.8 Using VirtualBox
- install VirtualBox on Fedora
- Install VirtualBox on Ubuntu 12.10
- How to Install VirtualBox and Windows on your Mac