Pages

Sunday, November 9, 2014

Ubuntu 14.04: Flash plugin install using the tar file


Download tar file
wget -c http://get.adobe.com/flashplayer/install_flash_player_11_linux.x86_64.tar.gz

Install
mkdir /tmp/flashplayer
tar xvfz install_flash_player_11_linux.x86_64.tar.gz -C /tmp/flashplayer

cp -r /tmp/flashplayer/usr/* /usr/
cp /tmp/flashplayer/libflashplayer.so /usr/lib/mozilla/plugins/


To check, open firefox and type
about:plugins



Friday, November 7, 2014

Ubuntu 14.04 : Xen Installation

MAIN : Oracle RAC 11g

Reference https://help.ubuntu.com/community/Xen
 

Install Xen
apt-get -y install xen-hypervisor-amd64
reboot

root@turaok:~# xl list
Name                                        ID   Mem VCPUs    State    Time(s)
Domain-0                                     0  7914     2     r-----     540.7



Install Additional Tools

apt-get -y install virtinst virt-viewer virt-manager

root@turaok:~# virsh net-list
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 default              active     yes           yes

root@turaok:~# virsh net-dumpxml default
<network>
  <name>default</name>
  <uuid>38ea4bf3-0f7e-4729-a01f-1aa1c016401d</uuid>
  <forward mode='nat'>
    <nat>
      <port start='1024' end='65535'/>
    </nat>
  </forward>
  <bridge name='virbr0' stp='on' delay='0'/>
  <ip address='192.168.122.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.122.2' end='192.168.122.254'/>
    </dhcp>
  </ip>
</network>

root@turaok:~# ifconfig virbr0
virbr0    Link encap:Ethernet  HWaddr 52:e9:c1:c4:ec:01 
          inet addr:192.168.122.1  Bcast:192.168.122.255  Mask:255.255.255.0
          UP BROADCAST MULTICAST  root@turaok:~# virsh net-create /media/tots/D663-4A7F/rac_test_2014/rac_2_xen_network1.txt
MTU:1500  Metric:1
          RX packets:0 errors:0 dropped:0 overruns:0 frame:0
          TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:0
          RX bytes:0 (0.0 B)  TX bytes:0 (0.0 B)


Create the virtual network

#
rac_2_xen_network1.txt
<network>
  <name>private1</name>
  <uuid>34edcdd6-85c2-1c1b-ff45-85d3aa20a850</uuid>
  <bridge name='virbr2' stp='on' delay='0' />
  <mac address='52:54:00:2B:8B:8F'/>
  <ip address='192.168.101.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.101.128' end='192.168.101.254' />
    </dhcp>
  </ip>
</network>


# rac_2_xen_network2.txt
<network>
  <name>private2</name>
  <uuid>c5b4a865-a36c-fcaa-862d-c425e057f749</uuid>
  <bridge name='virbr3' stp='on' delay='0' />
  <mac address='52:54:00:87:7E:8D'/>
  <ip address='192.168.102.1' netmask='255.255.255.0'>
    <dhcp>
      <range start='192.168.102.128' end='192.168.102.254' />
    </dhcp>
  </ip>
</network>

  
root@turaok:~# virsh net-create /media/tots/D663-4A7F/rac_test_2014/rac_2_xen_network1.txt
root@turaok:~# virsh net-create /media/tots/D663-4A7F/rac_test_2014/rac_2_xen_network2.txt

root@turaok:~# virsh net-list
 Name                 State      Autostart     Persistent
----------------------------------------------------------
 default              active     yes           yes
 private1             active     no            no
 private2             active     no            no

Ubuntu: apt-get Install From an Existing Cache

The below can be use as a way to initially download .deb packages then install it to other Ubuntu machines without the need of internet connection anymore.

Create the cache directory
mkdir /vg/tool/os/ubuntu/aptget_cache_14.4.1LTS/imagemagick
Create your own configuration file to be used and set-up the archive directory.
# /vg/tool/os/ubuntu/apt1.conf
Dir::Cache::Archives /vg/tool/os/ubuntu/aptget_cache_14.4.1LTS/imagemagick;
Set-up environment
export APT_CONFIG=/vg/tool/os/ubuntu/apt1.conf
Verify settings
root@turaok:~# apt-config dump | grep -i Dir::Cache::archives
Dir::Cache::archives "/vg/tool/os/ubuntu/aptget_cache_14.4.1LTS/imagemagick";


Download the package.
apt-get --download-only install imagemagick

Copy the package to other server and set-up similar configuration file then install.
apt-get --no-download install imagemagick






Ubuntu 14.04 LTS


Download ISO

wget -c http://releases.ubuntu.com/14.04.1/ubuntu-14.04.1-desktop-amd64.iso

Create a bootable USB from ISO, using start
/usr/bin/usb-creator-gtk
Reboot then configure bios boot order for USB drive.

apt-get update

apt-get -y install vlc          # playing movie and music 
apt-get -y install imagemagick  # photo watermark tool
apt-get -y install exif         # getting image information timestamp, location etc.

apt-get -y install kdenlive     # video editing
apt-get -y install mysql-server # open source database
apt-get -y install vnstat       # monitoring network speed
apt-get -y install p7zip-rar    # rar archive

#apt-get -y install shotwell              # uploading bulk photo on facebook (default on 14.04)
#apt-get -y install ffmpeg                # video/audio conversion (deprecated on 14.04)
#apt-get -y install flashplugin-installer # tar file can also be used

Oracle RAC 11g


Road to Oracle RAC (as of 2014/11/7)


Way back in 2012 I was able to do this using Ubuntu 12.

It's time to do get back on track and practice once again Oracle RAC. I will try to document it in this blog.

Below is the simple structure of the whole system. It will be a two node Oracle RAC system.


Ubuntu 14.04
 -> LVM        (storage)
 -> NFS        (for shared installers)
 -> Apache/Http    (for yum DVD repo)
 -> SAN server    (iscsitarget)
 -> Xen
     -> Centos 5.6(32-bit)
       -> rac1
         -> SAN client    (iscsi-initiator-utils and multipath)
         -> Oracle 11g DB
         -> Oracle 11g GI
         -> ASM(on SAN)
         -> RAC
       -> rac2
         -> SAN client    (iscsi-initiator-utils and multipath)
         -> Oracle 11g DB
         -> Oracle 11g GI
         -> ASM(on SAN)
         -> RAC