Monday, February 22, 2010

How to configure BSNL broadband on Solaris 10 x86 platform

For configurong BSNL Broadband on solaris 10 u need following packages to b installed:

SUNWpppd - Solaris PPP Device Drivers.
SUNWpppdr - Solaris PPP configuration files.
SUNWpppdt - Solaris PPP Tunneling.
SUNWpppdu - Solaris PPP daemon and utilities.
==>Install these packages from Solaris DVD

There will be a file myisp.tmpl in /etc/ppp/peers directory. copy the file to a filename /etc/ppp/peers/bsnl.
# cp /etc/ppp/peers/myisp.tmpl /etc/ppp/peers/bsnl

Edit /etc/ppp/peers/bsnl file,
connect "/usr/bin/chat -f /etc/ppp/myisp-chat" # dial into ISP.

sppptun
plugin pppoe.so
connect "/usr/lib/inet/pppoec INTERFACE"
user USERNAME # my account name at my ISP
remotename bsnl # name of the ISP; for pap-secrets
noauth # do not authenticate the ISP's identity (client)
noipdefault # assume no IP address; get it from ISP
defaultroute # install default route; ISP is Internet gateway
updetach # log errors and CONNECT string to invoker
noccp # ISP doesn't support free compression

==>In above file the INTERFACE should be your ethernet interface name and USERNAME is your broadband user name.

Now, edit the two configuration files
/etc/ppp/pap-secrets
/etc/ppp/chap-secrets
add entry in both of files as:
USERNAME bsnl PASSWORD
This entry should be tab separated

==>Where USERNAME is your broadband username and PASSWORD is you broadband password.

!!Your configuration is almost done.

Now for connecting.
#/usr/sbin/sppptun plumb pppoe INTERFACENAME
#/usr/sbin/sppptun plumb pppoed INTERFACENAME
#/usr/bin/pppd debug call bsnl

Enable your dns/client
#svcadm enable dns/client

Now, for connecting everytime make a script as
#!/usr/bin/bash
ifconfig INTERFACENAME plumb
pkill -9 pppd
/usr/sbin/sppptun plumb pppoe INTERFACENAME
/usr/sbin/sppptun plumb pppoed INTERFACENAME
sleep 5
/usr/bin/pppd debug call bsnl

Wednesday, February 10, 2010

Installation of Solaris 10 on x86 Platform

Through this page you can easily
install solaris 10 on x86 platform

Page:

Abhi's Solaris Installation Page

ORACLE 10G Installation on Solaris 10 x86 platform

groupadd dba
groupadd oinstall
useradd -md /export/home/oracle -g dba -G oinstall -s /bin/bash oracle

vi /etc/profile
export PATH=/usr/bin:/usr/sbin:/usr/sfw/bin:/user/openwin/bin:/usr/ucb:/usr/ccs/bin:$PATH
source /etc/profile

# Do following configuration for setting kernel parameters to increase memory size
vi /etc/system
set shmsys:shminfo_shmmax=4294967295
set shmsys:shminfo_shmmin=1
set shmsys:shminfo_shmmni=100
set shmsys:shminfo_shmseg=10
set semsys:seminfo_semmns=1024
set semsys:seminfo_semmsl=256
set semsys:seminfo_semmni=100
set semsys:seminfo_semvmx=32767
set noexec_user_stack=1
reboot

su - oracle
# Extract the cpio file of Oracle Software
cpio -icvdB < /Desktop/---Solaris Software file---

vi .profile
#oracle setting
TMP=/tmp; export TMP
TMPDIR=$TMP; export TMPDIR
# Select the appropriate ORACLE_BASE
ORACLE_BASE=/export/home/oracle; export ORACLE_BASE
ORACLE_HOME=$ORACLE_BASE/product/10.2.0/db_1; export ORACLE_HOME
ORACLE_SID= Any SID u wanna Give; export ORACLE_SID
PATH=$ORACLE_HOME/bin:$PATH; export PATH
DISPLAY=:0.0;export DISPLAY
source .profile

#Create Base Directory 4 Oracle
cd /export/home
mkdir oracle
chown oracle:dba oracle


cd /Disk1/install
vi oraparam.ini
search version in it and write 5.10 after 5.9 comma separated

cd ..
./runInstaller ({first run 'xhost +' from super-user})


sqlplus /nolog
connect sys/passwd as sysdba
show user
startup
quit