Skip to content

Archive for

Java install

Step 1:  Download java

http://www.oracle.com/technetwork/java/javase/downloads/index.html

Step 2:

Copy the appropriate java file to linux server using winscp

jdk-7u15-linux-x64.rpm

 

Step 3:

[root@bip java]# rpm -ivh jdk-7u15-linux-x64.rpm
Preparing… ########################################### [100%]
1:jdk ########################################### [100%]
Unpacking JAR files…
rt.jar…
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/rt.pack
jsse.jar…
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/jsse.pack
charsets.jar…
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/charsets.pack
tools.jar…
Error: Could not open input file: /usr/java/jdk1.7.0_15/lib/tools.pack
localedata.jar…
Error: Could not open input file: /usr/java/jdk1.7.0_15/jre/lib/ext/localedata.p

Ignore this above error

Step 4:

[root@bip java]# alternatives –install /usr/bin/java java /usr/java/jdk1.7.0_15 /bin/java 2
[root@bip java]# alternatives –config java

There are 3 programs which provide ‘java’.

Selection Command
———————————————–
* 1 /usr/lib/jvm/jre-1.4.2-gcj/bin/java
2 /usr/java/jdk1.7.0_15/bin/java
+ 3 /usr/java/jdk1.6.0_41/bin/java

Enter to keep the current selection[+], or type selection number: 2

Step 5:

[root@bip java]# java -version
java version “1.7.0_15”
Java(TM) SE Runtime Environment (build 1.7.0_15-b03)
Java HotSpot(TM) 64-Bit Server VM (build 23.7-b01, mixed mode)

Step 6 :

If you want set the java home path in oracle

[root@bip ~]# su – oracle
[oracle@bip ~]$ vi .bash_profile

#Java Settings
JAVA_HOME=/usr/java/jdk1.7.0_15; export JAVA_HOME
PATH=/usr/sbin:$PATH; export PATH
PATH=$JAVA_HOME/bin:$PATH; export PATH

save it

Step 7:

[oracle@bip ~]$ which java
/usr/java/jdk1.7.0_15/bin/java

Step 8:

Symbolic creation

[root@bip jvm]# ln -s /usr/java/jdk1.7.0_15 /usr/lib/jvm/jdk1.7.0_15

[root@bip jvm]# ls -l jdk1.7.0_15
lrwxrwxrwx 1 root root 21 Feb 23 22:50 jdk1.7.0_15 -> /usr/java/jdk1.7.0_15

vncserver configuration

Step 1:  Login as root user

Install vncserver rpm package, check whether its already installed or not

vnc-server-4.1.2-14.el5_5.4.x86_64.rpm

[root@ebsdev ~]# rpm -q vnc-server-4.1.2-14.el5_5.4.x86_64
vnc-server-4.1.2-14.el5_5.4
[root@ebsdev ~]#

Step 2: password for vncserver

[root@ebsdev ~]# vncpasswd
Password:
Verify:
[root@ebsdev ~]#

Step 3:

[root@ebsdev ~]# vncserver
xauth: creating new authority file /root/.Xauthority

New ‘ebsdev.ace-ins.com:1 (root)’ desktop is ebsdev.ace-ins.com:1

Creating default startup script /root/.vnc/xstartup
Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/ebsdev.ace-ins.com:1.log

Step 4:

[root@ebsdev ~]# vi .vnc/xstartup
#!/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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &

remove the command from unset and exec

[root@ebsdev ~]# vi .vnc/xstartup
#!/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 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
twm &

Step 5:

[root@ebsdev ~]# vncserver -kill :1
Killing Xvnc process ID 20106
[root@ebsdev ~]#

Step 6:

[root@ebsdev ~]# vncserver

New ‘ebsdev.ace-ins.com:1 (root)’ desktop is ebsdev.ace-ins.com:1

Starting applications specified in /root/.vnc/xstartup
Log file is /root/.vnc/ebsdev.ace-ins.com:1.log

[root@ebsdev ~]#

Step 7: Download vncviewer

http://www.realvnc.com/download/viewer/

Step 8:  connect the host with vncviewer

Note : Some times you cann’t able connect your host, in this case check your firewall of linux and If already vncserver process aviable, kill the session using by vncserver -kill :1 

If you want to connect the server which was installed on RHEL 7, you just install “tigervnc-server-1.8.0-5.el7.x86_64.rpm” and then start vncserver & you can able to connect the server using vncviewer from your pc.

 

bip_11

 

bip_12

 

bip_13

sqlplus: error while loading shared libraries: /u01/app/oracle/product/11.2.0/dbhome_1/lib/libclntsh.so.11.1: cannot restore segment prot after reloc: Permission denied

[root@bip ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – SELinux is fully disabled.
SELINUX=enforcing
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted – Only targeted network daemons are protected.
# strict – Full SELinux protection.
SELINUXTYPE=targeted
[root@bip ~]#

Change enforcing — disabled
[root@bip ~]# cat /etc/selinux/config
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
# enforcing – SELinux security policy is enforced.
# permissive – SELinux prints warnings instead of enforcing.
# disabled – SELinux is fully disabled.
SELINUX=disabled
# SELINUXTYPE= type of policy in use. Possible values are:
# targeted – Only targeted network daemons are protected.
# strict – Full SELinux protection.
SELINUXTYPE=targeted
[root@bip ~]#
reboot the linux machine

oops i cann’t boot my windows because of before linux was installed on my machine

Steps below

  1. Before removing a partition, boot rescue mode
  2. Start parted ,where /dev/hda is the device on which to remove the partition
  3. In command mode
  4. >list hard-drives
  5. >parted /dev/hda or /dev/sda
  6. >print
  7. >rm 2
  8. exit and then you can install another OS on your system like windows xp or any.

step by step redhat installation on vmware

This document show you step by step redhat installation on vmware workstation

 

Step by step redhat installation on VMware workstation

insufficent disk space you need more space on the following file systems: 167m on /mnt/sysimage/usr

While you’re trying to install Linux, you may face this issue

”  there was an error running your transaction for the following reasons insufficent disk space

you need more space on the following file systems: 167m on /mnt/sysimage/usr “

redhat_40

Solution : Increase the /usr partition size, you might be given a very less size while you’re done partition. Increase the size at least 5GB for /usr

the VMware Authorization service not running

When you‘re try to open your virtual machine, it shows below error

redhat_13

Don’t confuse ” Start the VMware authorization service and agent service from windows service panel”

run –> services.msc –> start the both service

World Cancer Day

Insha Allah everyone gets well soon who is infected by cancer.

 

get-well-soon-3

PleaseGetWellSoon

The server you are accessing is either busy or experiencing difficulties. Please close the web browser, start a new one and try logging in again

You can face the below error sometimes in siebel application

“The server you are accessing is either busy or experiencing difficulties. Please close the web browser, start a new one and try logging in again”

The problem may come your SADMIN and GUESTCST user password expired. so change your SADMIN and GUESTCST password.

The problem may come If your *.srf file permission was changed. so check your *.srf file permision.

The problem may come after restarted the server, the *.shm file not created on the siebel server. check here /siebel/appenterprise/siebsrvr/admin/*.shm

Atlast I don’t know if everything is okay but still you’re facing this issues, just delete *.shm and osdf file from siebel and gateway server, restart the gateway and siebel server.