Archive for January, 2014

How to store username and password permanently in Weblogic Application server – boot.properties

Tuesday, January 14th, 2014

oracle weblogic proprietary webserver logo make server user and password permanent

I'm following a training intensive 5 days course for Oracle WebLogic. Some of exercises included stopping / starting Weblogic App server for security reasons Weblogic is designed to always propmpt for password. I remember similar behavior in Apache configured to use SSL certificate.
Whether a new Weblogic server is configured and a frequent restart of server is needed having to write the password each and everyime is mostly annoying. Thanksfully there is a file called boot.properties in which username / password can be hardcoded and later red on Weblogic start. As boot.properties contains security credentials its very important to keep the file as secured as possible. boot.properties files can be set-up for each different configured separate Weblogic server instance.

For my training sessiion boot.properties is in locations:

/home/oracle/wls11g_advadm/work/domains/MedRecDomain/servers/MedRecAdmSvr/security/boot.properties

/home/oracle//wls11g_advadm/work/domains/MedRecDomain/servers/MedRecSvr2/security/boot.properties

cat /home/oracle/wls11g_advadm/work/domains/MedRecDomain/servers/MedRecSvr2/security/boot.properties
username=weblogic
password=Welcome1


Depending on how Oracle Weblogic is configured its possible values in boot.properties (username / password) to be encrypted after first server boot-up.
 

Windows Explorer (Open directory in command prompt preserving dir PATH) – Add Dos Prompt Here feature via tiny registry tweak

Friday, January 10th, 2014

Windows explorer dos prompt here open directory in windows command line

If you have to use Windows on system administration level, you had to use command prompt daily, thus its useful to be able to be able to open Command Line starting from desired directory with no need to copy directory Path by hand and CD to it manually.

By default Command Prompt, cmd.exe always opens itself setting a path to user home directory, reading what is defined by win system variable %USERPROFILE% or %HOMEPATH% – MS Windows equivalent of UNIX's $HOME shell variable.

To add open in  DOS Prompt Here Command Prompt option to Windows Explorer menus its necessary to apply few rules to Windows registry DB
Use above Download link and launch it and from there on clicking with right Mouse button to any directory will enable you to open directory in CMD.EXE.

Here is content of little registry tweak adding the new menu Dos Prompt Here button
Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\Directory\shell\DosHere]
@="Dos &Prompt Here"

[HKEY_CLASSES_ROOT\Directory\shell\DosHere\Command]
@="cmd.exe /k cd %1"

[HKEY_CLASSES_ROOT\Drive\shell\DosHere]
@="Dos &Prompt Here"

[HKEY_CLASSES_ROOT\Drive\shell\DosHere\Command]
@="cmd.exe /k cd %1"

Windows explorer open program files or any specific directory in windows command line

windows opening directory in command line program files screenshot win 7

This little registry code is originally for Windows 2000, anyways it is compatible with all NT technology based Windowses, Add DOS Prompt Here tweak works fine on Windows XP, Windows 7 and Windows 8 (Home, Pro and Business editions).

By Mentioning $HOME its interesting to say Windows equivalent of Linux's as it might be useful to know:

linux:~# echo $HOME
/home/hipo

is

C:\\> echo %USERPROFILE%
C:\\Users\\georgi

To list all Windows Command Prompt environment variable equivalent to Linux's bash shell env / setenv is SET command), here is example output from my Winblows;

C:\Users\georgi> SET
ALLUSERSPROFILE=C:\\ProgramData
APPDATA=C:\\Users\georgi\AppData\Roaming
CLASSPATH=.;C:\\Program Files (x86)\\Java\\jre6\\lib\\ext\\QTJava.zip
CommonProgramFiles=C:\\Program Files\Common Files
CommonProgramFiles(x86)=C:\\Program Files (x86)\\Common Files
CommonProgramW6432=C:\\Program Files\\Common Files
COMPUTERNAME=GEORGI
ComSpec=C:\\Windows\\system32\\cmd.exe
DEFLOGDIR=C:\\ProgramData\\McAfee\\DesktopProtection
FP_NO_HOST_CHECK=NO
HOMEDRIVE=C:
HOMEPATH=\\Users\\georgi
LOCALAPPDATA=C:\\Users\\georgi\\AppData\\Local
NUMBER_OF_PROCESSORS=4
OS=Windows_NT
Path=C:\\Program Files\\RA2HP\\;C:\\Windows\\system32;C:\\Windows;C:\\Windows\\S
Wbem;C:\\Windows\\System32\\WindowsPowerShell\v1.0\;C:\\Program Files\\WIDCOM
oth Software\\;C:\\Program Files\\WIDCOMM\\Bluetooth Software\\syswow64;C:\\Pr
les (x86)\\Hewlett-Packard\\HP ProtectTools Security Manager\\Bin\\;C:\\Progr
\\ActivIdentity\\ActivClient\\;C:\\Program Files (x86)\\ActivIdentity\\ActivCl
\\Program Files (x86)\\QuickTime\\QTSystem\\
PATHEXT=.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC
PROCESSOR_ARCHITECTURE=AMD64
PROCESSOR_IDENTIFIER=Intel64 Family 6 Model 58 Stepping 9, GenuineIntel
PROCESSOR_LEVEL=6
PROCESSOR_REVISION=3a09
ProgramData=C:\\ProgramData
ProgramFiles=C:\\Program Files
ProgramFiles(x86)=C:\\Program Files (x86)
ProgramW6432=C:\\Program Files
PROMPT=$P$G
PSModulePath=C:\\Windows\\system32\\WindowsPowerShell\\v1.0\Modules\\
PTSMInstallPath_X86=C:\\Program Files (x86)\\Hewlett-Packard\\HP ProtectToo
ity Manager\\
PUBLIC=C:\\Users\\Public
QTJAVA=C:\\Program Files (x86)\\Java\\jre6\\lib\\ext\\QTJava.zip
SESSIONNAME=Console
SystemDrive=C:
SystemRoot=C:\\Windows
TEMP=C:\\Users\\georgi\\AppData\\Local\\Temp
TMP=C:\\Users\\georgi\\AppData\\Local\\Temp
USERDNSDOMAIN=EMEA.CPQCORP.NET
USERDOMAIN=EMEA
USERNAME=georgi
USERPROFILE=C:\\Users\\georgi
VSEDEFLOGDIR=C:\\ProgramData\\McAfee\\DesktopProtection
windir=C:\\Windows
windows_tracing_flags=3
windows_tracing_logfile=C:\\BVTBin\\Tests\\installpackage\\csilogfile.log

Hope this little trick hopes someone out there.
I will be glad to hear of other cool useful windows registry tweaks?

 

Russians Celebrate Christmas / Why some Orthodox Christians celebrate Nativity ( Christmas ) on 7th of January

Tuesday, January 7th, 2014

rojdestvo_Iisusa_Hrista_17th-vek-srpska-ikona

Merry Christmas to all Eastern Orthodox Christians!

I wish to all my Russian blog readers Christ's blessings, Wisdom of the 3 Wise man following the star. Humility of Christ for being born in a Cave and love of Mother of God Virgin Mary and Joseph to the incarnated Lord in flesh, Joy of the universe for the Universe rejoiced seing the birth of the savior of us sinful humans!

On 7th of January, the day on which biggest part of Eastern Orthodox Church,- Russian Orthodox Church along with Ukrainian, Macedonian, Croation, Serbian Arabic and part of Greek orthodox Church and Holy Mount Athos celebrate the day of Christ's birth. The original place where the Lord Jesus Christ was born as we read in the Gospels is BethlehemAccording to Church tradition on top of the Cave (known as Grotto) where the savior was born a Church basilica was built around year 333 A.D..

church of nativity bethlehem nowadays palestine - Jesus Christ birth place

The first Church building on top of Nativity Cave begun by Saint Helena, the mother of saint Emperor Constantine.

the_cave_of_nativity-where-Christ-was-born

The Basilica was destroyed a couple of times throughout the 3th, 4th, 5th, 10-th , 14-th and 18-th centuries in attempt to wipe out memory for Christ's birth and futile attempt of early times Roman emperors to destroy christianity.
Today Bethlehem Church is situated on Palestinian territories and place for pilgrimage of both Eastern Orthodox and Roman Catholic Christians. Its
interior is a very interesting mixture of a classic Orthodox Christian and a Roman Catholic basillica.

Church of the Holy Nativity Christs birth place Bethlehem

There is plenty of confusion and misunderstanding on the topic why bigger part of Christians worldwide celebrate Christmas on 24th against 25th of December and why more than half of Eastern Orthodox Christians celebrate on 6th against of 7th of January?

In fact it is interesting fact that in the early Christian one holy apostolic Church, Christmas and Eastern was celebrated many times as this two feasts since beginning of the Church are center of Christian faith. In later times, when Church was already formed as an Eastern and Western Church, there are Church canons on exact date to celebrate Christmas and Eastern following the Julian Calendar (introduced by Julius Caesar in 46 BC). In later times with development of Science it was found that this calendar was not so precise and another Church calendar was introduced in y. 1582 by Roman Catholic pope Gregory XVIII (Gregorian Calendar named after pope). I will not get into details but from modern science Astronomical point of view Gregorian calendar is more scientifically correct. The Gregorian calendar quickly become in secular life because of its mathematical precision. And by Western Roman Catholic church Influence and desire to be more scientifically correct parts of the Eastern Orthodox Church partly accepted use of the Gregorian Calendar for counting the Church feasts. Because of that many of the feasts in those Eastern Orthodox Churches moved in forward with 13 days like the Romanian and Bulgarian Orthodox Church. However due to Church canon part of the feasts in Eastern Church can't be celebrated according to the Gregorian Calendar dates. Most important feast dates is the Resurrection day (Eastern), which according to Orthodox Church rule has always to be one week after the Jewish Pascha. There are plenty of problems that emerged due to change of acceptance of reformed Church calendar in part of the Eastern Orthodox Church, however what is most important is that the difference doesn't separate Orthodox Christian it just gives us reason to celebrate feast twice 🙂