Nov 03

Docker install on OpenSuse Tumbleweed

 

 

 

Sep 18

Quick one liner to get a full OPatch inventory of your Oracle Middleware Server

After trying to use OEM to grab all the patches from every installed Oracle product, I gave up and decided to write my own one liner. Customize to match your weblogic install directory.

This script will first find all Middleware Homes specifically using Weblogic, then run the lsinventory or lspatches to display a full listing.

  • First, sign in as the “oracle” user
  • Second, run the following command on your linux system

ora-plane

 

 

Aug 26

How to extend your Wireless Network with DD-WRT

I am always frustrated with WiFi. It seems like a black art needing certain spirits and voodoo dolls in place. Anyway, after struggling for a bit, I thought I would document how I extended my Netgear  WNDR3700v2 network hundreds of feet using older Buffalo Routers.

I have a barn about 100 feet away from my house and obviously need Man Cave stuff in there including streaming video and audio. After looking a Cantennas and other Magical tools, I came up with a simple solutions using OpenSource software.

Goto https://www.dd-wrt.com and search for you Wireless Router in their database. In my case, Buffalo WHR-G300N v2.

First of all read the instructions and make sure you understand the flashing process before proceeding. I have and you may BRICK your router to a useless light flasher.

Download the two bin files to your computer. In my case the Buffalo routers already had a “DD-WRT Like” interface, so all I had to do was update using the Buffalo to DD-WRT firmware, followed by the whr-g300nv2-firmware-MULTI.bin

Once you have the firmware installed and router rebooted, follow the below screenshots as a guide.

Setup / Wireless / Security etc.

  • Disable WAN
  • Set you IP info to your local network

Screenshot from 2015-08-26 20:56:36

  • Choose “Client Bridge”
  • Match your Wireless SID and security from your First Main Router
  • Add a Virtual Interface and Broadcast you new SID

Screenshot from 2015-08-26 20:58:27

  • Set your wireless security to match your main router
  • Secure your Virtual Interface with same or different security.

Screenshot from 2015-08-26 20:59:07

  • IMPORTANT Choose Router from the Operating Mode. I futsed with this for an hour
  • Once that is set to Router, your routing will actually work as well as DNS.

Screenshot from 2015-08-26 20:59:55

  • Goto Status and Wireless to check your connection to Main Router. You should see MAC Address and Signal.

Screenshot from 2015-08-26 21:00:36

  • Sit back and grab a beer!

 

 

 

 

Jul 21

Weblogic Startup Scripts

The following scripts and procedure allows stopping and starting of Weblogic Instances using Jython (Python) scripts and the nodemanager. Services are then created and can be used at startup and shutown for your NodeManager, Admin Server, and Managed Servers.

Assumptions:

Version = Weblogic 10.3.6
MW_HOME = /u01/app/oracle/weblogic1036R2
JAVA_HOME = /u01/app/jdk
DOMAIN = IDMdomain
BOOTSCRIPTS LOCATION = /u01/app/oracle/$MW_HOME/bootscripts
Node Manager is installed and configured.

Configure the nodemanager as follows

 

Create the main wls.py script

Next is the startall.sh script

stopall.sh

 

config.properties

 

Before running this command (deprecated in 12c, but still works in 12.1.3), you must source setDomainEnv.sh for the domain you are using.

Encrypt username and password (11g)

Then run this command to create your encrypted User and Key files

Encrypt credentials for Weblogic

 

Now create your init.d startup scripts

 

/etc/init.d/nodemanager

The weblogic scripts call the startall.sh when the server starts, and stopall.sh when the server stops.

/etc/init.d/weblogic

 

Both the nodemanager and weblogic startup scripts need to made runable (chmod 755) and then added to chkconfig

Update your Nodemanager type to be “Plain”

image2015-6-24 7-54-27

This can be done for each domain on your server

Well Done! Grab a beer

 

Jun 09

dnsmasq split dns trick!

check the content of the file /etc/sysconfig/network

Make sure you have in here what the external dns name is.

HOSTNAME=mail.johnson.com

This line SHOULD be in accordance of the /etc/hosts file. If your server has an ip address like 192.168.4.1 then your /etc/hosts file should look like

127.0.0.1 localhost.localdomain localhost
192.168.0.19 mail.johnson.com mail

Install DNSMASQ

yum -y install dnsmasq

modify the following line in /etc/dnsmasq.conf

mx-host=johnson.com,mail.johnson.com,50

modify the /etc/resolv.conf as follows:

nameserver 127.0.0.1
nameserver 8.8.8.8

 

restart dnsmasq

/etc/init.d/dnsmasq restart

check your work

dig johnson.com mx