Wednesday, March 18, 2015

How To Enable VncServer in Red Hat Linux

 

As  many of us works on Linux servers some times for installation of the products we like to have GUI enabled.

I would like to share the procedure to enable the GUI mode of installation on Red Hat Linux servers.

  • · Go to your home directory from any were by just typing “cd” and enter
  • · Then do ls –al to list out all the files in the directory
  • · You will see .vnc folder will be there.  Enter into the folder by cd .vnc
  • · You will see a file name called xstartup
  • · Take a back up of the file
  • · Run the following command “vncserver”
  • · Then you will get message similar to below
    • New 'roswell:1 (root)' desktop is roswell:1
    • Starting applications specified in /root/.vnc/xstartup
    • Log file is /root/.vnc/roswell:1.log
  • · Then go to the log file and note down the HTTP port value
  • · Then type the command “vncpasswd”   where it will ask you for the password please give your login password and verify it .
  • · The file will look like below where I uncommented two lines next to “#uncomment”
    •  #!/bin/sh
    • # Uncomment the following two lines for normal desktop:
    • unset SESSION_MANAGER
    • exec /etc/X11/xinit/xinitrc
    • [ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
    • [ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
    • xsetroot -solid grey
    • vncconfig -iconic &
    • xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
    • startx &
  • · Then go to your Internet explorer and type :http://yourserverip:portnumber/
  • · You will get the page requesting for password and enter password.. Then you will see Redhatlinux window(GUI) for you.

Wednesday, March 11, 2015

How to Patch Weblogic with bsu utility


In Oracle Weblogic, we often gets security patches and other patches related to product. As Oracle Weblogic Admins it required to apply patches regularly, in this post will see how to apply patches from bsu utility in command prompt.
Preparing to Install Oracle Weblogic Server Patch set :
- Patches can be applied on a per-domain basis or installation –wide basis, its better to apply the patch to installation wide.
- user the same user which was used to install the weblogic to login to the servers.
- Stop all running instances of weblogic on the domain hosted on the server.
Installing the Oracle Weblogic Serer Patch Set :
- Down load the required patch set from the oracle support.
-  copy the patchset to  {MW_HOME}/utils/bsu/cache_dir  or any local directory on the server  and make sure its permissions are correct to execute the patch.
- set the WLS_Home    ( eg :. . $WL_HOME/server/bin/setWLSEnv.sh)
- Execute the bsu.sh
 bsu.sh -install -patch_download_dir={MW_HOME}/utils/bsu/cache_dir -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}
u01/oracle/fmw/utils/bsu> ./bsu.sh -install -patch_download_dir=/u01/oracle/fmw/utils/bsu/cache_dir/ -patchlist=12UV -prod_dir=/u01/oracle/fmw/wlserver_10.3 –verbose 
Post-Install verification :

- Restart all the weblogic servers
- The following command is a simple way to determine the application of WebLogic Server PSU.

  $ . $WL_HOME/server/bin/setWLSEnv.sh 
  $ java weblogic.version 
Uninstalling the Patch :

- Stop all the weblogic servers on the machine
- Execute bsu.sh -remove -patchlist={PATCH_ID} -prod_dir={MW_HOME}/{WL_HOME}
- Restart all Weblogic servers.



Note : These are general instruction for patches, but it’s advised to read  the readme file that comes with patch to make sure if it needs any additional steps for particular patch.