Friday 26 October 2012

Linux Root Password Lost


Note: # This Technique use only when the Bootstrap password not Set

1.Start the Linux Machine after starting perss 'e'
2.Select kernal Line n press 'e' for edit and after the press '1'  for the end of Kernal line then enter
3.Press 'b' for boot your system.
4.Then your system entered on single user mode after that
5.passwd -d root // Delete for root password
6.init 5 // restart machine With GUI
7.After that enter username 'root'
8.See the direct login
9. Open terminal then after set the 'root' password.
10. passwd root

Saturday 13 October 2012

RDP THROUGH LINUX TO WINDOWS


How i can take the remote PC through Linux to Windows

1. rpm -ivh rdesktop*

2. rdesktop -f<force fully only one seesion> -a<account> 16  192.168.xx.xx<destination>

Eg:-- rdesktop -f -a 16 192.xx.xx.xx

Wednesday 10 October 2012

Oracle Apps R12/11i Auto Start Shutdown Script on Linux — InitApps


#!/bin/sh
# chkconfig: 345 99 10
# description: Oracle Apps auto start-stop script.
#
#
ORA_OWNER=oravis
APP_OWNER=applvis
case “$1″ in
‘start’)
# Start the Oracle Apps Vision Demo Instance Using the Script Created by Niveeinfotech:
# The following command assumes that the oracle login
# will not prompt the user for any values
su – $ORA_OWNER -c “/u01/oracle/visdb/9.2.0/appsutil/scripts/VIS_fin/addlnctl.sh start vis”
su – $ORA_OWNER -c “/u01/oracle/visdb/9.2.0/appsutil/scripts/VIS_fin/addbctl.sh start vis”
su – $APP_OWNER -c “/u02/oracle/viscomn/admin/scripts/VIS_fin/adstrtal.sh apps/apps”
touch /var/lock/subsys/initApps
;;
‘stop’)
# Stop the Oracle Apps Vision Demo Instance Using the Script Created by NiveeInfotech
# The following command assumes that the oracle login
# will not prompt the user for any values
su – $APP_OWNER -c “/u02/oracle/viscomn/admin/scripts/VIS_fin/adstpall.sh apps/apps”
su – $ORA_OWNER -c “/u01/oracle/visdb/9.2.0/appsutil/scripts/VIS_fin/addlnctl.sh stop vis”
su – $ORA_OWNER -c “/u01/oracle/visdb/9.2.0/appsutil/scripts/VIS_fin/addbctl.sh stop immediate vis”
rm -f /var/lock/subsys/initApps
;;
esac
—–
Create the above script under /etc/init.d as filename — initApps
chmod 750 /etc/init.d/initApps
then do the following as root
chkconfig –add initApps

Wednesday 3 October 2012

Create NFS (Newtwork File system)


Machine A
rpm -ivh nfs*
rpm -ivh system-config-nfs*

Note: make the dir where to share the directory i have to use /u01/oracle/

--on terminal type
system-config-nfs //share directory
then after
ADD >
Directory - /u01/oracle >
hosts - * >
read/write permission then ok


service portmap restart
service nfs restart
chkconfig nfs on
chkconfig portmap on

--Permanent method
vim etc/fstab
192.168.220.2:/oracle /u01 nfs defaults 0 0
showmount -e 192.168.220.2

client Machine B:
--Permanent method
vim etc/fstab
192.168.220.2:/oracle /u01 nfs defaults 0 0
mount -t 192.168.220.2:/u01/oracle /u01/oracle