Here following command will delete files older than 31 days in current folder.
find -ctime +31 -delete
Wednesday, 29 May 2013
Thursday, 2 May 2013
Thursday, 25 April 2013
Emptying contents of a log or text file
$ > alert_UAT.log
This command will empty alert_UAT.log file.
This command will empty alert_UAT.log file.
Tuesday, 19 March 2013
Installing Oracle 11r2 in RHEL / CentOS (simple installation procedure with OL yum repository for learning purpose)
1. Install RHEL or CentOS . (on completion of installation dont forget to disable Firewall & SE linux)
2. Complete the prerequisites for 11G installation with Public OL yum repository as per following link.
http://www.oracle.com/technetwork/articles/servers-storage-admin/ginnydbinstallonlinux-488779.html
3. Edit /etc/hosts and add a fully qualified name for server like follows.
<IP-address> <fully-qualified-machine-name> <machine-name>
192.168.1.10 oratest.mydomain.com oratest
4. Set environment variable for bash shell like follows.
ORACLE_BASE=/oratest/app/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/11.2.0/dbhome_1; export ORACLE_HOME
ORACLE_SID=DBtest; export ORACLE_SID
PATH=/usr/sbin:$PATH; export PATH
PATH=$ORACLE_HOME/bin:$PATH; export PATH
LD_LIBRARY_PATH=$ORACLE_HOME/lib:/lib:/usr/lib; export LD_LIBRARY_PATH
CLASSPATH=$ORACLE_HOME/jlib:$ORACLE_HOME/rdbms/jlib; export CLASSPATH
5. Set the DISPLAY environment. DISPLAY=<machine-name>:0.0; export DISPLAY
6. Download RDBMS software from following link
http://www.oracle.com/technetwork/database/enterprise-edition/downloads/index.html
7. Once download complete unzip the files by unzip<filename>.zip
8. Goto OraDB11g/database (Extracted folder)
9. Make Directory for oracle software installation and give permission for same.
mkdir -p /disk1/DB
cd /disk1
chown -R oracle:oinstall /DB
This will start the installation.
Friday, 15 March 2013
Install Shrewsoft VPN client in Ubuntu for Juniper Firewall
1. Download ike-2.2.0-rc-2.tgz or Latest Version from http://www.shrew.net/download.
2. Unzip the Downloaded file by following command $tar -xzvf shrewsoft-client.tgz
3. Go through the Readme file in extracted folder.
4. Install the prerequisites for Shrewsoft VPN client. like following.
sudo apt-get install gcc flex bison cmake openssl libssl-dev qt4-dev-tools libedit-dev build-essential
5. Go to the extracted folder IKE
6. Run following commands one by one.
$cmake -DCMAKE_INSTALL_PREFIX=/usr/local-DQTGUI=YES -DETCDIR=/etc -DNATT=YES
$cmake
$make
$sudo make install
$sudo cp ~/Downloads/ike/source/iked/iked.conf.sample /usr/local/etc/iked.conf
7. Use a text editor to edit (as root) /etc/sysctl.conf
8. Change the following Entries from 1 to 0 (if these values are not defined you will need to add
them in order to override the default setting of 1).
net.ipv4.conf.default.rp _ filter=0
net.ipv4.conf.all.rp _ filter=0
9. Use a text editor to edit (as root) /etc/sysctl.d/10-network-security.conf
10. Change the following Entries from 1 to 0 (if these values are not defined you will need to add
them in order to override the default setting of 1).
net.ipv4.conf.default.rp _ filter=0
net.ipv4.conf.all.rp _ filter=0
11. Reboot the PC.
12. Execute the following command to confirm settings change has taken affect:
$> sysctl -a | egrep rp_filter | egrep -v arp
net.ipv4.conf.all.rp _ filter = 0
net.ipv4.conf.default.rp _ filter = 0
net.ipv4.conf.lo.rp _ filter = 0
net.ipv4.conf.eth0.rp _ filter = 0
13. start IKED
$sudo iked
14. Start GUI and configure the VPN or Import Porifile.
$qikea
15. If GUI not starting install it. $ sudo apt-get install ike-qtgui
Thursday, 14 March 2013
VNC Server in RHEL, CentOS 5 & 6
#yum
#vncpasswd
#vi
#vncserver
5. Start VNC client in hostname field
#yum
#vncpasswd
#vi /etc/sysconfig/vncservers
VNCSERVERS="1
VNCSERVERARGS
#service
5. Start VNC client in hostname field
Install VNC in CentOS-7
https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-remote-access-for-the-gnome-desktop-on-centos-7
Wednesday, 25 April 2012
Run Oracle E-Business suite / forms in ubuntu firefox
There are two options One is through PPA and another Manual.
Option-1 (PPA)
sudo add -apt-repository ppa : webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer (for Java-7)
sudo apt-get install oracle-java8-installer (for Java-8)
Option-2 (Manual)
Step1: Downloadjava from http://www.java.com/en/ as per you operating system (32 / 64 Bit)
Step 2 InstallOracle JAVA (Here i used Version 7 Update 55 64Bit)
Open Terminal go to the in which we downloaded JAVA (Mostly Downloads)
Unzip the tar file
$ tar -xvfjre -7u55-linux -x64. tar. gz
$ sudo mv jre1.7.0_55 /usr/lib/jvm/
$ sudo update-alternatives --install "/usr/bin/java " "java " "/usr/lib/jvm/jre1. 7.0_55/bin/java " 1
$ sudo update-alternatives --install "/usr/lib/mozilla/plugins/libjavaplugin . so" "mozilla-javaplugin . so" "/usr/lib/jvm/jre1. 7.0_55/lib/amd64/libnpjp2. so" 1
IMPORTANT choose thejava you installed as default (SUN / Oracle JAVA)
$ sudo update-alternatives --configjava
$ sudo update-alternatives --config mozilla-javaplugin . so
There is a security issue for self signed certificates, to get rid of this issue.
open control panel by executing following command
$ /usr/lib/jvm/jre1. 7.0_55/bin/ControlPanel
Add site namewith port number like follows .
http://vision.testing.com:8000
Restart Firefox now oracle forms will start working.
Option-1 (PPA)
Option-2 (Manual)
Step1: Download
Step 2 Install
Open Terminal go to the in which we downloaded JAVA (Mostly Downloads)
Unzip the tar file
$ tar -xvf
$ sudo mv jre1.7.0_55 /usr/lib/jvm/
$ sudo update-alternatives --install "/usr/bin/
$ sudo update-alternatives --install "/usr/lib/mozilla/plugins/
IMPORTANT choose the
$ sudo update-alternatives --config
$ sudo update-alternatives --config mozilla-
There is a security issue for self signed certificates, to get rid of this issue.
$ /usr/lib/jvm/jre1
Add site name
http://vision.testing.com:8000
Restart Firefox now oracle forms will start working.
Subscribe to:
Posts (Atom)