[go: up one dir, main page]

0% found this document useful (0 votes)
63 views19 pages

Centos 6

Download as pdf or txt
Download as pdf or txt
Download as pdf or txt
You are on page 1/ 19

Contents

Purpose and important notes........................................................................................................ 2


Prerequisites................................................................................................................................. 2
Downloading Software .................................................................................................................. 2
Oracle Virtual Box Network setup .................................................................................................. 2
Server Installation Screens............................................................................................................. 3
Custom LVM Setup........................................................................................................................ 7
Installation Complete .................................................................................................................. 12
Login to Server............................................................................................................................ 13
YUM - Software Package installer................................................................................................. 13
Hostname Setup file .................................................................................................................... 14
Network Setup............................................................................................................................ 14
SSH Login Check.......................................................................................................................... 14
Repository Setup......................................................................................................................... 15
Package Installation Test ............................................................................................................. 18
Prepare for Oracle Database ........................................................................................................ 18
What's next ?.............................................................................................................................. 19
Purpose and important notes
 This article is a part of the main article sharing a plan or method to learn about CentOS,
Debian, SUSE, Oracle and Ubuntu in a short time. Therefore making yourself strong with
various Linux derivates for your carrier in IT! I Love Linux, but do not hate Windows
 This is a manual way to set up the CentOS Server in an Oracle Virtual Box and not using the
automated way of installing server using Vagrant or any other tools or software
 The good basics of setting up a VM is vital for a good understanding how virtualization is
used. For example, network set up and minimum memory etc used
 The plan is to follow the steps required to prepare a Linux server for an Oracle Database
installation, but no need to install Oracle Database. In the section 'Prepare for Oracle
Database' gives you the details

Just a part of the screen was taken as snapshot that is important to avoid more screens and space

Prerequisites
We/you need to have basic understanding of Oracle Virtual Box download on your system and
attaching ISO to start installation

Downloading Software
https://wiki.centos.org/Download

In this article CentOS 6.8 used which you can download from the above link. The direct link is

http://vault.centos.org/6.8/isos/x86_64/

I downloaded with DVD ISO

CentOS-6.8-x86_64-LiveDVD.iso

Oracle Virtual Box Network setup


Two network cards used: 1) Host only (static) and (2) NAT Adapter for connecting to internet from
the server
Server Installation Screens
Custom LVM Setup
Click X to close

System reboots to make changes

Eject DVD
Power off the VM

Start the VM
disabled Kdump
Installation Complete
Login to Server

YUM - Software Package installer


Hostname Setup file

Network Setup
~]# dhclient eth 0/1/2

This dhclient brings up the Static Network card up and running

The 10.0.3.0 is the Routing gateway for NAT Network card and 192.168.56.0 is the Routing Gateway
for Static Network card

The entry of 192.168.56.1 is saved in the file for getting the DNS of Oracle Virtual Box. Without this
"...56.1 " entry your static IP will not work

SSH Login Check


Open a Putty session and check
Repository Setup
[root@centos6-host1 ~]# more /etc/yum.repos.d/CentOS-

CentOS-Base.repo CentOS-fasttrack.repo CentOS-Vault.repo

CentOS-Debuginfo.repo CentOS-Media.repo

4.2) more /etc/yum.repos.d/CentOS-Base.repo

After editing CentOS-Base.repo looks as given below

[base]

name=CentOS-$releasever - Base

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo

=os&infra=$infra

baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#released updates

[updates]

name=CentOS-$releasever - Updates

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo

=updates&infra=$infra

baseurl=http://mirror.centos.org/centos/$releasever/updates/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
#additional packages that may be useful

[extras]

name=CentOS-$releasever - Extras

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo

=extras&infra=$infra

baseurl=http://mirror.centos.org/centos/$releasever/extras/$basearch/

gpgcheck=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

#additional packages that extend functionality of existing packages

[centosplus]

name=CentOS-$releasever - Plus

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo

=centosplus&infra=$infra

baseurl=http://mirror.centos.org/centos/$releasever/centosplus/$basearch/

gpgcheck=1

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

The below is not mandatory so I marked it in red

#contrib - packages by Centos Users

[contrib]

name=CentOS-$releasever - Contrib

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo

=contrib&infra=$infra

#baseurl=http://mirror.centos.org/centos/$releasever/contrib/$basearch/

gpgcheck=1

enabled=0

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6
4.3)

[root@centos6-host1 ~]# more /etc/yum.repos.d/CentOS-fasttrack.repo

[fasttrack]

name=CentOS-6 - fasttrack

mirrorlist=http://mirrorlist.centos.org/?release=$releasever&arch=$basearch&repo

=fasttrack&infra=$infra

baseurl=http://mirror.centos.org/centos/$releasever/fasttrack/$basearch/

gpgcheck=1

enabled=1

gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

4.4) Not required

[root@centos6-host1 ~]# more /etc/yum.repos.d/CentOS-Vault.repo

It clearly says in that file that enabling this repo is for older versions

4.5) Not required

[root@centos6-host1 ~]# more /etc/yum.repos.d/CentOS-Debuginfo.repo

4.6) Useful

[root@centos6-host1 ~]# more /etc/yum.repos.d/CentOS-Media.repo

This repo can be used with mounted DVD media, verify the mount point for

CentOS-6. You can use this repo and yum to install items directly off the

DVD ISO that we release.

4.7) check it works or not

[root@centos6-host1 ~]# yum list wireshark*

Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

* base: mirror.centos.org

* centosplus: mirror.23media.de
* extras: mirror.infonline.de

* fasttrack: mirror.checkdomain.de

* updates: mirror.infonline.de

Installed Packages

wireshark.x86_64 1.8.10-17.el6 @base/$releasever

Available Packages

wireshark.i686 1.8.10-25.el6 base

wireshark.x86_64 1.8.10-25.el6 base

wireshark-devel.i686 1.8.10-25.el6 base

wireshark-devel.x86_64 1.8.10-25.el6 base

wireshark-gnome.x86_64 1.8.10-25.el6 base

[root@centos6-host1 ~]#

Package Installation Test

Prepare for Oracle Database


We will just perform the steps required on Linux side to prepare it for Oracle Database Installation

How can that help ? Oracle Database installation requires quite enough number of steps on the
server side which makes us understand Linux better

On the below links it is already clear what we have to do

https://oracle-base.com/articles/11g/oracle-db-11gr2-installation-on-oracle-linux-6

Start from 4.1 Operating System Requirements

https://docs.oracle.com/cd/E11882_01/install.112/e24326/toc.htm#BHCHGDIE
What's next ?
We come to a question, is that all I have to do to learn Linux with that example?

Obviously no!

The next one is prepare the Linux server for RAC Installation

https://oracle-base.com/articles/11g/oracle-db-11gr2-rac-installation-on-oracle-linux-6-using-
virtualbox

Hence, we can start with two new servers or just with this initially by following NFS and DNS Setup

You might also like